@daypilot/daypilot-lite-angular 3.10.1 → 3.12.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.
@@ -3,7 +3,7 @@ import { EventEmitter, Component, Output, Input, NgModule } from '@angular/core'
3
3
 
4
4
  //@ts-nocheck
5
5
  /*
6
- Copyright © 2022 Annpoint, s.r.o.
6
+ Copyright © 2023 Annpoint, s.r.o.
7
7
 
8
8
  Licensed under the Apache License, Version 2.0 (the "License");
9
9
  you may not use this file except in compliance with the License.
@@ -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;
@@ -115,17 +118,17 @@ var DayPilot;
115
118
  })(DayPilot || (DayPilot = {}));
116
119
  /*
117
120
  DayPilot Lite
118
- Copyright (c) 2005 - 2022 Annpoint s.r.o.
121
+ Copyright (c) 2005 - 2023 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: 2023.1.447-lite
122
125
  */
123
126
  if ("undefined" == typeof DayPilot)
124
127
  var DayPilot = {};
125
128
  !function () {
126
129
  function e(e) { var t = DayPilot.Date.Cache.Ticks; if (t[e])
127
- return DayPilot.Stats.cacheHitsTicks += 1, t[e]; var a, r = new Date(e), o = r.getUTCMilliseconds(); a = 0 === o ? "" : o < 10 ? ".00" + o : o < 100 ? ".0" + o : "." + o; var n = r.getUTCSeconds(); n < 10 && (n = "0" + n); var i = r.getUTCMinutes(); i < 10 && (i = "0" + i); var d = r.getUTCHours(); d < 10 && (d = "0" + d); var l = r.getUTCDate(); l < 10 && (l = "0" + l); var s = r.getUTCMonth() + 1; s < 10 && (s = "0" + s); var u = r.getUTCFullYear(); if (u <= 0)
128
- throw "The minimum year supported is 1."; u < 10 ? u = "000" + u : u < 100 ? u = "00" + u : u < 1e3 && (u = "0" + u); var c = u + "-" + s + "-" + l + "T" + d + ":" + i + ":" + n + a; return t[e] = c, c; }
130
+ return DayPilot.Stats.cacheHitsTicks += 1, t[e]; var a, r = new Date(e), o = r.getUTCMilliseconds(); a = 0 === o ? "" : o < 10 ? ".00" + o : o < 100 ? ".0" + o : "." + o; var n = r.getUTCSeconds(); n < 10 && (n = "0" + n); var i = r.getUTCMinutes(); i < 10 && (i = "0" + i); var l = r.getUTCHours(); l < 10 && (l = "0" + l); var d = r.getUTCDate(); d < 10 && (d = "0" + d); var s = r.getUTCMonth() + 1; s < 10 && (s = "0" + s); var u = r.getUTCFullYear(); if (u <= 0)
131
+ throw "The minimum year supported is 1."; u < 10 ? u = "000" + u : u < 100 ? u = "00" + u : u < 1e3 && (u = "0" + u); var c = u + "-" + s + "-" + d + "T" + l + ":" + i + ":" + n + a; return t[e] = c, c; }
129
132
  function t(e, t) { return !DayPilot.Util.isNullOrUndefined(e) && (!DayPilot.Util.isNullOrUndefined(t) && e.toLocaleLowerCase() === t.toLocaleLowerCase()); }
130
133
  function a(e) { e = Math.min(e, 255), e = Math.max(e, 0); var t = e.toString(16); return e < 16 ? "0" + t : t; }
131
134
  if ("undefined" == typeof DayPilot.$) {
@@ -155,7 +158,7 @@ if ("undefined" == typeof DayPilot)
155
158
  else
156
159
  a = { x: r.x, y: r.y };
157
160
  else if (a = DayPilot.mo2(e, t), !a)
158
- return null; return a.shift = t.shiftKey, a.meta = t.metaKey, a.ctrl = t.ctrlKey, a.alt = t.altKey, a; }, 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) { if (!e)
161
+ return null; return a.shift = t.shiftKey, a.meta = t.metaKey, a.ctrl = t.ctrlKey, a.alt = t.altKey, a; }, 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) { if (!e)
159
162
  return null; if (e.getBoundingClientRect) {
160
163
  var a = DayPilot.absBoundingClientBased(e);
161
164
  if (t) {
@@ -171,7 +174,9 @@ if ("undefined" == typeof DayPilot)
171
174
  return { x: pageXOffset, y: pageYOffset }; var e = DayPilot.doc(); return { x: e.scrollLeft, y: e.scrollTop }; }, DayPilot.indexOf = function (e, t) { if (!e || !e.length)
172
175
  return -1; for (var a = 0; a < e.length; a++)
173
176
  if (e[a] === t)
174
- return a; return -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.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) { var t, a, r, o = e.attributes; if (o)
177
+ return a; return -1; }, DayPilot.ac = function (e, t) { if (!t)
178
+ var t = []; for (var a = 0; e.children && a < e.children.length; a++)
179
+ t.push(e.children[a]), DayPilot.ac(e.children[a], t); return t; }, 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) { var t, a, r, o = e.attributes; if (o)
175
180
  for (a = o.length, t = 0; t < a; t += 1)
176
181
  o[t] && (r = o[t].name, "function" == typeof e[r] && (e[r] = null)); if (o = e.childNodes)
177
182
  for (a = o.length, t = 0; t < a; t += 1) {
@@ -185,7 +190,7 @@ if ("undefined" == typeof DayPilot)
185
190
  return 200 !== o.status && 304 !== o.status ? void (r ? r(o) : window.console && console.log("HTTP error " + o.status)) : void t(o); }, 4 !== o.readyState && ("object" == typeof a && (a = JSON.stringify(a)), o.send(a))); }, DayPilot.ajax = function (e) { if (!e)
186
191
  throw new DayPilot.Exception("Parameter object required."); if ("string" != typeof e.url)
187
192
  throw new DayPilot.Exception("The parameter object must have 'url' property."); var t = DayPilot.createXmlHttp(); if (!t)
188
- throw new DayPilot.Exception("Unable to create XMLHttpRequest object"); 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 || {}; 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 () { if (4 === t.readyState)
193
+ throw new DayPilot.Exception("Unable to create XMLHttpRequest object"); 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 || {}; 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 () { if (4 === t.readyState)
189
194
  if (200 === t.status || 201 === t.status || 204 === t.status || 304 === t.status) {
190
195
  var e = {};
191
196
  e.request = t, t.responseText && (e.data = JSON.parse(t.responseText)), n(e);
@@ -215,18 +220,163 @@ if ("undefined" == typeof DayPilot)
215
220
  if (e.hasOwnProperty(a)) {
216
221
  var r = {};
217
222
  r.key = a, r.val = e[a], t.push(r);
218
- } return t; }, 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) { 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)
223
+ } return t; }, 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) { var a = a || {}, o = a.areas, n = a.allowed || function () { return !0; }, i = a.offsetX || 0; 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) { if (DayPilot.Areas.isVisible(r)) {
224
+ var o = DayPilot.Areas.createArea(e, t, r, { "offsetX": i, "eventDiv": a.eventDiv });
225
+ e.appendChild(o);
226
+ } })); }, 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, {}); }) : []; };
227
+ 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; };
228
+ DayPilot.Areas.showAreas = function (e, t, a, r, o) { if (!DayPilot.Global.resizing && !DayPilot.Global.moving && !DayPilot.Global.selecting && !e.active && DayPilot.browser.hover) {
229
+ if (DayPilot.Areas.all && DayPilot.Areas.all.length > 0)
230
+ for (var n = 0; n < DayPilot.Areas.all.length; n++) {
231
+ var i = DayPilot.Areas.all[n];
232
+ i !== e && DayPilot.Areas.hideAreas(i, a);
233
+ }
234
+ 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)) {
235
+ e.areas = [];
236
+ for (var n = 0; n < r.length; n++) {
237
+ var l = r[n];
238
+ if (!DayPilot.Areas.isVisible(l)) {
239
+ var d = DayPilot.Areas.createArea(e, t, l, o);
240
+ e.areas.push(d), e.appendChild(d), DayPilot.Areas.all.push(e);
241
+ }
242
+ }
243
+ e.active.children = DayPilot.ac(e);
244
+ }
245
+ } }, DayPilot.Areas.createArea = function (e, t, a, r) {
246
+ function o(e) { return "string" == typeof e && isNaN(e) ? e : "undefined" != typeof e ? e + "px" : void 0; }
247
+ function n(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; }
248
+ function i(e, t, a) { DayPilot.Bubble && DayPilot.Bubble.touchPosition(a), e.calendar.bubble && e.calendar.bubble.showEvent(e, !0); }
249
+ function l(e, t, a, r) {
250
+ DayPilot.Menu && DayPilot.Menu.touchPosition(r);
251
+ var o = a.contextMenu || a.menu;
252
+ if (o instanceof DayPilot.Menu || (t.isEvent && t.client.contextMenu() ? o = t.client.contextMenu() : t.isEvent && t.calendar.contextMenu && (o = t.calendar.contextMenu)),
253
+ o && o.show) {
254
+ var n = { "type": "area", "div": e, "e": t, "area": a, "a": s };
255
+ o.show(t, { "initiator": n });
256
+ }
257
+ }
258
+ var r = r || {}, d = (r.offsetX || 0, r.eventDiv || e), s = document.createElement("div");
259
+ s.isActiveArea = !0, s.area = a, s.setAttribute("unselectable", "on");
260
+ var u = a.w || a.width, c = a.h || a.height, f = a.cssClass || a.css || a.className;
261
+ if ("undefined" != typeof a.style && s.setAttribute("style", a.style), s.style.position = "absolute", s.style.width = o(u), s.style.height = o(c), s.style.right = o(a.right), s.style.top = o(a.top), s.style.left = o(a.left), s.style.bottom = o(a.bottom), "undefined" != typeof a.html || "undefined" != typeof a.text)
262
+ s.innerHTML = DayPilot.Util.escapeTextHtml(a.text, a.html);
263
+ else if (a.icon) {
264
+ var y = document.createElement("i");
265
+ y.className = a.icon, s.appendChild(y);
266
+ }
267
+ else if (a.image) {
268
+ var m = document.createElement("img");
269
+ m.src = a.image, s.appendChild(m);
270
+ }
271
+ else if (a.symbol) {
272
+ var h = "http://www.w3.org/2000/svg", p = document.createElementNS(h, "svg");
273
+ p.setAttribute("width", "100%"), p.setAttribute("height", "100%");
274
+ var g = document.createElementNS(h, "use");
275
+ g.setAttribute("href", a.symbol), p.appendChild(g), s.appendChild(p);
276
+ }
277
+ 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)
278
+ switch (s.style.display = "flex", a.verticalAlignment) {
279
+ case "center":
280
+ s.style.alignItems = "center";
281
+ break;
282
+ case "top":
283
+ s.style.alignItems = "flex-start";
284
+ break;
285
+ case "bottom": s.style.alignItems = "flex-end";
286
+ }
287
+ if (a.horizontalAlignment)
288
+ switch (s.style.display = "flex", a.horizontalAlignment) {
289
+ case "right":
290
+ s.style.justifyContent = "flex-end";
291
+ break;
292
+ case "left":
293
+ s.style.justifyContent = "flex-start";
294
+ break;
295
+ case "center": s.style.justifyContent = "center";
296
+ }
297
+ if ("ResizeEnd" === a.action || "ResizeStart" === a.action || "Move" === a.action) {
298
+ if (t.calendar.isCalendar)
299
+ switch (a.action) {
300
+ case "ResizeEnd":
301
+ a.cursor = "s-resize", a.dpBorder = "bottom";
302
+ break;
303
+ case "ResizeStart":
304
+ a.cursor = "n-resize", a.dpBorder = "top";
305
+ break;
306
+ case "Move": a.cursor = "move";
307
+ }
308
+ if (t.calendar.isScheduler || t.calendar.isMonth)
309
+ switch (a.action) {
310
+ case "ResizeEnd":
311
+ a.cursor = "e-resize", a.dpBorder = "right";
312
+ break;
313
+ case "ResizeStart":
314
+ a.cursor = "w-resize", a.dpBorder = "left";
315
+ break;
316
+ case "Move": a.cursor = "move";
317
+ }
318
+ 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);
319
+ }
320
+ if (("ResizeEnd" === a.action || "ResizeStart" === a.action) && t.isEvent && t.calendar.internal.touch) {
321
+ 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);
322
+ DayPilot.rePassive(s, DayPilot.touch.start, b);
323
+ }
324
+ if ("ContextMenu" === a.action && t.isEvent && t.calendar.internal.touch) {
325
+ var b = function (e, t, a) { return function (r) { r.cancelBubble = !0, r.preventDefault(), l(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);
326
+ DayPilot.reNonPassive(s, DayPilot.touch.start, b), DayPilot.reNonPassive(s, DayPilot.touch.end, D);
327
+ }
328
+ if ("Bubble" === a.action && t.isEvent && t.calendar.internal.touch) {
329
+ var b = function (e, t, a) { return function (e) { e.cancelBubble = !0, e.preventDefault(); var r = n(a, t, e); if (!r.preventDefault.value) {
330
+ i(t, a, e);
331
+ t.calendar.internal.touch.preventEventTap = !0, "function" == typeof a.onClicked && a.onClicked(r);
332
+ } }; }(d, t, a), D = function (e, t, a) { return function (e) { e.cancelBubble = !0, e.preventDefault(); }; }(d, t, a);
333
+ DayPilot.reNonPassive(s, DayPilot.touch.start, b), DayPilot.reNonPassive(s, DayPilot.touch.end, D);
334
+ }
335
+ if ("Move" === a.action && t.isEvent && t.calendar.internal.touch) {
336
+ 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);
337
+ DayPilot.rePassive(s, DayPilot.touch.start, b);
338
+ }
339
+ 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) {
340
+ var b = function (e, t, a) { return function (e) { var r = n(a, t, e); "function" == typeof a.onClicked && a.onClicked(r), e.preventDefault(), e.stopPropagation(); }; }(d, t, a);
341
+ DayPilot.reNonPassive(s, DayPilot.touch.start, b);
342
+ }
343
+ return s.onmousedown = function (e, t, a) { return function (r) { if ("function" == typeof a.onmousedown && a.onmousedown(r), "function" == typeof a.mousedown) {
344
+ var o = {};
345
+ o.area = a, o.div = e, o.originalEvent = r, o.source = t, a.mousedown(o);
346
+ } if ("Move" === a.action && t.isRow) {
347
+ var n = t.$.row;
348
+ (0, t.calendar.internal.rowStartMoving)(n);
349
+ } "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); "Move" !== a.action && "ResizeEnd" !== a.action && "ResizeStart" !== a.action && a.action && "Default" !== a.action && (r.preventDefault(), r.cancelBubble = !0); }; }(e, t, a), s.onclick = function (e, t, a) { return function (r) { var o = n(a, t, r); if (!o.preventDefault.value) {
350
+ switch (a.action) {
351
+ case "ContextMenu":
352
+ l(e, t, a, r), r.cancelBubble = !0;
353
+ break;
354
+ case "None": r.cancelBubble = !0;
355
+ }
356
+ "function" == typeof a.onClicked && a.onClicked(o);
357
+ } }; }(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;
358
+ }, DayPilot.Areas.all = [], DayPilot.Areas.hideAreas = function (e, t) { if (e && e && e.active) {
359
+ var a = e.active, r = e.areas;
360
+ if (a && a.children && t) {
361
+ var o = t.toElement || t.relatedTarget;
362
+ if (~DayPilot.indexOf(a.children, o))
363
+ return;
364
+ }
365
+ if (!r || 0 === r.length)
366
+ return void (e.active = null);
367
+ DayPilot.de(r), e.active = null, e.areas = [], DayPilot.rfa(DayPilot.Areas.all, e), a.children = null;
368
+ } }, DayPilot.Areas.hideAll = function (e) { if (DayPilot.Areas.all && 0 !== DayPilot.Areas.all.length)
369
+ for (var t = 0; t < DayPilot.Areas.all.length; t++)
370
+ DayPilot.Areas.hideAreas(DayPilot.Areas.all[t], e); }, DayPilot.Exception = function (e) { return new Error(e); }, DayPilot.Locale = function (e, t) { 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)
219
371
  for (var a in t)
