@daypilot/daypilot-lite-angular 4.8.0 → 4.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -132,7 +132,7 @@ DayPilot Lite
132
132
  Copyright (c) 2005 - 2025 Annpoint s.r.o.
133
133
  https://www.daypilot.org/
134
134
  Licensed under Apache Software License 2.0
135
- Version: 2025.4.750-lite
135
+ Version: 2025.4.754-lite
136
136
  */
137
137
  "use strict";
138
138
  var DayPilot = { Global: {} };
@@ -3871,19 +3871,21 @@ var DayPilot = { Global: {} };
3871
3871
  default: throw "Unknown selectMode value.";
3872
3872
  }
3873
3873
  }, this.Ed = null, this.select = function (e, t, n) {
3874
- var a = t && (t instanceof DayPilot.Date || "string" == typeof t), r = t && "object" == typeof t || "boolean" == typeof t, o = e, s = a ? t : null, l = r ? t : n;
3875
- if (!this.La)
3876
- return void (this.Ed = { "date1": o, "date2": s, "options": l });
3877
- var d = !0, c = !0;
3878
- l && "object" == typeof l ? (l.dontFocus && (d = !1), l.dontNotify && (c = !1)) : "boolean" == typeof l && (d = !l);
3879
- var u = this.selectionStart, h = this.selectionEnd;
3880
- this.selectionStart = new DayPilot.Date(o).getDatePart(), this.selectionDay = this.selectionStart;
3881
- var f = !1;
3882
- if (d) {
3883
- var v = this.startDate;
3884
- (this.selectionStart < this.Fd() || this.selectionStart >= this.Gd()) && (v = this.selectionStart.firstDayOfMonth()), v.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = v;
3885
- }
3886
- s && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(s) : this.Dd(), this.cd(), this.jd(), this.Hd(), this.Bd(), this.Cd(), !c || u.equals(this.selectionStart) && h.equals(this.selectionEnd) || this.O(), f && this.Id();
3874
+ if (!this.Q) {
3875
+ var a = t && (t instanceof DayPilot.Date || "string" == typeof t), r = t && "object" == typeof t || "boolean" == typeof t, o = e, s = a ? t : null, l = r ? t : n;
3876
+ if (!this.La)
3877
+ return void (this.Ed = { "date1": o, "date2": s, "options": l });
3878
+ var d = !0, c = !0;
3879
+ l && "object" == typeof l ? (l.dontFocus && (d = !1), l.dontNotify && (c = !1)) : "boolean" == typeof l && (d = !l);
3880
+ var u = this.selectionStart, h = this.selectionEnd;
3881
+ this.selectionStart = new DayPilot.Date(o).getDatePart(), this.selectionDay = this.selectionStart;
3882
+ var f = !1;
3883
+ if (d) {
3884
+ var v = this.startDate;
3885
+ (this.selectionStart < this.Fd() || this.selectionStart >= this.Gd()) && (v = this.selectionStart.firstDayOfMonth()), v.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = v;
3886
+ }
3887
+ s && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(s) : this.Dd(), this.cd(), this.jd(), this.Hd(), this.Bd(), this.Cd(), !c || u.equals(this.selectionStart) && h.equals(this.selectionEnd) || this.O(), f && this.Id();
3888
+ }
3887
3889
  }, this.update = function (e) { i.Jd(e); }, this.Jd = function (e) {
3888
3890
  if (i.sb(e), this.La) {
3889
3891
  if (i.Q)
@@ -4505,8 +4507,9 @@ var DayPilot = { Global: {} };
4505
4507
  }
4506
4508
  s.sf(), "function" == typeof s.onEventMoved && s.onEventMoved(r);
4507
4509
  };
4508
- r.async = !1, r.loaded = function () { o(); }, "function" == typeof s.onEventMove && s.onEventMove(r),
4509
- r.async || o();
4510
+ r.async = !1, r.loaded = function () {
4511
+ o();
4512
+ }, "function" == typeof s.onEventMove && s.onEventMove(r), r.async || o();
4510
4513
  }
