@daypilot/daypilot-lite-angular 3.10.1 → 3.11.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.
@@ -78,6 +78,9 @@ var DayPilot;
78
78
  class Util {
79
79
  }
80
80
  DayPilot.Util = Util;
81
+ class ColorUtil {
82
+ }
83
+ DayPilot.ColorUtil = ColorUtil;
81
84
  class Http {
82
85
  }
83
86
  DayPilot.Http = Http;
@@ -118,7 +121,7 @@ DayPilot Lite
118
121
  Copyright (c) 2005 - 2022 Annpoint s.r.o.
119
122
  https://www.daypilot.org/
120
123
  Licensed under Apache Software License 2.0
121
- Version: 2022.3.432-lite
124
+ Version: 2022.4.438-lite
122
125
  */
123
126
  if ("undefined" == typeof DayPilot)
124
127
  var DayPilot = {};
@@ -133,17 +136,17 @@ if ("undefined" == typeof DayPilot)
133
136
  n < 10 && (n = "0" + n);
134
137
  var i = r.getUTCMinutes();
135
138
  i < 10 && (i = "0" + i);
136
- var d = r.getUTCHours();
137
- d < 10 && (d = "0" + d);
138
- var l = r.getUTCDate();
139
+ var l = r.getUTCHours();
139
140
  l < 10 && (l = "0" + l);
141
+ var d = r.getUTCDate();
142
+ d < 10 && (d = "0" + d);
140
143
  var s = r.getUTCMonth() + 1;
141
144
  s < 10 && (s = "0" + s);
142
145
  var u = r.getUTCFullYear();
143
146
  if (u <= 0)
144
147
  throw "The minimum year supported is 1.";
145
148
  u < 10 ? u = "000" + u : u < 100 ? u = "00" + u : u < 1e3 && (u = "0" + u);
146
- var c = u + "-" + s + "-" + l + "T" + d + ":" + i + ":" + n + a;
149
+ var c = u + "-" + s + "-" + d + "T" + l + ":" + i + ":" + n + a;
147
150
  return t[e] = c, c;
148
151
  }
149
152
  function t(e, t) { return !DayPilot.Util.isNullOrUndefined(e) && (!DayPilot.Util.isNullOrUndefined(t) && e.toLocaleLowerCase() === t.toLocaleLowerCase()); }
@@ -183,7 +186,7 @@ if ("undefined" == typeof DayPilot)
183
186
  else if (a = DayPilot.mo2(e, t), !a)
184
187
  return null;
185
188
  return a.shift = t.shiftKey, a.meta = t.metaKey, a.ctrl = t.ctrlKey, a.alt = t.altKey, a;
186
- }, DayPilot.browser = {}, DayPilot.browser.ie9 = function () { var e = document.createElement("div"); return e.innerHTML = "<!--[if IE 9]><i></i><![endif]-->", 1 === e.getElementsByTagName("i").length; }(), DayPilot.browser.ielt9 = function () { var e = document.createElement("div"); return e.innerHTML = "<!--[if lt IE 9]><i></i><![endif]-->", 1 === e.getElementsByTagName("i").length; }(), DayPilot.page = function (e) { var t = e.changedTouches && e.changedTouches[0] ? e.changedTouches[0] : e; return "undefined" == typeof t.pageX || DayPilot.browser.ie ? "undefined" != typeof e.clientX && document.body && document.documentElement ? { x: e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft, y: e.clientY + document.body.scrollTop + document.documentElement.scrollTop } : null : { x: t.pageX, y: t.pageY }; }, DayPilot.abs = function (e, t) {
189
+ }, DayPilot.browser = {}, DayPilot.browser.ie9 = function () { var e = document.createElement("div"); return e.innerHTML = "<!--[if IE 9]><i></i><![endif]-->", 1 === e.getElementsByTagName("i").length; }(), DayPilot.browser.ielt9 = function () { var e = document.createElement("div"); return e.innerHTML = "<!--[if lt IE 9]><i></i><![endif]-->", 1 === e.getElementsByTagName("i").length; }(), DayPilot.browser.hover = !window.matchMedia("(any-hover: none)").matches, DayPilot.touch = {}, DayPilot.page = function (e) { var t = e.changedTouches && e.changedTouches[0] ? e.changedTouches[0] : e; return "undefined" == typeof t.pageX || DayPilot.browser.ie ? "undefined" != typeof e.clientX && document.body && document.documentElement ? { x: e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft, y: e.clientY + document.body.scrollTop + document.documentElement.scrollTop } : null : { x: t.pageX, y: t.pageY }; }, DayPilot.abs = function (e, t) {
187
190
  if (!e)
188
191
  return null;
189
192
  if (e.getBoundingClientRect) {
@@ -217,7 +220,13 @@ if ("undefined" == typeof DayPilot)
217
220
  if (e[a] === t)
218
221
  return a;
219
222
  return -1;
220
- }, DayPilot.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 }; }, DayPilot.Stats = {}, DayPilot.Stats.eventObjects = 0, DayPilot.Stats.dateObjects = 0, DayPilot.Stats.cacheHitsCtor = 0, DayPilot.Stats.cacheHitsParsing = 0, DayPilot.Stats.cacheHitsTicks = 0, DayPilot.Stats.print = function () { console.log("DayPilot.Stats.eventObjects: " + DayPilot.Stats.eventObjects), console.log("DayPilot.Stats.dateObjects: " + DayPilot.Stats.dateObjects), console.log("DayPilot.Stats.cacheHitsCtor: " + DayPilot.Stats.cacheHitsCtor), console.log("DayPilot.Stats.cacheHitsParsing: " + DayPilot.Stats.cacheHitsParsing), console.log("DayPilot.Stats.cacheHitsTicks: " + DayPilot.Stats.cacheHitsTicks), console.log("DayPilot.Date.Cache.Ctor keys: " + Object.keys(DayPilot.Date.Cache.Ctor).length), console.log("DayPilot.Date.Cache.Parsing keys: " + Object.keys(DayPilot.Date.Cache.Parsing).length); }, DayPilot.re = function (e, t, a) { a && e && e.addEventListener(t, a, !1); }, DayPilot.rePassive = function (e, t, a) { a && e && e.addEventListener(t, a, { "passive": !0 }); }, DayPilot.reNonPassive = function (e, t, a) { a && e && e.addEventListener(t, a, { "passive": !1 }); }, DayPilot.pu = function (e) {
223
+ }, DayPilot.ac = function (e, t) {
224
+ if (!t)
225
+ var t = [];
226
+ for (var a = 0; e.children && a < e.children.length; a++)
227
+ t.push(e.children[a]), DayPilot.ac(e.children[a], t);
228
+ return t;
229
+ }, DayPilot.rfa = function (e, t) { var a = DayPilot.indexOf(e, t); a !== -1 && e.splice(a, 1); }, DayPilot.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 }; }, DayPilot.Stats = {}, DayPilot.Stats.eventObjects = 0, DayPilot.Stats.dateObjects = 0, DayPilot.Stats.cacheHitsCtor = 0, DayPilot.Stats.cacheHitsParsing = 0, DayPilot.Stats.cacheHitsTicks = 0, DayPilot.re = function (e, t, a) { a && t && e && e.addEventListener(t, a, !1); }, DayPilot.rePassive = function (e, t, a) { a && t && e && e.addEventListener(t, a, { "passive": !0 }); }, DayPilot.reNonPassive = function (e, t, a) { a && t && e && e.addEventListener(t, a, { "passive": !1 }); }, DayPilot.pu = function (e) {
221
230
  var t, a, r, o = e.attributes;
222
231
  if (o)
223
232
  for (a = o.length, t = 0; t < a; t += 1)
@@ -247,8 +256,8 @@ if ("undefined" == typeof DayPilot)
247
256
  var t = DayPilot.createXmlHttp();
248
257
  if (!t)
249
258
  throw new DayPilot.Exception("Unable to create XMLHttpRequest object");
250
- var a = "object" == typeof e.data, r = e.data, o = e.method || (e.data ? "POST" : "GET"), n = e.success || function () { }, i = e.error || function () { }, d = e.url, l = e.contentType || (a ? "application/json" : "text/plain"), s = e.headers || {};
251
- t.open(o, d, !0), t.setRequestHeader("Content-type", l), DayPilot.Util.ownPropsAsArray(s).forEach(function (e) { t.setRequestHeader(e.key, e.val); }), t.onreadystatechange = function () {
259
+ var a = "object" == typeof e.data, r = e.data, o = e.method || (e.data ? "POST" : "GET"), n = e.success || function () { }, i = e.error || function () { }, l = e.url, d = e.contentType || (a ? "application/json" : "text/plain"), s = e.headers || {};
260
+ t.open(o, l, !0), t.setRequestHeader("Content-type", d), DayPilot.Util.ownPropsAsArray(s).forEach(function (e) { t.setRequestHeader(e.key, e.val); }), t.onreadystatechange = function () {
252
261
  if (4 === t.readyState)
253
262
  if (200 === t.status || 201 === t.status || 204 === t.status || 304 === t.status) {
254
263
  var e = {};
@@ -294,7 +303,181 @@ if ("undefined" == typeof DayPilot)
294
303
  r.key = a, r.val = e[a], t.push(r);
295
304
  }
296
305
  return t;
297
- }, DayPilot.Util.replaceCharAt = function (e, t, a) { return e.substr(0, t) + a + e.substr(t + a.length); }, DayPilot.Util.isNullOrUndefined = function (e) { return null === e || "undefined" == typeof e; }, DayPilot.Util.escapeHtml = function (e) { var t = document.createElement("div"); return t.innerText = e, t.innerHTML; }, DayPilot.Util.escapeTextHtml = function (e, t) { return DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : DayPilot.Util.escapeHtml(e) : t; }, DayPilot.Exception = function (e) { return new Error(e); }, DayPilot.Locale = function (e, t) {
306
+ }, DayPilot.Util.replaceCharAt = function (e, t, a) { return e.substr(0, t) + a + e.substr(t + a.length); }, DayPilot.Util.isNullOrUndefined = function (e) { return null === e || "undefined" == typeof e; }, DayPilot.Util.escapeHtml = function (e) { var t = document.createElement("div"); return t.innerText = e, t.innerHTML; }, DayPilot.Util.escapeTextHtml = function (e, t) { return DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : DayPilot.Util.escapeHtml(e) : t; }, DayPilot.Areas = {}, DayPilot.Areas.attach = function (e, t, a) {
307
+ var a = a || {}, o = a.areas, n = a.allowed || function () { return !0; }, i = a.offsetX || 0;
308
+ o = r(t, o), o && DayPilot.isArray(o) && 0 !== o.length && (DayPilot.re(e, "mousemove", function (r) { e.active || e.areasDisabled || !n() || DayPilot.Areas.showAreas(e, t, r, o, { "offsetX": i, "eventDiv": a.eventDiv }); }), DayPilot.re(e, "mouseleave", function (t) { DayPilot.Areas.hideAreas(e, t); }), o.forEach(function (r) {
309
+ if (DayPilot.Areas.isVisible(r)) {
310
+ var o = DayPilot.Areas.createArea(e, t, r, { "offsetX": i, "eventDiv": a.eventDiv });
311
+ e.appendChild(o);
312
+ }
313
+ }));
314
+ }, DayPilot.Areas.disable = function (e) { e.areasDisabled = !0, Array.from(e.childNodes).filter(function (e) { return e.isActiveArea && !e.area.start; }).forEach(function (e) { e.c = e.style.display, e.style.display = "none"; }); }, DayPilot.Areas.enable = function (e) { e.areasDisabled = !1, Array.from(e.childNodes).filter(function (e) { return e.isActiveArea && !e.area.start; }).forEach(function (e) { e.c ? e.style.display = e.c : e.style.display = ""; }); }, DayPilot.Areas.remove = function (e) { var t = Array.from(e.childNodes).filter(function (e) { return e.isActiveArea; }); DayPilot.de(t); }, DayPilot.Areas.isVisible = function (e) { var t = e.visibility || e.v || "Visible"; return "Visible" === t || "TouchVisible" === t && !DayPilot.browser.hover; }, DayPilot.Areas.copy = function (e) { return DayPilot.isArray(e) ? e.map(function (e) { return DayPilot.Util.copyProps(e, {}); }) : []; };
315
+ var r = function (e, t) { return DayPilot.isArray(t) || (t = e.areas, t || (e.cache ? t = e.cache.areas : e.data && (t = e.data.areas))), t; };
316
+ DayPilot.Areas.showAreas = function (e, t, a, r, o) {
317
+ if (!DayPilot.Global.resizing && !DayPilot.Global.moving && !DayPilot.Global.selecting && !e.active && DayPilot.browser.hover) {
318
+ if (DayPilot.Areas.all && DayPilot.Areas.all.length > 0)
319
+ for (var n = 0; n < DayPilot.Areas.all.length; n++) {
320
+ var i = DayPilot.Areas.all[n];
321
+ i !== e && DayPilot.Areas.hideAreas(i, a);
322
+ }
323
+ if (e.active = {}, DayPilot.isArray(r) || (r = t.areas, r || (t.cache ? r = t.cache.areas : t.data && (r = t.data.areas))), r && 0 !== r.length && !(e.areas && e.areas.length > 0)) {
324
+ e.areas = [];
325
+ for (var n = 0; n < r.length; n++) {
326
+ var l = r[n];
327
+ if (!DayPilot.Areas.isVisible(l)) {
328
+ var d = DayPilot.Areas.createArea(e, t, l, o);
329
+ e.areas.push(d), e.appendChild(d), DayPilot.Areas.all.push(e);
330
+ }
331
+ }
332
+ e.active.children = DayPilot.ac(e);
333
+ }
334
+ }
335
+ }, DayPilot.Areas.createArea = function (e, t, a, r) {
336
+ function o(e, t, a) { var r = {}; return r.area = e, r.source = t, r.originalEvent = a, r.preventDefault = function () { r.preventDefault.value = !0; }, "function" == typeof e.onClick && e.onClick(r), r; }
337
+ function n(e, t, a) { DayPilot.Bubble && DayPilot.Bubble.touchPosition(a), e.calendar.bubble && e.calendar.bubble.showEvent(e, !0); }
338
+ function i(e, t, a, r) {
339
+ DayPilot.Menu && DayPilot.Menu.touchPosition(r);
340
+ var o = a.contextMenu || a.menu;
341
+ if (o instanceof DayPilot.Menu || (t.isEvent && t.client.contextMenu() ? o = t.client.contextMenu() : t.isEvent && t.calendar.contextMenu && (o = t.calendar.contextMenu)), o && o.show) {
342
+ var n = { "type": "area", "div": e, "e": t, "area": a, "a": s };
343
+ o.show(t, { "initiator": n });
344
+ }
345
+ }
346
+ var r = r || {}, l = r.offsetX || 0, d = r.eventDiv || e, s = document.createElement("div");
347
+ s.isActiveArea = !0, s.area = a, s.setAttribute("unselectable", "on");
348
+ var u = a.w || a.width, c = a.h || a.height, f = a.cssClass || a.css || a.className;
349
+ if ("undefined" != typeof a.style && s.setAttribute("style", a.style), s.style.position = "absolute", "undefined" != typeof u && (s.style.width = u + "px"), "undefined" != typeof c && (s.style.height = c + "px"), "undefined" != typeof a.right && (s.style.right = a.right + "px"), "undefined" != typeof a.top && (s.style.top = a.top + "px"), "undefined" != typeof a.left && (s.style.left = a.left + l + "px"), "undefined" != typeof a.bottom && (s.style.bottom = a.bottom + "px"), "undefined" != typeof a.html || "undefined" != typeof a.text)
350
+ s.innerHTML = DayPilot.Util.escapeTextHtml(a.text, a.html);
351
+ else if (a.icon) {
352
+ var y = document.createElement("i");
353
+ y.className = a.icon, s.appendChild(y);
354
+ }
355
+ else if (a.image) {
356
+ var m = document.createElement("img");
357
+ m.src = a.image, s.appendChild(m);
358
+ }
359
+ else if (a.symbol) {
360
+ var h = "http://www.w3.org/2000/svg", p = document.createElementNS(h, "svg");
361
+ p.setAttribute("width", "100%"), p.setAttribute("height", "100%");
362
+ var g = document.createElementNS(h, "use");
363
+ g.setAttribute("href", a.symbol), p.appendChild(g), s.appendChild(p);
364
+ }
365
+ if (f && (s.className = f), a.toolTip && s.setAttribute("title", a.toolTip), a.backColor && (s.style.background = a.backColor), a.background && (s.style.background = a.background), a.fontColor && (s.style.color = a.fontColor), a.padding && (s.style.padding = a.padding + "px", s.style.boxSizing = "border-box"), a.verticalAlignment)
366
+ switch (s.style.display = "flex", a.verticalAlignment) {
367
+ case "center":
368
+ s.style.alignItems = "center";
369
+ break;
370
+ case "top":
371
+ s.style.alignItems = "flex-start";
372
+ break;
373
+ case "bottom": s.style.alignItems = "flex-end";
374
+ }
375
+ if (a.horizontalAlignment)
376
+ switch (s.style.display = "flex", a.horizontalAlignment) {
377
+ case "right":
378
+ s.style.justifyContent = "flex-end";
379
+ break;
380
+ case "left":
381
+ s.style.justifyContent = "flex-start";
382
+ break;
383
+ case "center": s.style.justifyContent = "center";
384
+ }
385
+ if ("ResizeEnd" === a.action || "ResizeStart" === a.action || "Move" === a.action) {
386
+ if (t.calendar.isCalendar)
387
+ switch (a.action) {
388
+ case "ResizeEnd":
389
+ a.cursor = "s-resize", a.dpBorder = "bottom";
390
+ break;
391
+ case "ResizeStart":
392
+ a.cursor = "n-resize", a.dpBorder = "top";
393
+ break;
394
+ case "Move": a.cursor = "move";
395
+ }
396
+ if (t.calendar.isScheduler || t.calendar.isMonth)
397
+ switch (a.action) {
398
+ case "ResizeEnd":
399
+ a.cursor = "e-resize", a.dpBorder = "right";
400
+ break;
401
+ case "ResizeStart":
402
+ a.cursor = "w-resize", a.dpBorder = "left";
403
+ break;
404
+ case "Move": a.cursor = "move";
405
+ }
406
+ s.onmousemove = function (e, t, a) { return function (r) { t.calendar.internal && t.calendar.internal.dragInProgress && t.calendar.internal.dragInProgress() || (r.cancelBubble = !0, e.style.cursor = a.cursor, a.dpBorder && (e.dpBorder = a.dpBorder)); }; }(d, t, a), s.onmouseout = function (e, t, a) { return function (t) { e.style.cursor = ""; }; }(d, t, a);
407
+ }
408
+ if (("ResizeEnd" === a.action || "ResizeStart" === a.action) && t.isEvent && t.calendar.internal.touch) {
409
+ var b = function (e, t, a) { return function (r) { r.cancelBubble = !0; var o = t.calendar.internal.touch, n = r.touches ? r.touches[0] : r, i = { x: n.pageX, y: n.pageY }; t.calendar.coords = o.relativeCoords(r), o.preventEventTap = !0, t.calendar.isScheduler ? o.startResizing(e, "ResizeEnd" === a.action ? "right" : "left") : t.calendar.isCalendar && o.startResizing(e, "ResizeEnd" === a.action ? "bottom" : "top", i); }; }(d, t, a);
410
+ DayPilot.rePassive(s, DayPilot.touch.start, b);
411
+ }
412
+ if ("ContextMenu" === a.action && t.isEvent && t.calendar.internal.touch) {
413
+ var b = function (e, t, a) { return function (r) { r.cancelBubble = !0, r.preventDefault(), i(e, t, a, r), t.calendar.internal.touch.preventEventTap = !0; }; }(d, t, a), D = function (e, t, a) { return function (e) { e.cancelBubble = !0, e.preventDefault(); }; }(d, t, a);
414
+ DayPilot.reNonPassive(s, DayPilot.touch.start, b), DayPilot.reNonPassive(s, DayPilot.touch.end, D);
415
+ }
416
+ if ("Bubble" === a.action && t.isEvent && t.calendar.internal.touch) {
417
+ var b = function (e, t, a) {
418
+ return function (e) {
419
+ e.cancelBubble = !0, e.preventDefault();
420
+ var r = o(a, t, e);
421
+ if (!r.preventDefault.value) {
422
+ n(t, a, e);
423
+ t.calendar.internal.touch.preventEventTap = !0, "function" == typeof a.onClicked && a.onClicked(r);
424
+ }
425
+ };
426
+ }(d, t, a), D = function (e, t, a) { return function (e) { e.cancelBubble = !0, e.preventDefault(); }; }(d, t, a);
427
+ DayPilot.reNonPassive(s, DayPilot.touch.start, b), DayPilot.reNonPassive(s, DayPilot.touch.end, D);
428
+ }
429
+ if ("Move" === a.action && t.isEvent && t.calendar.internal.touch) {
430
+ var b = function (e, t, a) { return function (a) { a.cancelBubble = !0; var r = t.calendar.internal.touch, o = a.touches ? a.touches[0] : a, n = { x: o.pageX, y: o.pageY }; t.calendar.coords = r.relativeCoords(a), DayPilot.Global && DayPilot.Global.touch && (DayPilot.Global.touch.active = !0), r.preventEventTap = !0, r.startMoving(e, n); }; }(d, t, a);
431
+ DayPilot.rePassive(s, DayPilot.touch.start, b);
432
+ }
433
+ if ("Bubble" === a.action && t.isEvent ? (s.onmousemove = function (e, t, a) { return function (e) { a.bubble ? a.bubble.showEvent(t, !0) : t.calendar.bubble && t.calendar.bubble.showEvent(t, !0); }; }(e, t, a), s.onmouseout = function (e, t, a) { return function (e) { "undefined" != typeof DayPilot.Bubble && (a.bubble ? a.bubble.hideOnMouseOut() : t.calendar.bubble && t.calendar.bubble.hideOnMouseOut()); }; }(e, t, a)) : "Bubble" === a.action && t.isRow ? (s.onmousemove = function (e, t, a) { return function (e) { a.bubble ? a.bubble.showResource(t, !0) : t.calendar.resourceBubble && t.calendar.resourceBubble.showResource(t, !0); }; }(e, t, a), s.onmouseout = function (e, t, a) { return function (e) { "undefined" != typeof DayPilot.Bubble && (a.bubble ? a.bubble.hideOnMouseOut() : t.calendar.resourceBubble && t.calendar.resourceBubble.hideOnMouseOut()); }; }(e, t, a)) : "Bubble" === a.action && "undefined" != typeof DayPilot.Bubble && a.bubble instanceof DayPilot.Bubble && (s.onmousemove = function (e, t, a) { return function (e) { a.bubble.showHtml(null, null); }; }(e, t, a), s.onmouseout = function (e, t, a) { return function (e) { "undefined" != typeof DayPilot.Bubble && a.bubble && a.bubble.hideOnMouseOut(); }; }(e, t, a)), "HoverMenu" === a.action && (s.onmousemove = function (e, t, a) { return function (e) { var r = a.menu; r && r.show && (r.visible ? r.source && "undefined" != typeof r.source.id && r.source.id !== t.id && r.show(t) : r.show(t), r.cancelHideTimeout()); }; }(e, t, a), s.onmouseout = function (e, t, a) { return function (e) { var t = a.menu; t && t.hideOnMouseOver && t.delayedHide(); }; }(e, t, a)), "None" === a.action) {
434
+ var b = function (e, t, a) { return function (e) { var r = o(a, t, e); "function" == typeof a.onClicked && a.onClicked(r), e.preventDefault(), e.stopPropagation(); }; }(d, t, a);
435
+ DayPilot.reNonPassive(s, DayPilot.touch.start, b);
436
+ }
437
+ return s.onmousedown = function (e, t, a) {
438
+ return function (r) {
439
+ if ("function" == typeof a.onmousedown && a.onmousedown(r), "function" == typeof a.mousedown) {
440
+ var o = {};
441
+ o.area = a, o.div = e, o.originalEvent = r, o.source = t, a.mousedown(o);
442
+ }
443
+ if ("Move" === a.action && t.isRow) {
444
+ var n = t.$.row;
445
+ (0, t.calendar.internal.rowStartMoving)(n);
446
+ }
447
+ "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), "Move" === a.action && (DayPilot.Global.movingAreaData = a.data), "Move" === a.action && t.isEvent && t.calendar.internal && t.calendar.internal.startMoving && t.calendar.internal.startMoving(e, r);
448
+ "Move" !== a.action && "ResizeEnd" !== a.action && "ResizeStart" !== a.action && a.action && "Default" !== a.action && (r.preventDefault(), r.cancelBubble = !0);
449
+ };
450
+ }(e, t, a), s.onclick = function (e, t, a) {
451
+ return function (r) {
452
+ var n = o(a, t, r);
453
+ if (!n.preventDefault.value) {
454
+ switch (a.action) {
455
+ case "ContextMenu":
456
+ i(e, t, a, r), r.cancelBubble = !0;
457
+ break;
458
+ case "None": r.cancelBubble = !0;
459
+ }
460
+ "function" == typeof a.onClicked && a.onClicked(n);
461
+ }
462
+ };
463
+ }(e, t, a), "function" == typeof a.onMouseEnter && s.addEventListener("mouseenter", function (e, t, a) { return function (e) { var r = {}; r.area = a, r.source = t, r.originalEvent = e, a.onMouseEnter(r); }; }(e, t, a)), "function" == typeof a.onMouseLeave && s.addEventListener("mouseleave", function (e, t, a) { return function (e) { var r = {}; r.area = a, r.source = t, r.originalEvent = e, a.onMouseLeave(r); }; }(e, t, a)), s;
464
+ }, DayPilot.Areas.all = [], DayPilot.Areas.hideAreas = function (e, t) {
465
+ if (e && e && e.active) {
466
+ var a = e.active, r = e.areas;
467
+ if (a && a.children && t) {
468
+ var o = t.toElement || t.relatedTarget;
469
+ if (~DayPilot.indexOf(a.children, o))
470
+ return;
471
+ }
472
+ if (!r || 0 === r.length)
473
+ return void (e.active = null);
474
+ DayPilot.de(r), e.active = null, e.areas = [], DayPilot.rfa(DayPilot.Areas.all, e), a.children = null;
475
+ }
476
+ }, DayPilot.Areas.hideAll = function (e) {
477
+ if (DayPilot.Areas.all && 0 !== DayPilot.Areas.all.length)
478
+ for (var t = 0; t < DayPilot.Areas.all.length; t++)
479
+ DayPilot.Areas.hideAreas(DayPilot.Areas.all[t], e);
480
+ }, DayPilot.Exception = function (e) { return new Error(e); }, DayPilot.Locale = function (e, t) {
298
481
  if (this.id = e, this.dayNames = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], this.dayNamesShort = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], this.monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], this.datePattern = "M/d/yyyy", this.timePattern = "H:mm", this.dateTimePattern = "M/d/yyyy H:mm", this.timeFormat = "Clock12Hours", this.weekStarts = 0, t)