220
372
  this[a] = t[a]; }, DayPilot.Locale.all = {}, DayPilot.Locale.find = function (e) { if (!e)
221
- return null; var t = e.toLowerCase(); return t.length > 2 && (t = DayPilot.Util.replaceCharAt(t, 2, "-")), DayPilot.Locale.all[t]; }, 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", {
222
- "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
223
- })), 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) { var t = this, a = 864e5, r = 36e5, o = 6e4, n = 1e3; if (2 === arguments.length) {
224
- var i = arguments[0], d = arguments[1];
373
+ return null; var t = e.toLowerCase(); return t.length > 2 && (t = DayPilot.Util.replaceCharAt(t, 2, "-")), DayPilot.Locale.all[t]; }, 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) { var t = this, a = 864e5, r = 36e5, o = 6e4, n = 1e3; if (2 === arguments.length) {
374
+ var i = arguments[0], l = arguments[1];
225
375
  if (!(i instanceof DayPilot.Date) && "string" != typeof i)
226
376
  throw "DayPilot.Duration(): Invalid start argument, DayPilot.Date expected";
227
- if (!(d instanceof DayPilot.Date) && "string" != typeof d)
377
+ if (!(l instanceof DayPilot.Date) && "string" != typeof l)
228
378
  throw "DayPilot.Duration(): Invalid end argument, DayPilot.Date expected";
229
- "string" == typeof i && (i = new DayPilot.Date(i)), "string" == typeof d && (d = new DayPilot.Date(d)), e = d.getTime() - i.getTime();
379
+ "string" == typeof i && (i = new DayPilot.Date(i)), "string" == typeof l && (l = new DayPilot.Date(l)), e = l.getTime() - i.getTime();
230
380
  } return this.ticks = e, DayPilot.Date.Cache.DurationCtor["" + e] ? DayPilot.Date.Cache.DurationCtor["" + e] : (DayPilot.Date.Cache.DurationCtor["" + e] = this, this.toString = function (e) { if (!e)
231
381
  return t.days() + "." + t.hours() + ":" + t.minutes() + ":" + t.seconds() + "." + t.milliseconds(); var a = t.minutes(); a = (a < 10 ? "0" : "") + a; var r = e; return r = r.replace("mm", a), r = r.replace("m", t.minutes()), r = r.replace("H", t.hours()), r = r.replace("h", t.hours()), r = r.replace("d", t.days()), r = r.replace("s", t.seconds()); }, this.totalHours = function () { return t.ticks / r; }, this.totalDays = function () { return t.ticks / a; }, this.totalMinutes = function () { return t.ticks / o; }, this.totalSeconds = function () { return t.ticks / n; }, this.days = function () { return Math.floor(t.totalDays()); }, this.hours = function () { var e = t.ticks - t.days() * a; return Math.floor(e / r); }, this.minutes = function () { var e = t.ticks - Math.floor(t.totalHours()) * r; return Math.floor(e / o); }, this.seconds = function () { var e = t.ticks - Math.floor(t.totalMinutes()) * o; return Math.floor(e / n); }, void (this.milliseconds = function () { return t.ticks % n; })); }, DayPilot.Duration.weeks = function (e) { return new DayPilot.Duration(1e3 * e * 60 * 60 * 24 * 7); }, DayPilot.Duration.days = function (e) { return new DayPilot.Duration(1e3 * e * 60 * 60 * 24); }, DayPilot.Duration.hours = function (e) { return new DayPilot.Duration(1e3 * e * 60 * 60); }, DayPilot.Duration.minutes = function (e) { return new DayPilot.Duration(1e3 * e * 60); }, DayPilot.Duration.seconds = function (e) { return new DayPilot.Duration(1e3 * e); }, DayPilot.TimeSpan = function () { throw "Please use DayPilot.Duration class instead of DayPilot.TimeSpan."; };
232
382
  try {
@@ -246,7 +396,8 @@ if ("undefined" == typeof DayPilot)
246
396
  if (!(t instanceof Date))
247
397
  throw "Unrecognized parameter: use Date, number or string in ISO 8601 format";
248
398
  r = a ? DayPilot.DateUtil.fromLocal(t).getTime() : t.getTime();
249
- } var i = e(r); 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)); }, 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) { if (!e)
399
+ } var i = e(r); 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)); }, 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 = {},
400
+ 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) { if (!e)
250
401
  return this; var t = new Date(this.ticks), a = t.getUTCFullYear(), r = t.getUTCMonth() + 1; if (e > 0) {
251
402
  for (; e >= 12;)
252
403
  e -= 12, a++;
@@ -266,18 +417,18 @@ if ("undefined" == typeof DayPilot)
266
417
  }
267
418
  else
268
419
  e = e || 0; for (var r = t.dayOfWeek(); r !== e;)
269
- t = t.addDays(-1), r = t.dayOfWeek(); return new DayPilot.Date(t); }, 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); };
420
+ t = t.addDays(-1), r = t.dayOfWeek(); return new DayPilot.Date(t); }, 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); };
270
421
  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) { if (!e)
271
422
  throw "Can't create DayPilot.Date from an empty string"; var a = e.length, r = 10 === a, o = 19 === a, n = a > 19; if (!r && !o && !n)
272
423
  throw "Invalid string format (use '2010-01-01' or '2010-01-01T00:00:00'): " + e; if (DayPilot.Date.Cache.Parsing[e] && !t)
273
- return DayPilot.Stats.cacheHitsParsing += 1, DayPilot.Date.Cache.Parsing[e]; var i = e.substring(0, 4), d = e.substring(5, 7), l = e.substring(8, 10), s = new Date(0); if (s.setUTCFullYear(i, d - 1, l), r)
424
+ return DayPilot.Stats.cacheHitsParsing += 1, DayPilot.Date.Cache.Parsing[e]; var i = e.substring(0, 4), l = e.substring(5, 7), d = e.substring(8, 10), s = new Date(0); if (s.setUTCFullYear(i, l - 1, d), r)
274
425
  return DayPilot.Date.Cache.Parsing[e] = s, s; var u = e.substring(11, 13), c = e.substring(14, 16), f = e.substring(17, 19); if (s.setUTCHours(u), s.setUTCMinutes(c), s.setUTCSeconds(f), o)
275
- return DayPilot.Date.Cache.Parsing[e] = s, s; var m = e[19], y = 0; if ("." === m) {
426
+ return DayPilot.Date.Cache.Parsing[e] = s, s; var y = e[19], m = 0; if ("." === y) {
276
427
  var h = parseInt(e.substring(20, 23));
277
- s.setUTCMilliseconds(h), y = DayPilot.DateUtil.getTzOffsetMinutes(e.substring(23));
428
+ s.setUTCMilliseconds(h), m = DayPilot.DateUtil.getTzOffsetMinutes(e.substring(23));
278
429
  }
279
430
  else
280
- y = DayPilot.DateUtil.getTzOffsetMinutes(e.substring(19)); var p = new DayPilot.Date(s); return t || (p = p.addMinutes(-y)), s = p.toDate(), DayPilot.Date.Cache.Parsing[e] = s, s; }, DayPilot.DateUtil.getTzOffsetMinutes = function (e) { if (DayPilot.Util.isNullOrUndefined(e) || "" === e)
431
+ m = DayPilot.DateUtil.getTzOffsetMinutes(e.substring(19)); var p = new DayPilot.Date(s); return t || (p = p.addMinutes(-m)), s = p.toDate(), DayPilot.Date.Cache.Parsing[e] = s, s; }, DayPilot.DateUtil.getTzOffsetMinutes = function (e) { if (DayPilot.Util.isNullOrUndefined(e) || "" === e)
281
432
  return 0; if ("Z" === e)
282
433
  return 0; var t = e[0], a = parseInt(e.substring(1, 3)), r = parseInt(e.substring(4)), o = 60 * a + r; if ("-" === t)
283
434
  return -o; if ("+" === t)
@@ -290,49 +441,43 @@ if ("undefined" == typeof DayPilot)
290
441
  0 === r && (r = 12);
291
442
  return r + ":" + a + " " + (o ? "AM" : "PM");
292
443
  } return r + ":" + a; }, 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; };