4511
4514
  }, this.Se = function (e) { var t = e.e, n = e.newStart, a = e.newEnd, i = e.newResource; t.start(n), t.end(a), t.resource(i), s.events.update(t), s.events.tf(); }, this.uf = function (e) {
4512
4515
  if (e)
@@ -5167,8 +5170,8 @@ var DayPilot = { Global: {} };
5167
5170
  var t = this.ge;
5168
5171
  t.style.userSelect = "none", t.style.webkitUserSelect = "none", t.calendar = this, t.style.position = "absolute";
5169
5172
  var n = this.ze();
5170
- return n > 0 && (t.style.width = n + "px"), t.onmousedown = this.ah, t.onmousemove = this.bh, t.onmouseup = this.ch, t.oncontextmenu = this.dh, t.className = this.L("_matrix"), this.divStretch = r(), this.divStretch.style.position = "absolute", this.divStretch.style.height = "1px", t.appendChild(this.divStretch), this.divCells = r(), this.divCells.style.position = "absolute", this.divCells.oncontextmenu = this.dh, t.appendChild(this.divCells), this.divLines = r(), this.divLines.style.position = "absolute", this.divLines.oncontextmenu = this.dh, t.appendChild(this.divLines), this.divSeparators = r(), this.divSeparators.style.position = "absolute", this.divSeparators.oncontextmenu = this.dh,
5171
- t.appendChild(this.divSeparators), this.divRange = r(), this.divRange.style.position = "absolute", this.divRange.oncontextmenu = this.dh, t.appendChild(this.divRange), this.divEvents = r(), this.divEvents.style.position = "absolute", t.appendChild(this.divEvents), this.divShadow = r(), this.divShadow.style.position = "absolute", t.appendChild(this.divShadow), e.appendChild(t), e;
5173
+ return n > 0 && (t.style.width = n + "px"), t.onmousedown = this.ah, t.onmousemove = this.bh, t.onmouseup = this.ch, t.oncontextmenu = this.dh, t.className = this.L("_matrix"), this.divStretch = r(), this.divStretch.style.position = "absolute", this.divStretch.style.height = "1px", t.appendChild(this.divStretch), this.divCells = r(), this.divCells.style.position = "absolute", this.divCells.oncontextmenu = this.dh, t.appendChild(this.divCells), this.divLines = r(), this.divLines.style.position = "absolute", this.divLines.oncontextmenu = this.dh, t.appendChild(this.divLines), this.divSeparators = r(), this.divSeparators.style.position = "absolute",
5174
+ this.divSeparators.oncontextmenu = this.dh, t.appendChild(this.divSeparators), this.divRange = r(), this.divRange.style.position = "absolute", this.divRange.oncontextmenu = this.dh, t.appendChild(this.divRange), this.divEvents = r(), this.divEvents.style.position = "absolute", t.appendChild(this.divEvents), this.divShadow = r(), this.divShadow.style.position = "absolute", t.appendChild(this.divShadow), e.appendChild(t), e;
5172
5175
  }, this.pb = function () { t.eh || (t.eh = !0, DayPilot.re(document, "mouseup", t.$d), DayPilot.reNonPassive(document, "touchmove", t.fh), DayPilot.re(document, "touchend", t.gh)); }, this.hh = function () { this.nav.scroll.root = this, this.nav.scroll.onscroll = this.df, s.ih = this.nav.scroll.scrollLeft, s.jh = this.nav.scroll.scrollTop, this.divNorth && (s.kh = this.divNorth.clientWidth); }, this.lh = {}, this.lh.step = 300, this.lh.delay = 10, this.lh.mode = "display", this.lh.layers = !1, this.Fg = function (e) {
5173
5176
  for (var t = 0, n = 0; n < e.lines.length; n++) {
5174
5177
  for (var a = e.lines[n], i = 0; i < a.length; i++) {
@@ -5182,7 +5185,7 @@ var DayPilot = { Global: {} };
5182
5185
  var t = this.lh.step;
5183
5186
  "display" === this.lh.mode ? this.divEvents.style.display = "none" : "visibility" === this.lh.mode && (this.divEvents.style.visibility = "hidden"), this.divEvents.setAttribute("role", "region"), this.divEvents.setAttribute("aria-label", "scheduler events");
5184
5187
  var n = "Progressive" === this.dynamicEventRendering, a = this.ke(), i = a.pixels.top, r = a.pixels.bottom;
5185
- s.rowlist.filter(function (e) { var t = e.top - s.dynamicEventRenderingMargin, a = t + e.height + 2 * s.dynamicEventRenderingMargin; return !n || !(r <= t || i >= a); }).forEach(function (n) {
5188
+ s.rowlist.filter(function (e) { var t = e.top - l.mh(), a = t + e.height + 2 * l.mh(); return !n || !(a <= i || t >= r); }).forEach(function (n) {
5186
5189
  s.Fg(n);
5187
5190
  for (var a = 0; a < n.lines.length; a++)
5188
5191
  for (var i = n.lines[a], r = 0; r < i.length; r++) {
@@ -5222,23 +5225,23 @@ var DayPilot = { Global: {} };
5222
5225
  var n = t && t.Pa;
5223
5226
  if (n) {
5224
5227
  var a = s.bg.reactDOM && DayPilot.Util.isReactComponent(t.element), i = s.Ra.Qa && DayPilot.Util.isVueVNode(t.element);
5225
- a ? s.bg.mh(n) : i && (s.Ra.Sa = !0, s.Ra.Ta(n), s.Ra.Sa = !1);
5228
+ a ? s.bg.nh(n) : i && (s.Ra.Sa = !0, s.Ra.Ta(n), s.Ra.Sa = !1);
5226
5229
  }
5227
5230
  }
5228
5231
  e.remove(), e.onclick = null, e.oncontextmenu = null, e.onmouseover = null, e.onmouseout = null, e.onmousemove = null, e.onmousedown = null, e.ondblclick = null, e.event && (e.event.rendered = null, e.event = null);
5229
- }, this.nh = function () {
5232
+ }, this.oh = function () {
5230
5233
  if ("Progressive" === this.dynamicEventRendering) {
5231
5234
  if (s.dynamicEventRenderingCacheSweeping) {
5232
5235
  var e = s.dynamicEventRenderingCacheSize || 0;
5233
5236
  this.divEvents.style.display = "none";
5234
5237
  for (var t = [], n = this.elements.events.length, a = n - 1; a >= 0; a--) {
5235
5238
  var i = this.elements.events[a];
5236
- this.oh(i.event) ? e > 0 ? (e--, t.unshift(i)) : this.Oa(i) : t.unshift(i);
5239
+ this.ph(i.event) ? e > 0 ? (e--, t.unshift(i)) : this.Oa(i) : t.unshift(i);
5237
5240
  }
5238
5241
  this.elements.events = t, this.divEvents.style.display = "";
5239
5242
  }
5240
5243
  }
5241
- }, this.ph = function (e) {
5244
+ }, this.qh = function (e) {
5242
5245
  for (var t = this.ke(), n = this.elements.cells.length, a = n - 1; a >= 0; a--) {
5243
5246
  var i = this.elements.cells[a];
5244
5247
  t.xStart < i.coords.x && i.coords.x <= t.xEnd && t.yStart < i.coords.y && i.coords.y <= t.yEnd || (e > 0 ? e-- : this.fb(i));
@@ -5252,32 +5255,32 @@ var DayPilot = { Global: {} };
5252
5255
  var n = t && t.Pa;
5253
5256
  if (n) {
5254
5257
  var a = s.bg.reactDOM && DayPilot.Util.isReactComponent(t.element), i = s.Ra.Qa && DayPilot.Util.isVueVNode(t.element);
5255
- a ? s.bg.mh(n) : i && (s.Ra.Sa = !0, s.Ra.Ta(n), s.Ra.Sa = !1);
5258
+ a ? s.bg.nh(n) : i && (s.Ra.Sa = !0, s.Ra.Ta(n), s.Ra.Sa = !1);
5256
5259
  }
5257
5260
  }
5258
5261
  }(), DayPilot.rfa(s.elements.cells, e), DayPilot.de(e), s.xb.cells[t + "_" + n] = null;
5259
5262
  }
5260
- }, this.qh = function () {
5263
+ }, this.rh = function () {
5261
5264
  var e = "Progressive" === this.dynamicEventRendering;
5262
5265
  if (!this.nav.scroll)
5263
5266
  return !1;
5264
- for (var t = this.nav.scroll.scrollTop, n = t + this.nav.scroll.clientHeight, a = 0; a < this.rowlist.length; a++) {
5267
+ for (var t = this.nav.scroll.scrollTop - l.mh(), n = t + this.nav.scroll.clientHeight + 2 * l.mh(), a = 0; a < this.rowlist.length; a++) {
5265
5268
  var i = this.rowlist[a], r = i.top, o = i.top + i.height;
5266
- if (!e || !(n <= r || t >= o))
5269
+ if (!e || !(r >= n || o <= t))
5267
5270
  for (var s = 0; s < i.lines.length; s++)
5268
- for (var l = i.lines[s], d = 0; d < l.length; d++) {
5269
- var c = l[d];
5270
- if (this.rh(c))
5271
+ for (var d = i.lines[s], c = 0; c < d.length; c++) {
5272
+ var u = d[c];
5273
+ if (this.uh(u))
5271
5274
  return !0;
5272
5275
  }
5273
5276
  }
5274
5277
  return !1;
5275
- }, this.rh = function (e) {
5278
+ }, this.uh = function (e) {
5276
5279
  if (e.rendered)
5277
5280
  return !1;
5278
- var t = "Progressive" === this.dynamicEventRendering, n = this.nav.scroll.scrollLeft, a = n + this.nav.scroll.clientWidth, i = e.part.left, r = e.part.left + e.part.width;
5281
+ var t = "Progressive" === this.dynamicEventRendering, n = this.nav.scroll.scrollLeft - l.vh(), a = n + this.nav.scroll.clientWidth + 2 * l.vh(), i = e.part.left, r = e.part.left + e.part.width;
5279
5282
  return !t || !(a <= i || n >= r);
5280
- }, this.oh = function (e) {
5283
+ }, this.ph = function (e) {
5281
5284
  if (!e.rendered)
5282
5285
  return !0;
5283
5286
  var t = this.ke(), n = t.pixels.top, a = t.pixels.bottom, i = t.pixels.left - this.dynamicEventRenderingMargin, r = t.pixels.right + this.dynamicEventRenderingMargin, o = e.part.left, l = e.part.right, d = e.part.top, c = e.part.top + s.eventHeight;
@@ -5287,31 +5290,31 @@ var DayPilot = { Global: {} };
5287
5290
  var n = t.forced;
5288
5291
  if (e.rendered)
5289
5292
  return !1;
5290
- var a = "Progressive" === this.dynamicEventRendering, i = e.part.dayIndex, o = s.divEvents, l = s.rowlist, c = l[i], u = c.top, h = this.ke(), f = h.pixels.left - this.dynamicEventRenderingMargin, v = h.pixels.right + this.dynamicEventRenderingMargin, p = h.pixels.top, m = h.pixels.bottom, g = e.part.left, y = e.part.left + e.part.width, b = e.part.top + u, w = b + s.eventHeight, x = v <= g || f >= y, _ = m <= b || p >= w;
5291
- if (!n && a && (x || _))
5293
+ var a = "Progressive" === this.dynamicEventRendering, i = e.part.dayIndex, o = s.divEvents, c = s.rowlist, u = c[i], h = u.top, f = this.ke(), v = f.pixels.left - l.vh(), p = f.pixels.right + l.vh(), m = f.pixels.top, g = f.pixels.bottom, y = e.part.left, b = e.part.left + e.part.width, w = e.part.top + h, x = w + s.eventHeight, _ = p <= y || v >= b, C = g <= w || m >= x;
5294
+ if (!n && a && (_ || C))
5292
5295
  return !1;
5293
- var C = e.part.width, k = s.eventHeight, D = e.cache || e.data, S = D.borderRadius || s.eventBorderRadius;
5294
- "number" == typeof S && (S += "px");
5295
- var M = D.padding || s.eventPadding;
5296
- "number" == typeof M && (M += "px"), C = DayPilot.Util.atLeast(0, C), k = DayPilot.Util.atLeast(0, k);
5297
- var T = r();
5298
- T.style.position = "absolute", T.style.left = e.part.left + "px", T.style.top = u + e.part.top + "px", T.style.width = C + "px", T.style.height = k + "px", s.eventTextWrappingEnabled || (T.style.whiteSpace = "nowrap"), T.style.overflow = "hidden", T.className = this.L("_event"), D.cssClass && DayPilot.Util.addClass(T, D.cssClass);
5299
- "number" == typeof e.part.line && DayPilot.Util.addClass(T, this.L("_event_line" + e.part.line)), S && (T.style.borderRadius = S), this.showToolTip && (T.title = e.client.toolTip() || ""), T.onmousemove = this.uh, T.onmousedown = this.vh, T.onmouseup = this.wh, T.ontouchstart = d.xh, T.ontouchmove = d.yh, T.ontouchend = d.zh, e.client.clickEnabled() && (T.onclick = this.Me), "undefined" != typeof D.ariaLabel ? T.setAttribute("aria-label", D.ariaLabel) : T.setAttribute("aria-label", D.text), T.setAttribute("tabindex", "-1");
5296
+ var k = e.part.width, D = s.eventHeight, S = e.cache || e.data, M = S.borderRadius || s.eventBorderRadius;
5297
+ "number" == typeof M && (M += "px");
5298
+ var T = S.padding || s.eventPadding;
5299
+ "number" == typeof T && (T += "px"), k = DayPilot.Util.atLeast(0, k), D = DayPilot.Util.atLeast(0, D);
5300
5300
  var A = r();
5301
- A.className = s.L("_event_inner"), S && (A.style.borderRadius = S), M && (A.style.padding = M), D.backColor && (A.style.background = D.backColor), D.fontColor && (A.style.color = D.fontColor), "darker" === D.borderColor && D.backColor ? A.style.borderColor = DayPilot.ColorUtil.darker(D.backColor, 2) : A.style.borderColor = D.borderColor, D.backImage && (A.style.backgroundImage = "url(" + D.backImage + ")", D.backRepeat && (A.style.backgroundRepeat = D.backRepeat)), T.appendChild(A);
5302
- var E = e.start().getTime() === e.part.start.getTime(), H = e.rawend().getTime() === e.part.end.getTime();
5303
- if (E || DayPilot.Util.addClass(T, this.L("_event_continueleft")), H || DayPilot.Util.addClass(T, this.L("_event_continueright")), e.client.barVisible() && C > 0) {
5304
- var R = 100 * e.part.barLeft / C, N = Math.ceil(100 * e.part.barWidth / C), I = r();
5305
- I.className = this.L("_event_bar"), I.style.position = "absolute", D.barBackColor && (I.style.backgroundColor = D.barBackColor);
5306
- var L = r();
5307
- L.className = this.L("_event_bar_inner"), L.style.left = R + "%", 0 < N && N <= 1 ? L.style.width = "1px" : L.style.width = N + "%", D.barColor && (L.style.backgroundColor = D.barColor), D.barImageUrl && (L.style.backgroundImage = "url(" + D.barImageUrl + ")"), I.appendChild(L), T.appendChild(I);
5308
- }
5309
- T.row = i, T.event = e, function () {
5301
+ A.style.position = "absolute", A.style.left = e.part.left + "px", A.style.top = h + e.part.top + "px", A.style.width = k + "px", A.style.height = D + "px", s.eventTextWrappingEnabled || (A.style.whiteSpace = "nowrap"), A.style.overflow = "hidden", A.className = this.L("_event"), S.cssClass && DayPilot.Util.addClass(A, S.cssClass);
5302
+ "number" == typeof e.part.line && DayPilot.Util.addClass(A, this.L("_event_line" + e.part.line)), M && (A.style.borderRadius = M), this.showToolTip && (A.title = e.client.toolTip() || ""), A.onmousemove = this.wh, A.onmousedown = this.xh, A.onmouseup = this.yh, A.ontouchstart = d.zh, A.ontouchmove = d.Ah, A.ontouchend = d.Bh, e.client.clickEnabled() && (A.onclick = this.Me), "undefined" != typeof S.ariaLabel ? A.setAttribute("aria-label", S.ariaLabel) : A.setAttribute("aria-label", S.text), A.setAttribute("tabindex", "-1");
5303
+ var E = r();
5304
+ E.className = s.L("_event_inner"), M && (E.style.borderRadius = M), T && (E.style.padding = T), S.backColor && (E.style.background = S.backColor), S.fontColor && (E.style.color = S.fontColor), "darker" === S.borderColor && S.backColor ? E.style.borderColor = DayPilot.ColorUtil.darker(S.backColor, 2) : E.style.borderColor = S.borderColor, S.backImage && (E.style.backgroundImage = "url(" + S.backImage + ")", S.backRepeat && (E.style.backgroundRepeat = S.backRepeat)), A.appendChild(E);
5305
+ var H = e.start().getTime() === e.part.start.getTime(), R = e.rawend().getTime() === e.part.end.getTime();
5306
+ if (H || DayPilot.Util.addClass(A, this.L("_event_continueleft")), R || DayPilot.Util.addClass(A, this.L("_event_continueright")), e.client.barVisible() && k > 0) {
5307
+ var N = 100 * e.part.barLeft / k, I = Math.ceil(100 * e.part.barWidth / k), L = r();
5308
+ L.className = this.L("_event_bar"), L.style.position = "absolute", S.barBackColor && (L.style.backgroundColor = S.barBackColor);
5309
+ var P = r();
5310
+ P.className = this.L("_event_bar_inner"), P.style.left = N + "%", 0 < I && I <= 1 ? P.style.width = "1px" : P.style.width = I + "%", S.barColor && (P.style.backgroundColor = S.barColor), S.barImageUrl && (P.style.backgroundImage = "url(" + S.barImageUrl + ")"), L.appendChild(P), A.appendChild(L);
5311
+ }
5312
+ A.row = i, A.event = e, function () {
5310
5313
  if ("function" != typeof s.onBeforeEventDomAdd && "function" != typeof s.onBeforeEventDomRemove)
5311
- return void s.Ah(A, D.text, D.html);
5314
+ return void s.Ch(E, S.text, S.html);
5312
5315
  var t = {};
5313
- if (t.control = s, t.e = e, t.element = null, T.domArgs = t, "function" == typeof s.onBeforeEventDomAdd && s.onBeforeEventDomAdd(t), t.element) {
5314
- var n = A;
5316
+ if (t.control = s, t.e = e, t.element = null, A.domArgs = t, "function" == typeof s.onBeforeEventDomAdd && s.onBeforeEventDomAdd(t), t.element) {
5317
+ var n = E;
5315
5318
  if (n) {
5316
5319
  t.Pa = n;
5317
5320
  var a = DayPilot.Util.isReactComponent(t.element), i = DayPilot.Util.isVueVNode(t.element);
@@ -5330,21 +5333,21 @@ var DayPilot = { Global: {} };
5330
5333
  }
5331
5334
  }
5332
5335
  else
5333
- A.innerHTML = e.client.innerHTML();
5336
+ E.innerHTML = e.client.innerHTML();
5334
5337
  }();
5335
- var P = [];
5338
+ var B = [];
5336
5339
  return function () {
5337
- if ("Disabled" !== s.eventDeleteHandling && !D.deleteDisabled) {
5340
+ if ("Disabled" !== s.eventDeleteHandling && !S.deleteDisabled) {
5338
5341
  var e = s.durationBarVisible ? s.durationBarHeight : 0;
5339
- P.push({ v: "Hover", w: 17, h: 17, top: e + 2, right: 2, css: s.L("_event_delete"), onClick: function (e) { s.ya(e.source); } });
5342
+ B.push({ v: "Hover", w: 17, h: 17, top: e + 2, right: 2, css: s.L("_event_delete"), onClick: function (e) { s.ya(e.source); } });
5340
5343
  }
5341
- }(), D.areas && (P = P.concat(D.areas)), DayPilot.Areas.attach(T, e, { areas: P }), this.elements.events.push(T), o.appendChild(T), e.rendered = !0, !0;
5342
- }, this.$a = function (e, t) { return s.R.da() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Ah = function (e, t, n) { DayPilot.Util.isNullOrUndefined(n) ? null !== t && void 0 !== t && (s.R.da() ? e.innerText = t : e.innerHTML = t) : e.innerHTML = n; }, this.nf = function () {
5344
+ }(), S.areas && (B = B.concat(S.areas)), DayPilot.Areas.attach(A, e, { areas: B }), this.elements.events.push(A), o.appendChild(A), e.rendered = !0, !0;
5345
+ }, this.$a = function (e, t) { return s.R.da() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Ch = function (e, t, n) { DayPilot.Util.isNullOrUndefined(n) ? null !== t && void 0 !== t && (s.R.da() ? e.innerText = t : e.innerHTML = t) : e.innerHTML = n; }, this.nf = function () {
5343
5346
  for (var e = 0; e < this.elements.events.length; e++) {
5344
5347
  var t = this.elements.events[e], n = t.event, a = n.part.dayIndex, i = s.rowlist[a], r = i.top, o = r + n.part.top, l = i.height, d = s.eventHeight;
5345
5348
  n.part.top + d > l && (d = Math.max(0, l - n.part.top)), t.style.top = o + "px", t.style.height = d + "px";
5346
5349
  }
5347
- }, this.Bh = function (e) {
5350
+ }, this.Dh = function (e) {
5348
5351
  if (!e)
5349
5352
  return null;
5350
5353
  for (var t = 0; t < s.elements.events.length; t++) {
@@ -5358,18 +5361,18 @@ var DayPilot = { Global: {} };
5358
5361
  if (!t)
5359
5362
  return null;
5360
5363
  var n = s.rowlist[t.part.dayIndex];
5361
- return s.Fg(n), s.Ua(t, { "forced": !0 }), s.Bh(t);
5362
- }, this.uh = function (e) {
5364
+ return s.Fg(n), s.Ua(t, { "forced": !0 }), s.Dh(t);
5365
+ }, this.wh = function (e) {
5363
5366
  for (var t = e.currentTarget; t && !t.event;)
5364
5367
  t = t.parentNode;
5365
- s.Ch(t, e), s.Qe(e);
5366
- }, this.Oe = {}, this.vh = function (e) { s.Qe(e); var n = DayPilot.Util.mouseButton(e); e.preventDefault(), e.stopPropagation(), n.left && ("w-resize" === this.style.cursor || "e-resize" === this.style.cursor ? (t.Ne = !0, t.fg = this, t.jg = this.event, t.Dh = DayPilot.mc(e), i().style.cursor = this.style.cursor) : ("move" === this.style.cursor || this.event.client.moveEnabled()) && s.Eh(this, e)); }, this.wh = function (e) { DayPilot.Util.mouseButton(e).right && s.xa.call(this, e); }, this.Eh = function (e, t) { var n = s.Oe; s.Qe(t), n.Fh = !0, n.Oe = e, n.mg = e.event, n.Dh = DayPilot.mc(t), n.Gh = DayPilot.mo3(e, t).x, n.eg = s.getDate(s.coords.x, !0); }, "undefined" == typeof DayPilot.Global.touch && (DayPilot.Global.touch = {}), DayPilot.Global.touch.active = !1, DayPilot.Global.touch.start = !1;
5368
+ s.Eh(t, e), s.Qe(e);
5369
+ }, this.Oe = {}, this.xh = function (e) { s.Qe(e); var n = DayPilot.Util.mouseButton(e); e.preventDefault(), e.stopPropagation(), n.left && ("w-resize" === this.style.cursor || "e-resize" === this.style.cursor ? (t.Ne = !0, t.fg = this, t.jg = this.event, t.Fh = DayPilot.mc(e), i().style.cursor = this.style.cursor) : ("move" === this.style.cursor || this.event.client.moveEnabled()) && s.Gh(this, e)); }, this.yh = function (e) { DayPilot.Util.mouseButton(e).right && s.xa.call(this, e); }, this.Gh = function (e, t) { var n = s.Oe; s.Qe(t), n.Hh = !0, n.Oe = e, n.mg = e.event, n.Fh = DayPilot.mc(t), n.Ih = DayPilot.mo3(e, t).x, n.eg = s.getDate(s.coords.x, !0); }, "undefined" == typeof DayPilot.Global.touch && (DayPilot.Global.touch = {}), DayPilot.Global.touch.active = !1, DayPilot.Global.touch.start = !1;
5367
5370
  d.Gf = [];
5368
- d.relativeCoords = function (e) { return d.Hh(e); }, d.startResizing = function (e, t) { d.Ih(e, t); }, d.startMoving = function (e, t) { d.Eh(e, t); }, d.xh = function (t) {
5371
+ d.relativeCoords = function (e) { return d.Jh(e); }, d.startResizing = function (e, t) { d.Kh(e, t); }, d.startMoving = function (e, t) { d.Gh(e, t); }, d.zh = function (t) {
5369
5372
  if (!DayPilot.Global.touch.active && !DayPilot.Global.touch.start) {
5370
- t.stopPropagation(), d.Jh(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
5373
+ t.stopPropagation(), d.Lh(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
5371
5374
  var n = t.currentTarget;
5372
- s.coords = d.Hh(t);
5375
+ s.coords = d.Jh(t);
5373
5376
  var a = s.tapAndHoldTimeout;
5374
5377
  d.Gf.push(setTimeout(function () {
5375
5378
  DayPilot.Global.touch.active = !0, DayPilot.Global.touch.start = !1, t.preventDefault();
@@ -5377,14 +5380,14 @@ var DayPilot = { Global: {} };
5377
5380
  switch (s.eventTapAndHoldHandling) {
5378
5381
  case "Move": if (a.client.moveEnabled()) {
5379
5382
  var i = e(t);
5380
- d.Eh(n, i);
5383
+ d.Gh(n, i);
5381
5384
  }
5382
5385
  }
5383
5386
  }, a));
5384
5387
  }
5385
- }, d.yh = function () { d.Jh(), DayPilot.Global.touch.start = !1; }, d.zh = function (e) {
5388
+ }, d.Ah = function () { d.Lh(), DayPilot.Global.touch.start = !1; }, d.Bh = function (e) {
5386
5389
  if (!DayPilot.Util.isMouseEvent(e)) {
5387
- if (d.Jh(), DayPilot.Global.touch.start) {
5390
+ if (d.Lh(), DayPilot.Global.touch.start) {
5388
5391
  DayPilot.Global.touch.start = !1, e.preventDefault(), e.stopPropagation();
5389
5392
  var t = e.currentTarget;
5390
5393
  setTimeout(function () { s.Pe(t, e); });
@@ -5393,24 +5396,24 @@ var DayPilot = { Global: {} };
5393
5396
  }
5394
5397
  }, d.Mg = function (e) {
5395
5398
  if (!(DayPilot.Global.touch.active || DayPilot.Global.touch.start || e.touches.length > 1 || "Disabled" === s.timeRangeSelectedHandling)) {
5396
- d.Jh(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
5399
+ d.Lh(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
5397
5400
  var t = s.tapAndHoldTimeout;
5398
- d.Gf.push(setTimeout(function () { DayPilot.Global.touch.active = !0, DayPilot.Global.touch.start = !1, e.preventDefault(), s.coords = d.Hh(e), d.Kh = s.Lh(); }, t));
5399
- s.coords = d.Hh(e);
5401
+ d.Gf.push(setTimeout(function () { DayPilot.Global.touch.active = !0, DayPilot.Global.touch.start = !1, e.preventDefault(), s.coords = d.Jh(e), d.Mh = s.Nh(); }, t));
5402
+ s.coords = d.Jh(e);
5400
5403
  }
5401
5404
  }, d.Ng = function (e) {
5402
- if (d.Jh(), DayPilot.Global.touch.start = !1, t.fg)
5403
- return e.preventDefault(), void d.Mh();
5405
+ if (d.Lh(), DayPilot.Global.touch.start = !1, t.fg)
5406
+ return e.preventDefault(), void d.Oh();
5404
5407
  if (DayPilot.Global.touch.active) {
5405
- if (e.preventDefault(), s.coords = d.Hh(e), t.Oe)
5406
- return void d.Nh();
5407
- if (d.Kh) {
5408
- var n = d.Kh;
5408
+ if (e.preventDefault(), s.coords = d.Jh(e), t.Oe)
5409
+ return void d.Ph();
5410
+ if (d.Mh) {
5411
+ var n = d.Mh;
5409
5412
  n.end = { x: Math.floor(s.coords.x / s.cellWidth), "time": s.getDate(s.coords.x, !0) }, s.yf(n);
5410
5413
  }
5411
5414
  }
5412
5415
  }, d.debug = function () { }, d.Og = function (e) {
5413
- d.Jh();
5416
+ d.Lh();
5414
5417
  if (DayPilot.Global.touch.active) {
5415
5418
  if (t.Oe) {
5416
5419
  e.preventDefault();
@@ -5420,9 +5423,9 @@ var DayPilot = { Global: {} };
5420
5423
  var a = t.ng.start, r = t.ng.end, o = t.ng.row.id;
5421
5424
  DayPilot.Util.removeClass(t.Oe, s.L("_event_moving_source")), DayPilot.de(t.ng), t.ng.calendar = null, i().style.cursor = "", t.Oe = null, t.mg = null, t.ng = null, s.M(n, a, r, o);
5422
5425
  }
5423
- if (d.Kh) {
5424
- var l = d.Kh;
5425
- d.Kh = null;
5426
+ if (d.Mh) {
5427
+ var l = d.Mh;
5428
+ d.Mh = null;
5426
5429
  var c = s.elements.range2;
5427
5430
  c && c.overlapping ? s.clearSelection() : s.uf(l);
5428
5431
  }
@@ -5430,29 +5433,29 @@ var DayPilot = { Global: {} };
5430
5433
  else if (DayPilot.Global.touch.start) {
5431
5434
  if (s.coords.x < s.getScrollX())
5432
5435
  return;
5433
- var l = s.Lh();
5436
+ var l = s.Nh();
5434
5437
  s.yf(l);
5435
5438
  var c = s.elements.range2;
5436
5439
  c && c.overlapping ? s.clearSelection() : s.uf(l);
5437
5440
  }
5438
5441
  setTimeout(function () { DayPilot.Global.touch.start = !1, DayPilot.Global.touch.active = !1; }, 500);
5439
- }, d.Jh = function () {
5442
+ }, d.Lh = function () {
5440
5443
  for (var e = 0; e < d.Gf.length; e++)
5441
5444
  clearTimeout(d.Gf[e]);
5442
5445
  d.Gf = [];
5443
- }, d.Hh = function (e) { function t(e, t, n) { var a = DayPilot.abs(n); return { x: e - a.x, y: t - a.y, toString: function () { return "x: " + this.x + ", y:" + this.y; } }; } var n = s.ge, a = e.touches ? e.touches[0] : e; return t(a.pageX, a.pageY, n); }, d.Eh = function (e, n) { t.Oe = e, t.mg = e.event, t.Dh = n; var a = DayPilot.abs(e); t.Gh = n.x - a.x, t.eg = s.getDate(s.coords.x, !0), t.ng = s.ca(e), s.lg(); }, d.Ih = function (e, n) { t.fg = e, t.jg = e.event, t.fg.dpBorder = n, t.ig || (t.ig = s.ca(e)), s.kg(); }, d.Mh = function () {
5446
+ }, d.Jh = function (e) { function t(e, t, n) { var a = DayPilot.abs(n); return { x: e - a.x, y: t - a.y, toString: function () { return "x: " + this.x + ", y:" + this.y; } }; } var n = s.ge, a = e.touches ? e.touches[0] : e; return t(a.pageX, a.pageY, n); }, d.Gh = function (e, n) { t.Oe = e, t.mg = e.event, t.Fh = n; var a = DayPilot.abs(e); t.Ih = n.x - a.x, t.eg = s.getDate(s.coords.x, !0), t.ng = s.ca(e), s.lg(); }, d.Kh = function (e, n) { t.fg = e, t.jg = e.event, t.fg.dpBorder = n, t.ig || (t.ig = s.ca(e)), s.kg(); }, d.Oh = function () {
5444
5447
  if (!t.ig) {
5445
5448
  var e = t.fg;
5446
5449
  t.ig = s.ca(e);
5447
5450
  }
5448
5451
  s.kg();
5449
- }, d.Nh = function () {
5452
+ }, d.Ph = function () {
5450
5453
  if (!t.ng) {
5451
5454
  var e = t.Oe;
5452
5455
  t.ng = s.ca(e);
5453
5456
  }
5454
5457
  t.ng.calendar.lg();
5455
- }, this.Ch = function (e, n) {
5458
+ }, this.Eh = function (e, n) {
5456
5459
  var a = this.eventResizeMargin, i = e;
5457
5460
  if ("undefined" != typeof t) {
5458
5461
  var r = DayPilot.mo3(e, n);
@@ -5462,7 +5465,7 @@ var DayPilot = { Global: {} };
5462
5465
  }
5463
5466
  }
5464
5467
  }, this.zf = function () { var e = s.Le(); return s.days * (1440 / e); }, this.vf = function (e) {
5465
- if (e = e || t.Kh || s.xf, !e)
5468
+ if (e = e || t.Mh || s.xf, !e)
5466
5469
  return null;
5467
5470
  var n = s.rowlist[e.start.y];
5468
5471
  if (!n)
@@ -5477,7 +5480,7 @@ var DayPilot = { Global: {} };
5477
5480
  e.style.position = "relative", this.nav.timeHeader = e;
5478
5481
  for (var t = 0; t < this.timeHeader.length; t++)
5479
5482
  for (var n = this.timeHeader[t], a = 0; a < n.length; a++)
5480
- this.Oh(a, t);
5483
+ this.Qh(a, t);
5481
5484
  var i = this.divNorth;
5482
5485
  1 === i.childNodes.length ? i.replaceChild(e, i.childNodes[0]) : (i.innerHTML = "", i.appendChild(e));
5483
5486
  var o = this.ze();
@@ -5491,7 +5494,7 @@ var DayPilot = { Global: {} };
5491
5494
  n = i.toString("m");
5492
5495
  break;
5493
5496
  case "Hour":
5494
- n = "Clock12Hours" === s.R.Ph() ? i.toString("h tt", a) : i.toString("H", a);
5497
+ n = "Clock12Hours" === s.R.Rh() ? i.toString("h tt", a) : i.toString("H", a);
5495
5498
  break;
5496
5499
  case "Day":
5497
5500
  n = i.toString(a.datePattern);
@@ -5513,12 +5516,12 @@ var DayPilot = { Global: {} };
5513
5516
  break;
5514
5517
  case "Cell":
5515
5518
  var r = (e.end.ticks - e.start.ticks) / 6e4;
5516
- n = this.Qh(i, r);
5519
+ n = this.Sh(i, r);
5517
5520
  break;
5518
5521
  default: throw new DayPilot.Exception("Invalid groupBy value: " + t);
5519
5522
  }
5520
5523
  return n;
5521
- }, this.Qh = function (e, t) { var n = this.R.Fe(); return t = t || this.cellDuration, t < 1 ? e.toString("ss") : t < 60 ? e.toString("mm") : t < 1440 ? "Clock12Hours" === s.R.Ph() ? e.toString("h tt", n) : e.toString("H", n) : t < 10080 ? e.toString("d") : 10080 === t ? 1 === l.ea() ? e.weekNumberISO() : e.weekNumber() : e.toString("MMMM yyyy", n); }, this.Ee = function (e, t, n) {
5524
+ }, this.Sh = function (e, t) { var n = this.R.Fe(); return t = t || this.cellDuration, t < 1 ? e.toString("ss") : t < 60 ? e.toString("mm") : t < 1440 ? "Clock12Hours" === s.R.Rh() ? e.toString("h tt", n) : e.toString("H", n) : t < 10080 ? e.toString("d") : 10080 === t ? 1 === l.ea() ? e.weekNumberISO() : e.weekNumber() : e.toString("MMMM yyyy", n); }, this.Ee = function (e, t, n) {
5522
5525
  var a, i = s.startDate.addDays(s.days);
5523
5526
  t = t || this.cellGroupBy;
5524
5527
  var r = 60;
@@ -5562,7 +5565,7 @@ var DayPilot = { Global: {} };
5562
5565
  default: throw n ? new DayPilot.Exception("Invalid scale value: " + t) : new DayPilot.Exception("Invalid groupBy value: " + t);
5563
5566
  }
5564
5567
  return a.getTime() > i.getTime() && (a = i), a;
5565
- }, this.Oh = function (e, t) { var n = this.nav.timeHeader, a = this.timeHeader[t][e], i = t < this.timeHeader.length - 1, o = a.left, l = a.width, d = t * s.headerHeight, c = s.headerHeight, u = r(); u.style.position = "absolute", u.style.top = d + "px", u.style.left = o + "px", u.style.width = l + "px", u.style.height = c + "px", a.toolTip && (u.title = a.toolTip), u.setAttribute("aria-hidden", "true"), a.cssClass && DayPilot.Util.addClass(u, a.cssClass), u.style.userSelect = "none", u.style.webkitUserSelect = "none", u.oncontextmenu = function () { return !1; }, u.cell = {}, u.cell.start = a.start, u.cell.end = a.end, u.cell.level = t, u.cell.th = a, u.onclick = this.Ag, u.oncontextmenu = this.Bg, DayPilot.rePassive(u, DayPilot.touch.start, function (e) { e.stopPropagation(); }), u.style.overflow = "hidden", s.timeHeaderTextWrappingEnabled || (u.style.whiteSpace = "nowrap"); var h = r(); h.innerHTML = s.$a(a.text, a.html), a.backColor && (h.style.background = a.backColor), a.fontColor && (h.style.color = a.fontColor); var f = this.L("_timeheadercol"), v = this.L("_timeheadercol_inner"); i && (f = this.L("_timeheadergroup"), v = this.L("_timeheadergroup_inner")), DayPilot.Util.addClass(u, f), DayPilot.Util.addClass(h, v), DayPilot.Util.addClass(u, s.L("_timeheader_cell")), DayPilot.Util.addClass(h, s.L("_timeheader_cell_inner")), u.appendChild(h), DayPilot.Areas.attach(u, a, { areas: a.areas }), this.xb.timeHeader[e + "_" + t] = u, this.elements.timeHeader.push(u), n.appendChild(u); }, this._f = function () { s.rowlist.forEach(function (e) { var t = e.getHeight() + s.rowMarginTop + s.rowMarginBottom; e.height !== t && (s.kf = !0), e.height = t; }), s.kf && (s.xb.drawArea = null); }, this.Ze = function () {
5568
+ }, this.Qh = function (e, t) { var n = this.nav.timeHeader, a = this.timeHeader[t][e], i = t < this.timeHeader.length - 1, o = a.left, l = a.width, d = t * s.headerHeight, c = s.headerHeight, u = r(); u.style.position = "absolute", u.style.top = d + "px", u.style.left = o + "px", u.style.width = l + "px", u.style.height = c + "px", a.toolTip && (u.title = a.toolTip), u.setAttribute("aria-hidden", "true"), a.cssClass && DayPilot.Util.addClass(u, a.cssClass), u.style.userSelect = "none", u.style.webkitUserSelect = "none", u.oncontextmenu = function () { return !1; }, u.cell = {}, u.cell.start = a.start, u.cell.end = a.end, u.cell.level = t, u.cell.th = a, u.onclick = this.Ag, u.oncontextmenu = this.Bg, DayPilot.rePassive(u, DayPilot.touch.start, function (e) { e.stopPropagation(); }), u.style.overflow = "hidden", s.timeHeaderTextWrappingEnabled || (u.style.whiteSpace = "nowrap"); var h = r(); h.innerHTML = s.$a(a.text, a.html), a.backColor && (h.style.background = a.backColor), a.fontColor && (h.style.color = a.fontColor); var f = this.L("_timeheadercol"), v = this.L("_timeheadercol_inner"); i && (f = this.L("_timeheadergroup"), v = this.L("_timeheadergroup_inner")), DayPilot.Util.addClass(u, f), DayPilot.Util.addClass(h, v), DayPilot.Util.addClass(u, s.L("_timeheader_cell")), DayPilot.Util.addClass(h, s.L("_timeheader_cell_inner")), u.appendChild(h), DayPilot.Areas.attach(u, a, { areas: a.areas }), this.xb.timeHeader[e + "_" + t] = u, this.elements.timeHeader.push(u), n.appendChild(u); }, this._f = function () { s.rowlist.forEach(function (e) { var t = e.getHeight() + s.rowMarginTop + s.rowMarginBottom; e.height !== t && (s.kf = !0), e.height = t; }), s.kf && (s.xb.drawArea = null); }, this.Ze = function () {
5566
5569
  s.rowlist.forEach(function (e) {
5567
5570
  var t = s.divHeader;
5568
5571
  if (t) {
@@ -5581,22 +5584,22 @@ var DayPilot = { Global: {} };
5581
5584
  if (s.Qe(e), "Disabled" === s.timeRangeSelectedHandling)
5582
5585
  return !1;
5583
5586
  var n = DayPilot.Util.mouseButton(e);
5584
- if (s.Rh())
5587
+ if (s.Th())
5585
5588
  return !1;
5586
5589
  if (n.middle || n.right)
5587
5590
  return !1;
5588
- if (s.Sh(s.coords))
5591
+ if (s.Uh(s.coords))
5589
5592
  return !1;
5590
5593
  var a = n.left ? "left" : n.right ? "right" : n.middle ? "middle" : "unknown";
5591
- return s.Th = a, t.Kh = s.Lh(), t.Kh && (t.Uh = s), !1;
5592
- }, this.Lh = function () { var e = {}, t = s.He(s.coords.x).x, n = s.getDate(s.coords.x, !0); return e.start = { y: s.Ff(s.coords.y).i, x: t, "time": n }, e.end = { x: t, "time": n }, e.calendar = s, s.yf(e), e; }, this.ch = function (e) {
5594
+ return s.Vh = a, t.Mh = s.Nh(), t.Mh && (t.Wh = s), !1;
5595
+ }, this.Nh = function () { var e = {}, t = s.He(s.coords.x).x, n = s.getDate(s.coords.x, !0); return e.start = { y: s.Ff(s.coords.y).i, x: t, "time": n }, e.end = { x: t, "time": n }, e.calendar = s, s.yf(e), e; }, this.ch = function (e) {
5593
5596
  if (s.Oe = {}, s.xf) {
5594
5597
  if (DayPilot.Util.mouseButton(e).left) {
5595
5598
  var n = s.xf;
5596
- if (s.Sh(s.coords)) {
5599
+ if (s.Uh(s.coords)) {
5597
5600
  var a = function (e) {
5598
5601
  return function () {
5599
- t.Vh = null;
5602
+ t.Xh = null;
5600
5603
  var n = s.vf(e);
5601
5604
  if (n) {
5602
5605
  var a = {};
@@ -5608,22 +5611,22 @@ var DayPilot = { Global: {} };
5608
5611
  }
5609
5612
  }
5610
5613
  }
5611
- }, this.Rh = function () { return !!(t.fg || t.Oe || t.Kh) || !!s.Oe.Fh; }, this.dragInProgress = function () { return s.Rh(); }, this.Qe = function (e) { var t = DayPilot.mo3(s.ge, e); t = t || {}, t.stamp = t.x + "_" + t.y, s.coords && s.coords.stamp === t.stamp || (s.coords = t); }, this.bh = function (e) {
5614
+ }, this.Th = function () { return !!(t.fg || t.Oe || t.Mh) || !!s.Oe.Hh; }, this.dragInProgress = function () { return s.Th(); }, this.Qe = function (e) { var t = DayPilot.mo3(s.ge, e); t = t || {}, t.stamp = t.x + "_" + t.y, s.coords && s.coords.stamp === t.stamp || (s.coords = t); }, this.bh = function (e) {
5612
5615
  if (!DayPilot.Global.touch.active) {
5613
5616
  var n = DayPilot.mc(e);
5614
- if (s.Qe(e), s.Oe.Fh) {
5615
- DayPilot.distance(s.Oe.Dh, n) > 2 && (DayPilot.Util.copyProps(s.Oe, t), i().style.cursor = "move", s.Oe = {});
5617
+ if (s.Qe(e), s.Oe.Hh) {
5618
+ DayPilot.distance(s.Oe.Fh, n) > 2 && (DayPilot.Util.copyProps(s.Oe, t), i().style.cursor = "move", s.Oe = {});
5616
5619
  }
5617
- t.fg && t.jg.calendar === s ? (t.fg.event || (t.fg.event = t.jg), s.Wh()) : t.mg ? s.Xh() : t.Kh && t.Kh.calendar === s && (t.Kh.moved = !0, s.Yh());
5620
+ t.fg && t.jg.calendar === s ? (t.fg.event || (t.fg.event = t.jg), s.Yh()) : t.mg ? s.Zh() : t.Mh && t.Mh.calendar === s && (t.Mh.moved = !0, s.$h());
5618
5621
  }
5619
- }, this.Yh = function () { var e = t.Kh, n = s.He(s.coords.x).x, a = s.getDate(s.coords.x, !0); e.end = { x: n, "time": a }, s.yf(e); }, this.Wh = function () { t.ig || (t.ig = s.ca(t.fg)), s.kg(); }, this.Xh = function () {
5622
+ }, this.$h = function () { var e = t.Mh, n = s.He(s.coords.x).x, a = s.getDate(s.coords.x, !0); e.end = { x: n, "time": a }, s.yf(e); }, this.Yh = function () { t.ig || (t.ig = s.ca(t.fg)), s.kg(); }, this.Zh = function () {
5620
5623
  if (!t.ng) {
5621
5624
  DayPilot.Util.addClass(t.Oe, s.L("_event_moving_source"));
5622
5625
  var e = t.mg;
5623
5626
  t.ng = s.ca(e);
5624
5627
  }
5625
5628
  s.lg();
5626
- }, this.dh = function (e) { return e.cancelBubble = !0, !1; }, this.Sh = function (e) {
5629
+ }, this.dh = function (e) { return e.cancelBubble = !0, !1; }, this.Uh = function (e) {
5627
5630
  var t = s.xf;
5628
5631
  if (!t || !t.start || !t.end)
5629
5632
  return !1;
@@ -5646,13 +5649,13 @@ var DayPilot = { Global: {} };
5646
5649
  }
5647
5650
  return y.className = s.L("_shadow"), y.firstChild.innerHTML = "", y.style.left = t + "px", y.style.top = o[u].top + "px", y.style.width = g + "px", y.style.height = o[u].height - 1 + "px", y.calendar = s, s.elements.range2 = y, y;
5648
5651
  }
5649
- if (e = e || t.Kh) {
5652
+ if (e = e || t.Mh) {
5650
5653
  var a = s.eventBorderRadius;
5651
5654
  "number" == typeof a && (a += "px");
5652
5655
  var i = s.snapToGrid, o = s.rowlist;
5653
5656
  n(e);
5654
5657
  }
5655
- }, this.Zh = function (e) { return { "start": { "x": e.start.x, "y": e.start.y, "time": e.start.time }, "end": { "x": e.end.x, "time": e.end.time }, "calendar": e.calendar, "args": e.args }; }, this.getCoords = function () {
5658
+ }, this._h = function (e) { return { "start": { "x": e.start.x, "y": e.start.y, "time": e.start.time }, "end": { "x": e.end.x, "time": e.end.time }, "calendar": e.calendar, "args": e.args }; }, this.getCoords = function () {
5656
5659
  if (!s.coords)
5657
5660
  return null;
5658
5661
  var e = {};
@@ -5664,13 +5667,13 @@ var DayPilot = { Global: {} };
5664
5667
  s.bf();
5665
5668
  var e = s.nav.scroll;
5666
5669
  if (s.ih = e.scrollLeft, s.jh = e.scrollTop, s.kh = e.clientWidth, s.divTimeScroll && (s.divTimeScroll.scrollLeft = s.ih), DayPilot.browser.ios && t.Vg ? n() : s.divResScroll.scrollTop = s.jh, s.progressiveRowRendering && (s.Gf.drawRows && (clearTimeout(s.Gf.drawRows), s.Gf.drawRows = null), s.scrollDelayRows > 0 ? s.Gf.drawRows = setTimeout(function () { s.ug(); }, s.scrollDelayRows) : s.ug()), s.Gf.drawCells && (clearTimeout(s.Gf.drawCells), s.Gf.drawCells = null), s.scrollDelayCells > 0)
5667
- s.Gf.drawCells = setTimeout(s.$h(), s.scrollDelayCells);
5670
+ s.Gf.drawCells = setTimeout(s.ai(), s.scrollDelayCells);
5668
5671
  else {
5669
- s.$h()();
5672
+ s.ai()();
5670
5673
  }
5671
- s.Gf.na && (clearTimeout(s.Gf.na), s.Gf.na = null), s.scrollDelayEvents > 0 ? s.Gf.na = setTimeout(s._h(), s.scrollDelayEvents) : s.na(), s.Gf.updateFloats && (clearTimeout(s.Gf.updateFloats), s.Gf.updateFloats = null), s.scrollDelayFloats > 0 ? s.Gf.updateFloats = setTimeout(function () { s.ne(); }, s.scrollDelayFloats) : s.ne(), s.onScrollCalled = !0;
5674
+ s.Gf.na && (clearTimeout(s.Gf.na), s.Gf.na = null), s.scrollDelayEvents > 0 ? s.Gf.na = setTimeout(s.bi(), s.scrollDelayEvents) : s.na(), s.Gf.updateFloats && (clearTimeout(s.Gf.updateFloats), s.Gf.updateFloats = null), s.scrollDelayFloats > 0 ? s.Gf.updateFloats = setTimeout(function () { s.ne(); }, s.scrollDelayFloats) : s.ne(), s.onScrollCalled = !0;
5672
5675
  }
5673
- }, this.$h = function () { return function () { s && s.cf(); }; }, this._h = function () { return function () { s && (s.qh() ? setTimeout(function () { s.nh(), setTimeout(function () { s.na(!0); }, 50); }, 50) : s.oe()); }; }, this.bf = function () { s.xb.drawArea = null; }, this.show = function () { s.visible = !0, s.ae = !0, s.nav.top.style.display = "", s.u(), s.$g(), s.df(); }, this.hide = function () { s.visible = !1, s.ae = !1, s.nav.top.style.display = "none"; }, this.Vf = function (e) {
5676
+ }, this.ai = function () { return function () { s && s.cf(); }; }, this.bi = function () { return function () { s && (s.rh() ? setTimeout(function () { s.oh(), setTimeout(function () { s.na(!0); }, 50); }, 50) : s.oe()); }; }, this.bf = function () { s.xb.drawArea = null; }, this.show = function () { s.visible = !0, s.ae = !0, s.nav.top.style.display = "", s.u(), s.$g(), s.df(); }, this.hide = function () { s.visible = !1, s.ae = !1, s.nav.top.style.display = "none"; }, this.Vf = function (e) {
5674
5677
  if (!s.events.list)
5675
5678
  return null;
5676
5679
  for (var t = 0; t < this.events.list.length; t++) {
@@ -5681,7 +5684,7 @@ var DayPilot = { Global: {} };
5681
5684
  }
5682
5685
  }
5683
5686
  return null;
5684
- }, this.ai = function () {
5687
+ }, this.ci = function () {
5685
5688
  var e = this.ke(), t = e.xStart, n = e.xEnd - e.xStart, a = e.yStart, i = e.yEnd - e.yStart;
5686
5689
  this.cellProperties || (this.cellProperties = {});
5687
5690
  for (var r = 0; r <= n; r++) {
@@ -5689,19 +5692,19 @@ var DayPilot = { Global: {} };
5689
5692
  var l = a + s;
5690
5693
  this.gd(o, l);
5691
5694
  }
5692
- this.bi(o);
5695
+ this.di(o);
5693
5696
  }
5694
5697
  for (var d = this.pg(), l = d.start; l < d.end; l++)
5695
- this.ci(l);
5698
+ this.ei(l);
5696
5699
  }, this.cf = function () {
5697
5700
  if (!s.Q) {
5698
5701
  var e = s.rowlist;
5699
5702
  if (e && e.length > 0) {
5700
5703
  if (this.cellSweeping) {
5701
5704
  var t = this.cellSweepingCacheSize;
5702
- this.ph(t);
5705
+ this.qh(t);
5703
5706
  }
5704
- this.ai();
5707
+ this.ci();
5705
5708
  }
5706
5709
  this.kf = !1;
5707
5710
  }
@@ -5710,21 +5713,21 @@ var DayPilot = { Global: {} };
5710
5713
  return s.xb.drawArea;
5711
5714
  if (!this.nav.scroll)
5712
5715
  return null;
5713
- var e = s.jh, t = {}, n = null != this.dynamicEventRenderingMarginX ? this.dynamicEventRenderingMarginX : this.dynamicEventRenderingMargin, a = null != this.dynamicEventRenderingMarginY ? this.dynamicEventRenderingMarginY : this.dynamicEventRenderingMargin, i = s.ih - n, r = i + s.kh + 2 * n, o = 0, l = 0;
5714
- o = s.He(i).x, l = s.He(r, !0).x;
5715
- var d = this.zf();
5716
- l = Math.min(l, d - 1), o = DayPilot.Util.atLeast(o, 0);
5717
- var c = e - a, u = e + this.nav.scroll.offsetHeight + 2 * a, h = this.Ff(c).i, f = this.Ff(u).i;
5718
- f < this.rowlist.length && f++, t.xStart = o, t.xEnd = l, t.yStart = h, t.yEnd = f;
5719
- var v = s.nav.scroll;
5720
- return 0 === v.clientWidth && (v = s.divTimeScroll), t.pixels = {}, t.pixels.left = v.scrollLeft, t.pixels.right = v.scrollLeft + v.clientWidth, t.pixels.top = v.scrollTop, t.pixels.bottom = v.scrollTop + v.clientHeight, t.pixels.width = v.scrollWidth, t.sw = DayPilot.sw(s.nav.scroll), s.xb.drawArea = t, t;
5721
- }, this.ze = function () { return s.zf() * s.cellWidth; }, this.ci = function (e) {
5716
+ var e = s.jh, t = {}, n = l.vh(), a = l.mh(), i = s.ih - n, r = i + s.kh + 2 * n, o = 0, d = 0;
5717
+ o = s.He(i).x, d = s.He(r, !0).x;
5718
+ var c = this.zf();
5719
+ d = Math.min(d, c - 1), o = DayPilot.Util.atLeast(o, 0);
5720
+ var u = e - a, h = e + this.nav.scroll.offsetHeight + 2 * a, f = this.Ff(u).i, v = this.Ff(h).i;
5721
+ v < this.rowlist.length && v++, t.xStart = o, t.xEnd = d, t.yStart = f, t.yEnd = v;
5722
+ var p = s.nav.scroll;
5723
+ return 0 === p.clientWidth && (p = s.divTimeScroll), t.pixels = {}, t.pixels.left = p.scrollLeft, t.pixels.right = p.scrollLeft + p.clientWidth, t.pixels.top = p.scrollTop, t.pixels.bottom = p.scrollTop + p.clientHeight, t.pixels.width = p.scrollWidth, t.sw = DayPilot.sw(s.nav.scroll), s.xb.drawArea = t, t;
5724
+ }, this.ze = function () { return s.zf() * s.cellWidth; }, this.ei = function (e) {
5722
5725
  var t = s.rowlist, n = s.divLines, a = "y_" + e;
5723
5726
  if (!this.xb.linesHorizontal[a]) {
5724
5727
  var i = t[e], o = i.height, l = i.top + o - 1, d = this.ze(), c = r();
5725
5728
  c.style.left = "0px", c.style.top = l + "px", c.style.width = d + "px", c.style.height = "1px", c.style.fontSize = "1px", c.style.lineHeight = "1px", c.style.overflow = "hidden", c.style.position = "absolute", c.className = this.L("_matrix_horizontal_line"), n.appendChild(c), this.xb.linesHorizontal[a] = c;
5726
5729
  }
5727
- }, this.bi = function (e) {
5730
+ }, this.di = function (e) {
5728
5731
  var t = s.Ie(e);
5729
5732
  if (t) {
5730
5733
  var n = s.divLines, a = s._d, i = "x_" + e;
@@ -5733,13 +5736,13 @@ var DayPilot = { Global: {} };
5733
5736
  l.style.left = o + "px", l.style.top = "0px", l.style.width = "1px", l.style.height = a + "px", l.style.fontSize = "1px", l.style.lineHeight = "1px", l.style.overflow = "hidden", l.style.position = "absolute", l.className = this.L("_matrix_vertical_line"), n.appendChild(l), this.elements.linesVertical.push(l), this.xb.linesVertical[i] = l;
5734
5737
  }
5735
5738
  }
5736
- }, this.We = function () { s._d = s.di(s.rowlist); }, this.di = function (e) {
5739
+ }, this.We = function () { s._d = s.fi(s.rowlist); }, this.fi = function (e) {
5737
5740
  for (var t = 0, n = 0; n < e.length; n++) {
5738
5741
  var a = e[n];
5739
5742
  a.top = t, t += a.height;
5740
5743
  }
5741
5744
  return t;
5742
- }, this._e = function () { s.elements.cells = [], s.xb.cells = [], s.divCells.innerHTML = "", s.ei(); }, this.ei = function () { s.divLines.innerHTML = "", s.xb.linesVertical = {}, s.xb.linesHorizontal = {}, s.elements.linesVertical = []; }, this.of = function (e) {
5745
+ }, this._e = function () { s.elements.cells = [], s.xb.cells = [], s.divCells.innerHTML = "", s.gi(); }, this.gi = function () { s.divLines.innerHTML = "", s.xb.linesVertical = {}, s.xb.linesHorizontal = {}, s.elements.linesVertical = []; }, this.of = function (e) {
5743
5746
  var t = [];
5744
5747
  for (var n in s.xb.cells)
5745
5748
  t.push(s.xb.cells[n]);
@@ -5750,7 +5753,7 @@ var DayPilot = { Global: {} };
5750
5753
  if (n) {
5751
5754
  var a = s.rowlist, i = s.divCells, o = e + "_" + t;
5752
5755
  if (!this.xb.cells[o]) {
5753
- var l = this.fi(e, t), d = s.gi(e, t), c = r();
5756
+ var l = this.hi(e, t), d = s.ii(e, t), c = r();
5754
5757
  if (c.style.left = n.left + "px", c.style.top = a[t].top + "px", c.style.width = n.width + "px", c.style.height = a[t].height + "px", c.style.position = "absolute", l && l.backColor && (c.style.backgroundColor = l.backColor), c.className = this.L("_cell"), c.coords = {}, c.coords.x = e, c.coords.y = t, l) {
5755
5758
  if (l.cssClass && DayPilot.Util.addClass(c, l.cssClass), c.innerHTML = s.$a(l.text, l.html), l.backImage && (c.style.backgroundImage = 'url("' + l.backImage + '")'), l.backRepeat && (c.style.backgroundRepeat = l.backRepeat), l.business && s.cellsMarkBusiness && DayPilot.Util.addClass(c, s.L("_cell_business")), l.disabled && DayPilot.Util.addClass(c, s.L("_cell_disabled")), l.backColor && (c.style.backgroundColor = l.backColor), l.fontColor && (c.style.color = l.fontColor), l.horizontalAlignment || l.verticalAlignment) {
5756
5759
  switch (c.style.display = "flex", l.horizontalAlignment) {
@@ -5802,19 +5805,19 @@ var DayPilot = { Global: {} };
5802
5805
  }
5803
5806
  }
5804
5807
  }
5805
- }, this.gi = function (e, t) {
5808
+ }, this.ii = function (e, t) {
5806
5809
  var n = s.Ie(e);
5807
5810
  if (!n)
5808
5811
  return null;
5809
5812
  var a = s.rowlist[t], i = a.id, r = n.start, o = n.end, l = {};
5810
- if (l.cell = { x: e, y: t, start: r, end: o, resource: i, row: s.zg(a), properties: s.fi(e, t) }, l.control = s, "function" == typeof this.onBeforeCellRender) {
5813
+ if (l.cell = { x: e, y: t, start: r, end: o, resource: i, row: s.zg(a), properties: s.hi(e, t) }, l.control = s, "function" == typeof this.onBeforeCellRender) {
5811
5814
  var d = e + "_" + t;
5812
5815
  if (s.beforeCellRenderCaching && s.af[d])
5813
5816
  return l;
5814
5817
  s.af[d] = !0, this.onBeforeCellRender(l);
5815
5818
  }
5816
5819
  return l;
5817
- }, this.clearSelection = function () { this.hi(); }, this.ii = function (e, t, n) {
5820
+ }, this.clearSelection = function () { this.ji(); }, this.ki = function (e, t, n) {
5818
5821
  e = new DayPilot.Date(e), t = new DayPilot.Date(t);
5819
5822
  var a = s.ie(n), i = s.Ke(e);
5820
5823
  if (!i.current)
@@ -5824,13 +5827,25 @@ var DayPilot = { Global: {} };
5824
5827
  throw new DayPilot.Exception("Time range selection 'end' out of timeline");
5825
5828
  var o = {};
5826
5829
  return o.start = { y: a.index, x: i.i, "time": e }, o.end = { x: r.i, "time": t }, o.calendar = this, o;
5827
- }, this.selectTimeRange = function (e, t, n, a) { var i = s.ii(e, t, n); s.yf(i), a || setTimeout(function () { s.uf(i); }, 0); }, this.sf = function () { var e = t.ng && t.ng.source; e && DayPilot.Util.removeClass(e, s.L("_event_moving_source")), DayPilot.de(t.ng), t.ng = null, DayPilot.Global.movingLink && (DayPilot.Global.movingLink.clear(), DayPilot.Global.movingLink = null); }, this.hi = function () { s.divShadow && (s.divShadow.innerHTML = ""), s.elements.range = [], s.elements.range2 = null, s.xf = null, s.ji = null; }, l.Kd = function () { delete s.xb.headerHeight; }, l.da = function () { return "Disabled" !== s.xssProtection; }, l.Fe = function () { return DayPilot.Locale.find(s.locale); }, l.Ph = function () { return "Auto" !== s.timeFormat ? s.timeFormat : l.Fe().timeFormat; }, l.ea = function () {
5830
+ }, this.selectTimeRange = function (e, t, n, a) { var i = s.ki(e, t, n); s.yf(i), a || setTimeout(function () { s.uf(i); }, 0); }, this.sf = function () { var e = t.ng && t.ng.source; e && DayPilot.Util.removeClass(e, s.L("_event_moving_source")), DayPilot.de(t.ng), t.ng = null, DayPilot.Global.movingLink && (DayPilot.Global.movingLink.clear(), DayPilot.Global.movingLink = null); }, this.ji = function () { s.divShadow && (s.divShadow.innerHTML = ""), s.elements.range = [], s.elements.range2 = null, s.xf = null, s.li = null; }, l.Kd = function () { delete s.xb.headerHeight; }, l.da = function () { return "Disabled" !== s.xssProtection; }, l.Fe = function () { return DayPilot.Locale.find(s.locale); }, l.Rh = function () { return "Auto" !== s.timeFormat ? s.timeFormat : l.Fe().timeFormat; }, l.ea = function () {
5828
5831
  if ("Auto" === s.weekStarts) {
5829
5832
  var e = l.Fe();
5830
5833
  return e ? e.weekStarts : 0;
5831
5834
  }
5832
5835
  return s.weekStarts || 0;
5833
- }, l.wg = function () { var e = navigator.userAgent.toLowerCase(); return e.indexOf("mobile") !== -1 || e.indexOf("android") != -1; }, l.dg = function (e) { return "Always" === s.useEventBoxes || "Never" !== s.useEventBoxes && e < 60 * s.Le() * 1e3; }, this.fi = function (e, t) {
5836
+ }, l.wg = function () { var e = navigator.userAgent.toLowerCase(); return e.indexOf("mobile") !== -1 || e.indexOf("android") != -1; }, l.dg = function (e) { return "Always" === s.useEventBoxes || "Never" !== s.useEventBoxes && e < 60 * s.Le() * 1e3; }, l.vh = function () {
5837
+ var e = s.dynamicEventRenderingMarginX;
5838
+ if ("number" == typeof e)
5839
+ return e;
5840
+ var t = s.dynamicEventRenderingMargin;
5841
+ return "number" == typeof t ? t : 0;
5842
+ }, l.mh = function () {
5843
+ var e = s.dynamicEventRenderingMarginY;
5844
+ if ("number" == typeof e)
5845
+ return e;
5846
+ var t = s.dynamicEventRenderingMargin;
5847
+ return "number" == typeof t ? t : 0;
5848
+ }, this.hi = function (e, t) {
5834
5849
  var n = e + "_" + t, a = s.rowlist;
5835
5850
  if (this.cellProperties || (this.cellProperties = {}), this.cellProperties[n])
5836
5851
  return this.cellProperties[n];
@@ -5861,7 +5876,7 @@ var DayPilot = { Global: {} };
5861
5876
  return !1;
5862
5877
  }
5863
5878
  return !0;
5864
- }, this.u = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.ki = function (e) { this.heightSpec = "Fixed", this.height = e - (this.Be() + 2), this.ma(); }, this.setHeight = this.ki, this.ie = function (e) { return s.Dg(e)[0]; }, this.wb = function () {
5879
+ }, this.u = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.mi = function (e) { this.heightSpec = "Fixed", this.height = e - (this.Be() + 2), this.ma(); }, this.setHeight = this.mi, this.ie = function (e) { return s.Dg(e)[0]; }, this.wb = function () {
5865
5880
  if (this.id && this.id.tagName)
5866
5881
  this.nav.top = this.id;
5867
5882
  else {
@@ -5878,8 +5893,8 @@ var DayPilot = { Global: {} };
5878
5893
  return s;
5879
5894
  throw new DayPilot.Exception("The target placeholder was already initialized by another DayPilot component instance.");
5880
5895
  }
5881
- return this.li(), this.Zg(), this;
5882
- }, this.li = function () { this.Lg(), this.pb(), this.ba(), this.hh(), this.qb(); var angular = s.ye.enabled; s.scrollToDate ? s.scrollTo(s.scrollToDate) : s.scrollX || s.scrollY ? s.setScroll(s.scrollX, s.scrollY) : angular || s.df(), s.scrollToResourceId && (s.scrollToResource(s.scrollToResourceId), s.scrollToResourceId = null); var e = function () { s.scrollY && s.setScroll(s.scrollX, s.scrollY); }; setTimeout(e, 200), this.bf(), this.vb(), this.La = !0; var t = s.fe; t ? s.scrollTo(t) : s.df(); }, this.ub = null, this.sb = function (e) {
5896
+ return this.ni(), this.Zg(), this;
5897
+ }, this.ni = function () { this.Lg(), this.pb(), this.ba(), this.hh(), this.qb(); var angular = s.ye.enabled; s.scrollToDate ? s.scrollTo(s.scrollToDate) : s.scrollX || s.scrollY ? s.setScroll(s.scrollX, s.scrollY) : angular || s.df(), s.scrollToResourceId && (s.scrollToResource(s.scrollToResourceId), s.scrollToResourceId = null); var e = function () { s.scrollY && s.setScroll(s.scrollX, s.scrollY); }; setTimeout(e, 200), this.bf(), this.vb(), this.La = !0; var t = s.fe; t ? s.scrollTo(t) : s.df(); }, this.ub = null, this.sb = function (e) {
5883
5898
  if (e) {
5884
5899
  var t = { "resources": { "preInit": function () { var e = this.data; e && (s.resources = e); } }, "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? s.events.list = e.list : s.events.list = e); }, "postInit": function () { } }, "scrollTo": { "preInit": function () { }, "postInit": function () { this.data && s.ee(this.data); } }, "scrollX": { "postInit": function () { this.data && s.he(this.data); } }, "scrollY": { "postInit": function () { this.data && s.Ae(this.data); } } };
5885
5900
  s.ub = t, s.ye.scrollToRequested && (t.scrollTo.data = s.ye.scrollToRequested, s.ye.scrollToRequested = null), s.ye.scrollXRequested && (t.scrollX.data = s.ye.scrollXRequested, s.ye.scrollXRequested = null), s.ye.scrollYRequested && (t.scrollY.data = s.ye.scrollYRequested, s.ye.scrollYRequested = null);
@@ -5901,16 +5916,16 @@ var DayPilot = { Global: {} };
5901
5916
  }, this.bg = {}, this.bg.reactDOM = null, this.bg.react = null, this.bg.Uc = function (e, t) {
5902
5917
  var n = s.bg.reactDOM;
5903
5918
  if ("function" == typeof n.createRoot) {
5904
- var a = t.mi;
5905
- a || (a = n.createRoot(t), t.mi = a), a.render(e);
5919
+ var a = t.oi;
5920
+ a || (a = n.createRoot(t), t.oi = a), a.render(e);
5906
5921
  }
5907
5922
  else
5908
5923
  n.render(e, t);
5909
- }, this.bg.mh = function (e) {
5924
+ }, this.bg.nh = function (e) {
5910
5925
  var t = s.bg.reactDOM;
5911
5926
  if ("function" == typeof t.createRoot) {
5912
- var n = e.mi;
5913
- setTimeout(function () { n.unmount(), e.mi = null; }, 0);
5927
+ var n = e.oi;
5928
+ setTimeout(function () { n.unmount(), e.oi = null; }, 0);
5914
5929
  }
5915
5930
  else
5916
5931
  t.unmountComponentAtNode(e);
@@ -5932,28 +5947,28 @@ var DayPilot = { Global: {} };
5932
5947
  throw new DayPilot.Exception("Now row object supplied when creating DayPilot.Row");
5933
5948
  if (!t)
5934
5949
  throw new DayPilot.Exception("No parent control supplied when creating DayPilot.Row");
5935
- this.ni = {};
5936
- var n = this.ni;
5950
+ this.pi = {};
5951
+ var n = this.pi;
5937
5952
  n.id = e.id, n.name = e.name, n.data = e.resource, n.tags = e.tags;
5938
5953
  var a = this;
5939
- 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.oi = 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 () {
5940
- for (var e = [], t = 0; t < a.oi.events.length; t++)
5941
- e.push(a.oi.events[t]);
5954
+ a.isRow = !0, a.menuType = "resource", a.name = e.name, a.id = e.id, a.tags = e.tags, a.index = e.index, a.calendar = t, a.data = e.resource, a.qi = e, a.$ = {}, a.$.row = e, a.toJSON = function () { var e = {}; return e.start = this.start, e.name = this.name, e.id = this.id, e.index = this.index, e; }, a.events = {}, a.events.all = function () {
5955
+ for (var e = [], t = 0; t < a.qi.events.length; t++)
5956
+ e.push(a.qi.events[t]);
5942
5957
  return e;
5943
- }, a.events.isEmpty = function () { return 0 === a.oi.events.length; }, a.events.forRange = function (e, t) { return a.oi.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); };
5944
- }, t.Oe = null, t.mg = null, t.Dh = null, t.fg = null, t.jg = null, t.Ne = !1, t.eh = !1, t.Vh = null, t.pi = null, t.pc = function () { DayPilot.ue(document, "mouseup", t.$d), DayPilot.ue(document, "touchmove", t.fh), DayPilot.ue(document, "touchend", t.gh), t.eh = !1; }, t.fh = function (e) {
5958
+ }, a.events.isEmpty = function () { return 0 === a.qi.events.length; }, a.events.forRange = function (e, t) { return a.qi.events.forRange(e, t); }, a.events.totalDuration = function () { var e = 0; return a.events.all().forEach(function (t) { e += t.part.end.getTime() - t.part.start.getTime(); }), new DayPilot.Duration(e); }, a.remove = function () { t.rows.remove(a); }, a.addClass = function (e) { var n = t.divHeader, i = n.rows[a.index]; DayPilot.Util.addClass(i, e), a.$.row.cssClass = DayPilot.Util.addClassToString(a.$.row.cssClass, e), a.data.cssClass = e; }, a.removeClass = function (e) { var n = t.divHeader, i = n.rows[a.index]; DayPilot.Util.removeClass(i, e), a.$.row.cssClass = DayPilot.Util.removeClassFromString(a.$.row.cssClass, e), a.data.cssClass = DayPilot.Util.removeClassFromString(a.data.cssClass, e); };
5959
+ }, t.Oe = null, t.mg = null, t.Fh = null, t.fg = null, t.jg = null, t.Ne = !1, t.eh = !1, t.Xh = null, t.ri = null, t.pc = function () { DayPilot.ue(document, "mouseup", t.$d), DayPilot.ue(document, "touchmove", t.fh), DayPilot.ue(document, "touchend", t.gh), t.eh = !1; }, t.fh = function (e) {
5945
5960
  if (t.fg) {
5946
5961
  var n = t.fg.event.calendar;
5947
- n.coords = n.be.Hh(e), n.be.Mh(), e.preventDefault();
5962
+ n.coords = n.be.Jh(e), n.be.Oh(), e.preventDefault();
5948
5963
  }
5949
5964
  if (t.Oe) {
5950
5965
  e.preventDefault();
5951
5966
  var n = t.mg.calendar;
5952
- n.coords = n.be.Hh(e), n.be.Nh();
5967
+ n.coords = n.be.Jh(e), n.be.Ph();
5953
5968
  }
5954
5969
  }, t.gh = function (e) { t.Vg = !1, t.$d(e); }, t.$d = function (e) {
5955
5970
  if (t.fg) {
5956
- var a = function () { var e = t.jg, n = e.calendar; i().style.cursor = "", t.fg = null, t.jg = null, DayPilot.de(t.ig), t.ig = null, n && (n.qi = null); };
5971
+ var a = function () { var e = t.jg, n = e.calendar; i().style.cursor = "", t.fg = null, t.jg = null, DayPilot.de(t.ig), t.ig = null, n && (n.si = null); };
5957
5972
  if (setTimeout(function () { t.Ne = !1; }), !t.ig)
5958
5973
  return void a();
5959
5974
  var r = t.jg, o = r.calendar, s = t.ig.start, l = t.ig.end, d = "left" === t.fg.dpBorder ? "start" : "end";
@@ -5971,15 +5986,15 @@ var DayPilot = { Global: {} };
5971
5986
  var s = t.ng.start, l = t.ng.end, c = t.ng.row.id;
5972
5987
  t.ng.calendar = null, i().style.cursor = "", t.Oe = null, t.mg = null, o.M(r, s, l, c, e), DayPilot.Global.movingAreaData = null;
5973
5988
  }
5974
- else if (t.Kh) {
5975
- var u = DayPilot.Util.mouseButton(e), h = t.Kh, f = h.calendar, a = function () { };
5976
- if (f.ji = null, t.Vh)
5977
- return clearTimeout(t.Vh), t.Vh = null, void a();
5978
- f.xf = h, t.Kh = null;
5979
- var v = function (e) { return function () { t.Vh = null, f.uf(e), "Hold" !== f.timeRangeSelectedHandling && "HoldForever" !== f.timeRangeSelectedHandling ? n() : f.xf = e; }; }, p = f.Zh(h);
5980
- return a(), u.left ? (v(p)(), e.cancelBubble = !0, !1) : void (t.Vh = null);
5989
+ else if (t.Mh) {
5990
+ var u = DayPilot.Util.mouseButton(e), h = t.Mh, f = h.calendar, a = function () { };
5991
+ if (f.li = null, t.Xh)
5992
+ return clearTimeout(t.Xh), t.Xh = null, void a();
5993
+ f.xf = h, t.Mh = null;
5994
+ var v = function (e) { return function () { t.Xh = null, f.uf(e), "Hold" !== f.timeRangeSelectedHandling && "HoldForever" !== f.timeRangeSelectedHandling ? n() : f.xf = e; }; }, p = f._h(h);
5995
+ return a(), u.left ? (v(p)(), e.cancelBubble = !0, !1) : void (t.Xh = null);
5981
5996
  }
5982
- t.Gh = null, t.eg = null;
5997
+ t.Ih = null, t.eg = null;
5983
5998
  };
5984
5999
  }
5985
6000
  }(DayPilot);