299
482
  for (var a in t)
300
483
  this[a] = t[a];
@@ -303,17 +486,15 @@ if ("undefined" == typeof DayPilot)
303
486
  return null;
304
487
  var t = e.toLowerCase();
305
488
  return t.length > 2 && (t = DayPilot.Util.replaceCharAt(t, 2, "-")), DayPilot.Locale.all[t];
306
- }, DayPilot.Locale.register = function (e) { DayPilot.Locale.all[e.id] = e; }, DayPilot.Locale.register(new DayPilot.Locale("ca-es", { "dayNames": ["diumenge", "dilluns", "dimarts", "dimecres", "dijous", "divendres", "dissabte"], "dayNamesShort": ["dg", "dl", "dt", "dc", "dj", "dv", "ds"], "monthNames": ["gener", "febrer", "març", "abril", "maig", "juny", "juliol", "agost", "setembre", "octubre", "novembre", "desembre", ""], "monthNamesShort": ["gen.", "febr.", "març", "abr.", "maig", "juny", "jul.", "ag.", "set.", "oct.", "nov.", "des.", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("cs-cz", { "dayNames": ["neděle", "pondělí", "úterý", "středa", "čtvrtek", "pátek", "sobota"], "dayNamesShort": ["ne", "po", "út", "st", "čt", "pá", "so"], "monthNames": ["leden", "únor", "březen", "duben", "květen", "červen", "červenec", "srpen", "září", "říjen", "listopad", "prosinec", ""], "monthNamesShort": ["I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX", "X", "XI", "XII", ""], "timePattern": "H:mm", "datePattern": "d. M. yyyy", "dateTimePattern": "d. M. yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("da-dk", { "dayNames": ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], "dayNamesShort": ["sø", "ma", "ti", "on", "to", "fr", "lø"], "monthNames": ["januar", "februar", "marts", "april", "maj", "juni", "juli", "august", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "dd-MM-yyyy", "dateTimePattern": "dd-MM-yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-at", {
307
- "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Jänner", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jän", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1
308
- })), DayPilot.Locale.register(new DayPilot.Locale("de-ch", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-de", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-lu", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-au", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "h:mm tt", "datePattern": "d/MM/yyyy", "dateTimePattern": "d/MM/yyyy h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-ca", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "h:mm tt", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("en-gb", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-us", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "h:mm tt", "datePattern": "M/d/yyyy", "dateTimePattern": "M/d/yyyy h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("es-es", { "dayNames": ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], "dayNamesShort": ["D", "L", "M", "X", "J", "V", "S"], "monthNames": ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre", ""], "monthNamesShort": ["ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sep.", "oct.", "nov.", "dic.", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("es-mx", { "dayNames": ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], "dayNamesShort": ["do.", "lu.", "ma.", "mi.", "ju.", "vi.", "sá."], "monthNames": ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre", ""], "monthNamesShort": ["ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sep.", "oct.", "nov.", "dic.", ""], "timePattern": "hh:mm tt", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy hh:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("eu-es", { "dayNames": ["igandea", "astelehena", "asteartea", "asteazkena", "osteguna", "ostirala", "larunbata"], "dayNamesShort": ["ig", "al", "as", "az", "og", "or", "lr"], "monthNames": ["urtarrila", "otsaila", "martxoa", "apirila", "maiatza", "ekaina", "uztaila", "abuztua", "iraila", "urria", "azaroa", "abendua", ""], "monthNamesShort": ["urt.", "ots.", "mar.", "api.", "mai.", "eka.", "uzt.", "abu.", "ira.", "urr.", "aza.", "abe.", ""], "timePattern": "H:mm", "datePattern": "yyyy/MM/dd", "dateTimePattern": "yyyy/MM/dd H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fi-fi", { "dayNames": ["sunnuntai", "maanantai", "tiistai", "keskiviikko", "torstai", "perjantai", "lauantai"], "dayNamesShort": ["su", "ma", "ti", "ke", "to", "pe", "la"], "monthNames": ["tammikuu", "helmikuu", "maaliskuu", "huhtikuu", "toukokuu", "kesäkuu", "heinäkuu", "elokuu", "syyskuu", "lokakuu", "marraskuu", "joulukuu", ""], "monthNamesShort": ["tammi", "helmi", "maalis", "huhti", "touko", "kesä", "heinä", "elo", "syys", "loka", "marras", "joulu", ""], "timePattern": "H:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-be", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd-MM-yy", "dateTimePattern": "dd-MM-yy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-ch", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-fr", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-lu", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("gl-es", { "dayNames": ["domingo", "luns", "martes", "mércores", "xoves", "venres", "sábado"], "dayNamesShort": ["do", "lu", "ma", "mé", "xo", "ve", "sá"], "monthNames": ["xaneiro", "febreiro", "marzo", "abril", "maio", "xuño", "xullo", "agosto", "setembro", "outubro", "novembro", "decembro", ""], "monthNamesShort": ["xan", "feb", "mar", "abr", "maio", "xuño", "xul", "ago", "set", "out", "nov", "dec", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("it-it", { "dayNames": ["domenica", "lunedì", "martedì", "mercoledì", "giovedì", "venerdì", "sabato"], "dayNamesShort": ["do", "lu", "ma", "me", "gi", "ve", "sa"], "monthNames": ["gennaio", "febbraio", "marzo", "aprile", "maggio", "giugno", "luglio", "agosto", "settembre", "ottobre", "novembre", "dicembre", ""], "monthNamesShort": ["gen", "feb", "mar", "apr", "mag", "giu", "lug", "ago", "set", "ott", "nov", "dic", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("it-ch", { "dayNames": ["domenica", "lunedì", "martedì", "mercoledì", "giovedì", "venerdì", "sabato"], "dayNamesShort": ["do", "lu", "ma", "me", "gi", "ve", "sa"], "monthNames": ["gennaio", "febbraio", "marzo", "aprile", "maggio", "giugno", "luglio", "agosto", "settembre", "ottobre", "novembre", "dicembre", ""], "monthNamesShort": ["gen", "feb", "mar", "apr", "mag", "giu", "lug", "ago", "set", "ott", "nov", "dic", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("ja-jp", { "dayNames": ["日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"], "dayNamesShort": ["日", "月", "火", "水", "木", "金", "土"], "monthNames": ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月", ""], "monthNamesShort": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", ""], "timePattern": "H:mm", "datePattern": "yyyy/MM/dd", "dateTimePattern": "yyyy/MM/dd H:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("nb-no", { "dayNames": ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], "dayNamesShort": ["sø", "ma", "ti", "on", "to", "fr", "lø"], "monthNames": ["januar", "februar", "mars", "april", "mai", "juni", "juli", "august", "september", "oktober", "november", "desember", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "mai", "jun", "jul", "aug", "sep", "okt", "nov", "des", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nl-nl", { "dayNames": ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"], "dayNamesShort": ["zo", "ma", "di", "wo", "do", "vr", "za"], "monthNames": ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "d-M-yyyy", "dateTimePattern": "d-M-yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nl-be", { "dayNames": ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"], "dayNamesShort": ["zo", "ma", "di", "wo", "do", "vr", "za"], "monthNames": ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "H:mm", "datePattern": "d/MM/yyyy", "dateTimePattern": "d/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nn-no", { "dayNames": ["søndag", "måndag", "tysdag", "onsdag", "torsdag", "fredag", "laurdag"], "dayNamesShort": ["sø", "må", "ty", "on", "to", "fr", "la"], "monthNames": ["januar", "februar", "mars", "april", "mai", "juni", "juli", "august", "september", "oktober", "november", "desember", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "mai", "jun", "jul", "aug", "sep", "okt", "nov", "des", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("pt-br", { "dayNames": ["domingo", "segunda-feira", "terça-feira", "quarta-feira", "quinta-feira", "sexta-feira", "sábado"], "dayNamesShort": ["D", "S", "T", "Q", "Q", "S", "S"], "monthNames": ["janeiro", "fevereiro", "março", "abril", "maio", "junho", "julho", "agosto", "setembro", "outubro", "novembro", "dezembro", ""], "monthNamesShort": ["jan", "fev", "mar", "abr", "mai", "jun", "jul", "ago", "set", "out", "nov", "dez", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("pl-pl", { "dayNames": ["niedziela", "poniedziałek", "wtorek", "środa", "czwartek", "piątek", "sobota"], "dayNamesShort": ["N", "Pn", "Wt", "Śr", "Cz", "Pt", "So"], "monthNames": ["styczeń", "luty", "marzec", "kwiecień", "maj", "czerwiec", "lipiec", "sierpień", "wrzesień", "październik", "listopad", "grudzień", ""], "monthNamesShort": ["sty", "lut", "mar", "kwi", "maj", "cze", "lip", "sie", "wrz", "paź", "lis", "gru", ""], "timePattern": "HH:mm", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("pt-pt", { "dayNames": ["domingo", "segunda-feira", "terça-feira", "quarta-feira", "quinta-feira", "sexta-feira", "sábado"], "dayNamesShort": ["D", "S", "T", "Q", "Q", "S", "S"], "monthNames": ["janeiro", "fevereiro", "março", "abril", "maio", "junho", "julho", "agosto", "setembro", "outubro", "novembro", "dezembro", ""], "monthNamesShort": ["jan", "fev", "mar", "abr", "mai", "jun", "jul", "ago", "set", "out", "nov", "dez", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("ro-ro", { "dayNames": ["duminică", "luni", "marți", "miercuri", "joi", "vineri", "sâmbătă"], "dayNamesShort": ["D", "L", "Ma", "Mi", "J", "V", "S"], "monthNames": ["ianuarie", "februarie", "martie", "aprilie", "mai", "iunie", "iulie", "august", "septembrie", "octombrie", "noiembrie", "decembrie", ""], "monthNamesShort": ["ian.", "feb.", "mar.", "apr.", "mai.", "iun.", "iul.", "aug.", "sep.", "oct.", "nov.", "dec.", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("ru-ru", { "dayNames": ["воскресенье", "понедельник", "вторник", "среда", "четверг", "пятница", "суббота"], "dayNamesShort": ["Вс", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], "monthNames": ["Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь", ""], "monthNamesShort": ["янв", "фев", "мар", "апр", "май", "июн", "июл", "авг", "сен", "окт", "ноя", "дек", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("sk-sk", { "dayNames": ["nedeľa", "pondelok", "utorok", "streda", "štvrtok", "piatok", "sobota"], "dayNamesShort": ["ne", "po", "ut", "st", "št", "pi", "so"], "monthNames": ["január", "február", "marec", "apríl", "máj", "jún", "júl", "august", "september", "október", "november", "december", ""], "monthNamesShort": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", ""], "timePattern": "H:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("sv-se", { "dayNames": ["söndag", "måndag", "tisdag", "onsdag", "torsdag", "fredag", "lördag"], "dayNamesShort": ["sö", "må", "ti", "on", "to", "fr", "lö"], "monthNames": ["januari", "februari", "mars", "april", "maj", "juni", "juli", "augusti", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("tr-tr", { "dayNames": ["Pazar", "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi"], "dayNamesShort": ["Pz", "Pt", "Sa", "Ça", "Pe", "Cu", "Ct"], "monthNames": ["Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık", ""], "monthNamesShort": ["Oca", "Şub", "Mar", "Nis", "May", "Haz", "Tem", "Ağu", "Eyl", "Eki", "Kas", "Ara", ""], "timePattern": "HH:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("uk-ua", { "dayNames": ["неділя", "понеділок", "вівторок", "середа", "четвер", "п'ятниця", "субота"], "dayNamesShort": ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], "monthNames": ["січень", "лютий", "березень", "квітень", "травень", "червень", "липень", "серпень", "вересень", "жовтень", "листопад", "грудень", ""], "monthNamesShort": ["Січ", "Лют", "Бер", "Кві", "Тра", "Чер", "Лип", "Сер", "Вер", "Жов", "Лис", "Гру", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("zh-cn", { "dayNames": ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], "dayNamesShort": ["日", "一", "二", "三", "四", "五", "六"], "monthNames": ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月", ""], "monthNamesShort": ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月", ""], "timePattern": "H:mm", "datePattern": "yyyy/M/d", "dateTimePattern": "yyyy/M/d H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.US = DayPilot.Locale.find("en-us"), DayPilot.Duration = function (e) {
489
+ }, DayPilot.Locale.register = function (e) { DayPilot.Locale.all[e.id] = e; }, DayPilot.Locale.register(new DayPilot.Locale("ca-es", { "dayNames": ["diumenge", "dilluns", "dimarts", "dimecres", "dijous", "divendres", "dissabte"], "dayNamesShort": ["dg", "dl", "dt", "dc", "dj", "dv", "ds"], "monthNames": ["gener", "febrer", "març", "abril", "maig", "juny", "juliol", "agost", "setembre", "octubre", "novembre", "desembre", ""], "monthNamesShort": ["gen.", "febr.", "març", "abr.", "maig", "juny", "jul.", "ag.", "set.", "oct.", "nov.", "des.", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("cs-cz", { "dayNames": ["neděle", "pondělí", "úterý", "středa", "čtvrtek", "pátek", "sobota"], "dayNamesShort": ["ne", "po", "út", "st", "čt", "pá", "so"], "monthNames": ["leden", "únor", "březen", "duben", "květen", "červen", "červenec", "srpen", "září", "říjen", "listopad", "prosinec", ""], "monthNamesShort": ["I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX", "X", "XI", "XII", ""], "timePattern": "H:mm", "datePattern": "d. M. yyyy", "dateTimePattern": "d. M. yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("da-dk", { "dayNames": ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], "dayNamesShort": ["sø", "ma", "ti", "on", "to", "fr", "lø"], "monthNames": ["januar", "februar", "marts", "april", "maj", "juni", "juli", "august", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "dd-MM-yyyy", "dateTimePattern": "dd-MM-yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-at", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Jänner", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jän", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-ch", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-de", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-lu", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-au", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "h:mm tt", "datePattern": "d/MM/yyyy", "dateTimePattern": "d/MM/yyyy h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-ca", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "h:mm tt", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("en-gb", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-us", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "h:mm tt", "datePattern": "M/d/yyyy", "dateTimePattern": "M/d/yyyy h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("es-es", { "dayNames": ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], "dayNamesShort": ["D", "L", "M", "X", "J", "V", "S"], "monthNames": ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre", ""], "monthNamesShort": ["ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sep.", "oct.", "nov.", "dic.", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("es-mx", { "dayNames": ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], "dayNamesShort": ["do.", "lu.", "ma.", "mi.", "ju.", "vi.", "sá."], "monthNames": ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre", ""], "monthNamesShort": ["ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sep.", "oct.", "nov.", "dic.", ""], "timePattern": "hh:mm tt", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy hh:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("eu-es", { "dayNames": ["igandea", "astelehena", "asteartea", "asteazkena", "osteguna", "ostirala", "larunbata"], "dayNamesShort": ["ig", "al", "as", "az", "og", "or", "lr"], "monthNames": ["urtarrila", "otsaila", "martxoa", "apirila", "maiatza", "ekaina", "uztaila", "abuztua", "iraila", "urria", "azaroa", "abendua", ""], "monthNamesShort": ["urt.", "ots.", "mar.", "api.", "mai.", "eka.", "uzt.", "abu.", "ira.", "urr.", "aza.", "abe.", ""], "timePattern": "H:mm", "datePattern": "yyyy/MM/dd", "dateTimePattern": "yyyy/MM/dd H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fi-fi", { "dayNames": ["sunnuntai", "maanantai", "tiistai", "keskiviikko", "torstai", "perjantai", "lauantai"], "dayNamesShort": ["su", "ma", "ti", "ke", "to", "pe", "la"], "monthNames": ["tammikuu", "helmikuu", "maaliskuu", "huhtikuu", "toukokuu", "kesäkuu", "heinäkuu", "elokuu", "syyskuu", "lokakuu", "marraskuu", "joulukuu", ""], "monthNamesShort": ["tammi", "helmi", "maalis", "huhti", "touko", "kesä", "heinä", "elo", "syys", "loka", "marras", "joulu", ""], "timePattern": "H:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-be", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd-MM-yy", "dateTimePattern": "dd-MM-yy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-ch", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-fr", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-lu", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("gl-es", { "dayNames": ["domingo", "luns", "martes", "mércores", "xoves", "venres", "sábado"], "dayNamesShort": ["do", "lu", "ma", "mé", "xo", "ve", "sá"], "monthNames": ["xaneiro", "febreiro", "marzo", "abril", "maio", "xuño", "xullo", "agosto", "setembro", "outubro", "novembro", "decembro", ""], "monthNamesShort": ["xan", "feb", "mar", "abr", "maio", "xuño", "xul", "ago", "set", "out", "nov", "dec", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("it-it", { "dayNames": ["domenica", "lunedì", "martedì", "mercoledì", "giovedì", "venerdì", "sabato"], "dayNamesShort": ["do", "lu", "ma", "me", "gi", "ve", "sa"], "monthNames": ["gennaio", "febbraio", "marzo", "aprile", "maggio", "giugno", "luglio", "agosto", "settembre", "ottobre", "novembre", "dicembre", ""], "monthNamesShort": ["gen", "feb", "mar", "apr", "mag", "giu", "lug", "ago", "set", "ott", "nov", "dic", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("it-ch", { "dayNames": ["domenica", "lunedì", "martedì", "mercoledì", "giovedì", "venerdì", "sabato"], "dayNamesShort": ["do", "lu", "ma", "me", "gi", "ve", "sa"], "monthNames": ["gennaio", "febbraio", "marzo", "aprile", "maggio", "giugno", "luglio", "agosto", "settembre", "ottobre", "novembre", "dicembre", ""], "monthNamesShort": ["gen", "feb", "mar", "apr", "mag", "giu", "lug", "ago", "set", "ott", "nov", "dic", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("ja-jp", { "dayNames": ["日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"], "dayNamesShort": ["日", "月", "火", "水", "木", "金", "土"], "monthNames": ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月", ""], "monthNamesShort": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", ""], "timePattern": "H:mm", "datePattern": "yyyy/MM/dd", "dateTimePattern": "yyyy/MM/dd H:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("nb-no", { "dayNames": ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], "dayNamesShort": ["sø", "ma", "ti", "on", "to", "fr", "lø"], "monthNames": ["januar", "februar", "mars", "april", "mai", "juni", "juli", "august", "september", "oktober", "november", "desember", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "mai", "jun", "jul", "aug", "sep", "okt", "nov", "des", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nl-nl", { "dayNames": ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"], "dayNamesShort": ["zo", "ma", "di", "wo", "do", "vr", "za"], "monthNames": ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "d-M-yyyy", "dateTimePattern": "d-M-yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nl-be", { "dayNames": ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"], "dayNamesShort": ["zo", "ma", "di", "wo", "do", "vr", "za"], "monthNames": ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "H:mm", "datePattern": "d/MM/yyyy", "dateTimePattern": "d/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nn-no", { "dayNames": ["søndag", "måndag", "tysdag", "onsdag", "torsdag", "fredag", "laurdag"], "dayNamesShort": ["sø", "må", "ty", "on", "to", "fr", "la"], "monthNames": ["januar", "februar", "mars", "april", "mai", "juni", "juli", "august", "september", "oktober", "november", "desember", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "mai", "jun", "jul", "aug", "sep", "okt", "nov", "des", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("pt-br", { "dayNames": ["domingo", "segunda-feira", "terça-feira", "quarta-feira", "quinta-feira", "sexta-feira", "sábado"], "dayNamesShort": ["D", "S", "T", "Q", "Q", "S", "S"], "monthNames": ["janeiro", "fevereiro", "março", "abril", "maio", "junho", "julho", "agosto", "setembro", "outubro", "novembro", "dezembro", ""], "monthNamesShort": ["jan", "fev", "mar", "abr", "mai", "jun", "jul", "ago", "set", "out", "nov", "dez", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("pl-pl", { "dayNames": ["niedziela", "poniedziałek", "wtorek", "środa", "czwartek", "piątek", "sobota"], "dayNamesShort": ["N", "Pn", "Wt", "Śr", "Cz", "Pt", "So"], "monthNames": ["styczeń", "luty", "marzec", "kwiecień", "maj", "czerwiec", "lipiec", "sierpień", "wrzesień", "październik", "listopad", "grudzień", ""], "monthNamesShort": ["sty", "lut", "mar", "kwi", "maj", "cze", "lip", "sie", "wrz", "paź", "lis", "gru", ""], "timePattern": "HH:mm", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("pt-pt", { "dayNames": ["domingo", "segunda-feira", "terça-feira", "quarta-feira", "quinta-feira", "sexta-feira", "sábado"], "dayNamesShort": ["D", "S", "T", "Q", "Q", "S", "S"], "monthNames": ["janeiro", "fevereiro", "março", "abril", "maio", "junho", "julho", "agosto", "setembro", "outubro", "novembro", "dezembro", ""], "monthNamesShort": ["jan", "fev", "mar", "abr", "mai", "jun", "jul", "ago", "set", "out", "nov", "dez", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("ro-ro", { "dayNames": ["duminică", "luni", "marți", "miercuri", "joi", "vineri", "sâmbătă"], "dayNamesShort": ["D", "L", "Ma", "Mi", "J", "V", "S"], "monthNames": ["ianuarie", "februarie", "martie", "aprilie", "mai", "iunie", "iulie", "august", "septembrie", "octombrie", "noiembrie", "decembrie", ""], "monthNamesShort": ["ian.", "feb.", "mar.", "apr.", "mai.", "iun.", "iul.", "aug.", "sep.", "oct.", "nov.", "dec.", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("ru-ru", { "dayNames": ["воскресенье", "понедельник", "вторник", "среда", "четверг", "пятница", "суббота"], "dayNamesShort": ["Вс", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], "monthNames": ["Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь", ""], "monthNamesShort": ["янв", "фев", "мар", "апр", "май", "июн", "июл", "авг", "сен", "окт", "ноя", "дек", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("sk-sk", { "dayNames": ["nedeľa", "pondelok", "utorok", "streda", "štvrtok", "piatok", "sobota"], "dayNamesShort": ["ne", "po", "ut", "st", "št", "pi", "so"], "monthNames": ["január", "február", "marec", "apríl", "máj", "jún", "júl", "august", "september", "október", "november", "december", ""], "monthNamesShort": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", ""], "timePattern": "H:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("sv-se", { "dayNames": ["söndag", "måndag", "tisdag", "onsdag", "torsdag", "fredag", "lördag"], "dayNamesShort": ["sö", "må", "ti", "on", "to", "fr", "lö"], "monthNames": ["januari", "februari", "mars", "april", "maj", "juni", "juli", "augusti", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("tr-tr", { "dayNames": ["Pazar", "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi"], "dayNamesShort": ["Pz", "Pt", "Sa", "Ça", "Pe", "Cu", "Ct"], "monthNames": ["Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık", ""], "monthNamesShort": ["Oca", "Şub", "Mar", "Nis", "May", "Haz", "Tem", "Ağu", "Eyl", "Eki", "Kas", "Ara", ""], "timePattern": "HH:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("uk-ua", { "dayNames": ["неділя", "понеділок", "вівторок", "середа", "четвер", "п'ятниця", "субота"], "dayNamesShort": ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], "monthNames": ["січень", "лютий", "березень", "квітень", "травень", "червень", "липень", "серпень", "вересень", "жовтень", "листопад", "грудень", ""], "monthNamesShort": ["Січ", "Лют", "Бер", "Кві", "Тра", "Чер", "Лип", "Сер", "Вер", "Жов", "Лис", "Гру", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("zh-cn", { "dayNames": ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], "dayNamesShort": ["日", "一", "二", "三", "四", "五", "六"], "monthNames": ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月", ""], "monthNamesShort": ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月", ""], "timePattern": "H:mm", "datePattern": "yyyy/M/d", "dateTimePattern": "yyyy/M/d H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.US = DayPilot.Locale.find("en-us"), DayPilot.Duration = function (e) {
309
490
  var t = this, a = 864e5, r = 36e5, o = 6e4, n = 1e3;
310
491
  if (2 === arguments.length) {
311
- var i = arguments[0], d = arguments[1];
492
+ var i = arguments[0], l = arguments[1];
312
493
  if (!(i instanceof DayPilot.Date) && "string" != typeof i)
313
494
  throw "DayPilot.Duration(): Invalid start argument, DayPilot.Date expected";
314
- if (!(d instanceof DayPilot.Date) && "string" != typeof d)
495
+ if (!(l instanceof DayPilot.Date) && "string" != typeof l)
315
496
  throw "DayPilot.Duration(): Invalid end argument, DayPilot.Date expected";
316
- "string" == typeof i && (i = new DayPilot.Date(i)), "string" == typeof d && (d = new DayPilot.Date(d)), e = d.getTime() - i.getTime();
497
+ "string" == typeof i && (i = new DayPilot.Date(i)), "string" == typeof l && (l = new DayPilot.Date(l)), e = l.getTime() - i.getTime();
317
498
  }
318
499
  return this.ticks = e, DayPilot.Date.Cache.DurationCtor["" + e] ? DayPilot.Date.Cache.DurationCtor["" + e] : (DayPilot.Date.Cache.DurationCtor["" + e] = this, this.toString = function (e) {
319
500
  if (!e)
@@ -351,7 +532,8 @@ if ("undefined" == typeof DayPilot)
351
532
  }
352
533
  var i = e(r);
353
534
  return o[i] ? o[i] : (o[i] = this, o[r] = this, n && i !== t && DayPilot.DateUtil.hasTzSpec(t) && (o[t] = this), Object.defineProperty && !DayPilot.browser.ielt9 ? (Object.defineProperty(this, "ticks", { get: function () { return r; } }), Object.defineProperty(this, "value", { "value": i, "writable": !1, "enumerable": !0 })) : (this.ticks = r, this.value = i), DayPilot.Date.Config.legacyShowD && (this.d = new Date(r)), void (DayPilot.Stats.dateObjects += 1));
354
- }, DayPilot.Date.Config = {}, DayPilot.Date.Config.legacyShowD = !1, DayPilot.Date.Cache = {}, DayPilot.Date.Cache.Parsing = {}, DayPilot.Date.Cache.Ctor = {}, DayPilot.Date.Cache.Ticks = {}, DayPilot.Date.Cache.DurationCtor = {}, DayPilot.Date.Cache.clear = function () { DayPilot.Date.Cache.Parsing = {}, DayPilot.Date.Cache.Ctor = {}, DayPilot.Date.Cache.Ticks = {}, DayPilot.Date.Cache.DurationCtor = {}; }, DayPilot.Date.prototype.addDays = function (e) { return e ? new DayPilot.Date(this.ticks + 24 * e * 60 * 60 * 1e3) : this; }, DayPilot.Date.prototype.addHours = function (e) { return e ? this.addTime(60 * e * 60 * 1e3) : this; }, DayPilot.Date.prototype.addMilliseconds = function (e) { return e ? this.addTime(e) : this; }, DayPilot.Date.prototype.addMinutes = function (e) { return e ? this.addTime(60 * e * 1e3) : this; }, DayPilot.Date.prototype.addMonths = function (e) {
535
+ }, DayPilot.Date.Config = {},
536
+ DayPilot.Date.Config.legacyShowD = !1, DayPilot.Date.Cache = {}, DayPilot.Date.Cache.Parsing = {}, DayPilot.Date.Cache.Ctor = {}, DayPilot.Date.Cache.Ticks = {}, DayPilot.Date.Cache.DurationCtor = {}, DayPilot.Date.Cache.clear = function () { DayPilot.Date.Cache.Parsing = {}, DayPilot.Date.Cache.Ctor = {}, DayPilot.Date.Cache.Ticks = {}, DayPilot.Date.Cache.DurationCtor = {}; }, DayPilot.Date.prototype.addDays = function (e) { return e ? new DayPilot.Date(this.ticks + 24 * e * 60 * 60 * 1e3) : this; }, DayPilot.Date.prototype.addHours = function (e) { return e ? this.addTime(60 * e * 60 * 1e3) : this; }, DayPilot.Date.prototype.addMilliseconds = function (e) { return e ? this.addTime(e) : this; }, DayPilot.Date.prototype.addMinutes = function (e) { return e ? this.addTime(60 * e * 1e3) : this; }, DayPilot.Date.prototype.addMonths = function (e) {
355
537
  if (!e)
356
538
  return this;
357
539
  var t = new Date(this.ticks), a = t.getUTCFullYear(), r = t.getUTCMonth() + 1;
@@ -388,7 +570,7 @@ if ("undefined" == typeof DayPilot)
388
570
  for (var r = t.dayOfWeek(); r !== e;)
389
571
  t = t.addDays(-1), r = t.dayOfWeek();
390
572
  return new DayPilot.Date(t);
391
- }, DayPilot.Date.prototype.getDay = function () { return new Date(this.ticks).getUTCDate(); }, DayPilot.Date.prototype.getDatePart = function () { var e = new Date(this.ticks); return e.setUTCHours(0), e.setUTCMinutes(0), e.setUTCSeconds(0), e.setUTCMilliseconds(0), new DayPilot.Date(e); }, DayPilot.Date.prototype.getYear = function () { return new Date(this.ticks).getUTCFullYear(); }, DayPilot.Date.prototype.getHours = function () { return new Date(this.ticks).getUTCHours(); }, DayPilot.Date.prototype.getMilliseconds = function () { return new Date(this.ticks).getUTCMilliseconds(); }, DayPilot.Date.prototype.getMinutes = function () { return new Date(this.ticks).getUTCMinutes(); }, DayPilot.Date.prototype.getMonth = function () { return new Date(this.ticks).getUTCMonth(); }, DayPilot.Date.prototype.getSeconds = function () { return new Date(this.ticks).getUTCSeconds(); }, DayPilot.Date.prototype.getTotalTicks = function () { return this.getTime(); }, DayPilot.Date.prototype.getTime = function () { return this.ticks; }, DayPilot.Date.prototype.getTimePart = function () { var e = this.getDatePart(); return DayPilot.DateUtil.diff(this, e); }, DayPilot.Date.prototype.lastDayOfMonth = function () { var e = new Date(this.firstDayOfMonth().getTime()), t = this.daysInMonth(); return e.setUTCDate(t), new DayPilot.Date(e); }, DayPilot.Date.prototype.weekNumber = function () { var e = this.firstDayOfYear(), t = (this.getTime() - e.getTime()) / 864e5; return Math.ceil((t + e.dayOfWeek() + 1) / 7); }, DayPilot.Date.prototype.weekNumberISO = function () { var e = !1, t = this.dayOfYear(), a = this.firstDayOfYear().dayOfWeek(), r = this.firstDayOfYear().addYears(1).addDays(-1).dayOfWeek(); 0 === a && (a = 7), 0 === r && (r = 7); var o = 8 - a; 4 !== a && 4 !== r || (e = !0); var n = Math.ceil((t - o) / 7), i = n; return o >= 4 && (i += 1), i > 52 && !e && (i = 1), 0 === i && (i = this.firstDayOfYear().addDays(-1).weekNumberISO()), i; }, DayPilot.Date.prototype.toDateLocal = function () { var e = new Date(this.ticks), t = new Date; return t.setFullYear(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate()), t.setHours(e.getUTCHours()), t.setMinutes(e.getUTCMinutes()), t.setSeconds(e.getUTCSeconds()), t.setMilliseconds(e.getUTCMilliseconds()), t; }, DayPilot.Date.prototype.toDate = function () { return new Date(this.ticks); }, DayPilot.Date.prototype.toJSON = function () { return this.value; }, DayPilot.Date.prototype.toString = function (e, t) { return e ? new r(e, t).print(this) : this.toStringSortable(); }, DayPilot.Date.prototype.toStringSortable = function () { return e(this.ticks); }, DayPilot.Date.parse = function (e, t, a) { return new r(t, a).parse(e); };
573
+ }, DayPilot.Date.prototype.getDay = function () { return new Date(this.ticks).getUTCDate(); }, DayPilot.Date.prototype.getDatePart = function () { var e = new Date(this.ticks); return e.setUTCHours(0), e.setUTCMinutes(0), e.setUTCSeconds(0), e.setUTCMilliseconds(0), new DayPilot.Date(e); }, DayPilot.Date.prototype.getYear = function () { return new Date(this.ticks).getUTCFullYear(); }, DayPilot.Date.prototype.getHours = function () { return new Date(this.ticks).getUTCHours(); }, DayPilot.Date.prototype.getMilliseconds = function () { return new Date(this.ticks).getUTCMilliseconds(); }, DayPilot.Date.prototype.getMinutes = function () { return new Date(this.ticks).getUTCMinutes(); }, DayPilot.Date.prototype.getMonth = function () { return new Date(this.ticks).getUTCMonth(); }, DayPilot.Date.prototype.getSeconds = function () { return new Date(this.ticks).getUTCSeconds(); }, DayPilot.Date.prototype.getTotalTicks = function () { return this.getTime(); }, DayPilot.Date.prototype.getTime = function () { return this.ticks; }, DayPilot.Date.prototype.getTimePart = function () { var e = this.getDatePart(); return DayPilot.DateUtil.diff(this, e); }, DayPilot.Date.prototype.lastDayOfMonth = function () { var e = new Date(this.firstDayOfMonth().getTime()), t = this.daysInMonth(); return e.setUTCDate(t), new DayPilot.Date(e); }, DayPilot.Date.prototype.weekNumber = function () { var e = this.firstDayOfYear(), t = (this.getTime() - e.getTime()) / 864e5; return Math.ceil((t + e.dayOfWeek() + 1) / 7); }, DayPilot.Date.prototype.weekNumberISO = function () { var e = !1, t = this.dayOfYear(), a = this.firstDayOfYear().dayOfWeek(), r = this.firstDayOfYear().addYears(1).addDays(-1).dayOfWeek(); 0 === a && (a = 7), 0 === r && (r = 7); var o = 8 - a; 4 !== a && 4 !== r || (e = !0); var n = Math.ceil((t - o) / 7), i = n; return o >= 4 && (i += 1), i > 52 && !e && (i = 1), 0 === i && (i = this.firstDayOfYear().addDays(-1).weekNumberISO()), i; }, DayPilot.Date.prototype.toDateLocal = function () { var e = new Date(this.ticks), t = new Date; return t.setFullYear(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate()), t.setHours(e.getUTCHours()), t.setMinutes(e.getUTCMinutes()), t.setSeconds(e.getUTCSeconds()), t.setMilliseconds(e.getUTCMilliseconds()), t; }, DayPilot.Date.prototype.toDate = function () { return new Date(this.ticks); }, DayPilot.Date.prototype.toJSON = function () { return this.value; }, DayPilot.Date.prototype.toString = function (e, t) { return e ? new o(e, t).print(this) : this.toStringSortable(); }, DayPilot.Date.prototype.toStringSortable = function () { return e(this.ticks); }, DayPilot.Date.parse = function (e, t, a) { return new o(t, a).parse(e); };
392
574
  DayPilot.Date.today = function () { return new DayPilot.Date(DayPilot.DateUtil.localToday(), !0); }, DayPilot.Date.now = function () { return new DayPilot.Date; }, DayPilot.Date.fromYearMonthDay = function (e, t, a) { t = t || 1, a = a || 1; var r = new Date(0); return r.setUTCFullYear(e), r.setUTCMonth(t - 1), r.setUTCDate(a), new DayPilot.Date(r); }, DayPilot.DateUtil = {}, DayPilot.DateUtil.fromStringSortable = function (e, t) {
393
575
  if (!e)
394
576
  throw "Can't create DayPilot.Date from an empty string";
@@ -397,21 +579,21 @@ if ("undefined" == typeof DayPilot)
397
579
  throw "Invalid string format (use '2010-01-01' or '2010-01-01T00:00:00'): " + e;
398
580
  if (DayPilot.Date.Cache.Parsing[e] && !t)
399
581
  return DayPilot.Stats.cacheHitsParsing += 1, DayPilot.Date.Cache.Parsing[e];
400
- var i = e.substring(0, 4), d = e.substring(5, 7), l = e.substring(8, 10), s = new Date(0);
401
- if (s.setUTCFullYear(i, d - 1, l), r)
582
+ var i = e.substring(0, 4), l = e.substring(5, 7), d = e.substring(8, 10), s = new Date(0);
583
+ if (s.setUTCFullYear(i, l - 1, d), r)
402
584
  return DayPilot.Date.Cache.Parsing[e] = s, s;
403
585
  var u = e.substring(11, 13), c = e.substring(14, 16), f = e.substring(17, 19);
404
586
  if (s.setUTCHours(u), s.setUTCMinutes(c), s.setUTCSeconds(f), o)
405
587
  return DayPilot.Date.Cache.Parsing[e] = s, s;
406
- var m = e[19], y = 0;
407
- if ("." === m) {
588
+ var y = e[19], m = 0;
589
+ if ("." === y) {
408
590
  var h = parseInt(e.substring(20, 23));
409
- s.setUTCMilliseconds(h), y = DayPilot.DateUtil.getTzOffsetMinutes(e.substring(23));
591
+ s.setUTCMilliseconds(h), m = DayPilot.DateUtil.getTzOffsetMinutes(e.substring(23));
410
592
  }
411
593
  else
412
- y = DayPilot.DateUtil.getTzOffsetMinutes(e.substring(19));
594
+ m = DayPilot.DateUtil.getTzOffsetMinutes(e.substring(19));
413
595
  var p = new DayPilot.Date(s);
414
- return t || (p = p.addMinutes(-y)), s = p.toDate(), DayPilot.Date.Cache.Parsing[e] = s, s;
596
+ return t || (p = p.addMinutes(-m)), s = p.toDate(), DayPilot.Date.Cache.Parsing[e] = s, s;
415
597
  }, DayPilot.DateUtil.getTzOffsetMinutes = function (e) {
416
598
  if (DayPilot.Util.isNullOrUndefined(e) || "" === e)
417
599
  return 0;
@@ -449,22 +631,20 @@ if ("undefined" == typeof DayPilot)
449
631
  }
450
632
  return r + ":" + a;
451
633
  }, DayPilot.DateUtil.max = function (e, t) { return e.getTime() > t.getTime() ? e : t; }, DayPilot.DateUtil.min = function (e, t) { return e.getTime() < t.getTime() ? e : t; };
452
- var r = function (e, a) {
634
+ var o = function (e, a) {
453
635
  "string" == typeof a && (a = DayPilot.Locale.find(a));
454
- var a = a || DayPilot.Locale.US, r = [{ "seq": "yyyy", "expr": "[0-9]{4,4}", "str": function (e) { return e.getYear(); } }, { "seq": "yy", "expr": "[0-9]{2,2}", "str": function (e) { return e.getYear() % 100; } }, { "seq": "mm", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getMinutes(); return t < 10 ? "0" + t : t; } }, { "seq": "m", "expr": "[0-9]{1,2}", "str": function (e) { return e.getMinutes(); } }, { "seq": "HH", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getHours(); return t < 10 ? "0" + t : t; } }, { "seq": "H", "expr": "[0-9]{1,2}", "str": function (e) { return e.getHours(); } }, { "seq": "hh", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getHours(), t = t % 12; 0 === t && (t = 12); var a = t; return a < 10 ? "0" + a : a; } }, { "seq": "h", "expr": "[0-9]{1,2}", "str": function (e) { var t = e.getHours(), t = t % 12; return 0 === t && (t = 12), t; } }, { "seq": "ss", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getSeconds(); return t < 10 ? "0" + t : t; } }, { "seq": "s", "expr": "[0-9]{1,2}", "str": function (e) { return e.getSeconds(); } }, { "seq": "MMMM", "expr": "[^\\s0-9]*", "str": function (e) { return a.monthNames[e.getMonth()]; }, "transform": function (e) { var r = DayPilot.indexOf(a.monthNames, e, t); return r < 0 ? null : r + 1; } }, { "seq": "MMM", "expr": "[^\\s0-9]*", "str": function (e) { return a.monthNamesShort[e.getMonth()]; }, "transform": function (e) { var r = DayPilot.indexOf(a.monthNamesShort, e, t); return r < 0 ? null : r + 1; } }, { "seq": "MM", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getMonth() + 1; return t < 10 ? "0" + t : t; } }, { "seq": "M", "expr": "[0-9]{1,2}", "str": function (e) { return e.getMonth() + 1; } }, { "seq": "dddd", "expr": "[^\\s0-9]*", "str": function (e) {
455
- return a.dayNames[e.getDayOfWeek()];
456
- } }, { "seq": "ddd", "expr": "[^\\s0-9]*", "str": function (e) { return a.dayNamesShort[e.getDayOfWeek()]; } }, { "seq": "dd", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getDay(); return t < 10 ? "0" + t : t; } }, { "seq": "%d", "expr": "[0-9]{1,2}", "str": function (e) { return e.getDay(); } }, { "seq": "d", "expr": "[0-9]{1,2}", "str": function (e) { return e.getDay(); } }, { "seq": "tt", "expr": "(AM|PM|am|pm)", "str": function (e) { return e.getHours() < 12 ? "AM" : "PM"; }, "transform": function (e) { return e.toUpperCase(); } }], o = function (e) { return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); };
636
+ var a = a || DayPilot.Locale.US, r = [{ "seq": "yyyy", "expr": "[0-9]{4,4}", "str": function (e) { return e.getYear(); } }, { "seq": "yy", "expr": "[0-9]{2,2}", "str": function (e) { return e.getYear() % 100; } }, { "seq": "mm", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getMinutes(); return t < 10 ? "0" + t : t; } }, { "seq": "m", "expr": "[0-9]{1,2}", "str": function (e) { return e.getMinutes(); } }, { "seq": "HH", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getHours(); return t < 10 ? "0" + t : t; } }, { "seq": "H", "expr": "[0-9]{1,2}", "str": function (e) { return e.getHours(); } }, { "seq": "hh", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getHours(), t = t % 12; 0 === t && (t = 12); var a = t; return a < 10 ? "0" + a : a; } }, { "seq": "h", "expr": "[0-9]{1,2}", "str": function (e) { var t = e.getHours(), t = t % 12; return 0 === t && (t = 12), t; } }, { "seq": "ss", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getSeconds(); return t < 10 ? "0" + t : t; } }, { "seq": "s", "expr": "[0-9]{1,2}", "str": function (e) { return e.getSeconds(); } }, { "seq": "MMMM", "expr": "[^\\s0-9]*", "str": function (e) { return a.monthNames[e.getMonth()]; }, "transform": function (e) { var r = DayPilot.indexOf(a.monthNames, e, t); return r < 0 ? null : r + 1; } }, { "seq": "MMM", "expr": "[^\\s0-9]*", "str": function (e) { return a.monthNamesShort[e.getMonth()]; }, "transform": function (e) { var r = DayPilot.indexOf(a.monthNamesShort, e, t); return r < 0 ? null : r + 1; } }, { "seq": "MM", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getMonth() + 1; return t < 10 ? "0" + t : t; } }, { "seq": "M", "expr": "[0-9]{1,2}", "str": function (e) { return e.getMonth() + 1; } }, { "seq": "dddd", "expr": "[^\\s0-9]*", "str": function (e) { return a.dayNames[e.getDayOfWeek()]; } }, { "seq": "ddd", "expr": "[^\\s0-9]*", "str": function (e) { return a.dayNamesShort[e.getDayOfWeek()]; } }, { "seq": "dd", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getDay(); return t < 10 ? "0" + t : t; } }, { "seq": "%d", "expr": "[0-9]{1,2}", "str": function (e) { return e.getDay(); } }, { "seq": "d", "expr": "[0-9]{1,2}", "str": function (e) { return e.getDay(); } }, { "seq": "tt", "expr": "(AM|PM|am|pm)", "str": function (e) { return e.getHours() < 12 ? "AM" : "PM"; }, "transform": function (e) { return e.toUpperCase(); } }], o = function (e) { return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); };
457
637
  this.init = function () { this.year = this.findSequence("yyyy"), this.month = this.findSequence("MMMM") || this.findSequence("MMM") || this.findSequence("MM") || this.findSequence("M"), this.day = this.findSequence("dd") || this.findSequence("d"), this.hours = this.findSequence("HH") || this.findSequence("H"), this.minutes = this.findSequence("mm") || this.findSequence("m"), this.seconds = this.findSequence("ss") || this.findSequence("s"), this.ampm = this.findSequence("tt"), this.hours12 = this.findSequence("hh") || this.findSequence("h"); }, this.findSequence = function (t) {
458
638
  function a(e) { return parseInt(e); }
459
639
  return e.indexOf(t) === -1 ? null : { "findValue": function (n) {
460
- for (var i = o(e), d = null, l = 0; l < r.length; l++) {
461
- var s = (r[l].length, t === r[l].seq), u = r[l].expr;
462
- s && (u = "(" + u + ")", d = r[l].transform), i = i.replace(r[l].seq, u);
640
+ for (var i = o(e), l = null, d = 0; d < r.length; d++) {
641
+ var s = (r[d].length, t === r[d].seq), u = r[d].expr;
642
+ s && (u = "(" + u + ")", l = r[d].transform), i = i.replace(r[d].seq, u);
463
643
  }
464
644
  i = "^" + i + "$";
465
645
  try {
466
646
  var c = new RegExp(i), f = c.exec(n);
467
- return f ? (d = d || a)(f[1]) : null;
647
+ return f ? (l = l || a)(f[1]) : null;
468
648
  }
469
649
  catch (e) {
470
650
  throw "unable to create regex from: " + i;
@@ -477,9 +657,9 @@ if ("undefined" == typeof DayPilot)
477
657
  return r[t];
478
658
  return null;
479
659
  }, o = e.length <= 0, n = 0, i = []; !o;) {
480
- var d = e.substring(n), l = /%?(.)\1*/.exec(d);
481
- if (l && l.length > 0) {
482
- var s = l[0], u = a(s);
660
+ var l = e.substring(n), d = /%?(.)\1*/.exec(l);
661
+ if (d && d.length > 0) {
662
+ var s = d[0], u = a(s);
483
663
  u ? i.push(u) : i.push(s), n += s.length, o = e.length <= n;
484
664
  }
485
665
  else
@@ -502,28 +682,28 @@ if ("undefined" == typeof DayPilot)
502
682
  var r = this.day.findValue(e), o = DayPilot.Date.fromYearMonthDay(t, a).daysInMonth();
503
683
  if (r < 1 || r > o)
504
684
  return null;
505
- var n = this.hours ? this.hours.findValue(e) : 0, i = this.minutes ? this.minutes.findValue(e) : 0, d = this.seconds ? this.seconds.findValue(e) : 0, l = this.ampm ? this.ampm.findValue(e) : null;
685
+ var n = this.hours ? this.hours.findValue(e) : 0, i = this.minutes ? this.minutes.findValue(e) : 0, l = this.seconds ? this.seconds.findValue(e) : 0, d = this.ampm ? this.ampm.findValue(e) : null;
506
686
  if (this.ampm && this.hours12) {
507
687
  var s = this.hours12.findValue(e);
508
688
  if (s < 1 || s > 12)
509
689
  return null;
510
- n = "PM" === l ? 12 === s ? 12 : s + 12 : 12 === s ? 0 : s;
690
+ n = "PM" === d ? 12 === s ? 12 : s + 12 : 12 === s ? 0 : s;
511
691
  }
512
692
  if (n < 0 || n > 23)
513
693
  return null;
514
694
  if (i < 0 || i > 59)
515
695
  return null;
516
- if (d < 0 || d > 59)
696
+ if (l < 0 || l > 59)
517
697
  return null;
518
698
  var u = new Date;
519
- return u.setUTCFullYear(t, a - 1, r), u.setUTCHours(n), u.setUTCMinutes(i), u.setUTCSeconds(d), u.setUTCMilliseconds(0), new DayPilot.Date(u);
699
+ return u.setUTCFullYear(t, a - 1, r), u.setUTCHours(n), u.setUTCMinutes(i), u.setUTCSeconds(l), u.setUTCMilliseconds(0), new DayPilot.Date(u);
520
700
  }, this.init();
521
701
  };
522
702
  DayPilot.ColorUtil = {}, DayPilot.ColorUtil.hexToRgb = function (e) {
523
703
  if (!/^#[0-9a-f]{6}$/i.test(e))
524
704
  throw new DayPilot.Exception("Invalid color, only full hex color string accepted, eg. '#ffaaff'.");
525
705
  return e = e.replace("#", ""), { r: parseInt(e.substring(0, 2), 16), g: parseInt(e.substring(2, 4), 16), b: parseInt(e.substring(4, 6), 16) };
526
- }, DayPilot.ColorUtil.rgbToHex = function (e) { return "#" + a(e.r) + a(e.g) + a(e.b); }, DayPilot.ColorUtil.adjustLuminance = function (e, t) { return { r: e.r + t, g: e.g + t, b: e.b + t }; }, DayPilot.ColorUtil.darker = function (e, t) { var a = DayPilot.ColorUtil.hexToRgb(e); t = t || 1; var r = 17, o = t * r, n = DayPilot.ColorUtil.adjustLuminance(a, -o); return DayPilot.ColorUtil.rgbToHex(n); }, DayPilot.Event = function (e, t, a) {
706
+ }, DayPilot.ColorUtil.rgbToHex = function (e) { return "#" + a(e.r) + a(e.g) + a(e.b); }, DayPilot.ColorUtil.adjustLuminance = function (e, t) { return { r: e.r + t, g: e.g + t, b: e.b + t }; }, DayPilot.ColorUtil.darker = function (e, t) { var a = DayPilot.ColorUtil.hexToRgb(e); t = t || 1; var r = 17, o = t * r, n = DayPilot.ColorUtil.adjustLuminance(a, -o); return DayPilot.ColorUtil.rgbToHex(n); }, DayPilot.ColorUtil.lighter = function (e, t) { return "number" != typeof t && (t = 1), DayPilot.ColorUtil.darker(e, -t); }, DayPilot.ColorUtil.pl = function (e) { var t = DayPilot.ColorUtil.hexToRgb(e), a = t.r / 255, r = t.g / 255, o = t.b / 255; return Math.sqrt(.299 * a * a + .587 * r * r + .114 * o * o); }, DayPilot.ColorUtil.contrasting = function (e, t, a) { var r = DayPilot.ColorUtil.pl(e); return t = t || "#ffffff", a = a || "#000000", r > .5 ? a : t; }, DayPilot.Event = function (e, t, a) {
527
707
  var r = this;
528
708
  this.calendar = t, this.data = e ? e : {}, this.part = a ? a : {}, "undefined" == typeof this.data.id && (this.data.id = this.data.value);
529
709
  var o = {}, n = ["id", "text", "start", "end", "resource"];
@@ -579,37 +759,37 @@ if ("undefined" == typeof DayPilot)
579
759
  }
580
760
  }(), DayPilot.JSON = {}, function () {
581
761
  function e(e) { return e < 10 ? "0" + e : e; }
582
- function t(e) { return i.lastIndex = 0, i.test(e) ? '"' + e.replace(i, function (e) { var t = d[e]; return "string" == typeof t ? t : "\\u" + ("0000" + e.charCodeAt(0).toString(16)).slice(-4); }) + '"' : '"' + e + '"'; }
762
+ function t(e) { return i.lastIndex = 0, i.test(e) ? '"' + e.replace(i, function (e) { var t = l[e]; return "string" == typeof t ? t : "\\u" + ("0000" + e.charCodeAt(0).toString(16)).slice(-4); }) + '"' : '"' + e + '"'; }
583
763
  function a(e, i) {
584
- var d, l, s, u, c, f = r, m = i[e];
585
- switch (m && "object" == typeof m && "function" == typeof m.toJSON2 ? m = m.toJSON2(e) : m && "object" == typeof m && "function" == typeof m.toJSON && !m.ignoreToJSON && (m = m.toJSON(e)), "function" == typeof n && (m = n.call(i, e, m)), typeof m) {
586
- case "string": return t(m);
587
- case "number": return isFinite(m) ? String(m) : "null";
764
+ var l, d, s, u, c, f = r, y = i[e];
765
+ switch (y && "object" == typeof y && "function" == typeof y.toJSON2 ? y = y.toJSON2(e) : y && "object" == typeof y && "function" == typeof y.toJSON && !y.ignoreToJSON && (y = y.toJSON(e)), "function" == typeof n && (y = n.call(i, e, y)), typeof y) {
766
+ case "string": return t(y);
767
+ case "number": return isFinite(y) ? String(y) : "null";
588
768
  case "boolean":
589
- case "null": return String(m);
769
+ case "null": return String(y);
590
770
  case "object":
591
- if (!m)
771
+ if (!y)
592
772
  return "null";
593
- if (r += o, c = [], "number" == typeof m.length && !m.propertyIsEnumerable("length")) {
594
- for (u = m.length, d = 0; d < u; d += 1)
595
- c[d] = a(d, m) || "null";
773
+ if (r += o, c = [], "number" == typeof y.length && !y.propertyIsEnumerable("length")) {
774
+ for (u = y.length, l = 0; l < u; l += 1)
775
+ c[l] = a(l, y) || "null";
596
776
  return s = 0 === c.length ? "[]" : r ? "[\n" + r + c.join(",\n" + r) + "\n" + f + "]" : "[" + c.join(",") + "]", r = f, s;
597
777
  }
598
778
  if (n && "object" == typeof n)
599
- for (u = n.length, d = 0; d < u; d += 1)
600
- l = n[d], "string" == typeof l && (s = a(l, m), s && c.push(t(l) + (r ? ": " : ":") + s));
779
+ for (u = n.length, l = 0; l < u; l += 1)
780
+ d = n[l], "string" == typeof d && (s = a(d, y), s && c.push(t(d) + (r ? ": " : ":") + s));
601
781
  else
602
- for (l in m)
603
- Object.hasOwnProperty.call(m, l) && (s = a(l, m), s && c.push(t(l) + (r ? ": " : ":") + s));
782
+ for (d in y)
783
+ Object.hasOwnProperty.call(y, d) && (s = a(d, y), s && c.push(t(d) + (r ? ": " : ":") + s));
604
784
  return s = 0 === c.length ? "{}" : r ? "{\n" + r + c.join(",\n" + r) + "\n" + f + "}" : "{" + c.join(",") + "}", r = f, s;
605
785
  }
606
786
  }
607
787
  "function" != typeof Date.prototype.toJSON2 && (Date.prototype.toJSON2 = function (t) { return this.getUTCFullYear() + "-" + e(this.getUTCMonth() + 1) + "-" + e(this.getUTCDate()) + "T" + e(this.getUTCHours()) + ":" + e(this.getUTCMinutes()) + ":" + e(this.getUTCSeconds()); }, String.prototype.toJSON = Number.prototype.toJSON = Boolean.prototype.toJSON = function (e) { return this.valueOf(); });
608
- var r, o, n, i = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, d = { "\b": "\\b", "\t": "\\t", "\n": "\\n", "\f": "\\f", "\r": "\\r", '"': '\\"', "\\": "\\\\" };
788
+ var r, o, n, i = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, l = { "\b": "\\b", "\t": "\\t", "\n": "\\n", "\f": "\\f", "\r": "\\r", '"': '\\"', "\\": "\\\\" };
609
789
  "function" != typeof DayPilot.JSON.stringify && (DayPilot.JSON.stringify = function (e, t, i) {
610
- var d;
790
+ var l;
611
791
  if (r = "", o = "", "number" == typeof i)
612
- for (d = 0; d < i; d += 1)
792
+ for (l = 0; l < i; l += 1)
613
793
  o += " ";
614
794
  else
615
795
  "string" == typeof i && (o = i);
@@ -659,17 +839,17 @@ if ("undefined" == typeof DayPilot)
659
839
  }, t.gMouseUp = function (i) {
660
840
  if (t.resizing) {
661
841
  if (!t.resizingShadow)
662
- return t.resizing.style.cursor = "default", document.body.style.cursor = "default", void (t.resizing = null);
842
+ return t.resizing.style.cursor = "default", document.body.style.cursor = "default", t.resizing = null, void (DayPilot.Global.resizing = null);
663
843
  var n = t.resizing.event, s = t.resizingShadow.clientHeight + 4, a = t.resizingShadow.offsetTop, l = t.resizing.dpBorder;
664
- t.deleteShadow(t.resizingShadow), t.resizingShadow = null, t.resizing.style.cursor = "default", n.calendar.nav.top.style.cursor = "auto", t.resizing.onclick = null, t.resizing = null, n.calendar.a(n, s, a, l);
844
+ t.deleteShadow(t.resizingShadow), t.resizingShadow = null, t.resizing.style.cursor = "default", n.calendar.nav.top.style.cursor = "auto", t.resizing.onclick = null, t.resizing = null, DayPilot.Global.resizing = null, n.calendar.a(n, s, a, l);
665
845
  }
666
846
  else if (t.moving) {
667
847
  if (!t.movingShadow)
668
- return t.moving = null, void (document.body.style.cursor = "default");
848
+ return t.moving = null, DayPilot.Global.moving = null, void (document.body.style.cursor = "default");
669
849
  var a = t.movingShadow.offsetTop, n = t.moving.event;
670
850
  t.deleteShadow(t.movingShadow), DayPilot.Util.removeClass(t.moving, n.calendar.b("_event_moving_source"));
671
851
  var o = t.movingShadow.column;
672
- t.moving = null, t.movingShadow = null, n.calendar.nav.top.style.cursor = "auto", n.calendar.c(n, o, a, i);
852
+ t.moving = null, DayPilot.Global.moving = null, t.movingShadow = null, n.calendar.nav.top.style.cursor = "auto", n.calendar.c(n, o, a, i);
673
853
  }
674
854
  else if (t.selecting && null !== t.topSelectedCell) {
675
855
  var r = t.selecting.calendar;
@@ -684,7 +864,7 @@ if ("undefined" == typeof DayPilot)
684
864
  if (this instanceof t.Calendar && !this.f && (n = !0, this.f = !0), !n)
685
865
  throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
686
866
  var s = this;
687
- this.uniqueID = null, this.v = "2022.3.432-lite", this.id = e, this.clientName = e, this.cache = {}, this.cache.pixels = {}, this.elements = {}, this.elements.events = [], this.elements.selection = [], this.nav = {}, this.afterRender = function () { }, this.fasterDispose = !0, this.angularAutoApply = !1, this.api = 2, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.cellHeight = 30, this.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.contextMenu = null, this.days = 1, this.durationBarVisible = !0, this.eventHeaderHeight = 14, this.eventHeaderVisible = !0, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.headerTextWrappingEnabled = !1, this.height = 300, this.heightSpec = "BusinessHours", this.hideUntilInit = !0, this.hourWidth = 60, this.initScrollPos = "Auto", this.loadingLabelText = "Loading...", this.loadingLabelVisible = !0, this.loadingLabelBackColor = "ff0000", this.loadingLabelFontColor = "#ffffff", this.loadingLabelFontFamily = "Tahoma, Arial, Helvetica, sans-serif", this.loadingLabelFontSize = "10pt", this.locale = "en-us", this.showToolTip = !0, this.startDate = (new DayPilot.Date).getDatePart(), this.cssClassPrefix = "calendar_default", this.theme = null, this.timeFormat = "Auto", this.viewType = "Days", this.visible = !0, this.xssProtection = "Enabled", this.headerClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.eventMoveHandling = "Update", this.eventDeleteHandling = "Disabled", this.timeRangeSelectedHandling = "Enabled", this.onBeforeEventRender = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onHeaderClick = null, this.onHeaderClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.g(); }, this.g = function () { DayPilot.de(s.elements.selection), s.elements.selection = [], s.nav.activeSelection = null; }, this.h = navigator && navigator.userAgent && navigator.userAgent.indexOf("MSIE") !== -1, this.cleanSelection = this.clearSelection, this.i = function (e, t, i) { var n = {}; n.action = e, n.parameters = i, n.data = t, n.header = this.j(); var a = "JSON" + DayPilot.JSON.stringify(n); __doPostBack(s.uniqueID, a); }, this.k = function (e, t, i) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.callbackTimeout = window.setTimeout(function () { s.loadingStart(); }, 100); var n = {}; n.action = e, n.parameters = i, n.data = t, n.header = this.j(); var a = "JSON" + DayPilot.JSON.stringify(n); this.backendUrl ? DayPilot.request(this.backendUrl, this.l, a, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, a, this.m, this.clientName, this.onCallbackError, !0); }, this.onCallbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.dispose = function () { var e = s; e.n(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.o(), e.p(), e.nav.select = null, e.nav.cornerRight = null, e.nav.scrollable = null, e.nav.zoom = null, e.nav.loading = null, e.nav.header = null, e.nav.hourTable = null, e.nav.scrolltop = null, e.nav.scroll.onscroll = null, e.nav.scroll = null, e.nav.main = null, e.nav.message = null, e.nav.messageClose = null, e.nav.top = null, t.unregister(e); }, this.q = function () { this.nav.top.dispose = this.dispose; }, this.l = function (e) { s.m(e.responseText); }, this.j = function () { var e = {}; return e.control = "dpc", e.id = this.id, e.v = this.v, e.days = s.days, e.startDate = s.startDate, e.heightSpec = s.heightSpec, e.businessBeginsHour = s.businessBeginsHour, e.businessEndsHour = s.businessEndsHour, e.hashes = s.hashes, e.timeFormat = s.timeFormat, e.viewType = s.viewType, e.locale = s.locale, e; }, this.r = function (e, t) {
867
+ this.uniqueID = null, this.isCalendar = !0, this.v = "2022.4.438-lite", this.id = e, this.clientName = e, this.cache = {}, this.cache.pixels = {}, this.elements = {}, this.elements.events = [], this.elements.selection = [], this.nav = {}, this.afterRender = function () { }, this.fasterDispose = !0, this.angularAutoApply = !1, this.api = 2, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.cellHeight = 30, this.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.contextMenu = null, this.days = 1, this.durationBarVisible = !0, this.eventHeaderHeight = 14, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.headerTextWrappingEnabled = !1, this.height = 300, this.heightSpec = "BusinessHours", this.hideUntilInit = !0, this.hourWidth = 60, this.initScrollPos = "Auto", this.loadingLabelText = "Loading...", this.loadingLabelVisible = !0, this.loadingLabelBackColor = "ff0000", this.loadingLabelFontColor = "#ffffff", this.loadingLabelFontFamily = "Tahoma, Arial, Helvetica, sans-serif", this.loadingLabelFontSize = "10pt", this.locale = "en-us", this.showToolTip = !0, this.startDate = (new DayPilot.Date).getDatePart(), this.cssClassPrefix = "calendar_default", this.theme = null, this.timeFormat = "Auto", this.viewType = "Days", this.visible = !0, this.xssProtection = "Enabled", this.headerClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.eventMoveHandling = "Update", this.eventDeleteHandling = "Disabled", this.timeRangeSelectedHandling = "Enabled", this.onBeforeEventRender = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onHeaderClick = null, this.onHeaderClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.g(); }, this.g = function () { DayPilot.de(s.elements.selection), s.elements.selection = [], s.nav.activeSelection = null; }, this.h = navigator && navigator.userAgent && navigator.userAgent.indexOf("MSIE") !== -1, this.cleanSelection = this.clearSelection, this.i = function (e, t, i) { var n = {}; n.action = e, n.parameters = i, n.data = t, n.header = this.j(); var a = "JSON" + DayPilot.JSON.stringify(n); __doPostBack(s.uniqueID, a); }, this.k = function (e, t, i) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.callbackTimeout = window.setTimeout(function () { s.loadingStart(); }, 100); var n = {}; n.action = e, n.parameters = i, n.data = t, n.header = this.j(); var a = "JSON" + DayPilot.JSON.stringify(n); this.backendUrl ? DayPilot.request(this.backendUrl, this.l, a, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, a, this.m, this.clientName, this.onCallbackError, !0); }, this.onCallbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.dispose = function () { var e = s; e.n(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.o(), e.p(), e.nav.select = null, e.nav.cornerRight = null, e.nav.scrollable = null, e.nav.zoom = null, e.nav.loading = null, e.nav.header = null, e.nav.hourTable = null, e.nav.scrolltop = null, e.nav.scroll.onscroll = null, e.nav.scroll = null, e.nav.main = null, e.nav.message = null, e.nav.messageClose = null, e.nav.top = null, t.unregister(e); }, this.q = function () { this.nav.top.dispose = this.dispose; }, this.l = function (e) { s.m(e.responseText); }, this.j = function () { var e = {}; return e.control = "dpc", e.id = this.id, e.v = this.v, e.days = s.days, e.startDate = s.startDate, e.heightSpec = s.heightSpec, e.businessBeginsHour = s.businessBeginsHour, e.businessEndsHour = s.businessEndsHour, e.hashes = s.hashes, e.timeFormat = s.timeFormat, e.viewType = s.viewType, e.locale = s.locale, e; }, this.r = function (e, t) {
688
868
  for (var i = e.parentNode; i && "TD" !== i.tagName;)
689
869
  i = i.parentNode;
690
870
  var n = document.createElement("div");
@@ -1058,20 +1238,20 @@ if ("undefined" == typeof DayPilot)
1058
1238
  }, this.Z = function (e) {
1059
1239
  var i = e.cache || e.data, n = this.nav.events, a = document.createElement("div");
1060
1240
  a.style.position = "absolute", a.style.left = e.part.left + "%", a.style.top = e.part.top + "px", a.style.width = e.part.width + "%", a.style.height = Math.max(e.part.height, 2) + "px", a.style.overflow = "hidden", a.data = e, a.event = e, a.unselectable = "on", a.style.MozUserSelect = "none", a.style.KhtmlUserSelect = "none", a.className = this.b("_event"), i.cssClass && DayPilot.Util.addClass(a, i.cssClass), a.isFirst = e.part.start.getTime() === e.start().getTime(), a.isLast = e.part.end.getTime() === e.end().getTime(), a.onclick = this.M, DayPilot.re(a, "contextmenu", this.O), a.onmouseout = function (e) { a.deleteIcon && (a.deleteIcon.style.display = "none"); }, a.onmousemove = function (i) {
1061
- var n = s.eventHeaderVisible ? s.eventHeaderHeight : 10;
1241
+ var n = 5;
1062
1242
  if ("undefined" != typeof t) {
1063
1243
  var l = DayPilot.mo3(a, i);
1064
1244
  if (l && !t.resizing && !t.moving) {
1065
1245
  a.deleteIcon && (a.deleteIcon.style.display = "");
1066
1246
  var o = this.isLast;
1067
- l.y <= n && e.client.resizeEnabled() ? (this.style.cursor = "n-resize", this.dpBorder = "top") : this.offsetHeight - l.y <= 5 && e.client.resizeEnabled() ? o ? (this.style.cursor = "s-resize", this.dpBorder = "bottom") : this.style.cursor = "not-allowed" : t.resizing || t.moving || ("Disabled" !== s.eventClickHandling ? this.style.cursor = "pointer" : this.style.cursor = "default");
1247
+ l.y <= n && e.client.resizeEnabled() ? (this.style.cursor = "n-resize", this.dpBorder = "top") : this.offsetHeight - l.y <= n && e.client.resizeEnabled() ? o ? (this.style.cursor = "s-resize", this.dpBorder = "bottom") : this.style.cursor = "not-allowed" : t.resizing || t.moving || ("Disabled" !== s.eventClickHandling ? this.style.cursor = "pointer" : this.style.cursor = "default");
1068
1248
  }
1069
1249
  }
1070
1250
  }, a.onmousedown = function (i) {
1071
1251
  var n = i.which || i.button;
1072
1252
  if ("n-resize" !== this.style.cursor && "s-resize" !== this.style.cursor || 1 !== n) {
1073
1253
  if (1 === n && e.client.moveEnabled()) {
1074
- t.moving = this, t.moving.event = this.event;
1254
+ t.moving = this, DayPilot.Global.moving = this, t.moving.event = this.event;
1075
1255
  var a = t.moving.helper = {};
1076
1256
  a.oldColumn = s.Q[this.data.part.dayIndex].id, t.originalMouse = DayPilot.mc(i), t.originalTop = this.offsetTop;
1077
1257
  var l = DayPilot.mo3(this, i);
@@ -1079,7 +1259,7 @@ if ("undefined" == typeof DayPilot)
1079
1259
  }
1080
1260
  }
1081
1261
  else
1082
- t.resizing = this, t.originalMouse = DayPilot.mc(i), t.originalHeight = this.offsetHeight, t.originalTop = this.offsetTop, s.nav.top.style.cursor = this.style.cursor;
1262
+ t.resizing = this, DayPilot.Global.resizing = this, t.originalMouse = DayPilot.mc(i), t.originalHeight = this.offsetHeight, t.originalTop = this.offsetTop, s.nav.top.style.cursor = this.style.cursor;
1083
1263
  return !1;
1084
1264
  };
1085
1265
  var l = document.createElement("div");
@@ -1093,7 +1273,8 @@ if ("undefined" == typeof DayPilot)
1093
1273
  var u = document.createElement("div");
1094
1274
  u.style.position = "absolute", u.style.right = "2px", u.style.top = "2px", u.style.width = "17px", u.style.height = "17px", u.className = s.b("_event_delete"), u.onmousedown = function (e) { e.stopPropagation(); }, u.onclick = function (e) { var t = this.parentNode.event; t && s.P(t); }, u.style.display = "none", a.deleteIcon = u, a.appendChild(u);
1095
1275
  }
1096
- if (n.rows[0].cells[e.part.dayIndex]) {
1276
+ var v = i.areas ? DayPilot.Areas.copy(i.areas) : [];
1277
+ if (DayPilot.Areas.attach(a, e, { "areas": v }), n.rows[0].cells[e.part.dayIndex]) {
1097
1278
  n.rows[0].cells[e.part.dayIndex].firstChild.appendChild(a), s.$(a);
1098
1279
  }
1099
1280
  s.elements.events.push(a);
@@ -1398,54 +1579,64 @@ if ("undefined" == typeof DayPilot)
1398
1579
  }, this.z = function () {
1399
1580
  var e = this.events.list;
1400
1581
  if (s.Ba.events = [], e) {
1582
+ if (!DayPilot.isArray(e))
1583
+ throw new DayPilot.Exception("DayPilot.Calendar.events.list expects an array object. You supplied: " + typeof e);
1401
1584
  var t = e.length, i = 864e5;
1402
1585
  this.cache.pixels = {};
1403
1586
  var n = [];
1404
1587
  this.scrollLabels = [], this.minStart = 1e4, this.maxEnd = 0;
1405
1588
  for (var a = 0; a < t; a++) {
1406
- var l = e[a];
1589
+ var l = e[a], o = l;
1590
+ if ("object" != typeof o)
1591
+ throw new DayPilot.Exception("Event data item must be an object");
1592
+ if (!o.start)
1593
+ throw new DayPilot.Exception("Event data item must specify 'start' property");
1594
+ if (!o.end)
1595
+ throw new DayPilot.Exception("Event data item must specify 'end' property");
1596
+ if (o instanceof DayPilot.Event)
1597
+ throw new DayPilot.Exception("DayPilot.Calendar: DayPilot.Event object detected in events.list array. Use raw event data instead.");
1407
1598
  l.start = new DayPilot.Date(l.start), l.end = new DayPilot.Date(l.end);
1408
1599
  }
1409
1600
  if ("function" == typeof this.onBeforeEventRender)
1410
1601
  for (var a = 0; a < t; a++)
1411
1602
  this.Ca(a);
1412
1603
  for (var a = 0; a < this.Q.length; a++) {
1413
- var o = {};
1414
- o.minEnd = 1e6, o.maxStart = -1, this.scrollLabels.push(o);
1415
- var r = this.Q[a];
1416
- r.events = [], r.lines = [], r.blocks = [];
1417
- for (var h = new DayPilot.Date(r.start), c = h.getTime(), d = h.addTime(i), u = d.getTime(), v = 0; v < t; v++)
1418
- if (!n[v]) {
1419
- var l = e[v], p = l.start, f = l.end, g = p.getTime(), m = f.getTime();
1420
- if (!(m < g)) {
1421
- var y = !(m <= c || g >= u);
1422
- if ("Resources" === s.viewType && (y = y && r.id === l.resource), y) {
1423
- var b = new DayPilot.Event(l, s);
1424
- b.part.dayIndex = a, b.part.start = c < g ? l.start : h, b.part.end = u > m ? l.end : d;
1425
- var C = this.getPixels(b.part.start, r.start), w = this.getPixels(b.part.end, r.start), D = C.top, S = w.top;
1426
- if (D === S && (C.cut || w.cut))
1604
+ var r = {};
1605
+ r.minEnd = 1e6, r.maxStart = -1, this.scrollLabels.push(r);
1606
+ var h = this.Q[a];
1607
+ h.events = [], h.lines = [], h.blocks = [];
1608
+ for (var c = new DayPilot.Date(h.start), d = c.getTime(), u = c.addTime(i), v = u.getTime(), p = 0; p < t; p++)
1609
+ if (!n[p]) {
1610
+ var l = e[p], f = l.start, g = l.end, m = f.getTime(), y = g.getTime();
1611
+ if (!(y < m)) {
1612
+ var b = !(y <= d || m >= v);
1613
+ if ("Resources" === s.viewType && (b = b && h.id === l.resource), b) {
1614
+ var C = new DayPilot.Event(l, s);
1615
+ C.part.dayIndex = a, C.part.start = d < m ? l.start : c, C.part.end = v > y ? l.end : u;
1616
+ var w = this.getPixels(C.part.start, h.start), D = this.getPixels(C.part.end, h.start), S = w.top, x = D.top;
1617
+ if (S === x && (w.cut || D.cut))
1427
1618
  continue;
1428
- var k = w.boxBottom;
1429
- b.part.top = Math.floor(D / this.cellHeight) * this.cellHeight + 1, b.part.height = Math.max(Math.ceil(k / this.cellHeight) * this.cellHeight - b.part.top, this.cellHeight - 1) + 1, b.part.barTop = Math.max(D - b.part.top - 1, 0), b.part.barHeight = Math.max(S - D - 2, 1);
1430
- var p = b.part.top, f = b.part.top + b.part.height;
1431
- p > o.maxStart && (o.maxStart = p), f < o.minEnd && (o.minEnd = f), p < this.minStart && (this.minStart = p), f > this.maxEnd && (this.maxEnd = f), r.events.push(b), "function" == typeof this.onBeforeEventRender && (b.cache = this.Ba.events[v]), b.part.start.getTime() === g && b.part.end.getTime() === m && (n[v] = !0);
1619
+ var k = D.boxBottom;
1620
+ C.part.top = Math.floor(S / this.cellHeight) * this.cellHeight + 1, C.part.height = Math.max(Math.ceil(k / this.cellHeight) * this.cellHeight - C.part.top, this.cellHeight - 1) + 1, C.part.barTop = Math.max(S - C.part.top - 1, 0), C.part.barHeight = Math.max(x - S - 2, 1);
1621
+ var f = C.part.top, g = C.part.top + C.part.height;
1622
+ f > r.maxStart && (r.maxStart = f), g < r.minEnd && (r.minEnd = g), f < this.minStart && (this.minStart = f), g > this.maxEnd && (this.maxEnd = g), h.events.push(C), "function" == typeof this.onBeforeEventRender && (C.cache = this.Ba.events[p]), C.part.start.getTime() === m && C.part.end.getTime() === y && (n[p] = !0);
1432
1623
  }
1433
1624
  }
1434
1625
  }
1435
1626
  }
1436
1627
  for (var a = 0; a < this.Q.length; a++) {
1437
- var r = this.Q[a];
1438
- r.events.sort(this.Da);
1439
- for (var v = 0; v < r.events.length; v++) {
1440
- var l = r.events[v];
1441
- r.putIntoBlock(l);
1628
+ var h = this.Q[a];
1629
+ h.events.sort(this.Da);
1630
+ for (var p = 0; p < h.events.length; p++) {
1631
+ var l = h.events[p];
1632
+ h.putIntoBlock(l);
1442
1633
  }
1443
- for (var v = 0; v < r.blocks.length; v++) {
1444
- var x = r.blocks[v];
1445
- x.events.sort(this.Da);
1446
- for (var H = 0; H < x.events.length; H++) {
1447
- var l = x.events[H];
1448
- x.putIntoLine(l);
1634
+ for (var p = 0; p < h.blocks.length; p++) {
1635
+ var P = h.blocks[p];
1636
+ P.events.sort(this.Da);
1637
+ for (var E = 0; E < P.events.length; E++) {
1638
+ var l = P.events[E];
1639
+ P.putIntoLine(l);
1449
1640
  }
1450
1641
  }
1451
1642
  }
@@ -1530,7 +1721,7 @@ if ("undefined" == typeof DayPilot)
1530
1721
  var DayPilot = {};
1531
1722
  !function () {
1532
1723
  "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (t) {
1533
- this.v = "2022.3.432-lite";
1724
+ this.v = "2022.4.438-lite";
1534
1725
  var e = "navigator_" + (new Date).getTime(), i = this;
1535
1726
  this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () {
1536
1727
  if (this.locale = "en-us", this.target = null, this.targetAlignment = "left", this.resetTarget = !0, this.pattern = this.a.locale().datePattern, this.theme = "navigator_default", this.patterns = [], this.zIndex = null, t)
@@ -1581,7 +1772,7 @@ if ("undefined" == typeof DayPilot)
1581
1772
  var e = function () { }, t = {};
1582
1773
  t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (n) {
1583
1774
  var i = this, o = null;
1584
- this.v = "2022.3.432-lite", this.zIndex = 120, this.cssClassPrefix = "menu_default", this.cssOnly = !0, this.menuTitle = null, this.showMenuTitle = !1, this.hideOnMouseOut = !1, this.hideAfter = 200, this.theme = null, this.onShow = null, this.b = function () { }, n && DayPilot.isArray(n) && (this.items = n), this.toJSON = function () { return null; }, this.show = function (n, u) {
1775
+ this.v = "2022.4.438-lite", this.zIndex = 120, this.cssClassPrefix = "menu_default", this.cssOnly = !0, this.menuTitle = null, this.showMenuTitle = !1, this.hideOnMouseOut = !1, this.hideAfter = 200, this.theme = null, this.onShow = null, this.b = function () { }, n && DayPilot.isArray(n) && (this.items = n), this.toJSON = function () { return null; }, this.show = function (n, u) {
1585
1776
  u = u || {};
1586
1777
  var a = null;
1587
1778
  if (n ? "string" == typeof n.id || "number" == typeof n.id ? a = n.id : "function" == typeof n.id ? a = n.id() : "function" == typeof n.value && (a = n.value()) : a = null, "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), u.submenu || t.menuClean(), this.b.submenu = null, null !== t.mouse) {
@@ -2531,7 +2722,7 @@ if ("undefined" == typeof DayPilot)
2531
2722
  if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
2532
2723
  var t = {};
2533
2724
  t.Month = function (e, i) {
2534
- this.v = "2022.3.432-lite", this.nav = {};
2725
+ this.v = "2022.4.438-lite", this.nav = {};
2535
2726
  var n = this;
2536
2727
  this.id = e, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, this.contextMenu = null, this.cssClassPrefix = "month_default", this.eventBarVisible = !0, 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 = 1, 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.cellEvents = [], this.elements = {}, this.elements.events = [], this.cache = {}, this.a = function (t, e) { var t = JSON.parse(t); return t.CallBackRedirect ? void (document.location.href = t.CallBackRedirect) : "None" === t.UpdateType ? void n.fireAfterRenderDetached(t.CallBackData, !0) : (n.events.list = t.Events, "Full" === t.UpdateType && (n.startDate = t.StartDate, n.timeFormat = t.TimeFormat ? t.TimeFormat : n.timeFormat, "undefined" != typeof t.WeekStarts && (n.weekStarts = t.WeekStarts), n.hashes = t.Hashes), n.b(), n.c(), n.d(), "Full" === t.UpdateType && (n.f(), n.g()), n.h(), n.show(), n.i(), void n.fireAfterRenderDetached(t.CallBackData, !0)); }, this.fireAfterRenderDetached = function (t, e) { var i = function (t, e) { return function () { n.afterRender && n.afterRender(t, e); }; }; window.setTimeout(i(t, e), 0); }, this.lineHeight = function () { return this.eventHeight + this.lineSpace; }, this.events = {}, this.events.add = function (t) {
2537
2728
  var e = null;
@@ -2564,14 +2755,14 @@ if ("undefined" == typeof DayPilot)
2564
2755
  }
2565
2756
  n.update(), n.j.notify();
2566
2757
  }, this.events.remove = function (t) { var e = DayPilot.indexOf(n.events.list, t.data); n.events.list.splice(e, 1), n.update(), n.j.notify(); }, this.events.load = function (t, e, i) {
2567
- var s = function (t) { var e = {}; e.exception = t.exception, e.request = t.request, "function" == typeof i && i(e); }, a = function (t) {
2568
- var i, a = t.request;
2758
+ var a = function (t) { var e = {}; e.exception = t.exception, e.request = t.request, "function" == typeof i && i(e); }, s = function (t) {
2759
+ var i, s = t.request;
2569
2760
  try {
2570
- i = JSON.parse(a.responseText);
2761
+ i = JSON.parse(s.responseText);
2571
2762
  }
2572
2763
  catch (t) {
2573
2764
  var l = {};
2574
- return l.exception = t, void s(l);
2765
+ return l.exception = t, void a(l);
2575
2766
  }
2576
2767
  if (DayPilot.isArray(i)) {
2577
2768
  var o = {};
@@ -2581,10 +2772,10 @@ if ("undefined" == typeof DayPilot)
2581
2772
  }
2582
2773
  };
2583
2774
  if (n.eventsLoadMethod && "POST" === n.eventsLoadMethod.toUpperCase())
2584
- DayPilot.Http.ajax({ "method": "POST", "data": { "start": n.visibleStart().toString(), "end": n.visibleEnd().toString() }, "url": t, "success": a, "error": s });
2775
+ DayPilot.Http.ajax({ "method": "POST", "data": { "start": n.visibleStart().toString(), "end": n.visibleEnd().toString() }, "url": t, "success": s, "error": a });
2585
2776
  else {
2586
2777
  var l = t, o = "start=" + n.visibleStart().toString() + "&end=" + n.visibleEnd().toString();
2587
- l += l.indexOf("?") > -1 ? "&" + o : "?" + o, DayPilot.Http.ajax({ "method": "GET", "url": l, "success": a, "error": s });
2778
+ l += l.indexOf("?") > -1 ? "&" + o : "?" + o, DayPilot.Http.ajax({ "method": "GET", "url": l, "success": s, "error": a });
2588
2779
  }
2589
2780
  }, this.update = function (t) {
2590
2781
  if (n.l(t), this.k && this.cells) {
@@ -2596,8 +2787,8 @@ if ("undefined" == typeof DayPilot)
2596
2787
  this.n = e;
2597
2788
  for (var i in t)
2598
2789
  if (e[i]) {
2599
- var s = e[i];
2600
- s.data = t[i], s.preInit && s.preInit();
2790
+ var a = e[i];
2791
+ a.data = t[i], a.preInit && a.preInit();
2601
2792
  }
2602
2793
  else
2603
2794
  n[i] = t[i];
@@ -2610,22 +2801,31 @@ if ("undefined" == typeof DayPilot)
2610
2801
  }
2611
2802
  }, this.p = {}, this.p.events = [], this.q = function (t) {
2612
2803
  var e = this.p.events, i = this.events.list[t], n = {};
2613
- for (var s in i)
2614
- n[s] = i[s];
2804
+ for (var a in i)
2805
+ n[a] = i[a];
2615
2806
  if ("function" == typeof this.onBeforeEventRender) {
2616
- var a = {};
2617
- a.data = n, this.onBeforeEventRender(a);
2807
+ var s = {};
2808
+ s.data = n, this.onBeforeEventRender(s);
2618
2809
  }
2619
2810
  e[t] = n;
2620
2811
  }, this.d = function () {
2621
2812
  var t = this.events.list;
2622
2813
  if (t) {
2814
+ if (!DayPilot.isArray(t))
2815
+ throw new DayPilot.Exception("DayPilot.Month.events.list expects an array object. You supplied: " + typeof t);
2623
2816
  if ("function" == typeof this.onBeforeEventRender)
2624
2817
  for (var e = 0; e < t.length; e++)
2625
2818
  this.q(e);
2626
2819
  for (var i = 0; i < t.length; i++) {
2627
- var n = t[i], s = new DayPilot.Date(n.start), a = new DayPilot.Date(n.end);
2628
- if (!(s.getTime() > a.getTime()))
2820
+ var n = t[i];
2821
+ if ("object" != typeof n)
2822
+ throw new DayPilot.Exception("Event data item must be an object");
2823
+ if (!n.start)
2824
+ throw new DayPilot.Exception("Event data item must specify 'start' property");
2825
+ if (!n.end)
2826
+ throw new DayPilot.Exception("Event data item must specify 'end' property");
2827
+ var a = new DayPilot.Date(n.start), s = new DayPilot.Date(n.end);
2828
+ if (!(a.getTime() > s.getTime()))
2629
2829
  for (var e = 0; e < this.rows.length; e++) {
2630
2830
  var l = this.rows[e], o = new DayPilot.Event(n, this);
2631
2831
  l.belongsHere(o) && (l.events.push(o), "function" == typeof this.onBeforeEventRender && (o.cache = this.p.events[i]));
@@ -2650,20 +2850,20 @@ if ("undefined" == typeof DayPilot)
2650
2850
  this.elements.events = [];
2651
2851
  for (var t = 0; t < this.rows.length; t++)
2652
2852
  for (var e = this.rows[t], i = 0; i < e.lines.length; i++)
2653
- for (var n = e.lines[i], s = 0; s < n.length; s++)
2654
- this.t(n[s]);
2853
+ for (var n = e.lines[i], a = 0; a < n.length; a++)
2854
+ this.t(n[a]);
2655
2855
  }, this.r = function (t, e) {
2656
2856
  if (!(t && e && t.start && e.start))
2657
2857
  return 0;
2658
2858
  var i = t.start().getTime() - e.start().getTime();
2659
2859
  return 0 !== i ? i : e.end().getTime() - t.end().getTime();
2660
- }, this.drawShadow = function (e, i, n, s, a, l) {
2661
- a || (a = 0);
2662
- var o = s;
2663
- this.shadow = {}, this.shadow.list = [], this.shadow.start = { x: e, y: i }, this.shadow.width = s;
2664
- var r = 7 * i + e - a;
2860
+ }, this.drawShadow = function (e, i, n, a, s, l) {
2861
+ s || (s = 0);
2862
+ var o = a;
2863
+ this.shadow = {}, this.shadow.list = [], this.shadow.start = { x: e, y: i }, this.shadow.width = a;
2864
+ var r = 7 * i + e - s;
2665
2865
  r < 0 && (o += r, e = 0, i = 0);
2666
- for (var h = a; h >= 7;)
2866
+ for (var h = s; h >= 7;)
2667
2867
  i--, h -= 7;
2668
2868
  if (h > e) {
2669
2869
  h > e + (7 - this.getColCount()) ? (i--, e = e + 7 - h) : (o = o - h + e, e = 0);
@@ -2675,8 +2875,8 @@ if ("undefined" == typeof DayPilot)
2675
2875
  for (t.resizingEvent ? c = "w-resize" : t.movingEvent && (c = "move"), this.nav.top.style.cursor = c; o > 0 && i < this.rows.length;) {
2676
2876
  var d = Math.min(this.getColCount() - e, o), v = this.rows[i], u = this.getRowTop(i), f = v.getHeight(), p = document.createElement("div");
2677
2877
  p.setAttribute("unselectable", "on"), p.style.position = "absolute", p.style.left = this.getCellWidth() * e + "%", p.style.width = this.getCellWidth() * d + "%", p.style.top = u + "px", p.style.height = f + "px", p.style.cursor = c;
2678
- var g = document.createElement("div");
2679
- g.setAttribute("unselectable", "on"), p.appendChild(g), g.style.position = "absolute", g.style.top = "0px", g.style.right = "0px", g.style.left = "0px", g.style.bottom = "0px", g.style.backgroundColor = "#aaaaaa", g.style.opacity = .5, g.style.filter = "alpha(opacity=50)", this.nav.top.appendChild(p), this.shadow.list.push(p), o -= d + 7 - this.getColCount(), e = 0, i++;
2878
+ var y = document.createElement("div");
2879
+ y.setAttribute("unselectable", "on"), p.appendChild(y), y.style.position = "absolute", y.style.top = "0px", y.style.right = "0px", y.style.left = "0px", y.style.bottom = "0px", y.style.backgroundColor = "#aaaaaa", y.style.opacity = .5, y.style.filter = "alpha(opacity=50)", this.nav.top.appendChild(p), this.shadow.list.push(p), o -= d + 7 - this.getColCount(), e = 0, i++;
2680
2880
  }
2681
2881
  }, this.clearShadow = function () {
2682
2882
  if (this.shadow) {
@@ -2689,32 +2889,32 @@ if ("undefined" == typeof DayPilot)
2689
2889
  i += this.rows[n].getHeight();
2690
2890
  return i += this.cellHeaderHeight, i += e * this.lineHeight();
2691
2891
  }, this.getDateFromCell = function (t, e) { return this.firstDate.addDays(7 * e + t); }, this.t = function (e) {
2692
- var i = e.cache || e.data, s = e.part.row, a = e.part.line, l = e.part.colStart, o = e.part.colWidth, r = this.getCellWidth() * l, h = this.getCellWidth() * o, c = this.getEventTop(s, a), d = document.createElement("div");
2892
+ var i = e.cache || e.data, a = e.part.row, s = e.part.line, l = e.part.colStart, o = e.part.colWidth, r = this.getCellWidth() * l, h = this.getCellWidth() * o, c = this.getEventTop(a, s), d = document.createElement("div");
2693
2893
  d.setAttribute("unselectable", "on"), d.style.height = this.eventHeight + "px", d.className = this.u("_event"), i.cssClass && DayPilot.Util.addClass(d, i.cssClass), e.part.startsHere || DayPilot.Util.addClass(d, this.u("_event_continueleft")), e.part.endsHere || DayPilot.Util.addClass(d, this.u("_event_continueright")), d.event = e, d.style.width = h + "%", d.style.position = "absolute", d.style.left = r + "%", d.style.top = c + "px", this.showToolTip && e.client.toolTip() && (d.title = e.client.toolTip()), d.onclick = n.w, d.oncontextmenu = n.z, d.onmousedown = function (i) {
2694
2894
  i = i || window.event;
2695
2895
  var r = i.which || i.button;
2696
2896
  if (i.cancelBubble = !0, i.stopPropagation && i.stopPropagation(), 1 === r)
2697
2897
  if (t.movingEvent = null, "w-resize" === this.style.cursor || "e-resize" === this.style.cursor) {
2698
2898
  var h = {};
2699
- h.start = {}, h.start.x = l, h.start.y = s, h.event = d.event, h.width = DayPilot.DateUtil.daysSpan(h.event.start(), h.event.end()) + 1, h.direction = this.style.cursor, t.resizingEvent = h;
2899
+ h.start = {}, h.start.x = l, h.start.y = a, h.event = d.event, h.width = DayPilot.DateUtil.daysSpan(h.event.start(), h.event.end()) + 1, h.direction = this.style.cursor, t.resizingEvent = h;
2700
2900
  }
2701
2901
  else if ("move" === this.style.cursor || e.client.moveEnabled()) {
2702
2902
  n.clearShadow();
2703
2903
  var c = DayPilot.mo2(n.nav.top, i);
2704
2904
  if (!c)
2705
2905
  return;
2706
- var v = n.getCellBelowPoint(c.x, c.y), u = DayPilot.DateUtil.daysDiff(e.start(), n.rows[s].start), f = 7 * v.y + v.x - (7 * s + l);
2906
+ var v = n.getCellBelowPoint(c.x, c.y), u = DayPilot.DateUtil.daysDiff(e.start(), n.rows[a].start), f = 7 * v.y + v.x - (7 * a + l);
2707
2907
  u && (f += u);
2708
2908
  var p = {};
2709
- p.start = {}, p.start.x = l, p.start.y = s, p.start.line = a, p.offset = n.eventMoveToPosition ? 0 : f, p.colWidth = o, p.event = d.event, p.coords = c, t.movingEvent = p;
2909
+ p.start = {}, p.start.x = l, p.start.y = a, p.start.line = s, p.offset = n.eventMoveToPosition ? 0 : f, p.colWidth = o, p.event = d.event, p.coords = c, t.movingEvent = p;
2710
2910
  }
2711
2911
  }, d.onmousemove = function (i) {
2712
2912
  if ("undefined" != typeof t && !t.movingEvent && !t.resizingEvent) {
2713
2913
  var n = DayPilot.mo3(d, i);
2714
2914
  if (n) {
2715
2915
  d.deleteIcon && (d.deleteIcon.style.display = "");
2716
- var s = 6;
2717
- n.x <= s && e.client.resizeEnabled() ? e.part.startsHere ? (d.style.cursor = "w-resize", d.dpBorder = "left") : d.style.cursor = "not-allowed" : d.clientWidth - n.x <= s && e.client.resizeEnabled() ? e.part.endsHere ? (d.style.cursor = "e-resize", d.dpBorder = "right") : d.style.cursor = "not-allowed" : d.style.cursor = "default";
2916
+ var a = 6;
2917
+ n.x <= a && e.client.resizeEnabled() ? e.part.startsHere ? (d.style.cursor = "w-resize", d.dpBorder = "left") : d.style.cursor = "not-allowed" : d.clientWidth - n.x <= a && e.client.resizeEnabled() ? e.part.endsHere ? (d.style.cursor = "e-resize", d.dpBorder = "right") : d.style.cursor = "not-allowed" : e.client.clickEnabled() ? d.style.cursor = "pointer" : d.style.cursor = "default";
2718
2918
  }
2719
2919
  }
2720
2920
  }, d.onmouseleave = function (t) { d.deleteIcon && (d.deleteIcon.style.display = "none"), d.style.cursor = ""; }, d.onmouseenter = function (t) { d.deleteIcon && (d.deleteIcon.style.display = ""); };
@@ -2726,32 +2926,33 @@ if ("undefined" == typeof DayPilot)
2726
2926
  f.setAttribute("unselectable", "on"), f.className = this.u("_event_bar_inner"), f.style.top = "0%", f.style.height = "100%", i.barColor && (f.style.backgroundColor = i.barColor), u.appendChild(f), d.appendChild(u);
2727
2927
  }
2728
2928
  if (e.client.deleteEnabled()) {
2729
- var p = Math.floor(n.eventHeight / 2 - 9), g = document.createElement("div");
2730
- g.style.position = "absolute", g.style.right = "2px", g.style.top = p + "px", g.style.width = "18px", g.style.height = "18px", g.className = n.u("_event_delete"), g.onmousedown = function (t) { t.stopPropagation(); }, g.onclick = function (t) { t.stopPropagation(); var e = this.parentNode.event; e && n.A(e); }, g.style.display = "none", d.deleteIcon = g, d.appendChild(g);
2929
+ var p = Math.floor(n.eventHeight / 2 - 9), y = document.createElement("div");
2930
+ y.style.position = "absolute", y.style.right = "2px", y.style.top = p + "px", y.style.width = "18px", y.style.height = "18px", y.className = n.u("_event_delete"), y.onmousedown = function (t) { t.stopPropagation(); }, y.onclick = function (t) { t.stopPropagation(); var e = this.parentNode.event; e && n.A(e); }, y.style.display = "none", d.deleteIcon = y, d.appendChild(y);
2731
2931
  }
2732
- this.elements.events.push(d), this.nav.events.appendChild(d);
2932
+ var g = i.areas ? DayPilot.Areas.copy(i.areas) : [];
2933
+ DayPilot.Areas.attach(d, e, { "areas": g }), this.elements.events.push(d), this.nav.events.appendChild(d);
2733
2934
  }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.c = function () {
2734
2935
  "string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart());
2735
2936
  var t, e = (this.startDate, this.lastVisibleDayOfMonth()), i = DayPilot.DateUtil.daysDiff(this.firstDate, e) + 1;
2736
2937
  t = Math.ceil(i / 7), this.days = 7 * t, this.rows = [];
2737
- for (var s = 0; s < t; s++) {
2738
- var a = {};
2739
- a.start = this.firstDate.addDays(7 * s), a.end = a.start.addDays(this.getColCount()), a.events = [], a.lines = [], a.index = s, a.minHeight = this.cellHeight, a.calendar = this, a.belongsHere = function (t) { return t.end().getTime() === t.start().getTime() && t.start().getTime() === this.start.getTime() || !(t.end().getTime() <= this.start.getTime() || t.start().getTime() >= this.end.getTime()); }, a.getPartStart = function (t) { return DayPilot.DateUtil.max(this.start, t.start()); }, a.getPartEnd = function (t) { return DayPilot.DateUtil.min(this.end, t.end()); }, a.getStartColumn = function (t) { var e = this.getPartStart(t); return DayPilot.DateUtil.daysDiff(this.start, e); }, a.getWidth = function (t) { return DayPilot.DateUtil.daysSpan(this.getPartStart(t), this.getPartEnd(t)) + 1; }, a.putIntoLine = function (t, e, i, n) {
2740
- for (var s = this, a = 0; a < this.lines.length; a++) {
2741
- var l = this.lines[a];
2938
+ for (var a = 0; a < t; a++) {
2939
+ var s = {};
2940
+ s.start = this.firstDate.addDays(7 * a), s.end = s.start.addDays(this.getColCount()), s.events = [], s.lines = [], s.index = a, s.minHeight = this.cellHeight, s.calendar = this, s.belongsHere = function (t) { return t.end().getTime() === t.start().getTime() && t.start().getTime() === this.start.getTime() || !(t.end().getTime() <= this.start.getTime() || t.start().getTime() >= this.end.getTime()); }, s.getPartStart = function (t) { return DayPilot.DateUtil.max(this.start, t.start()); }, s.getPartEnd = function (t) { return DayPilot.DateUtil.min(this.end, t.end()); }, s.getStartColumn = function (t) { var e = this.getPartStart(t); return DayPilot.DateUtil.daysDiff(this.start, e); }, s.getWidth = function (t) { return DayPilot.DateUtil.daysSpan(this.getPartStart(t), this.getPartEnd(t)) + 1; }, s.putIntoLine = function (t, e, i, n) {
2941
+ for (var a = this, s = 0; s < this.lines.length; s++) {
2942
+ var l = this.lines[s];
2742
2943
  if (l.isFree(e, i))
2743
- return l.addEvent(t, e, i, n, a), a;
2944
+ return l.addEvent(t, e, i, n, s), s;
2744
2945
  }
2745
2946
  var l = [];
2746
2947
  return l.isFree = function (t, e) {
2747
2948
  for (var i = !0, n = 0; n < this.length; n++)
2748
2949
  t + e - 1 < this[n].part.colStart || t > this[n].part.colStart + this[n].part.colWidth - 1 || (i = !1);
2749
2950
  return i;
2750
- }, l.addEvent = function (t, e, i, n, a) { t.part.colStart = e, t.part.colWidth = i, t.part.row = n, t.part.line = a, t.part.startsHere = s.start.getTime() <= t.start().getTime(), t.part.endsHere = s.end.getTime() >= t.end().getTime(), this.push(t); }, l.addEvent(t, e, i, n, this.lines.length), this.lines.push(l), this.lines.length - 1;
2751
- }, a.getStart = function () {
2951
+ }, l.addEvent = function (t, e, i, n, s) { t.part.colStart = e, t.part.colWidth = i, t.part.row = n, t.part.line = s, t.part.startsHere = a.start.getTime() <= t.start().getTime(), t.part.endsHere = a.end.getTime() >= t.end().getTime(), this.push(t); }, l.addEvent(t, e, i, n, this.lines.length), this.lines.push(l), this.lines.length - 1;
2952
+ }, s.getStart = function () {
2752
2953
  for (var t = 0, e = 0; e < n.rows.length && e < this.index; e++)
2753
2954
  t += n.rows[e].getHeight();
2754
- }, a.getHeight = function () { return Math.max(this.lines.length * n.lineHeight() + n.cellHeaderHeight, this.calendar.cellHeight); }, this.rows.push(a);
2955
+ }, s.getHeight = function () { return Math.max(this.lines.length * n.lineHeight() + n.cellHeaderHeight, this.calendar.cellHeight); }, this.rows.push(s);
2755
2956
  }
2756
2957
  this.endDate = this.firstDate.addDays(7 * t);
2757
2958
  }, this.visibleStart = function () { return n.firstDate; }, this.visibleEnd = function () { return n.endDate; }, this.getHeight = function () {
@@ -2763,26 +2964,26 @@ if ("undefined" == typeof DayPilot)
2763
2964
  e.setAttribute("unselectable", "on"), e.style.MozUserSelect = "none", e.style.KhtmlUserSelect = "none", e.style.WebkitUserSelect = "none", e.style.position = "relative", this.width && (e.style.width = this.width), e.style.height = this.getHeight() + "px", e.onselectstart = function (t) { return !1; }, this.hideUntilInit && (e.style.visibility = "hidden"), this.visible || (e.style.display = "none"), e.className = this.u("_main");
2764
2965
  var i = document.createElement("div");
2765
2966
  this.nav.cells = i, i.style.position = "absolute", i.style.left = "0px", i.style.right = "0px", i.setAttribute("unselectable", "on"), e.appendChild(i);
2766
- var s = document.createElement("div");
2767
- this.nav.events = s, s.style.position = "absolute", s.style.left = "0px", s.style.right = "0px", s.setAttribute("unselectable", "on"), e.appendChild(s), e.onmousemove = function (e) {
2967
+ var a = document.createElement("div");
2968
+ this.nav.events = a, a.style.position = "absolute", a.style.left = "0px", a.style.right = "0px", a.setAttribute("unselectable", "on"), e.appendChild(a), e.onmousemove = function (e) {
2768
2969
  if (t.resizingEvent) {
2769
2970
  var i = DayPilot.mo2(n.nav.top, e);
2770
2971
  if (!i)
2771
2972
  return;
2772
- var s = n.getCellBelowPoint(i.x, i.y);
2973
+ var a = n.getCellBelowPoint(i.x, i.y);
2773
2974
  n.clearShadow();
2774
- var a, l, o = t.resizingEvent;
2975
+ var s, l, o = t.resizingEvent;
2775
2976
  o.start;
2776
2977
  if ("w-resize" === o.direction) {
2777
- l = s;
2978
+ l = a;
2778
2979
  var r = o.event.end();
2779
2980
  r.getDatePart() === r && (r = r.addDays(-1));
2780
2981
  var h = n.getCellFromDate(r);
2781
- a = n.getWidth(s, h);
2982
+ s = n.getWidth(a, h);
2782
2983
  }
2783
2984
  else
2784
- l = n.getCellFromDate(o.event.start()), a = n.getWidth(l, s);
2785
- a < 1 && (a = 1), n.drawShadow(l.x, l.y, 0, a);
2985
+ l = n.getCellFromDate(o.event.start()), s = n.getWidth(l, a);
2986
+ s < 1 && (s = 1), n.drawShadow(l.x, l.y, 0, s);
2786
2987
  }
2787
2988
  else if (t.movingEvent) {
2788
2989
  var i = DayPilot.mo2(n.nav.top, e);
@@ -2790,21 +2991,21 @@ if ("undefined" == typeof DayPilot)
2790
2991
  return;
2791
2992
  if (i.x === t.movingEvent.coords.x && i.y === t.movingEvent.coords.y)
2792
2993
  return;
2793
- var s = n.getCellBelowPoint(i.x, i.y);
2994
+ var a = n.getCellBelowPoint(i.x, i.y);
2794
2995
  n.clearShadow();
2795
- var c = t.movingEvent.event, d = t.movingEvent.offset, a = n.cellMode ? 1 : DayPilot.DateUtil.daysSpan(c.start(), c.end()) + 1;
2796
- a < 1 && (a = 1), n.drawShadow(s.x, s.y, 0, a, d, c);
2996
+ var c = t.movingEvent.event, d = t.movingEvent.offset, s = n.cellMode ? 1 : DayPilot.DateUtil.daysSpan(c.start(), c.end()) + 1;
2997
+ s < 1 && (s = 1), n.drawShadow(a.x, a.y, 0, s, d, c);
2797
2998
  }
2798
2999
  else if (t.timeRangeSelecting) {
2799
3000
  var i = DayPilot.mo2(n.nav.top, e);
2800
3001
  if (!i)
2801
3002
  return;
2802
- var s = n.getCellBelowPoint(i.x, i.y);
3003
+ var a = n.getCellBelowPoint(i.x, i.y);
2803
3004
  n.clearShadow();
2804
- var l = t.timeRangeSelecting, v = 7 * l.y + l.x, u = 7 * s.y + s.x, a = Math.abs(u - v) + 1;
2805
- a < 1 && (a = 1);
2806
- var f = v < u ? l : s;
2807
- t.timeRangeSelecting.from = { x: f.x, y: f.y }, t.timeRangeSelecting.width = a, t.timeRangeSelecting.moved = !0, n.drawShadow(f.x, f.y, 0, a, 0, null);
3005
+ var l = t.timeRangeSelecting, v = 7 * l.y + l.x, u = 7 * a.y + a.x, s = Math.abs(u - v) + 1;
3006
+ s < 1 && (s = 1);
3007
+ var f = v < u ? l : a;
3008
+ t.timeRangeSelecting.from = { x: f.x, y: f.y }, t.timeRangeSelecting.width = s, t.timeRangeSelecting.moved = !0, n.drawShadow(f.x, f.y, 0, s, 0, null);
2808
3009
  }
2809
3010
  };
2810
3011
  }, this.h = function () {
@@ -2813,16 +3014,16 @@ if ("undefined" == typeof DayPilot)
2813
3014
  for (var e = 0; e < this.cells[t].length; e++)
2814
3015
  this.cells[t][e].style.top = this.getRowTop(e) + "px", this.cells[t][e].style.height = this.rows[e].getHeight() + "px";
2815
3016
  }, this.getCellBelowPoint = function (t, e) {
2816
- for (var i = Math.floor(this.nav.top.clientWidth / this.getColCount()), n = Math.min(Math.floor(t / i), this.getColCount() - 1), s = null, a = this.headerHeight, l = 0, o = 0; o < this.rows.length; o++) {
2817
- var r = a;
2818
- if (a += this.rows[o].getHeight(), e < a) {
2819
- l = e - r, s = o;
3017
+ for (var i = Math.floor(this.nav.top.clientWidth / this.getColCount()), n = Math.min(Math.floor(t / i), this.getColCount() - 1), a = null, s = this.headerHeight, l = 0, o = 0; o < this.rows.length; o++) {
3018
+ var r = s;
3019
+ if (s += this.rows[o].getHeight(), e < s) {
3020
+ l = e - r, a = o;
2820
3021
  break;
2821
3022
  }
2822
3023
  }
2823
- null === s && (s = this.rows.length - 1);
3024
+ null === a && (a = this.rows.length - 1);
2824
3025
  var h = {};
2825
- return h.x = n, h.y = s, h.relativeY = l, h;
3026
+ return h.x = n, h.y = a, h.relativeY = l, h;
2826
3027
  }, this.getCellFromDate = function (t) {
2827
3028
  for (var e = DayPilot.DateUtil.daysDiff(this.firstDate, t), i = { x: 0, y: 0 }; e >= 7;)
2828
3029
  i.y++, e -= 7;
@@ -2836,8 +3037,8 @@ if ("undefined" == typeof DayPilot)
2836
3037
  i.setAttribute("unselectable", "on"), i.style.position = "absolute", i.style.left = this.getCellWidth() * e + "%", i.style.width = this.getCellWidth() + "%", i.style.top = "0px", i.style.height = this.headerHeight + "px";
2837
3038
  var n = e + this.getWeekStart();
2838
3039
  n > 6 && (n -= 7), i.className = this.u("_header");
2839
- var a = document.createElement("div");
2840
- a.setAttribute("unselectable", "on"), a.innerHTML = s.locale().dayNames[n], i.appendChild(a), a.style.position = "absolute", a.style.top = "0px", a.style.bottom = "0px", a.style.left = "0px", a.style.right = "0px", a.className = this.u("_header_inner"), a.innerHTML = s.locale().dayNames[n], t.appendChild(i);
3040
+ var s = document.createElement("div");
3041
+ s.setAttribute("unselectable", "on"), s.innerHTML = a.locale().dayNames[n], i.appendChild(s), s.style.position = "absolute", s.style.top = "0px", s.style.bottom = "0px", s.style.left = "0px", s.style.right = "0px", s.className = this.u("_header_inner"), s.innerHTML = a.locale().dayNames[n], t.appendChild(i);
2841
3042
  for (var l = 0; l < this.rows.length; l++)
2842
3043
  this.C(e, l, t);
2843
3044
  }
@@ -2846,14 +3047,14 @@ if ("undefined" == typeof DayPilot)
2846
3047
  for (var e = 0; e < this.cells[t].length; e++)
2847
3048
  this.cells[t][e].onclick = null;
2848
3049
  this.nav.cells.innerHTML = "";
2849
- }, this.D = function () { return 2 === n.api; }, this.C = function (e, i, a) {
3050
+ }, this.D = function () { return 2 === n.api; }, this.C = function (e, i, s) {
2850
3051
  var l = this.rows[i], o = this.firstDate.addDays(7 * i + e), r = document.createElement("div");
2851
3052
  if (r.setAttribute("unselectable", "on"), r.style.position = "absolute", r.style.cursor = "default", r.style.left = this.getCellWidth() * e + "%", r.style.width = this.getCellWidth() + "%", r.style.top = this.getRowTop(i) + "px", r.style.height = l.getHeight() + "px", r.className = this.u("_cell"), !this.isWeekend(o)) {
2852
3053
  var h = this.u("_cell_business");
2853
3054
  DayPilot.Util.addClass(r, h);
2854
3055
  }
2855
3056
  var c = (this.startDate.addMonths(-1).getMonth(), this.startDate.addMonths(1).getMonth(), this.startDate.getMonth(), document.createElement("div"));
2856
- c.setAttribute("unselectable", "on"), r.appendChild(c), c.style.position = "absolute", c.style.left = "0px", c.style.right = "0px", c.style.top = "0px", c.style.bottom = "0px", c.className = this.u("_cell_inner"), r.onmousedown = function (s) { "Disabled" !== n.timeRangeSelectedHandling && (n.clearShadow(), t.timeRangeSelecting = { "root": n, "x": e, "y": i, "from": { x: e, y: i }, "width": 1 }); }, r.onclick = function () {
3057
+ c.setAttribute("unselectable", "on"), r.appendChild(c), c.style.position = "absolute", c.style.left = "0px", c.style.right = "0px", c.style.top = "0px", c.style.bottom = "0px", c.className = this.u("_cell_inner"), r.onmousedown = function (a) { "Disabled" !== n.timeRangeSelectedHandling && (n.clearShadow(), t.timeRangeSelecting = { "root": n, "x": e, "y": i, "from": { x: e, y: i }, "width": 1 }); }, r.onclick = function () {
2857
3058
  var t = function (t) { var e = new DayPilot.Date(t), i = e.addDays(1); n.E(e, i); };
2858
3059
  if ("Disabled" !== n.timeRangeSelectedHandling)
2859
3060
  return void t(o);
@@ -2867,27 +3068,27 @@ if ("undefined" == typeof DayPilot)
2867
3068
  }
2868
3069
  };
2869
3070
  var v = o.getDay();
2870
- 1 === v ? d.innerHTML = s.locale().monthNames[o.getMonth()] + " " + v : d.innerHTML = v, c.appendChild(d), this.cells[e][i] = r, a.appendChild(r);
2871
- }, this.getWeekStart = function () { return s.locale().weekStarts; }, this.getColCount = function () { return 7; }, this.getCellWidth = function () { return 14.285; }, this.getRowTop = function (t) {
3071
+ 1 === v ? d.innerHTML = a.locale().monthNames[o.getMonth()] + " " + v : d.innerHTML = v, c.appendChild(d), this.cells[e][i] = r, s.appendChild(r);
3072
+ }, this.getWeekStart = function () { return a.locale().weekStarts; }, this.getColCount = function () { return 7; }, this.getCellWidth = function () { return 14.285; }, this.getRowTop = function (t) {
2872
3073
  for (var e = this.headerHeight, i = 0; i < t; i++)
2873
3074
  e += this.rows[i].getHeight();
2874
3075
  return e;
2875
- }, this.F = function (t, e, i) { var n = {}; n.action = t, n.parameters = i, n.data = e, n.header = this.G(); var s = "JSON" + DayPilot.JSON.stringify(n); this.backendUrl && DayPilot.request(this.backendUrl, this.H, s, this.ajaxError); }, this.H = function (t) { n.a(t.responseText); }, this.G = function () { var t = {}; return t.control = "dpm", t.id = this.id, t.v = this.v, t.visibleStart = new DayPilot.Date(this.firstDate), t.visibleEnd = t.visibleStart.addDays(this.days), t.startDate = n.startDate, t.timeFormat = this.timeFormat, t.weekStarts = this.weekStarts, t; }, this.eventClickCallBack = function (t, e) { this.F("EventClick", e, t); }, this.w = function (e) { t.movingEvent = null, t.resizingEvent = null; var i = this, e = e || window.event; e.ctrlKey; e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(), n.eventClickSingle(i, e); }, this.eventClickSingle = function (t, e) {
3076
+ }, this.F = function (t, e, i) { var n = {}; n.action = t, n.parameters = i, n.data = e, n.header = this.G(); var a = "JSON" + DayPilot.JSON.stringify(n); this.backendUrl && DayPilot.request(this.backendUrl, this.H, a, this.ajaxError); }, this.H = function (t) { n.a(t.responseText); }, this.G = function () { var t = {}; return t.control = "dpm", t.id = this.id, t.v = this.v, t.visibleStart = new DayPilot.Date(this.firstDate), t.visibleEnd = t.visibleStart.addDays(this.days), t.startDate = n.startDate, t.timeFormat = this.timeFormat, t.weekStarts = this.weekStarts, t; }, this.eventClickCallBack = function (t, e) { this.F("EventClick", e, t); }, this.w = function (e) { t.movingEvent = null, t.resizingEvent = null; var i = this, e = e || window.event; e.ctrlKey; e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(), n.eventClickSingle(i, e); }, this.eventClickSingle = function (t, e) {
2876
3077
  var i = t.event;
2877
3078
  if (i.client.clickEnabled())
2878
3079
  if (n.D()) {
2879
- var s = {};
2880
- if (s.e = i, s.control = n, s.div = t, s.originalEvent = e, s.meta = e.metaKey, s.ctrl = e.ctrlKey, s.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventClick && (n.j.apply(function () { n.onEventClick(s); }), s.preventDefault.value))
3080
+ var a = {};
3081
+ if (a.e = i, a.control = n, a.div = t, a.originalEvent = e, a.meta = e.metaKey, a.ctrl = e.ctrlKey, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventClick && (n.j.apply(function () { n.onEventClick(a); }), a.preventDefault.value))
2881
3082
  return;
2882
3083
  switch (n.eventClickHandling) {
2883
3084
  case "CallBack":
2884
3085
  n.eventClickCallBack(i);
2885
3086
  break;
2886
3087
  case "ContextMenu":
2887
- var a = i.client.contextMenu();
2888
- a ? a.show(i) : n.contextMenu && n.contextMenu.show(i);
3088
+ var s = i.client.contextMenu();
3089
+ s ? s.show(i) : n.contextMenu && n.contextMenu.show(i);
2889
3090
  }
2890
- "function" == typeof n.onEventClicked && n.j.apply(function () { n.onEventClicked(s); });
3091
+ "function" == typeof n.onEventClicked && n.j.apply(function () { n.onEventClicked(a); });
2891
3092
  }
2892
3093
  else
2893
3094
  switch (n.eventClickHandling) {
@@ -2934,22 +3135,22 @@ if ("undefined" == typeof DayPilot)
2934
3135
  break;
2935
3136
  case "JavaScript": n.onEventDelete(t);
2936
3137
  }
2937
- }, this.eventDeleteCallBack = function (t, e) { this.F("EventDelete", e, t); }, this.eventDeletePostBack = function (t, e) { this.J("EventDelete", e, t); }, this.eventMoveCallBack = function (t, e, i, n, s) {
3138
+ }, this.eventDeleteCallBack = function (t, e) { this.F("EventDelete", e, t); }, this.eventDeletePostBack = function (t, e) { this.J("EventDelete", e, t); }, this.eventMoveCallBack = function (t, e, i, n, a) {
2938
3139
  if (!e)
2939
3140
  throw "newStart is null";
2940
3141
  if (!i)
2941
3142
  throw "newEnd is null";
2942
- var a = {};
2943
- a.e = t, a.newStart = e, a.newEnd = i, a.position = s, this.F("EventMove", n, a);
2944
- }, this.K = function (t, e, i, s, a, l) {
3143
+ var s = {};
3144
+ s.e = t, s.newStart = e, s.newEnd = i, s.position = a, this.F("EventMove", n, s);
3145
+ }, this.K = function (t, e, i, a, s, l) {
2945
3146
  var o = t.start().getTimePart(), r = t.end().getDatePart();
2946
3147
  r !== t.end() && (r = r.addDays(1));
2947
3148
  var h = DayPilot.DateUtil.diff(t.end(), r), c = this.getDateFromCell(e, i);
2948
- c = c.addDays(-s);
3149
+ c = c.addDays(-a);
2949
3150
  var d = DayPilot.DateUtil.daysSpan(t.start(), t.end()) + 1, v = c.addDays(d), u = c.addTime(o), f = v.addTime(h);
2950
3151
  if (n.D()) {
2951
3152
  var p = {};
2952
- if (p.e = t, p.control = n, p.newStart = u, p.newEnd = f, p.ctrl = a.ctrlKey, p.shift = a.shiftKey, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventMove && (n.j.apply(function () { n.onEventMove(p); }), p.preventDefault.value))
3153
+ if (p.e = t, p.control = n, p.newStart = u, p.newEnd = f, p.ctrl = s.ctrlKey, p.shift = s.shiftKey, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventMove && (n.j.apply(function () { n.onEventMove(p); }), p.preventDefault.value))
2953
3154
  return;
2954
3155
  switch (n.eventMoveHandling) {
2955
3156
  case "CallBack":
@@ -2971,12 +3172,12 @@ if ("undefined" == typeof DayPilot)
2971
3172
  throw "newStart is null";
2972
3173
  if (!i)
2973
3174
  throw "newEnd is null";
2974
- var s = {};
2975
- s.e = t, s.newStart = e, s.newEnd = i, this.F("EventResize", n, s);
3175
+ var a = {};
3176
+ a.e = t, a.newStart = e, a.newEnd = i, this.F("EventResize", n, a);
2976
3177
  }, this.L = function (t, e, i) {
2977
- var s = t.start().getTimePart(), a = t.end().getDatePart();
2978
- a !== t.end() && (a = a.addDays(1));
2979
- var l = DayPilot.DateUtil.diff(t.end(), a), o = this.getDateFromCell(e.x, e.y), r = o.addDays(i), h = o.addTime(s), c = r.addTime(l);
3178
+ var a = t.start().getTimePart(), s = t.end().getDatePart();
3179
+ s !== t.end() && (s = s.addDays(1));
3180
+ var l = DayPilot.DateUtil.diff(t.end(), s), o = this.getDateFromCell(e.x, e.y), r = o.addDays(i), h = o.addTime(a), c = r.addTime(l);
2980
3181
  if (n.D()) {
2981
3182
  var d = {};
2982
3183
  if (d.e = t, d.control = n, d.newStart = h, d.newEnd = c, d.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventResize && (n.j.apply(function () { n.onEventResize(d); }), d.preventDefault.value))
@@ -3014,7 +3215,7 @@ if ("undefined" == typeof DayPilot)
3014
3215
  case "JavaScript": n.onTimeRangeSelected(t, e);
3015
3216
  }
3016
3217
  }, this.j = {}, this.j.scope = null, this.j.notify = function () { n.j.scope && n.j.scope["$apply"](); }, this.j.apply = function (t) { t(); }, this.clearSelection = function () { n.clearShadow(); }, this.commandCallBack = function (t, e) { var i = {}; i.command = t, this.F("Command", e, i); }, this.isWeekend = function (t) { return t = new DayPilot.Date(t), 0 === t.dayOfWeek() || 6 === t.dayOfWeek(); }, this.M = {}, this.M.locale = function () { var t = DayPilot.Locale.find(n.locale); return t ? t : DayPilot.Locale.US; }, this.M.N = function () { return "Disabled" !== n.xssProtection; };
3017
- var s = this.M;
3218
+ var a = this.M;
3018
3219
  this.debug = function (t, e) { this.debuggingEnabled && (n.debugMessages || (n.debugMessages = []), n.debugMessages.push(t), "undefined" != typeof console && console.log(t)); }, this.dispose = function () { var t = n; t.nav.top && (t.b(), t.nav.top.removeAttribute("style"), t.nav.top.removeAttribute("class"), t.nav.top.innerHTML = "", t.nav.top.dp = null, t.nav.top.onmousemove = null, t.nav.top = null); }, this.O = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp)); }, this.loadFromServer = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof n.events.list || !n.events.list); }, this.m = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { n.visible = !0, n.nav.top.style.display = ""; }, this.hide = function () { n.visible = !1, n.nav.top.style.display = "none"; }, this.P = function () {
3019
3220
  if (this.id && this.id.tagName)
3020
3221
  this.nav.top = this.id;
@@ -3036,10 +3237,10 @@ if ("undefined" == typeof DayPilot)
3036
3237
  return;
3037
3238
  if (!i.event.calendar.shadow.start)
3038
3239
  return;
3039
- var n = t.movingEvent.event.calendar, s = t.movingEvent.event, a = n.shadow.start, l = n.shadow.position, o = t.movingEvent.offset;
3240
+ var n = t.movingEvent.event.calendar, a = t.movingEvent.event, s = n.shadow.start, l = n.shadow.position, o = t.movingEvent.offset;
3040
3241
  n.clearShadow(), t.movingEvent = null;
3041
3242
  var e = e || window.event;
3042
- return n.K(s, a.x, a.y, o, e, l), e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(), t.movingEvent = null, !1;
3243
+ return n.K(a, s.x, s.y, o, e, l), e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(), t.movingEvent = null, !1;
3043
3244
  }
3044
3245
  if (t.resizingEvent) {
3045
3246
  var i = t.resizingEvent;
@@ -3051,13 +3252,13 @@ if ("undefined" == typeof DayPilot)
3051
3252
  return;
3052
3253
  if (!i.event.calendar.shadow.start)
3053
3254
  return;
3054
- var n = t.resizingEvent.event.calendar, s = t.resizingEvent.event, a = n.shadow.start, r = n.shadow.width;
3055
- return n.clearShadow(), t.resizingEvent = null, n.L(s, a, r), e.cancelBubble = !0, t.resizingEvent = null, !1;
3255
+ var n = t.resizingEvent.event.calendar, a = t.resizingEvent.event, s = n.shadow.start, r = n.shadow.width;
3256
+ return n.clearShadow(), t.resizingEvent = null, n.L(a, s, r), e.cancelBubble = !0, t.resizingEvent = null, !1;
3056
3257
  }
3057
3258
  if (t.timeRangeSelecting) {
3058
3259
  if (t.timeRangeSelecting.moved) {
3059
- var h = t.timeRangeSelecting, n = h.root, a = new DayPilot.Date(n.getDateFromCell(h.from.x, h.from.y)), c = a.addDays(h.width);
3060
- n.E(a, c), n.clearShadow();
3260
+ var h = t.timeRangeSelecting, n = h.root, s = new DayPilot.Date(n.getDateFromCell(h.from.x, h.from.y)), c = s.addDays(h.width);
3261
+ n.E(s, c), n.clearShadow();
3061
3262
  }
3062
3263
  t.timeRangeSelecting = null;
3063
3264
  }
@@ -3078,22 +3279,22 @@ if ("undefined" == typeof DayPilot)
3078
3279
  var t = DayPilot.am();
3079
3280
  t && t.directive("daypilotMonth", ["$parse", function (t) {
3080
3281
  return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (e, i, n) {
3081
- var s = new DayPilot.Month(i[0]);
3082
- s.j.scope = e, s.init();
3083
- var a = n["id"];
3084
- a && (e[a] = s);
3282
+ var a = new DayPilot.Month(i[0]);
3283
+ a.j.scope = e, a.init();
3284
+ var s = n["id"];
3285
+ s && (e[s] = a);
3085
3286
  var l = n["publishAs"];
3086
3287
  if (l) {
3087
- (0, t(l).assign)(e, s);
3288
+ (0, t(l).assign)(e, a);
3088
3289
  }
3089
3290
  for (var o in n)
3090
- 0 === o.indexOf("on") && !function (i) { s[i] = function (s) { var a = t(n[i]); e["$apply"](function () { a(e, { "args": s }); }); }; }(o);
3291
+ 0 === o.indexOf("on") && !function (i) { a[i] = function (a) { var s = t(n[i]); e["$apply"](function () { s(e, { "args": a }); }); }; }(o);
3091
3292
  var r = e["$watch"], h = n["config"] || n["daypilotConfig"], c = n["events"] || n["daypilotEvents"];
3092
3293
  r.call(e, h, function (t) {
3093
3294
  for (var e in t)
3094
- s[e] = t[e];
3095
- s.update();
3096
- }, !0), r.call(e, c, function (t) { s.events.list = t, s.update(); }, !0);
3295
+ a[e] = t[e];
3296
+ a.update();
3297
+ }, !0), r.call(e, c, function (t) { a.events.list = t, a.update(); }, !0);
3097
3298
  } };
3098
3299
  }]);
3099
3300
  }(), "undefined" != typeof Sys && Sys.Application && Sys.Application.notifyScriptLoaded && Sys.Application.notifyScriptLoaded();
@@ -3104,7 +3305,7 @@ if ("undefined" == typeof DayPilot)
3104
3305
  "undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () {
3105
3306
  if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.nav) {
3106
3307
  DayPilot.Navigator = function (t, e) {
3107
- this.v = "2022.3.432-lite";
3308
+ this.v = "2022.4.438-lite";
3108
3309
  var i = this;
3109
3310
  this.id = t, this.api = 2, this.isNavigator = !0, this.autoFocusOnClick = !0, this.weekStarts = "Auto", this.selectMode = "Day", this.titleHeight = 30, this.dayHeaderHeight = 30, this.bound = null, this.cellWidth = 30, this.cellHeight = 30, this.cssClassPrefix = "navigator_default", this.freeHandSelectionEnabled = !1, this.selectionStart = (new DayPilot.Date).getDatePart(), this.selectionEnd = null, this.selectionDay = null, this.showMonths = 1, this.skipMonths = 1, this.command = "navigate", this.year = (new DayPilot.Date).getYear(), this.month = (new DayPilot.Date).getMonth() + 1, this.showWeekNumbers = !1, this.weekNumberAlgorithm = "Auto", this.rowsPerMonth = "Six", this.orientation = "Vertical", this.locale = "en-us", this.rtl = !1, this.visible = !0, this.timeRangeSelectedHandling = "Bind", this.visibleRangeChangedHandling = "Enabled", this.onVisibleRangeChange = null, this.onVisibleRangeChanged = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.nav = {}, this.a = {}, this.b = function () { this.root.dp = this, this.root.className = this.c("_main"), "Horizontal" === this.orientation ? (this.root.style.width = this.showMonths * (7 * a.cellWidth() + this.d()) + "px", this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : this.root.style.width = 7 * a.cellWidth() + this.d() + "px", this.rtl && (this.root.style.direction = "rtl"), this.root.style.position = "relative", this.visible || (this.root.style.display = "none"); var t = document.createElement("input"); t.type = "hidden", t.name = i.id + "_state", t.id = t.name, this.root.appendChild(t), this.state = t, this.startDate ? this.startDate = new DayPilot.Date(this.startDate).firstDayOfMonth() : this.startDate = DayPilot.Date.fromYearMonthDay(this.year, this.month), this.calendars = [], this.selected = [], this.months = []; }, this.e = function () { return 2 === i.api; }, this.f = function () { this.root.innerHTML = ""; }, this.c = function (t) { var e = this.theme || this.cssClassPrefix; return e ? e + t : ""; }, this.g = function (t, e) { var i = this.c("_" + e); DayPilot.Util.addClass(t, i); }, this.h = function (t, e) { var i = this.c("_" + e); DayPilot.Util.removeClass(t, i); }, this.i = function (t, e) {
3110
3311
  var s = {};