293
- var r = function (e, a) {
294
- "string" == typeof a && (a = DayPilot.Locale.find(a));
295
- 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) {
296
- return a.dayNames[e.getDayOfWeek()];
297
- } }, { "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, "\\$&"); };
298
- 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) { function a(e) { return parseInt(e); } return e.indexOf(t) === -1 ? null : { "findValue": function (n) { for (var i = o(e), d = null, l = 0; l < r.length; l++) {
299
- var s = (r[l].length, t === r[l].seq), u = r[l].expr;
300
- s && (u = "(" + u + ")", d = r[l].transform), i = i.replace(r[l].seq, u);
301
- } i = "^" + i + "$"; try {
302
- var c = new RegExp(i), f = c.exec(n);
303
- return f ? (d = d || a)(f[1]) : null;
304
- }
305
- catch (e) {
306
- throw "unable to create regex from: " + i;
307
- } } }; }, this.print = function (t) { for (var a = function (e) { for (var t = 0; t < r.length; t++)
308
- if (r[t] && r[t].seq === e)
309
- return r[t]; return null; }, o = e.length <= 0, n = 0, i = []; !o;) {
310
- var d = e.substring(n), l = /%?(.)\1*/.exec(d);
311
- if (l && l.length > 0) {
312
- var s = l[0], u = a(s);
313
- u ? i.push(u) : i.push(s), n += s.length, o = e.length <= n;
314
- }
315
- else
316
- o = !0;
317
- } for (var c = 0; c < i.length; c++) {
318
- var f = i[c];
319
- "string" != typeof f && (i[c] = f.str(t));
320
- } return i.join(""); }, this.parse = function (e) { var t = this.year.findValue(e); if (!t)
321
- return null; var a = this.month.findValue(e); if (DayPilot.Util.isNullOrUndefined(a))
322
- return null; if (a > 12 || a < 1)
323
- return null; var r = this.day.findValue(e), o = DayPilot.Date.fromYearMonthDay(t, a).daysInMonth(); if (r < 1 || r > o)
324
- return null; 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; if (this.ampm && this.hours12) {
325
- var s = this.hours12.findValue(e);
326
- if (s < 1 || s > 12)
327
- return null;
328
- n = "PM" === l ? 12 === s ? 12 : s + 12 : 12 === s ? 0 : s;
329
- } if (n < 0 || n > 23)
330
- return null; if (i < 0 || i > 59)
331
- return null; if (d < 0 || d > 59)
332
- return null; var u = new Date; return u.setUTCFullYear(t, a - 1, r), u.setUTCHours(n), u.setUTCMinutes(i), u.setUTCSeconds(d), u.setUTCMilliseconds(0), new DayPilot.Date(u); }, this.init();
333
- };
444
+ var o = function (e, a) { "string" == typeof a && (a = DayPilot.Locale.find(a)); 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, "\\$&"); }; 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) { function a(e) { return parseInt(e); } return e.indexOf(t) === -1 ? null : { "findValue": function (n) { for (var i = o(e), l = null, d = 0; d < r.length; d++) {
445
+ var s = (r[d].length, t === r[d].seq), u = r[d].expr;
446
+ s && (u = "(" + u + ")", l = r[d].transform), i = i.replace(r[d].seq, u);
447
+ } i = "^" + i + "$"; try {
448
+ var c = new RegExp(i), f = c.exec(n);
449
+ return f ? (l = l || a)(f[1]) : null;
450
+ }
451
+ catch (e) {
452
+ throw "unable to create regex from: " + i;
453
+ } } }; }, this.print = function (t) { for (var a = function (e) { for (var t = 0; t < r.length; t++)
454
+ if (r[t] && r[t].seq === e)
455
+ return r[t]; return null; }, o = e.length <= 0, n = 0, i = []; !o;) {
456
+ var l = e.substring(n), d = /%?(.)\1*/.exec(l);
457
+ if (d && d.length > 0) {
458
+ var s = d[0], u = a(s);
459
+ u ? i.push(u) : i.push(s), n += s.length, o = e.length <= n;
460
+ }
461
+ else
462
+ o = !0;
463
+ } for (var c = 0; c < i.length; c++) {
464
+ var f = i[c];
465
+ "string" != typeof f && (i[c] = f.str(t));
466
+ } return i.join(""); }, this.parse = function (e) { var t = this.year.findValue(e); if (!t)
467
+ return null; var a = this.month.findValue(e); if (DayPilot.Util.isNullOrUndefined(a))
468
+ return null; if (a > 12 || a < 1)
469
+ return null; var r = this.day.findValue(e), o = DayPilot.Date.fromYearMonthDay(t, a).daysInMonth(); if (r < 1 || r > o)
470
+ return null; 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; if (this.ampm && this.hours12) {
471
+ var s = this.hours12.findValue(e);
472
+ if (s < 1 || s > 12)
473
+ return null;
474
+ n = "PM" === d ? 12 === s ? 12 : s + 12 : 12 === s ? 0 : s;
475
+ } if (n < 0 || n > 23)
476
+ return null; if (i < 0 || i > 59)
477
+ return null; if (l < 0 || l > 59)
478
+ return null; var u = new Date; return u.setUTCFullYear(t, a - 1, r), u.setUTCHours(n), u.setUTCMinutes(i), u.setUTCSeconds(l), u.setUTCMilliseconds(0), new DayPilot.Date(u); }, this.init(); };
334
479
  DayPilot.ColorUtil = {}, DayPilot.ColorUtil.hexToRgb = function (e) { if (!/^#[0-9a-f]{6}$/i.test(e))
335
- throw new DayPilot.Exception("Invalid color, only full hex color string accepted, eg. '#ffaaff'."); 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) }; }, 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) { var r = this; this.calendar = t, this.data = e ? e : {}, this.part = a ? a : {}, "undefined" == typeof this.data.id && (this.data.id = this.data.value); var o = {}, n = ["id", "text", "start", "end", "resource"]; this.isEvent = !0, this.temp = function () { if (o.dirty)
480
+ throw new DayPilot.Exception("Invalid color, only full hex color string accepted, eg. '#ffaaff'."); 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) }; }, 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) { var r = this; this.calendar = t, this.data = e ? e : {}, this.part = a ? a : {}, "undefined" == typeof this.data.id && (this.data.id = this.data.value); var o = {}, n = ["id", "text", "start", "end", "resource"]; this.isEvent = !0, this.temp = function () { if (o.dirty)
336
481
  return o; for (var e = 0; e < n.length; e++)
337
482
  o[n[e]] = r.data[n[e]]; return o.dirty = !0, o; }, this.copy = function () { for (var e = {}, t = 0; t < n.length; t++)
338
483
  e[n[t]] = r.data[n[t]]; return e; }, this.commit = function () { if (o.dirty) {
@@ -356,28 +501,28 @@ if ("undefined" == typeof DayPilot)
356
501
  for (var a = r.calendar.tagFields, o = 0; o < a.length; o++)
357
502
  t.tag[a[o]] = this.tag(a[o]); return t; }; };
358
503
  }
359
- }(), DayPilot.JSON = {}, function () { function e(e) { return e < 10 ? "0" + e : e; } 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 + '"'; } function a(e, i) { var d, l, s, u, c, f = r, m = i[e]; 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) {
360
- case "string": return t(m);
361
- case "number": return isFinite(m) ? String(m) : "null";
504
+ }(), DayPilot.JSON = {}, function () { function e(e) { return e < 10 ? "0" + e : e; } 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 + '"'; } function a(e, i) { var l, d, s, u, c, f = r, y = i[e]; 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) {
505
+ case "string": return t(y);
506
+ case "number": return isFinite(y) ? String(y) : "null";
362
507
  case "boolean":
363
- case "null": return String(m);
508
+ case "null": return String(y);
364
509
  case "object":
365
- if (!m)
510
+ if (!y)
366
511
  return "null";
367
- if (r += o, c = [], "number" == typeof m.length && !m.propertyIsEnumerable("length")) {
368
- for (u = m.length, d = 0; d < u; d += 1)
369
- c[d] = a(d, m) || "null";
512
+ if (r += o, c = [], "number" == typeof y.length && !y.propertyIsEnumerable("length")) {
513
+ for (u = y.length, l = 0; l < u; l += 1)
514
+ c[l] = a(l, y) || "null";
370
515
  return s = 0 === c.length ? "[]" : r ? "[\n" + r + c.join(",\n" + r) + "\n" + f + "]" : "[" + c.join(",") + "]", r = f, s;
371
516
  }
372
517
  if (n && "object" == typeof n)
373
- for (u = n.length, d = 0; d < u; d += 1)
374
- l = n[d], "string" == typeof l && (s = a(l, m), s && c.push(t(l) + (r ? ": " : ":") + s));
518
+ for (u = n.length, l = 0; l < u; l += 1)
519
+ d = n[l], "string" == typeof d && (s = a(d, y), s && c.push(t(d) + (r ? ": " : ":") + s));
375
520
  else
376
- for (l in m)
377
- Object.hasOwnProperty.call(m, l) && (s = a(l, m), s && c.push(t(l) + (r ? ": " : ":") + s));
521
+ for (d in y)
522
+ Object.hasOwnProperty.call(y, d) && (s = a(d, y), s && c.push(t(d) + (r ? ": " : ":") + s));
378
523
  return s = 0 === c.length ? "{}" : r ? "{\n" + r + c.join(",\n" + r) + "\n" + f + "}" : "{" + c.join(",") + "}", r = f, s;
379
- } } "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(); }); 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", '"': '\\"', "\\": "\\\\" }; "function" != typeof DayPilot.JSON.stringify && (DayPilot.JSON.stringify = function (e, t, i) { var d; if (r = "", o = "", "number" == typeof i)
380
- for (d = 0; d < i; d += 1)
524
+ } } "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(); }); 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", '"': '\\"', "\\": "\\\\" }; "function" != typeof DayPilot.JSON.stringify && (DayPilot.JSON.stringify = function (e, t, i) { var l; if (r = "", o = "", "number" == typeof i)
525
+ for (l = 0; l < i; l += 1)
381
526
  o += " ";
382
527
  else
383
528
  "string" == typeof i && (o = i); if (n = t, t && "function" != typeof t && ("object" != typeof t || "number" != typeof t.length))
@@ -404,17 +549,17 @@ if ("undefined" == typeof DayPilot)
404
549
  s.dispose(), t.unregister(s);
405
550
  } }, t.gMouseUp = function (i) { if (t.resizing) {
406
551
  if (!t.resizingShadow)
407
- return t.resizing.style.cursor = "default", document.body.style.cursor = "default", void (t.resizing = null);
552
+ return t.resizing.style.cursor = "default", document.body.style.cursor = "default", t.resizing = null, void (DayPilot.Global.resizing = null);
408
553
  var n = t.resizing.event, s = t.resizingShadow.clientHeight + 4, a = t.resizingShadow.offsetTop, l = t.resizing.dpBorder;
409
- 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);
554
+ 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);
410
555
  }
411
556
  else if (t.moving) {
412
557
  if (!t.movingShadow)
413
- return t.moving = null, void (document.body.style.cursor = "default");
558
+ return t.moving = null, DayPilot.Global.moving = null, void (document.body.style.cursor = "default");
414
559
  var a = t.movingShadow.offsetTop, n = t.moving.event;
415
560
  t.deleteShadow(t.movingShadow), DayPilot.Util.removeClass(t.moving, n.calendar.b("_event_moving_source"));
416
561
  var o = t.movingShadow.column;
417
- t.moving = null, t.movingShadow = null, n.calendar.nav.top.style.cursor = "auto", n.calendar.c(n, o, a, i);
562
+ t.moving = null, DayPilot.Global.moving = null, t.movingShadow = null, n.calendar.nav.top.style.cursor = "auto", n.calendar.c(n, o, a, i);
418
563
  }
419
564
  else if (t.selecting && null !== t.topSelectedCell) {
420
565
  var r = t.selecting.calendar;
@@ -428,7 +573,7 @@ if ("undefined" == typeof DayPilot)
428
573
  if (this instanceof t.Calendar && !this.f && (n = !0, this.f = !0), !n)
429
574
  throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
430
575
  var s = this;
431
- 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) { for (var i = e.parentNode; i && "TD" !== i.tagName;)
576
+ this.uniqueID = null, this.isCalendar = !0, this.v = "2023.1.447-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) { for (var i = e.parentNode; i && "TD" !== i.tagName;)
432
577
  i = i.parentNode; var n = document.createElement("div"); n.setAttribute("unselectable", "on"), n.style.position = "absolute", n.style.width = e.offsetWidth + "px", n.style.height = e.offsetHeight + "px", n.style.left = e.offsetLeft + "px", n.style.top = e.offsetTop + "px", n.style.boxSizing = "border-box", n.style.zIndex = 101, n.className = s.b("_shadow"); var a = document.createElement("div"); return a.className = s.b("_shadow_inner"), n.appendChild(a), i.firstChild.appendChild(n), n; }, this.s = {}, this.s.locale = function () { var e = DayPilot.Locale.find(s.locale); return e ? e : DayPilot.Locale.US; }, this.s.timeFormat = function () { return "Auto" !== s.timeFormat ? s.timeFormat : this.locale().timeFormat; }, this.s.t = function () { return "Disabled" !== s.xssProtection; };
433
578
  var a = this.s;
434
579
  this.m = function (e, t) { if (e && 0 === e.indexOf("$$$")) {
@@ -662,16 +807,16 @@ if ("undefined" == typeof DayPilot)
662
807
  n.onmousedown = null, n.onmousemove = null, n.onclick = null;
663
808
  }
664
809
  t.helper = null, t.data = null, t.event = null, DayPilot.de(t);
665
- } this.elements.events = []; }, this.Z = function (e) { var i = e.cache || e.data, n = this.nav.events, a = document.createElement("div"); 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) { var n = s.eventHeaderVisible ? s.eventHeaderHeight : 10; if ("undefined" != typeof t) {
810
+ } this.elements.events = []; }, this.Z = function (e) { var i = e.cache || e.data, n = this.nav.events, a = document.createElement("div"); 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) { var n = 5; if ("undefined" != typeof t) {
666
811
  var l = DayPilot.mo3(a, i);
667
812
  if (l && !t.resizing && !t.moving) {
668
813
  a.deleteIcon && (a.deleteIcon.style.display = "");
669
814
  var o = this.isLast;
670
- 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");
815
+ 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");
671
816
  }
672
817
  } }, a.onmousedown = function (i) { var n = i.which || i.button; if ("n-resize" !== this.style.cursor && "s-resize" !== this.style.cursor || 1 !== n) {
673
818
  if (1 === n && e.client.moveEnabled()) {
674
- t.moving = this, t.moving.event = this.event;
819
+ t.moving = this, DayPilot.Global.moving = this, t.moving.event = this.event;
675
820
  var a = t.moving.helper = {};
676
821
  a.oldColumn = s.Q[this.data.part.dayIndex].id, t.originalMouse = DayPilot.mc(i), t.originalTop = this.offsetTop;
677
822
  var l = DayPilot.mo3(this, i);
@@ -679,15 +824,15 @@ if ("undefined" == typeof DayPilot)
679
824
  }
680
825
  }
681
826
  else
682
- t.resizing = this, t.originalMouse = DayPilot.mc(i), t.originalHeight = this.offsetHeight, t.originalTop = this.offsetTop, s.nav.top.style.cursor = this.style.cursor; return !1; }; var l = document.createElement("div"); if (l.setAttribute("unselectable", "on"), l.className = s.b("_event_inner"), l.innerHTML = e.client.html(), "darker" === i.borderColor && i.backColor ? l.style.borderColor = DayPilot.ColorUtil.darker(i.backColor, 2) : l.style.borderColor = i.borderColor, i.backColor && (l.style.background = i.backColor, (DayPilot.browser.ie9 || DayPilot.browser.ielt9) && (l.style.filter = "")), i.fontColor && (l.style.color = i.fontColor), a.appendChild(l), e.client.barVisible()) {
827
+ 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; return !1; }; var l = document.createElement("div"); if (l.setAttribute("unselectable", "on"), l.className = s.b("_event_inner"), l.innerHTML = e.client.html(), "darker" === i.borderColor && i.backColor ? l.style.borderColor = DayPilot.ColorUtil.darker(i.backColor, 2) : l.style.borderColor = i.borderColor, i.backColor && (l.style.background = i.backColor, (DayPilot.browser.ie9 || DayPilot.browser.ielt9) && (l.style.filter = "")), i.fontColor && (l.style.color = i.fontColor), a.appendChild(l), e.client.barVisible()) {
683
828
  var o = e.part.height - 2, r = 100 * e.part.barTop / o, h = Math.ceil(100 * e.part.barHeight / o), c = document.createElement("div");
684
829
  c.setAttribute("unselectable", "on"), c.className = this.b("_event_bar"), c.style.position = "absolute", i.barBackColor && (c.style.backgroundColor = i.barBackColor);
685
830
  var d = document.createElement("div");
686
831
  d.setAttribute("unselectable", "on"), d.className = this.b("_event_bar_inner"), d.style.top = r + "%", 0 < h && h <= 1 ? d.style.height = "1px" : d.style.height = h + "%", i.barColor && (d.style.backgroundColor = i.barColor), c.appendChild(d), a.appendChild(c);
687
832
  } if (e.client.deleteEnabled()) {
688
833
  var u = document.createElement("div");
689
- 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);
690
- } if (n.rows[0].cells[e.part.dayIndex]) {
834
+ 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) { e.stopPropagation(); var t = this.parentNode.event; t && s.P(t); }, u.style.display = "none", a.deleteIcon = u, a.appendChild(u);
835
+ } var v = i.areas ? DayPilot.Areas.copy(i.areas) : []; if (DayPilot.Areas.attach(a, e, { "areas": v }), n.rows[0].cells[e.part.dayIndex]) {
691
836
  n.rows[0].cells[e.part.dayIndex].firstChild.appendChild(a), s.$(a);
692
837
  } s.elements.events.push(a); }, this.$ = function (e) { for (var t = e && e.childNodes ? e.childNodes.length : 0, i = 0; i < t; i++)
693
838
  try {
@@ -732,71 +877,69 @@ if ("undefined" == typeof DayPilot)
732
877
  l.unselectable = "on", l.style.position = "relative", l.style.width = "16px", l.style.height = this.headerHeight + "px", l.className = this.b("_cornerright");
733
878
  var o = document.createElement("div");
734
879
  o.className = this.b("_cornerright_inner"), l.appendChild(o), n.appendChild(l), this.nav.cornerRight = l;
735
- } return e.appendChild(t), e; }, this.ia = function () { var e = document.createElement("div"); e.style.position = "relative", e.className = this.b("_corner"), e.style.width = this.hourWidth + "px", e.style.height = this.headerHeight + "px", e.oncontextmenu = function () { return !1; }; var t = document.createElement("div"); return t.unselectable = "on", t.className = this.b("_corner_inner"), e.appendChild(t), e; }, this.o = function () { var e = this.nav.main; e.root = null, e.onmouseup = null; for (var t = 0; t < e.rows.length; t++)
736
- for (var i = e.rows[t], n = 0; n < i.cells.length; n++) {
737
- var s = i.cells[n];
738
- s.root = null, s.onmousedown = null, s.onmousemove = null, s.onmouseout = null, s.onmouseup = null;
739
- } this.fasterDispose || DayPilot.pu(e); }, this.C = function () {
740
- var e = this.nav.main, i = 18e5, n = this.J(), a = s.Q;
741
- for (e && this.o(); e && e.rows && e.rows.length > 0;)
742
- this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
743
- this.tableCreated = !0;
744
- for (var l = a.length, o = this.nav.events; o && o.rows && o.rows.length > 0;)
745
- this.fasterDispose || DayPilot.pu(o.rows[0]), o.deleteRow(0);
746
- for (var l = a.length, r = o.insertRow(-1), h = 0; h < l; h++) {
747
- var c = r.insertCell(-1);
748
- c.style.padding = "0px", c.style.border = "0px none", c.style.height = "0px", c.style.overflow = "visible", s.rtl || (c.style.textAlign = "left");
749
- var d = document.createElement("div");
750
- d.style.marginRight = s.columnMarginRight + "px", d.style.position = "relative", d.style.height = "1px", d.style.marginTop = "-1px";
751
- var u = document.createElement("div");
752
- u.style.position = "relative", c.selection = u, c.appendChild(d), c.appendChild(u);
753
- }
754
- for (var v = 0; v < n; v++) {
755
- var r = e.insertRow(-1);
756
- r.style.MozUserSelect = "none", r.style.KhtmlUserSelect = "none";
757
- for (var h = 0; h < l; h++) {
758
- var p = this.Q[h], c = r.insertCell(-1);
759
- c.start = p.start.addTime(v * i), c.end = c.start.addTime(i), c.resource = p.id, c.onmousedown = this.R, c.onmouseup = function () { return !1; }, c.onclick = function () { return !1; }, c.root = this, c.style.padding = "0px", c.style.border = "0px none", c.style.verticalAlign = "top", c.style.height = s.cellHeight + "px", c.style.overflow = "hidden", c.unselectable = "on";
760
- var d = document.createElement("div");
761
- d.unselectable = "on", d.style.height = s.cellHeight + "px", d.style.position = "relative", d.className = this.b("_cell");
762
- this.ja(c.start, c.end) && DayPilot.Util.addClass(d, s.b("_cell_business"));
763
- var f = document.createElement("div");
764
- f.setAttribute("unselectable", "on"), f.className = this.b("_cell_inner"), d.appendChild(f), c.appendChild(d), c.appendChild(d);
880
+ } return e.appendChild(t), e; }, this.ia = function () { var e = document.createElement("div"); e.style.position = "relative", e.className = this.b("_corner"), e.style.width = this.hourWidth + "px", e.style.height = this.headerHeight + "px", e.oncontextmenu = function () { return !1; }; var t = document.createElement("div"); return t.unselectable = "on", t.className = this.b("_corner_inner"), e.appendChild(t), e; }, this.o = function () {
881
+ var e = this.nav.main;
882
+ e.root = null, e.onmouseup = null;
883
+ for (var t = 0; t < e.rows.length; t++)
884
+ for (var i = e.rows[t], n = 0; n < i.cells.length; n++) {
885
+ var s = i.cells[n];
886
+ s.root = null, s.onmousedown = null, s.onmousemove = null, s.onmouseout = null,
887
+ s.onmouseup = null;
765
888
  }
889
+ this.fasterDispose || DayPilot.pu(e);
890
+ }, this.C = function () { var e = this.nav.main, i = 18e5, n = this.J(), a = s.Q; for (e && this.o(); e && e.rows && e.rows.length > 0;)
891
+ this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0); this.tableCreated = !0; for (var l = a.length, o = this.nav.events; o && o.rows && o.rows.length > 0;)
892
+ this.fasterDispose || DayPilot.pu(o.rows[0]), o.deleteRow(0); for (var l = a.length, r = o.insertRow(-1), h = 0; h < l; h++) {
893
+ var c = r.insertCell(-1);
894
+ c.style.padding = "0px", c.style.border = "0px none", c.style.height = "0px", c.style.overflow = "visible", s.rtl || (c.style.textAlign = "left");
895
+ var d = document.createElement("div");
896
+ d.style.marginRight = s.columnMarginRight + "px", d.style.position = "relative", d.style.height = "1px", d.style.marginTop = "-1px";
897
+ var u = document.createElement("div");
898
+ u.style.position = "relative", c.selection = u, c.appendChild(d), c.appendChild(u);
899
+ } for (var v = 0; v < n; v++) {
900
+ var r = e.insertRow(-1);
901
+ r.style.MozUserSelect = "none", r.style.KhtmlUserSelect = "none";
902
+ for (var h = 0; h < l; h++) {
903
+ var p = this.Q[h], c = r.insertCell(-1);
904
+ c.start = p.start.addTime(v * i), c.end = c.start.addTime(i), c.resource = p.id, c.onmousedown = this.R, c.onmouseup = function () { return !1; }, c.onclick = function () { return !1; }, c.root = this, c.style.padding = "0px", c.style.border = "0px none", c.style.verticalAlign = "top", c.style.height = s.cellHeight + "px", c.style.overflow = "hidden", c.unselectable = "on";
905
+ var d = document.createElement("div");
906
+ d.unselectable = "on", d.style.height = s.cellHeight + "px", d.style.position = "relative", d.className = this.b("_cell");
907
+ this.ja(c.start, c.end) && DayPilot.Util.addClass(d, s.b("_cell_business"));
908
+ var f = document.createElement("div");
909
+ f.setAttribute("unselectable", "on"), f.className = this.b("_cell_inner"), d.appendChild(f), c.appendChild(d), c.appendChild(d);
766
910
  }
767
- e.root = this, s.nav.scrollable.onmousemove = function (e) { var i = s.nav.scrollable; s.coords = DayPilot.mo3(i, e); var n = DayPilot.mc(e); if (t.resizing) {
768
- t.resizingShadow || (t.resizingShadow = s.r(t.resizing, !1, s.shadow));
769
- var a = s.cellHeight, l = 1, o = n.y - t.originalMouse.y;
770
- if ("bottom" === t.resizing.dpBorder) {
771
- var r = Math.floor((t.originalHeight + t.originalTop + o + a / 2) / a) * a - t.originalTop + l;
772
- r < a && (r = a);
773
- var h = s.nav.main.clientHeight;
774
- t.originalTop + r > h && (r = h - t.originalTop), t.resizingShadow.style.height = r + "px";
775
- }
776
- else if ("top" === t.resizing.dpBorder) {
777
- var c = Math.floor((t.originalTop + o - l + a / 2) / a) * a + l;
778
- c < l && (c = l), c > t.originalTop + t.originalHeight - a && (c = t.originalTop + t.originalHeight - a);
779
- var r = t.originalHeight - (c - t.originalTop);
780
- r < a ? r = a : t.resizingShadow.style.top = c + "px", t.resizingShadow.style.height = r + "px";
781
- }
911
+ } e.root = this, s.nav.scrollable.onmousemove = function (e) { var i = s.nav.scrollable; s.coords = DayPilot.mo3(i, e); var n = DayPilot.mc(e); if (t.resizing) {
912
+ t.resizingShadow || (t.resizingShadow = s.r(t.resizing, !1, s.shadow));
913
+ var a = s.cellHeight, l = 1, o = n.y - t.originalMouse.y;
914
+ if ("bottom" === t.resizing.dpBorder) {
915
+ var r = Math.floor((t.originalHeight + t.originalTop + o + a / 2) / a) * a - t.originalTop + l;
916
+ r < a && (r = a);
917
+ var h = s.nav.main.clientHeight;
918
+ t.originalTop + r > h && (r = h - t.originalTop), t.resizingShadow.style.height = r + "px";
782
919
  }
783
- else if (t.moving) {
784
- if (t.movingShadow || (t.movingShadow = s.r(t.moving, !s.h, s.shadow), t.movingShadow.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px"), !s.coords)
785
- return;
786
- var a = s.cellHeight, l = 1, d = t.moveOffsetY;
787
- d || (d = a / 2);
788
- var c = Math.floor((s.coords.y - d - l + a / 2) / a) * a + l;
789
- c < l && (c = l);
790
- var u = s.nav.events, h = s.nav.main.clientHeight, v = parseInt(t.movingShadow.style.height);
791
- c + v > h && (c = h - v), DayPilot.Util.addClass(t.moving, s.b("_event_moving_source")), t.movingShadow.parentNode.style.display = "none", t.movingShadow.style.top = c + "px", t.movingShadow.parentNode.style.display = "";
792
- var p = u.clientWidth / u.rows[0].cells.length, f = Math.floor((s.coords.x - 45) / p);
793
- f < 0 && (f = 0), f < u.rows[0].cells.length && f >= 0 && t.movingShadow.column !== f && (t.movingShadow.column = f, t.moveShadow(u.rows[0].cells[f]));
920
+ else if ("top" === t.resizing.dpBorder) {
921
+ var c = Math.floor((t.originalTop + o - l + a / 2) / a) * a + l;
922
+ c < l && (c = l), c > t.originalTop + t.originalHeight - a && (c = t.originalTop + t.originalHeight - a);
923
+ var r = t.originalHeight - (c - t.originalTop);
924
+ r < a ? r = a : t.resizingShadow.style.top = c + "px", t.resizingShadow.style.height = r + "px";
794
925
  }
795
- else if (t.selecting) {
796
- var n = DayPilot.mc(e), g = s.V.getCellCoords(), m = t.column, y = s.nav.main.rows[g.y].cells[m];
797
- n.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(y), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(y), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), s.S();
798
- } }, s.nav.scrollable.style.display = "";
799
- }, this.ja = function (e, t) { return this.businessBeginsHour < this.businessEndsHour ? !(e.getHours() < this.businessBeginsHour || e.getHours() >= this.businessEndsHour || 6 === e.getDayOfWeek() || 0 === e.getDayOfWeek()) : e.getHours() >= this.businessBeginsHour || e.getHours() < this.businessEndsHour; }, this.p = function () { var e = this.nav.header; if (e && e.rows)
926
+ }
927
+ else if (t.moving) {
928
+ if (t.movingShadow || (t.movingShadow = s.r(t.moving, !s.h, s.shadow), t.movingShadow.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px"), !s.coords)
929
+ return;
930
+ var a = s.cellHeight, l = 1, d = t.moveOffsetY;
931
+ d || (d = a / 2);
932
+ var c = Math.floor((s.coords.y - d - l + a / 2) / a) * a + l;
933
+ c < l && (c = l);
934
+ var u = s.nav.events, h = s.nav.main.clientHeight, v = parseInt(t.movingShadow.style.height);
935
+ c + v > h && (c = h - v), DayPilot.Util.addClass(t.moving, s.b("_event_moving_source")), t.movingShadow.parentNode.style.display = "none", t.movingShadow.style.top = c + "px", t.movingShadow.parentNode.style.display = "";
936
+ var p = u.clientWidth / u.rows[0].cells.length, f = Math.floor((s.coords.x - 45) / p);
937
+ f < 0 && (f = 0), f < u.rows[0].cells.length && f >= 0 && t.movingShadow.column !== f && (t.movingShadow.column = f, t.moveShadow(u.rows[0].cells[f]));
938
+ }
939
+ else if (t.selecting) {
940
+ var n = DayPilot.mc(e), g = s.V.getCellCoords(), m = t.column, y = s.nav.main.rows[g.y].cells[m];
941
+ n.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(y), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(y), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), s.S();
942
+ } }, s.nav.scrollable.style.display = ""; }, this.ja = function (e, t) { return this.businessBeginsHour < this.businessEndsHour ? !(e.getHours() < this.businessBeginsHour || e.getHours() >= this.businessEndsHour || 6 === e.getDayOfWeek() || 0 === e.getDayOfWeek()) : e.getHours() >= this.businessBeginsHour || e.getHours() < this.businessEndsHour; }, this.p = function () { var e = this.nav.header; if (e && e.rows)
800
943
  for (var t = 0; t < e.rows.length; t++)
801
944
  for (var i = e.rows[t], n = 0; n < i.cells.length; n++) {
802
945
  var s = i.cells[n];
@@ -871,7 +1014,7 @@ if ("undefined" == typeof DayPilot)
871
1014
  s.wa(), s.n(), s.nav.top.style.cursor = "auto";
872
1015
  s.w(), s.B(), s.C(), s.D(), s.E(), s.ha(), s.ua(), s.xa(), s.z(), s.A(), s.u(), s.F(), s.clearSelection(), this.visible ? this.show() : this.hide();
873
1016
  } }, this.ya = null, this.va = function (e) { if (e) {
874
- var t = { "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? s.events.list = e.list : s.events.list = e); } }, "columns": { "preInit": function () { s.columns.list = this.data; } } };
1017
+ var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? s.events.list = e.list : s.events.list = e; } }, "columns": { "preInit": function () { s.columns.list = this.data; } } };
875
1018
  this.ya = t;
876
1019
  for (var i in e)
877
1020
  if (t[i]) {
@@ -895,54 +1038,64 @@ if ("undefined" == typeof DayPilot)
895
1038
  var a = {};
896
1039
  a.data = n, this.onBeforeEventRender(a);
897
1040
  } t[e] = n; }, this.z = function () { var e = this.events.list; if (s.Ba.events = [], e) {
1041
+ if (!DayPilot.isArray(e))
1042
+ throw new DayPilot.Exception("DayPilot.Calendar.events.list expects an array object. You supplied: " + typeof e);
898
1043
  var t = e.length, i = 864e5;
899
1044
  this.cache.pixels = {};
900
1045
  var n = [];
901
1046
  this.scrollLabels = [], this.minStart = 1e4, this.maxEnd = 0;
902
1047
  for (var a = 0; a < t; a++) {
903
- var l = e[a];
1048
+ var l = e[a], o = l;
1049
+ if ("object" != typeof o)
1050
+ throw new DayPilot.Exception("Event data item must be an object");
1051
+ if (!o.start)
1052
+ throw new DayPilot.Exception("Event data item must specify 'start' property");
1053
+ if (!o.end)
1054
+ throw new DayPilot.Exception("Event data item must specify 'end' property");
1055
+ if (o instanceof DayPilot.Event)
1056
+ throw new DayPilot.Exception("DayPilot.Calendar: DayPilot.Event object detected in events.list array. Use raw event data instead.");
904
1057
  l.start = new DayPilot.Date(l.start), l.end = new DayPilot.Date(l.end);
905
1058
  }
906
1059
  if ("function" == typeof this.onBeforeEventRender)
907
1060
  for (var a = 0; a < t; a++)
908
1061
  this.Ca(a);
909
1062
  for (var a = 0; a < this.Q.length; a++) {
910
- var o = {};
911
- o.minEnd = 1e6, o.maxStart = -1, this.scrollLabels.push(o);
912
- var r = this.Q[a];
913
- r.events = [], r.lines = [], r.blocks = [];
914
- for (var h = new DayPilot.Date(r.start), c = h.getTime(), d = h.addTime(i), u = d.getTime(), v = 0; v < t; v++)
915
- if (!n[v]) {
916
- var l = e[v], p = l.start, f = l.end, g = p.getTime(), m = f.getTime();
917
- if (!(m < g)) {
918
- var y = !(m <= c || g >= u);
919
- if ("Resources" === s.viewType && (y = y && r.id === l.resource), y) {
920
- var b = new DayPilot.Event(l, s);
921
- b.part.dayIndex = a, b.part.start = c < g ? l.start : h, b.part.end = u > m ? l.end : d;
922
- var C = this.getPixels(b.part.start, r.start), w = this.getPixels(b.part.end, r.start), D = C.top, S = w.top;
923
- if (D === S && (C.cut || w.cut))
1063
+ var r = {};
1064
+ r.minEnd = 1e6, r.maxStart = -1, this.scrollLabels.push(r);
1065
+ var h = this.Q[a];
1066
+ h.events = [], h.lines = [], h.blocks = [];
1067
+ for (var c = new DayPilot.Date(h.start), d = c.getTime(), u = c.addTime(i), v = u.getTime(), p = 0; p < t; p++)
1068
+ if (!n[p]) {
1069
+ var l = e[p], f = l.start, g = l.end, m = f.getTime(), y = g.getTime();
1070
+ if (!(y < m)) {
1071
+ var b = !(y <= d || m >= v);
1072
+ if ("Resources" === s.viewType && (b = b && h.id === l.resource), b) {
1073
+ var C = new DayPilot.Event(l, s);
1074
+ C.part.dayIndex = a, C.part.start = d < m ? l.start : c, C.part.end = v > y ? l.end : u;
1075
+ var w = this.getPixels(C.part.start, h.start), D = this.getPixels(C.part.end, h.start), S = w.top, x = D.top;
1076
+ if (S === x && (w.cut || D.cut))
924
1077
  continue;
925
- var k = w.boxBottom;
926
- 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);
927
- var p = b.part.top, f = b.part.top + b.part.height;
928
- 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);
1078
+ var k = D.boxBottom;
1079
+ 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);
1080
+ var f = C.part.top, g = C.part.top + C.part.height;
1081
+ 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);
929
1082
  }
930
1083
  }
931
1084
  }
932
1085
  }
933
1086
  for (var a = 0; a < this.Q.length; a++) {
934
- var r = this.Q[a];
935
- r.events.sort(this.Da);
936
- for (var v = 0; v < r.events.length; v++) {
937
- var l = r.events[v];
938
- r.putIntoBlock(l);
1087
+ var h = this.Q[a];
1088
+ h.events.sort(this.Da);
1089
+ for (var p = 0; p < h.events.length; p++) {
1090
+ var l = h.events[p];
1091
+ h.putIntoBlock(l);
939
1092
  }
940
- for (var v = 0; v < r.blocks.length; v++) {
941
- var x = r.blocks[v];
942
- x.events.sort(this.Da);
943
- for (var H = 0; H < x.events.length; H++) {
944
- var l = x.events[H];
945
- x.putIntoLine(l);
1093
+ for (var p = 0; p < h.blocks.length; p++) {
1094
+ var P = h.blocks[p];
1095
+ P.events.sort(this.Da);
1096
+ for (var E = 0; E < P.events.length; E++) {
1097
+ var l = P.events[E];
1098
+ P.putIntoLine(l);
946
1099
  }
947
1100
  }
948
1101
  }
@@ -977,7 +1130,7 @@ if ("undefined" == typeof DayPilot)
977
1130
  }();
978
1131
  if ("undefined" == typeof DayPilot)
979
1132
  var DayPilot = {};
980
- !function () { "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (t) { this.v = "2022.3.432-lite"; var e = "navigator_" + (new Date).getTime(), i = this; this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () { 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)
1133
+ !function () { "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (t) { this.v = "2023.1.447-lite"; var e = "navigator_" + (new Date).getTime(), i = this; this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () { 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)
981
1134
  for (var e in t)
982
1135
  this[e] = t[e]; }, this.init = function () { this.date = new DayPilot.Date(this.date); var t = this.b(); this.resetTarget && !t ? this.c(this.date) : this.resetTarget || (i.date = t); var e = this.d(); return e && e.addEventListener("input", function () { i.date = i.b(), i.date && i.navigator.select(i.date, { dontNotify: !0 }); }), document.addEventListener("mousedown", function () { i.close(); }), this; }, this.close = function () { this.e && (this.e = !1, this.navigator && this.navigator.dispose(), this.div.innerHTML = "", this.div && this.div.parentNode === document.body && document.body.removeChild(this.div)); }, this.setDate = function (t) { this.date = new DayPilot.Date(t), this.c(this.date); }, this.b = function () { var t = this.d(); if (!t)
983
1136
  return this.date; var e = null; if (e = "INPUT" === t.tagName ? t.value : t.innerText, !e)
@@ -1008,7 +1161,7 @@ if ("undefined" == typeof DayPilot)
1008
1161
  "use strict";
1009
1162
  if ("undefined" == typeof DayPilot.Menu || !DayPilot.Menu.def) {
1010
1163
  var e = function () { }, t = {};
1011
- t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (n) { var i = this, o = null; 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) { u = u || {}; var a = null; 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) {
1164
+ t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (n) { var i = this, o = null; this.v = "2023.1.447-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) { u = u || {}; var a = null; 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) {
1012
1165
  i.cssOnly || (i.cssOnly = !0);
1013
1166
  var s = null;
1014
1167
  if (n && n.isRow && n.$.row.task ? (s = new DayPilot.Task(n.$.row.task, n.calendar), s.menuType = "resource") : s = n && n.isEvent && n.data.task ? new DayPilot.Task(n, n.calendar) : n, "function" == typeof i.onShow) {
@@ -1517,7 +1670,7 @@ if ("undefined" == typeof DayPilot)
1517
1670
  var DayPilot = {};
1518
1671
  "undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () { if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
1519
1672
  var t = {};
1520
- t.Month = function (e, i) { this.v = "2022.3.432-lite", this.nav = {}; var n = this; 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) { var e = null; if (t instanceof DayPilot.Event)
1673
+ t.Month = function (e, i) { this.v = "2023.1.447-lite", this.nav = {}; var n = this; 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) { var e = null; if (t instanceof DayPilot.Event)
1521
1674
  e = t.data;
1522
1675
  else {
1523
1676
  if ("object" != typeof t)
@@ -1536,48 +1689,57 @@ if ("undefined" == typeof DayPilot)
1536
1689
  var i = DayPilot.indexOf(n.events.list, e.data);
1537
1690
  n.events.list.splice(i, 1, t);
1538
1691
  }
1539
- } n.update(), n.j.notify(); }, 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) { var s = function (t) { var e = {}; e.exception = t.exception, e.request = t.request, "function" == typeof i && i(e); }, a = function (t) { var i, a = t.request; try {
1540
- i = JSON.parse(a.responseText);
1692
+ } n.update(), n.j.notify(); }, 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) { var a = function (t) { var e = {}; e.exception = t.exception, e.request = t.request, "function" == typeof i && i(e); }, s = function (t) { var i, s = t.request; try {
1693
+ i = JSON.parse(s.responseText);
1541
1694
  }
1542
1695
  catch (t) {
1543
1696
  var l = {};
1544
- return l.exception = t, void s(l);
1697
+ return l.exception = t, void a(l);
1545
1698
  } if (DayPilot.isArray(i)) {
1546
1699
  var o = {};
1547
1700
  if (o.preventDefault = function () { this.preventDefault.value = !0; }, o.data = i, "function" == typeof e && e(o), o.preventDefault.value)
1548
1701
  return;
1549
1702
  n.events.list = i, n.k && n.update();
1550
1703
  } }; if (n.eventsLoadMethod && "POST" === n.eventsLoadMethod.toUpperCase())
1551
- DayPilot.Http.ajax({ "method": "POST", "data": { "start": n.visibleStart().toString(), "end": n.visibleEnd().toString() }, "url": t, "success": a, "error": s });
1704
+ DayPilot.Http.ajax({ "method": "POST", "data": { "start": n.visibleStart().toString(), "end": n.visibleEnd().toString() }, "url": t, "success": s, "error": a });
1552
1705
  else {
1553
1706
  var l = t, o = "start=" + n.visibleStart().toString() + "&end=" + n.visibleEnd().toString();
1554
- l += l.indexOf("?") > -1 ? "&" + o : "?" + o, DayPilot.Http.ajax({ "method": "GET", "url": l, "success": a, "error": s });
1707
+ l += l.indexOf("?") > -1 ? "&" + o : "?" + o, DayPilot.Http.ajax({ "method": "GET", "url": l, "success": s, "error": a });
1555
1708
  } }, this.update = function (t) { if (n.l(t), this.k && this.cells) {
1556
1709
  n.b(), n.c(), n.d(), n.f(), n.g(), n.h(), n.m(), n.i(), this.visible ? this.show() : this.hide();
1557
1710
  } }, this.n = null, this.l = function (t) { if (t) {
1558
- var e = { "events": { "preInit": function () { var t = this.data; t && (DayPilot.isArray(t.list) ? n.events.list = t.list : n.events.list = t); } } };
1711
+ var e = { "events": { "preInit": function () { var t = this.data || []; DayPilot.isArray(t.list) ? n.events.list = t.list : n.events.list = t; } } };
1559
1712
  this.n = e;
1560
1713
  for (var i in t)
1561
1714
  if (e[i]) {
1562
- var s = e[i];
1563
- s.data = t[i], s.preInit && s.preInit();
1715
+ var a = e[i];
1716
+ a.data = t[i], a.preInit && a.preInit();
1564
1717
  }
1565
1718
  else
1566
1719
  n[i] = t[i];
1567
1720
  } }, this.o = function () { var t = this.n; for (var e in t) {
1568
1721
  var i = t[e];
1569
1722
  i.postInit && i.postInit();
1570
- } }, this.p = {}, this.p.events = [], this.q = function (t) { var e = this.p.events, i = this.events.list[t], n = {}; for (var s in i)
1571
- n[s] = i[s]; if ("function" == typeof this.onBeforeEventRender) {
1572
- var a = {};
1573
- a.data = n, this.onBeforeEventRender(a);
1723
+ } }, this.p = {}, this.p.events = [], this.q = function (t) { var e = this.p.events, i = this.events.list[t], n = {}; for (var a in i)
1724
+ n[a] = i[a]; if ("function" == typeof this.onBeforeEventRender) {
1725
+ var s = {};
1726
+ s.data = n, this.onBeforeEventRender(s);
1574
1727
  } e[t] = n; }, this.d = function () { var t = this.events.list; if (t) {
1728
+ if (!DayPilot.isArray(t))
1729
+ throw new DayPilot.Exception("DayPilot.Month.events.list expects an array object. You supplied: " + typeof t);
1575
1730
  if ("function" == typeof this.onBeforeEventRender)
1576
1731
  for (var e = 0; e < t.length; e++)
1577
1732
  this.q(e);
1578
1733
  for (var i = 0; i < t.length; i++) {
1579
- var n = t[i], s = new DayPilot.Date(n.start), a = new DayPilot.Date(n.end);
1580
- if (!(s.getTime() > a.getTime()))
1734
+ var n = t[i];
1735
+ if ("object" != typeof n)
1736
+ throw new DayPilot.Exception("Event data item must be an object");
1737
+ if (!n.start)
1738
+ throw new DayPilot.Exception("Event data item must specify 'start' property");
1739
+ if (!n.end)
1740
+ throw new DayPilot.Exception("Event data item must specify 'end' property");
1741
+ var a = new DayPilot.Date(n.start), s = new DayPilot.Date(n.end);
1742
+ if (!(a.getTime() > s.getTime()))
1581
1743
  for (var e = 0; e < this.rows.length; e++) {
1582
1744
  var l = this.rows[e], o = new DayPilot.Event(n, this);
1583
1745
  l.belongsHere(o) && (l.events.push(o), "function" == typeof this.onBeforeEventRender && (o.cache = this.p.events[i]));
@@ -1596,9 +1758,9 @@ if ("undefined" == typeof DayPilot)
1596
1758
  e.event = null, e.click = null, e.parentNode.removeChild(e);
1597
1759
  } this.elements.events = []; }, this.i = function () { this.s(); }, this.s = function () { this.elements.events = []; for (var t = 0; t < this.rows.length; t++)
1598
1760
  for (var e = this.rows[t], i = 0; i < e.lines.length; i++)
1599
- for (var n = e.lines[i], s = 0; s < n.length; s++)
1600
- this.t(n[s]); }, this.r = function (t, e) { if (!(t && e && t.start && e.start))
1601
- return 0; var i = t.start().getTime() - e.start().getTime(); return 0 !== i ? i : e.end().getTime() - t.end().getTime(); }, this.drawShadow = function (e, i, n, s, a, l) { a || (a = 0); var o = s; this.shadow = {}, this.shadow.list = [], this.shadow.start = { x: e, y: i }, this.shadow.width = s; var r = 7 * i + e - a; r < 0 && (o += r, e = 0, i = 0); for (var h = a; h >= 7;)
1761
+ for (var n = e.lines[i], a = 0; a < n.length; a++)
1762
+ this.t(n[a]); }, this.r = function (t, e) { if (!(t && e && t.start && e.start))
1763
+ return 0; var i = t.start().getTime() - e.start().getTime(); return 0 !== i ? i : e.end().getTime() - t.end().getTime(); }, this.drawShadow = function (e, i, n, a, s, l) { s || (s = 0); var o = a; this.shadow = {}, this.shadow.list = [], this.shadow.start = { x: e, y: i }, this.shadow.width = a; var r = 7 * i + e - s; r < 0 && (o += r, e = 0, i = 0); for (var h = s; h >= 7;)
1602
1764
  i--, h -= 7; if (h > e) {
1603
1765
  h > e + (7 - this.getColCount()) ? (i--, e = e + 7 - h) : (o = o - h + e, e = 0);
1604
1766
  }
@@ -1606,33 +1768,33 @@ if ("undefined" == typeof DayPilot)
1606
1768
  e -= h; i < 0 && (i = 0, e = 0); var c = null; for (t.resizingEvent ? c = "w-resize" : t.movingEvent && (c = "move"), this.nav.top.style.cursor = c; o > 0 && i < this.rows.length;) {
1607
1769
  var d = Math.min(this.getColCount() - e, o), v = this.rows[i], u = this.getRowTop(i), f = v.getHeight(), p = document.createElement("div");
1608
1770
  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;
1609
- var g = document.createElement("div");
1610
- 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++;
1771
+ var y = document.createElement("div");
1772
+ 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++;
1611
1773
  } }, this.clearShadow = function () { if (this.shadow) {
1612
1774
  for (var t = 0; t < this.shadow.list.length; t++)
1613
1775
  this.nav.top.removeChild(this.shadow.list[t]);
1614
1776
  this.shadow = null, this.nav.top.style.cursor = "";
1615
1777
  } }, this.getEventTop = function (t, e) { for (var i = this.headerHeight, n = 0; n < t; n++)
1616
- i += this.rows[n].getHeight(); return i += this.cellHeaderHeight, i += e * this.lineHeight(); }, this.getDateFromCell = function (t, e) { return this.firstDate.addDays(7 * e + t); }, this.t = function (e) { 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"); 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) { i = i || window.event; var r = i.which || i.button; if (i.cancelBubble = !0, i.stopPropagation && i.stopPropagation(), 1 === r)
1778
+ i += this.rows[n].getHeight(); return i += this.cellHeaderHeight, i += e * this.lineHeight(); }, this.getDateFromCell = function (t, e) { return this.firstDate.addDays(7 * e + t); }, this.t = function (e) { 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"); 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) { i = i || window.event; var r = i.which || i.button; if (i.cancelBubble = !0, i.stopPropagation && i.stopPropagation(), 1 === r)
1617
1779
  if (t.movingEvent = null, "w-resize" === this.style.cursor || "e-resize" === this.style.cursor) {
1618
1780
  var h = {};
1619
- 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;
1781
+ 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;
1620
1782
  }
1621
1783
  else if ("move" === this.style.cursor || e.client.moveEnabled()) {
1622
1784
  n.clearShadow();
1623
1785
  var c = DayPilot.mo2(n.nav.top, i);
1624
1786
  if (!c)
1625
1787
  return;
1626
- 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);
1788
+ 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);
1627
1789
  u && (f += u);
1628
1790
  var p = {};
1629
- 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;
1791
+ 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;
1630
1792
  } }, d.onmousemove = function (i) { if ("undefined" != typeof t && !t.movingEvent && !t.resizingEvent) {
1631
1793
  var n = DayPilot.mo3(d, i);
1632
1794
  if (n) {
1633
1795
  d.deleteIcon && (d.deleteIcon.style.display = "");
1634
- var s = 6;
1635
- 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";
1796
+ var a = 6;
1797
+ 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";
1636
1798
  }
1637
1799
  } }, d.onmouseleave = function (t) { d.deleteIcon && (d.deleteIcon.style.display = "none"), d.style.cursor = ""; }, d.onmouseenter = function (t) { d.deleteIcon && (d.deleteIcon.style.display = ""); }; var v = document.createElement("div"); if (v.setAttribute("unselectable", "on"), v.className = this.u("_event_inner"), "darker" === i.borderColor && i.backColor ? v.style.borderColor = DayPilot.ColorUtil.darker(i.backColor, 2) : v.style.borderColor = i.borderColor, i.backColor && (v.style.background = i.backColor, (DayPilot.browser.ie9 || DayPilot.browser.ielt9) && (v.style.filter = "")), i.fontColor && (v.style.color = i.fontColor), v.innerHTML = e.client.html(), d.appendChild(v), e.client.barVisible()) {
1638
1800
  var u = document.createElement("div");
@@ -1640,36 +1802,36 @@ if ("undefined" == typeof DayPilot)
1640
1802
  var f = document.createElement("div");
1641
1803
  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);
1642
1804
  } if (e.client.deleteEnabled()) {
1643
- var p = Math.floor(n.eventHeight / 2 - 9), g = document.createElement("div");
1644
- 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);
1645
- } this.elements.events.push(d), this.nav.events.appendChild(d); }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.c = function () { "string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart()); var t, e = (this.startDate, this.lastVisibleDayOfMonth()), i = DayPilot.DateUtil.daysDiff(this.firstDate, e) + 1; t = Math.ceil(i / 7), this.days = 7 * t, this.rows = []; for (var s = 0; s < t; s++) {
1646
- var a = {};
1647
- 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) { for (var s = this, a = 0; a < this.lines.length; a++) {
1648
- var l = this.lines[a];
1805
+ var p = Math.floor(n.eventHeight / 2 - 9), y = document.createElement("div");
1806
+ 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);
1807
+ } var g = i.areas ? DayPilot.Areas.copy(i.areas) : []; DayPilot.Areas.attach(d, e, { "areas": g }), this.elements.events.push(d), this.nav.events.appendChild(d); }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.c = function () { "string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart()); var t, e = (this.startDate, this.lastVisibleDayOfMonth()), i = DayPilot.DateUtil.daysDiff(this.firstDate, e) + 1; t = Math.ceil(i / 7), this.days = 7 * t, this.rows = []; for (var a = 0; a < t; a++) {
1808
+ var s = {};
1809
+ 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) { for (var a = this, s = 0; s < this.lines.length; s++) {
1810
+ var l = this.lines[s];
1649
1811
  if (l.isFree(e, i))
1650
- return l.addEvent(t, e, i, n, a), a;
1812
+ return l.addEvent(t, e, i, n, s), s;
1651
1813
  } var l = []; return l.isFree = function (t, e) { for (var i = !0, n = 0; n < this.length; n++)
1652
- t + e - 1 < this[n].part.colStart || t > this[n].part.colStart + this[n].part.colWidth - 1 || (i = !1); return i; }, 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; }, a.getStart = function () { for (var t = 0, e = 0; e < n.rows.length && e < this.index; e++)
1653
- t += n.rows[e].getHeight(); }, a.getHeight = function () { return Math.max(this.lines.length * n.lineHeight() + n.cellHeaderHeight, this.calendar.cellHeight); }, this.rows.push(a);
1814
+ t + e - 1 < this[n].part.colStart || t > this[n].part.colStart + this[n].part.colWidth - 1 || (i = !1); return i; }, 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; }, s.getStart = function () { for (var t = 0, e = 0; e < n.rows.length && e < this.index; e++)
1815
+ t += n.rows[e].getHeight(); }, s.getHeight = function () { return Math.max(this.lines.length * n.lineHeight() + n.cellHeaderHeight, this.calendar.cellHeight); }, this.rows.push(s);
1654
1816
  } this.endDate = this.firstDate.addDays(7 * t); }, this.visibleStart = function () { return n.firstDate; }, this.visibleEnd = function () { return n.endDate; }, this.getHeight = function () { for (var t = this.headerHeight, e = 0; e < this.rows.length; e++)
1655
- t += this.rows[e].getHeight(); return t; }, this.getWidth = function (t, e) { return 7 * e.y + e.x - (7 * t.y + t.x) + 1; }, this.getMinCoords = function (t, e) { return 7 * t.y + t.x < 7 * e.y + e.x ? t : e; }, this.u = function (t) { var e = this.theme || this.cssClassPrefix; return e ? e + t : ""; }, this.B = function () { var e = this.nav.top; 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"); var i = document.createElement("div"); this.nav.cells = i, i.style.position = "absolute", i.style.left = "0px", i.style.right = "0px", i.setAttribute("unselectable", "on"), e.appendChild(i); var s = document.createElement("div"); 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) { if (t.resizingEvent) {
1817
+ t += this.rows[e].getHeight(); return t; }, this.getWidth = function (t, e) { return 7 * e.y + e.x - (7 * t.y + t.x) + 1; }, this.getMinCoords = function (t, e) { return 7 * t.y + t.x < 7 * e.y + e.x ? t : e; }, this.u = function (t) { var e = this.theme || this.cssClassPrefix; return e ? e + t : ""; }, this.B = function () { var e = this.nav.top; 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"); var i = document.createElement("div"); this.nav.cells = i, i.style.position = "absolute", i.style.left = "0px", i.style.right = "0px", i.setAttribute("unselectable", "on"), e.appendChild(i); var a = document.createElement("div"); 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) { if (t.resizingEvent) {
1656
1818
  var i = DayPilot.mo2(n.nav.top, e);
1657
1819
  if (!i)
1658
1820
  return;
1659
- var s = n.getCellBelowPoint(i.x, i.y);
1821
+ var a = n.getCellBelowPoint(i.x, i.y);
1660
1822
  n.clearShadow();
1661
- var a, l, o = t.resizingEvent;
1823
+ var s, l, o = t.resizingEvent;
1662
1824
  o.start;
1663
1825
  if ("w-resize" === o.direction) {
1664
- l = s;
1826
+ l = a;
1665
1827
  var r = o.event.end();
1666
1828
  r.getDatePart() === r && (r = r.addDays(-1));
1667
1829
  var h = n.getCellFromDate(r);
1668
- a = n.getWidth(s, h);
1830
+ s = n.getWidth(a, h);
1669
1831
  }
1670
1832
  else
1671
- l = n.getCellFromDate(o.event.start()), a = n.getWidth(l, s);
1672
- a < 1 && (a = 1), n.drawShadow(l.x, l.y, 0, a);
1833
+ l = n.getCellFromDate(o.event.start()), s = n.getWidth(l, a);
1834
+ s < 1 && (s = 1), n.drawShadow(l.x, l.y, 0, s);
1673
1835
  }
1674
1836
  else if (t.movingEvent) {
1675
1837
  var i = DayPilot.mo2(n.nav.top, e);
@@ -1677,65 +1839,65 @@ if ("undefined" == typeof DayPilot)
1677
1839
  return;
1678
1840
  if (i.x === t.movingEvent.coords.x && i.y === t.movingEvent.coords.y)
1679
1841
  return;
1680
- var s = n.getCellBelowPoint(i.x, i.y);
1842
+ var a = n.getCellBelowPoint(i.x, i.y);
1681
1843
  n.clearShadow();
1682
- var c = t.movingEvent.event, d = t.movingEvent.offset, a = n.cellMode ? 1 : DayPilot.DateUtil.daysSpan(c.start(), c.end()) + 1;
1683
- a < 1 && (a = 1), n.drawShadow(s.x, s.y, 0, a, d, c);
1844
+ var c = t.movingEvent.event, d = t.movingEvent.offset, s = n.cellMode ? 1 : DayPilot.DateUtil.daysSpan(c.start(), c.end()) + 1;
1845
+ s < 1 && (s = 1), n.drawShadow(a.x, a.y, 0, s, d, c);
1684
1846
  }
1685
1847
  else if (t.timeRangeSelecting) {
1686
1848
  var i = DayPilot.mo2(n.nav.top, e);
1687
1849
  if (!i)
1688
1850
  return;
1689
- var s = n.getCellBelowPoint(i.x, i.y);
1851
+ var a = n.getCellBelowPoint(i.x, i.y);
1690
1852
  n.clearShadow();
1691
- var l = t.timeRangeSelecting, v = 7 * l.y + l.x, u = 7 * s.y + s.x, a = Math.abs(u - v) + 1;
1692
- a < 1 && (a = 1);
1693
- var f = v < u ? l : s;
1694
- 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);
1853
+ var l = t.timeRangeSelecting, v = 7 * l.y + l.x, u = 7 * a.y + a.x, s = Math.abs(u - v) + 1;
1854
+ s < 1 && (s = 1);
1855
+ var f = v < u ? l : a;
1856
+ 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);
1695
1857
  } }; }, this.h = function () { this.nav.top.style.height = this.getHeight() + "px"; for (var t = 0; t < this.cells.length; t++)
1696
1858
  for (var e = 0; e < this.cells[t].length; e++)
1697
- this.cells[t][e].style.top = this.getRowTop(e) + "px", this.cells[t][e].style.height = this.rows[e].getHeight() + "px"; }, this.getCellBelowPoint = function (t, e) { 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++) {
1698
- var r = a;
1699
- if (a += this.rows[o].getHeight(), e < a) {
1700
- l = e - r, s = o;
1859
+ this.cells[t][e].style.top = this.getRowTop(e) + "px", this.cells[t][e].style.height = this.rows[e].getHeight() + "px"; }, this.getCellBelowPoint = function (t, e) { 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++) {
1860
+ var r = s;
1861
+ if (s += this.rows[o].getHeight(), e < s) {
1862
+ l = e - r, a = o;
1701
1863
  break;
1702
1864
  }
1703
- } null === s && (s = this.rows.length - 1); var h = {}; return h.x = n, h.y = s, h.relativeY = l, h; }, this.getCellFromDate = function (t) { for (var e = DayPilot.DateUtil.daysDiff(this.firstDate, t), i = { x: 0, y: 0 }; e >= 7;)
1865
+ } null === a && (a = this.rows.length - 1); var h = {}; return h.x = n, h.y = a, h.relativeY = l, h; }, this.getCellFromDate = function (t) { for (var e = DayPilot.DateUtil.daysDiff(this.firstDate, t), i = { x: 0, y: 0 }; e >= 7;)
1704
1866
  i.y++, e -= 7; return i.x = e, i; }, this.g = function () { var t = document.createElement("div"); t.oncontextmenu = function () { return !1; }, this.nav.cells.appendChild(t), this.cells = []; for (var e = 0; e < this.getColCount(); e++) {
1705
1867
  this.cells[e] = [];
1706
1868
  var i = document.createElement("div");
1707
1869
  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";
1708
1870
  var n = e + this.getWeekStart();
1709
1871
  n > 6 && (n -= 7), i.className = this.u("_header");
1710
- var a = document.createElement("div");
1711
- 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);
1872
+ var s = document.createElement("div");
1873
+ 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);
1712
1874
  for (var l = 0; l < this.rows.length; l++)
1713
1875
  this.C(e, l, t);
1714
1876
  } }, this.f = function () { for (var t = 0; t < this.cells.length; t++)
1715
1877
  for (var e = 0; e < this.cells[t].length; e++)
1716
- this.cells[t][e].onclick = null; this.nav.cells.innerHTML = ""; }, this.D = function () { return 2 === n.api; }, this.C = function (e, i, a) { var l = this.rows[i], o = this.firstDate.addDays(7 * i + e), r = document.createElement("div"); 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)) {
1878
+ this.cells[t][e].onclick = null; this.nav.cells.innerHTML = ""; }, this.D = function () { return 2 === n.api; }, this.C = function (e, i, s) { var l = this.rows[i], o = this.firstDate.addDays(7 * i + e), r = document.createElement("div"); 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)) {
1717
1879
  var h = this.u("_cell_business");
1718
1880
  DayPilot.Util.addClass(r, h);
1719
- } var c = (this.startDate.addMonths(-1).getMonth(), this.startDate.addMonths(1).getMonth(), this.startDate.getMonth(), document.createElement("div")); 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 () { var t = function (t) { var e = new DayPilot.Date(t), i = e.addDays(1); n.E(e, i); }; if ("Disabled" !== n.timeRangeSelectedHandling)
1881
+ } var c = (this.startDate.addMonths(-1).getMonth(), this.startDate.addMonths(1).getMonth(), this.startDate.getMonth(), document.createElement("div")); 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 () { var t = function (t) { var e = new DayPilot.Date(t), i = e.addDays(1); n.E(e, i); }; if ("Disabled" !== n.timeRangeSelectedHandling)
1720
1882
  return void t(o); }; var d = document.createElement("div"); d.setAttribute("unselectable", "on"), d.style.height = this.cellHeaderHeight + "px", d.className = this.u("_cell_header"), d.onclick = function (t) { if ("Enabled" === n.cellHeaderClickHandling) {
1721
1883
  t.stopPropagation();
1722
1884
  var e = {};
1723
1885
  e.control = n, e.start = o, e.end = o.addDays(1), e.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onCellHeaderClick && (n.onCellHeaderClick(e), e.preventDefault.value) || "function" == typeof n.onCellHeaderClicked && n.onCellHeaderClicked(e);
1724
- } }; var v = o.getDay(); 1 === v ? d.innerHTML = s.locale().monthNames[o.getMonth()] + " " + v : d.innerHTML = v, c.appendChild(d), this.cells[e][i] = r, a.appendChild(r); }, this.getWeekStart = function () { return s.locale().weekStarts; }, this.getColCount = function () { return 7; }, this.getCellWidth = function () { return 14.285; }, this.getRowTop = function (t) { for (var e = this.headerHeight, i = 0; i < t; i++)
1725
- e += this.rows[i].getHeight(); return e; }, 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) { var i = t.event; if (i.client.clickEnabled())
1886
+ } }; var v = o.getDay(); 1 === v ? d.innerHTML = a.locale().monthNames[o.getMonth()] + " " + v : d.innerHTML = v, c.appendChild(d), this.cells[e][i] = r, s.appendChild(r); }, this.getWeekStart = function () { return a.locale().weekStarts; }, this.getColCount = function () { return 7; }, this.getCellWidth = function () { return 14.285; }, this.getRowTop = function (t) { for (var e = this.headerHeight, i = 0; i < t; i++)
1887
+ e += this.rows[i].getHeight(); return e; }, 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) { var i = t.event; if (i.client.clickEnabled())
1726
1888
  if (n.D()) {
1727
- var s = {};
1728
- 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))
1889
+ var a = {};
1890
+ 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))
1729
1891
  return;
1730
1892
  switch (n.eventClickHandling) {
1731
1893
  case "CallBack":
1732
1894
  n.eventClickCallBack(i);
1733
1895
  break;
1734
1896
  case "ContextMenu":
1735
- var a = i.client.contextMenu();
1736
- a ? a.show(i) : n.contextMenu && n.contextMenu.show(i);
1897
+ var s = i.client.contextMenu();
1898
+ s ? s.show(i) : n.contextMenu && n.contextMenu.show(i);
1737
1899
  }
1738
- "function" == typeof n.onEventClicked && n.j.apply(function () { n.onEventClicked(s); });
1900
+ "function" == typeof n.onEventClicked && n.j.apply(function () { n.onEventClicked(a); });
1739
1901
  }
1740
1902
  else
1741
1903
  switch (n.eventClickHandling) {
@@ -1775,11 +1937,11 @@ if ("undefined" == typeof DayPilot)
1775
1937
  n.eventDeleteCallBack(t);
1776
1938
  break;
1777
1939
  case "JavaScript": n.onEventDelete(t);
1778
- } }, 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) { if (!e)
1940
+ } }, 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) { if (!e)
1779
1941
  throw "newStart is null"; if (!i)
1780
- throw "newEnd is null"; var a = {}; a.e = t, a.newStart = e, a.newEnd = i, a.position = s, this.F("EventMove", n, a); }, this.K = function (t, e, i, s, a, l) { var o = t.start().getTimePart(), r = t.end().getDatePart(); r !== t.end() && (r = r.addDays(1)); var h = DayPilot.DateUtil.diff(t.end(), r), c = this.getDateFromCell(e, i); c = c.addDays(-s); var d = DayPilot.DateUtil.daysSpan(t.start(), t.end()) + 1, v = c.addDays(d), u = c.addTime(o), f = v.addTime(h); if (n.D()) {
1942
+ throw "newEnd is null"; var s = {}; s.e = t, s.newStart = e, s.newEnd = i, s.position = a, this.F("EventMove", n, s); }, this.K = function (t, e, i, a, s, l) { var o = t.start().getTimePart(), r = t.end().getDatePart(); r !== t.end() && (r = r.addDays(1)); var h = DayPilot.DateUtil.diff(t.end(), r), c = this.getDateFromCell(e, i); c = c.addDays(-a); var d = DayPilot.DateUtil.daysSpan(t.start(), t.end()) + 1, v = c.addDays(d), u = c.addTime(o), f = v.addTime(h); if (n.D()) {
1781
1943
  var p = {};
1782
- 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))
1944
+ 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))
1783
1945
  return;
1784
1946
  switch (n.eventMoveHandling) {
1785
1947
  case "CallBack":
@@ -1797,7 +1959,7 @@ if ("undefined" == typeof DayPilot)
1797
1959
  case "JavaScript": n.onEventMove(t, u, f);
1798
1960
  } }, this.eventResizeCallBack = function (t, e, i, n) { if (!e)
1799
1961
  throw "newStart is null"; if (!i)
1800
- throw "newEnd is null"; var s = {}; s.e = t, s.newStart = e, s.newEnd = i, this.F("EventResize", n, s); }, this.L = function (t, e, i) { var s = t.start().getTimePart(), a = t.end().getDatePart(); a !== t.end() && (a = a.addDays(1)); 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); if (n.D()) {
1962
+ throw "newEnd is null"; var a = {}; a.e = t, a.newStart = e, a.newEnd = i, this.F("EventResize", n, a); }, this.L = function (t, e, i) { var a = t.start().getTimePart(), s = t.end().getDatePart(); s !== t.end() && (s = s.addDays(1)); 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); if (n.D()) {
1801
1963
  var d = {};
1802
1964
  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))
1803
1965
  return;
@@ -1830,7 +1992,7 @@ if ("undefined" == typeof DayPilot)
1830
1992
  n.timeRangeSelectedCallBack(t, e);
1831
1993
  break;
1832
1994
  case "JavaScript": n.onTimeRangeSelected(t, e);
1833
- } }, 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; }; var s = this.M; 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 () { if (this.id && this.id.tagName)
1995
+ } }, 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; }; var a = this.M; 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 () { if (this.id && this.id.tagName)
1834
1996
  this.nav.top = this.id;
1835
1997
  else {
1836
1998
  if ("string" != typeof this.id)
@@ -1847,10 +2009,10 @@ if ("undefined" == typeof DayPilot)
1847
2009
  return;
1848
2010
  if (!i.event.calendar.shadow.start)
1849
2011
  return;
1850
- var n = t.movingEvent.event.calendar, s = t.movingEvent.event, a = n.shadow.start, l = n.shadow.position, o = t.movingEvent.offset;
2012
+ var n = t.movingEvent.event.calendar, a = t.movingEvent.event, s = n.shadow.start, l = n.shadow.position, o = t.movingEvent.offset;
1851
2013
  n.clearShadow(), t.movingEvent = null;
1852
2014
  var e = e || window.event;
1853
- return n.K(s, a.x, a.y, o, e, l), e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(), t.movingEvent = null, !1;
2015
+ return n.K(a, s.x, s.y, o, e, l), e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(), t.movingEvent = null, !1;
1854
2016
  } if (t.resizingEvent) {
1855
2017
  var i = t.resizingEvent;
1856
2018
  if (!i.event)
@@ -1861,12 +2023,12 @@ if ("undefined" == typeof DayPilot)
1861
2023
  return;
1862
2024
  if (!i.event.calendar.shadow.start)
1863
2025
  return;
1864
- var n = t.resizingEvent.event.calendar, s = t.resizingEvent.event, a = n.shadow.start, r = n.shadow.width;
1865
- return n.clearShadow(), t.resizingEvent = null, n.L(s, a, r), e.cancelBubble = !0, t.resizingEvent = null, !1;
2026
+ var n = t.resizingEvent.event.calendar, a = t.resizingEvent.event, s = n.shadow.start, r = n.shadow.width;
2027
+ return n.clearShadow(), t.resizingEvent = null, n.L(a, s, r), e.cancelBubble = !0, t.resizingEvent = null, !1;
1866
2028
  } if (t.timeRangeSelecting) {
1867
2029
  if (t.timeRangeSelecting.moved) {
1868
- var h = t.timeRangeSelecting, n = h.root, a = new DayPilot.Date(n.getDateFromCell(h.from.x, h.from.y)), c = a.addDays(h.width);
1869
- n.E(a, c), n.clearShadow();
2030
+ var h = t.timeRangeSelecting, n = h.root, s = new DayPilot.Date(n.getDateFromCell(h.from.x, h.from.y)), c = s.addDays(h.width);
2031
+ n.E(s, c), n.clearShadow();
1870
2032
  }
1871
2033
  t.timeRangeSelecting = null;
1872
2034
  } }, DayPilot.Month = t.Month, "undefined" != typeof jQuery && !function (t) { t.fn.daypilotMonth = function (t) { var e = null, i = this.each(function () { if (!this.daypilot) {
@@ -1875,16 +2037,16 @@ if ("undefined" == typeof DayPilot)
1875
2037
  for (name in t)
1876
2038
  i[name] = t[name];
1877
2039
  i.Init(), e || (e = i);
1878
- } }); return 1 === this.length ? e : i; }; }(jQuery), function () { var t = DayPilot.am(); t && t.directive("daypilotMonth", ["$parse", function (t) { return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (e, i, n) { var s = new DayPilot.Month(i[0]); s.j.scope = e, s.init(); var a = n["id"]; a && (e[a] = s); var l = n["publishAs"]; if (l) {
1879
- (0, t(l).assign)(e, s);
2040
+ } }); return 1 === this.length ? e : i; }; }(jQuery), function () { var t = DayPilot.am(); t && t.directive("daypilotMonth", ["$parse", function (t) { return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (e, i, n) { var a = new DayPilot.Month(i[0]); a.j.scope = e, a.init(); var s = n["id"]; s && (e[s] = a); var l = n["publishAs"]; if (l) {
2041
+ (0, t(l).assign)(e, a);
1880
2042
  } for (var o in n)
1881
- 0 === o.indexOf("on") && !function (i) { s[i] = function (s) { var a = t(n[i]); e["$apply"](function () { a(e, { "args": s }); }); }; }(o); var r = e["$watch"], h = n["config"] || n["daypilotConfig"], c = n["events"] || n["daypilotEvents"]; r.call(e, h, function (t) { for (var e in t)
1882
- s[e] = t[e]; s.update(); }, !0), r.call(e, c, function (t) { s.events.list = t, s.update(); }, !0); } }; }]); }(), "undefined" != typeof Sys && Sys.Application && Sys.Application.notifyScriptLoaded && Sys.Application.notifyScriptLoaded();
2043
+ 0 === o.indexOf("on") && !function (i) { a[i] = function (a) { var s = t(n[i]); e["$apply"](function () { s(e, { "args": a }); }); }; }(o); var r = e["$watch"], h = n["config"] || n["daypilotConfig"], c = n["events"] || n["daypilotEvents"]; r.call(e, h, function (t) { for (var e in t)
2044
+ a[e] = t[e]; a.update(); }, !0), r.call(e, c, function (t) { a.events.list = t, a.update(); }, !0); } }; }]); }(), "undefined" != typeof Sys && Sys.Application && Sys.Application.notifyScriptLoaded && Sys.Application.notifyScriptLoaded();
1883
2045
  } }();
1884
2046
  if ("undefined" == typeof DayPilot)
1885
2047
  var DayPilot = {};
1886
2048
  "undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () { if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.nav) {
1887
- DayPilot.Navigator = function (t, e) { this.v = "2022.3.432-lite"; var i = this; 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) { var s = {}; s.cells = [], s.days = [], s.weeks = []; var n = this.startDate.addMonths(t), l = e.before, o = e.after, h = n.firstDayOfMonth(), r = h.firstDayOfWeek(a.weekStarts()), c = h.addMonths(1), d = DayPilot.DateUtil.daysDiff(r, c), u = "Auto" === this.rowsPerMonth ? Math.ceil(d / 7) : 6; s.rowCount = u; var f = (new DayPilot.Date).getDatePart(), y = 7 * a.cellWidth() + this.d(); s.width = y; var p = this.cellHeight * u + this.titleHeight + this.dayHeaderHeight; s.height = p; var v = document.createElement("div"); if (v.style.width = y + "px", v.style.height = p + "px", "Horizontal" === this.orientation)
2049
+ DayPilot.Navigator = function (t, e) { this.v = "2023.1.447-lite"; var i = this; 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) { var s = {}; s.cells = [], s.days = [], s.weeks = []; var n = this.startDate.addMonths(t), l = e.before, o = e.after, h = n.firstDayOfMonth(), r = h.firstDayOfWeek(a.weekStarts()), c = h.addMonths(1), d = DayPilot.DateUtil.daysDiff(r, c), u = "Auto" === this.rowsPerMonth ? Math.ceil(d / 7) : 6; s.rowCount = u; var f = (new DayPilot.Date).getDatePart(), y = 7 * a.cellWidth() + this.d(); s.width = y; var p = this.cellHeight * u + this.titleHeight + this.dayHeaderHeight; s.height = p; var v = document.createElement("div"); if (v.style.width = y + "px", v.style.height = p + "px", "Horizontal" === this.orientation)
1888
2050
  v.style.position = "absolute", v.style.left = y * t + "px", v.style.top = "0px", s.top = 0, s.left = y * t;
1889
2051
  else {
1890
2052
  v.style.position = "relative";
@@ -1958,8 +2120,8 @@ if ("undefined" == typeof DayPilot)
1958
2120
  this.selectionEnd = t;
1959
2121
  break;
1960
2122
  default: throw "Unknown selectMode value.";
1961
- } }, this.w = null, this.select = function (t, e, s) { var n = e && (e instanceof DayPilot.Date || "string" == typeof e), a = "object" == typeof e || "boolean" == typeof e, l = t, o = n ? e : null, h = a ? e : s; if (!this.z)
1962
- return void (this.w = { "date1": l, "date2": o, "options": h }); var r = !0, c = !0; "object" == typeof h ? (h.dontFocus && (r = !1), h.dontNotify && (c = !1)) : "boolean" == typeof h && (r = !h); var d = this.selectionStart, u = this.selectionEnd; this.selectionStart = new DayPilot.Date(l).getDatePart(), this.selectionDay = this.selectionStart; var f = !1; if (r) {
2123
+ } }, this.w = null, this.select = function (t, e, s) { var n = e && (e instanceof DayPilot.Date || "string" == typeof e), a = e && "object" == typeof e || "boolean" == typeof e, l = t, o = n ? e : null, h = a ? e : s; if (!this.z)
2124
+ return void (this.w = { "date1": l, "date2": o, "options": h }); var r = !0, c = !0; h && "object" == typeof h ? (h.dontFocus && (r = !1), h.dontNotify && (c = !1)) : "boolean" == typeof h && (r = !h); var d = this.selectionStart, u = this.selectionEnd; this.selectionStart = new DayPilot.Date(l).getDatePart(), this.selectionDay = this.selectionStart; var f = !1; if (r) {
1963
2125
  var y = this.startDate;
1964
2126
  (this.selectionStart < this.A() || this.selectionStart >= this.B()) && (y = this.selectionStart.firstDayOfMonth()), y.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = y;
1965
2127
  } o && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(o) : this.u(), this.f(), this.b(), this.C(), this.s(), this.t(), !c || d.equals(this.selectionStart) && u.equals(this.selectionEnd) || this.D(), f && this.E(); }, this.update = function (t) { if (i.F(t), this.z) {
@@ -1969,7 +2131,7 @@ if ("undefined" == typeof DayPilot)
1969
2131
  var e = { "day": i.selectionDay, "start": i.selectionStart, "end": i.selectionEnd };
1970
2132
  i.I(), e.start === i.selectionStart && e.end == i.selectionEnd && e.day === i.selectionDay || i.D();
1971
2133
  } }, this.I = function () { this.f(), this.b(), this.u(), this.C(), this.J(), this.s(), this.t(), this.visible ? this.show() : this.hide(); }, this.H = function () { i.a = {}; }, this.K = null, this.F = function (t) { if (t) {
1972
- var e = { "events": { "preInit": function () { var t = this.data; t && (DayPilot.isArray(t.list) ? i.events.list = t.list : i.events.list = t); } } };
2134
+ var e = { "events": { "preInit": function () { var t = this.data || []; DayPilot.isArray(t.list) ? i.events.list = t.list : i.events.list = t; } } };
1973
2135
  this.K = e;
1974
2136
  for (var s in t)
1975
2137
  if (e[s]) {