@daypilot/daypilot-lite-angular 3.10.0 → 3.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -78,6 +78,9 @@ var DayPilot;
78
78
  class Util {
79
79
  }
80
80
  DayPilot.Util = Util;
81
+ class ColorUtil {
82
+ }
83
+ DayPilot.ColorUtil = ColorUtil;
81
84
  class Http {
82
85
  }
83
86
  DayPilot.Http = Http;
@@ -118,7 +121,7 @@ DayPilot Lite
118
121
  Copyright (c) 2005 - 2022 Annpoint s.r.o.
119
122
  https://www.daypilot.org/
120
123
  Licensed under Apache Software License 2.0
121
- Version: 2022.3.426-lite
124
+ Version: 2022.4.438-lite
122
125
  */
123
126
  if ("undefined" == typeof DayPilot)
124
127
  var DayPilot = {};
@@ -133,17 +136,17 @@ if ("undefined" == typeof DayPilot)
133
136
  n < 10 && (n = "0" + n);
134
137
  var i = r.getUTCMinutes();
135
138
  i < 10 && (i = "0" + i);
136
- var d = r.getUTCHours();
137
- d < 10 && (d = "0" + d);
138
- var l = r.getUTCDate();
139
+ var l = r.getUTCHours();
139
140
  l < 10 && (l = "0" + l);
141
+ var d = r.getUTCDate();
142
+ d < 10 && (d = "0" + d);
140
143
  var s = r.getUTCMonth() + 1;
141
144
  s < 10 && (s = "0" + s);
142
145
  var u = r.getUTCFullYear();
143
146
  if (u <= 0)
144
147
  throw "The minimum year supported is 1.";
145
148
  u < 10 ? u = "000" + u : u < 100 ? u = "00" + u : u < 1e3 && (u = "0" + u);
146
- var c = u + "-" + s + "-" + l + "T" + d + ":" + i + ":" + n + a;
149
+ var c = u + "-" + s + "-" + d + "T" + l + ":" + i + ":" + n + a;
147
150
  return t[e] = c, c;
148
151
  }
149
152
  function t(e, t) { return !DayPilot.Util.isNullOrUndefined(e) && (!DayPilot.Util.isNullOrUndefined(t) && e.toLocaleLowerCase() === t.toLocaleLowerCase()); }
@@ -183,7 +186,7 @@ if ("undefined" == typeof DayPilot)
183
186
  else if (a = DayPilot.mo2(e, t), !a)
184
187
  return null;
185
188
  return a.shift = t.shiftKey, a.meta = t.metaKey, a.ctrl = t.ctrlKey, a.alt = t.altKey, a;
186
- }, DayPilot.browser = {}, DayPilot.browser.ie9 = function () { var e = document.createElement("div"); return e.innerHTML = "<!--[if IE 9]><i></i><![endif]-->", 1 === e.getElementsByTagName("i").length; }(), DayPilot.browser.ielt9 = function () { var e = document.createElement("div"); return e.innerHTML = "<!--[if lt IE 9]><i></i><![endif]-->", 1 === e.getElementsByTagName("i").length; }(), DayPilot.page = function (e) { var t = e.changedTouches && e.changedTouches[0] ? e.changedTouches[0] : e; return "undefined" == typeof t.pageX || DayPilot.browser.ie ? "undefined" != typeof e.clientX && document.body && document.documentElement ? { x: e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft, y: e.clientY + document.body.scrollTop + document.documentElement.scrollTop } : null : { x: t.pageX, y: t.pageY }; }, DayPilot.abs = function (e, t) {
189
+ }, DayPilot.browser = {}, DayPilot.browser.ie9 = function () { var e = document.createElement("div"); return e.innerHTML = "<!--[if IE 9]><i></i><![endif]-->", 1 === e.getElementsByTagName("i").length; }(), DayPilot.browser.ielt9 = function () { var e = document.createElement("div"); return e.innerHTML = "<!--[if lt IE 9]><i></i><![endif]-->", 1 === e.getElementsByTagName("i").length; }(), DayPilot.browser.hover = !window.matchMedia("(any-hover: none)").matches, DayPilot.touch = {}, DayPilot.page = function (e) { var t = e.changedTouches && e.changedTouches[0] ? e.changedTouches[0] : e; return "undefined" == typeof t.pageX || DayPilot.browser.ie ? "undefined" != typeof e.clientX && document.body && document.documentElement ? { x: e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft, y: e.clientY + document.body.scrollTop + document.documentElement.scrollTop } : null : { x: t.pageX, y: t.pageY }; }, DayPilot.abs = function (e, t) {
187
190
  if (!e)
188
191
  return null;
189
192
  if (e.getBoundingClientRect) {
@@ -203,7 +206,7 @@ if ("undefined" == typeof DayPilot)
203
206
  }, DayPilot.isArray = function (e) { return "[object Array]" === Object.prototype.toString.call(e); }, DayPilot.distance = function (e, t) { return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2)); }, DayPilot.sheet = function () { var e = document.createElement("style"); e.setAttribute("type", "text/css"), e.styleSheet || e.appendChild(document.createTextNode("")), (document.head || document.getElementsByTagName("head")[0]).appendChild(e); var t = !!e.styleSheet, a = {}; return a.rules = [], a.commit = function () { t && (e.styleSheet.cssText = this.rules.join("\n")); }, a.add = function (a, r, o) { return t ? void this.rules.push(a + "{" + r + "}") : void (e.sheet.insertRule ? ("undefined" == typeof o && (o = e.sheet.cssRules.length), e.sheet.insertRule(a + "{" + r + "}", o)) : e.sheet.addRule && e.sheet.addRule(a, r, o)); }, a; }, DayPilot.gs = function (e, t) { return window.getComputedStyle(e, null).getPropertyValue(t) || ""; }, DayPilot.StyleReader = function (e) { this.get = function (t) { return e ? DayPilot.gs(e, t) : null; }, this.getPx = function (e) { var t = this.get(e); return t.indexOf("px") === -1 ? void 0 : parseInt(t, 10); }; }, function () {
204
207
  if (!DayPilot.Global.defaultCss) {
205
208
  var e = DayPilot.sheet();
206
- e.add(".calendar_default_main", "border: 1px solid #c0c0c0; font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px;"), e.add(".calendar_default_main *, .calendar_default_main *:before, .calendar_default_main *:after", "box-sizing: content-box;"), e.add(".calendar_default_rowheader_inner,.calendar_default_cornerright_inner,.calendar_default_corner_inner,.calendar_default_colheader_inner,.calendar_default_alldayheader_inner", "color: #333;background: #f3f3f3;"), e.add(".calendar_default_cornerright_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;\tborder-bottom: 1px solid #c0c0c0;"), e.add(".calendar_default_direction_rtl .calendar_default_cornerright_inner", "border-right: 1px solid #c0c0c0;"), e.add(".calendar_default_rowheader_inner", "font-size: 16pt;text-align: right; position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0; padding: 3px;"), e.add(".calendar_default_direction_rtl .calendar_default_rowheader_inner", "border-right: none;"), e.add(".calendar_default_corner_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;"), e.add(".calendar_default_direction_rtl .calendar_default_corner_inner", "border-right: none;"), e.add(".calendar_default_rowheader_minutes", "font-size:10px;vertical-align: super;padding-left: 2px;padding-right: 2px;"), e.add(".calendar_default_colheader_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0; display: flex; align-items: center; justify-content: center; font-size: 13px;"), e.add(".calendar_default_cell_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #ddd;border-bottom: 1px solid #ddd; background: #f9f9f9;"), e.add(".calendar_default_cell_business .calendar_default_cell_inner", "background: #fff"), e.add(".calendar_default_alldayheader_inner", "text-align: center;position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;"), e.add(".calendar_default_message", "opacity: 0.9; padding: 10px; color: #ffffff;background: #ffa216;"), e.add(".calendar_default_alldayevent_inner,.calendar_default_event_inner", "color: #333; border: 1px solid #999;"), e.add(".calendar_default_event_bar", "top: 0px;bottom: 0px;left: 0px;width: 6px;background-color: #9dc8e8;"), e.add(".calendar_default_event_bar_inner", "position: absolute;width: 6px;background-color: #1066a8;"), e.add(".calendar_default_alldayevent_inner,.calendar_default_event_inner", 'background: #fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".calendar_default_selected .calendar_default_event_inner", "background: #ddd;"), e.add(".calendar_default_alldayevent_inner", "position: absolute;top: 2px;bottom: 2px;left: 2px;right: 2px;overflow:hidden;padding: 2px;margin-right: 1px; font-size: 13px;"), e.add(".calendar_default_event_withheader .calendar_default_event_inner", "padding-top: 15px;"), e.add(".calendar_default_event", "cursor: default;"), e.add(".calendar_default_event_inner", "position: absolute;overflow: hidden;top: 0px;bottom: 0px;left: 0px;right: 0px;padding: 2px 2px 2px 8px; font-size: 13px;"), e.add(".calendar_default_shadow_inner", "position:absolute;top:0px;left:0px;right:0px;bottom:0px;background-color: #666666; opacity: 0.5;"), e.add(".calendar_default_event_delete", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAACprHcmAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAI5JREFUKFNtkLERgCAMRbmzdK8s4gAUlhYOYEHJEJYOYOEwDmGBPxC4kOPfvePy84MGR0RJ2N1A8H3N6DATwSQ57m2ql8NBG+AEM7D+UW+wjdfUPgerYNgB5gOLRHqhcasg84C2QxPMtrUhSqQIhg7ypy9VM2EUZPI/4rQ7rGxqo9sadTegw+UdjeDLAKUfhbaQUVPIfJYAAAAASUVORK5CYII=) center center no-repeat; opacity: 0.6; cursor: pointer;"), e.add(".calendar_default_event_delete:hover", "opacity: 1;-ms-filter: none;"), e.add(".calendar_default_scroll_up", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAB3RJTUUH2wESDiYcrhwCiQAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAARnQU1BAACxjwv8YQUAAACcSURBVHjaY2AgF9wWsTW6yGMlhi7OhC7AyMDQzMnBXIpFHAFuCtuaMTP+P8nA8P/b1x//FfW/HHuF1UQmxv+NUP1c3OxMVVhNvCVi683E8H8LXOY/w9+fTH81tF8fv4NiIpBRj+YoZtZ/LDUoJmKYhsVUpv0MDiyMDP96sIYV0FS2/8z9ICaLlOhvS4b/jC//MzC8xBG0vJeF7GQBlK0xdiUzCtsAAAAASUVORK5CYII=);"), e.add(".calendar_default_scroll_down", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAALiMAAC4jAXilP3YAAACqSURBVChTY7wpam3L9J+xmQEP+PGPKZZxP4MDi4zI78uMDIwa2NT+Z2DYovrmiC+TI8OBP/8ZmEqwGvif4e8vxr+FIDkmEKH25vBWBgbG0+iK/zEwLtF+ffwOXCGI8Y+BoRFFIdC030x/WmBiYBNhpgLdswNJ8RSYaSgmgk39z1gPUfj/29ef/9rwhQTDHRHbrbdEbLvRFcGthkkAra/9/uMvhkK8piNLAgCRpTnNn4AEmAAAAABJRU5ErkJggg==);"), e.add(".calendar_default_now", "background-color: red;"), e.add(".calendar_default_now:before", "content: ''; top: -5px; border-width: 5px; border-color: transparent transparent transparent red; border-style: solid; width: 0px; height:0px; position: absolute; -moz-transform: scale(.9999);"), e.add(".calendar_default_shadow_forbidden .calendar_default_shadow_inner", "background-color: red;"), e.add(".calendar_default_shadow_top", 'box-sizing: border-box; padding:2px;border:1px solid #ccc;background:#fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".calendar_default_shadow_bottom", 'box-sizing: border-box; padding:2px;border:1px solid #ccc;background:#fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".calendar_default_crosshair_vertical, .calendar_default_crosshair_horizontal, .calendar_default_crosshair_left, .calendar_default_crosshair_top", "background-color: gray; opacity: 0.2;"), e.add(".calendar_default_loading", "background-color: orange; color: white; padding: 2px;"), e.add(".calendar_default_scroll", "background-color: #f3f3f3;"), e.add(".menu_default_main", "user-select:none; font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;font-size: 13px;border: 1px solid #dddddd;background-color: white;padding: 0px;cursor: default;background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAABCAIAAABG0om7AAAAKXRFWHRDcmVhdGlvbiBUaW1lAHBvIDEwIDUgMjAxMCAyMjozMzo1OSArMDEwMGzy7+IAAAAHdElNRQfaBQoUJAesj4VUAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAABGdBTUEAALGPC/xhBQAAABVJREFUeNpj/P//PwO1weMnT2RlZAAYuwX/4oA3BgAAAABJRU5ErkJggg==);background-repeat: repeat-y;xborder-radius: 5px;-moz-box-shadow:0px 2px 3px rgba(000,000,000,0.3),inset 0px 0px 2px rgba(255,255,255,0.8);-webkit-box-shadow:0px 2px 3px rgba(000,000,000,0.3),inset 0px 0px 2px rgba(255,255,255,0.8);box-shadow:0px 2px 3px rgba(000,000,000,0.3),inset 0px 0px 2px rgba(255,255,255,0.8);"), e.add(".menu_default_main, .menu_default_main *, .menu_default_main *:before, .menu_default_main *:after", "box-sizing: content-box;"), e.add(".menu_default_title", "background-color: #f2f2f2;border-bottom: 1px solid gray;padding: 4px 4px 4px 37px;"), e.add(".menu_default_main a", "padding: 2px 2px 2px 35px;color: black;text-decoration: none;cursor: default;"), e.add(".menu_default_main.menu_default_withchildren a", "padding: 2px 35px 2px 35px;"), e.add(".menu_default_main a img", "margin-left: 6px;margin-top: 2px;"), e.add(".menu_default_item_text", "display: block;height: 20px;line-height: 20px; overflow:hidden;padding-left: 2px;padding-right: 20px; white-space: nowrap;"), e.add(".menu_default_main a:hover", "background-color: #f3f3f3;"), e.add(".menu_default_main div div", "border-top: 1px solid #dddddd;margin-top: 2px;margin-bottom: 2px;margin-left: 28px;"), e.add(".menu_default_main a.menu_default_item_disabled", "color: #ccc"), e.add(".menu_default_item_haschildren.menu_default_item_haschildren_active", "background-color: #f3f3f3;"), e.add(".menu_default_item_haschildren a:before", "content: ''; border-width: 5px; border-color: transparent transparent transparent #666; border-style: solid; width: 0px; height:0px; position: absolute; right: 5px; margin-top: 5px;"), e.add(".menu_default_item_icon", "position: absolute; top:0px; left: 0px; padding: 2px 2px 2px 8px;"), e.add(".menu_default_item a i", "height: 20px;line-height: 20px;"), e.add(".menu_default_item .menu_default_item_symbol", "width: 18px; height: 18px; color: #999; margin-left: 6px;margin-top: 2px;"), e.add(".menubar_default_main", "border-bottom: 1px solid #ccc; font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px; user-select:none;"), e.add(".menubar_default_item", "display: inline-block; padding: 6px 10px; cursor: default;"), e.add(".menubar_default_item:hover", "background-color: #f2f2f2;"), e.add(".menubar_default_item_active", "background-color: #f2f2f2;"), e.add(".scheduler_default_selected .scheduler_default_event_inner", "background: #ddd;"), e.add(".scheduler_default_main", "border: 1px solid #c0c0c0;font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px;"), e.add(".scheduler_default_timeheader", "cursor: default;color: #333;"), e.add(".scheduler_default_message", "opacity: 0.9;filter: alpha(opacity=90);padding: 10px; color: #ffffff;background: #ffa216;"), e.add(".scheduler_default_timeheadergroup,.scheduler_default_timeheadercol", "color: #333;background: #f3f3f3;"), e.add(".scheduler_default_rowheader,.scheduler_default_corner", "color: #333;background: #f3f3f3;"), e.add(".scheduler_default_rowheader_inner", "position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #eee;padding: 2px;"), e.add(".scheduler_default_timeheadergroup, .scheduler_default_timeheadercol", "text-align: center;"), e.add(".scheduler_default_timeheadergroup_inner", "position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;"), e.add(".scheduler_default_timeheadercol_inner", "position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #c0c0c0;"), e.add(".scheduler_default_divider", "background-color: #c0c0c0;"), e.add(".scheduler_default_divider_horizontal", "background-color: #c0c0c0;"), e.add(".scheduler_default_matrix_vertical_line", "background-color: #eee;"), e.add(".scheduler_default_matrix_vertical_break", "background-color: #000;"), e.add(".scheduler_default_matrix_horizontal_line", "background-color: #eee;"), e.add(".scheduler_default_resourcedivider", "background-color: #c0c0c0;"), e.add(".scheduler_default_shadow_inner", "background-color: #666666;opacity: 0.5;filter: alpha(opacity=50);height: 100%;xborder-radius: 5px;"), e.add(".scheduler_default_event", "color:#333; font-size: 13px;"), e.add(".scheduler_default_event_inner", "position:absolute;top:0px;left:0px;right:0px;bottom:0px;padding:5px 2px 2px 2px;overflow:hidden;border:1px solid #ccc;"), e.add(".scheduler_default_event_bar", "top:0px;left:0px;right:0px;height:4px;background-color:#9dc8e8;"), e.add(".scheduler_default_event_bar_inner", "position:absolute;height:4px;background-color:#1066a8;"), e.add(".scheduler_default_event_inner", 'background:#fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".scheduler_default_event_float_inner", "padding:6px 2px 2px 8px;"), e.add(".scheduler_default_event_float_inner:after", 'content:"";border-color: transparent #666 transparent transparent;border-style:solid;border-width:5px;width:0;height:0;position:absolute;top:8px;left:-4px;'), e.add(".scheduler_default_columnheader_inner", "font-weight: bold;"), e.add(".scheduler_default_columnheader_splitter", "background-color: #666;opacity: 0.5;filter: alpha(opacity=50);"), e.add(".scheduler_default_columnheader_cell_inner", "padding: 2px;"), e.add(".scheduler_default_cell", "background-color: #f9f9f9;"), e.add(".scheduler_default_cell.scheduler_default_cell_business", "background-color: #fff;"), e.add(".navigator_default_main", "border-left: 1px solid #c0c0c0;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;background-color: white;color: #000000; box-sizing: content-box;"), e.add(".navigator_default_main *, .navigator_default_main *:before, .navigator_default_main *:after", "box-sizing: content-box;"), e.add(".navigator_default_month", "font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 12px;"), e.add(".navigator_default_day", "color: black;"), e.add(".navigator_default_weekend", "background-color: #f0f0f0;"), e.add(".navigator_default_dayheader", "color: black;"), e.add(".navigator_default_line", "border-bottom: 1px solid #c0c0c0;"), e.add(".navigator_default_dayother", "color: gray;"), e.add(".navigator_default_todaybox", "border: 1px solid red;"), e.add(".navigator_default_title, .navigator_default_titleleft, .navigator_default_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), e.add(".navigator_default_busy", "font-weight: bold;"), e.add(".navigator_default_cell", "text-align: center;"), e.add(".navigator_default_select .navigator_default_cell_box", "background-color: #FFE794; opacity: 0.5;"), e.add(".navigator_default_title", "text-align: center;"), e.add(".navigator_default_titleleft, .navigator_default_titleright", "text-align: center;"), e.add(".navigator_default_dayheader", "text-align: center;"), e.add(".navigator_default_weeknumber", "text-align: center; color: #999;"), e.add(".navigator_default_cell_text", "cursor: pointer;"), e.add(".month_default_main", "border: 1px solid #c0c0c0;font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px;color: #333;"), e.add(".month_default_main *, .month_default_main *:before, .month_default_main *:after", "box-sizing: content-box;"), e.add(".month_default_cell_inner", "border-right: 1px solid #ddd;border-bottom: 1px solid #ddd;position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;background-color: #f9f9f9;"), e.add(".month_default_cell_business .month_default_cell_inner", "background-color: #fff;"), e.add(".month_default_cell_header", "text-align: right; padding: 4px; box-sizing: border-box;"), e.add(".month_default_header_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;cursor: default;color: #333;background: #f3f3f3; overflow:hidden; display: flex; align-items: center; justify-content: center;"), e.add(".month_default_message", "padding: 10px;opacity: 0.9; color: #ffffff;background: #ffa216;"), e.add(".month_default_event_inner", "position: absolute;top: 0px;bottom: 0px;left: 1px;right: 1px;overflow:hidden;padding: 2px;padding-left: 10px;color: #333;background: #fff;background: linear-gradient(to bottom, #ffffff 0%, #eeeeee);border: 1px solid #999;border-radius: 0px;display: flex; align-items: center; font-size: 13px;"), e.add(".month_default_event_continueright .month_default_event_inner", "border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-right-style: dotted;"), e.add(".month_default_event_continueleft .month_default_event_inner", "border-top-left-radius: 0px;border-bottom-left-radius: 0px;border-left-style: dotted;"), e.add(".month_default_event_bar", "top: 0px;bottom: 0px;left: 0px;width: 6px;"), e.add(".month_default_event_bar_inner", "position: absolute;width: 6px;background-color: #1066a8;"), e.add(".month_default_event_continueleft .month_default_event_bar", "display: none;"), e.add(".month_default_selected .month_default_event_inner", "background: #ddd;"), e.add(".month_default_shadow_inner", "background-color: #666666;opacity: 0.5;height: 100%;"), e.add(".month_default_event_delete", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAACprHcmAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAI5JREFUKFNtkLERgCAMRbmzdK8s4gAUlhYOYEHJEJYOYOEwDmGBPxC4kOPfvePy84MGR0RJ2N1A8H3N6DATwSQ57m2ql8NBG+AEM7D+UW+wjdfUPgerYNgB5gOLRHqhcasg84C2QxPMtrUhSqQIhg7ypy9VM2EUZPI/4rQ7rGxqo9sadTegw+UdjeDLAKUfhbaQUVPIfJYAAAAASUVORK5CYII=) center center no-repeat; opacity: 0.6; cursor: pointer;"), e.add(".month_default_event_delete:hover", "opacity: 1;-ms-filter: none;"), e.add(".month_default_event_timeleft", "color: #ccc; font-size: 8pt"), e.add(".month_default_event_timeright", "color: #ccc; font-size: 8pt; text-align: right;"), e.add(".month_default_loading", "background-color: orange; color: white; padding: 2px;"), e.commit(), DayPilot.Global.defaultCss = !0;
209
+ e.add(".calendar_default_main", "border: 1px solid #c0c0c0; font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px;"), e.add(".calendar_default_main *, .calendar_default_main *:before, .calendar_default_main *:after", "box-sizing: content-box;"), e.add(".calendar_default_rowheader_inner,.calendar_default_cornerright_inner,.calendar_default_corner_inner,.calendar_default_colheader_inner,.calendar_default_alldayheader_inner", "color: #333;background: #f3f3f3;"), e.add(".calendar_default_cornerright_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;\tborder-bottom: 1px solid #c0c0c0;"), e.add(".calendar_default_direction_rtl .calendar_default_cornerright_inner", "border-right: 1px solid #c0c0c0;"), e.add(".calendar_default_rowheader_inner", "font-size: 16pt;text-align: right; position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0; padding: 3px;"), e.add(".calendar_default_direction_rtl .calendar_default_rowheader_inner", "border-right: none;"), e.add(".calendar_default_corner_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;"), e.add(".calendar_default_direction_rtl .calendar_default_corner_inner", "border-right: none;"), e.add(".calendar_default_rowheader_minutes", "font-size:10px;vertical-align: super;padding-left: 2px;padding-right: 2px;"), e.add(".calendar_default_colheader_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0; display: flex; align-items: center; justify-content: center; font-size: 13px;"), e.add(".calendar_default_cell_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #ddd;border-bottom: 1px solid #ddd; background: #f9f9f9;"), e.add(".calendar_default_cell_business .calendar_default_cell_inner", "background: #fff"), e.add(".calendar_default_alldayheader_inner", "text-align: center;position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;"), e.add(".calendar_default_message", "opacity: 0.9; padding: 10px; color: #ffffff;background: #ffa216;"), e.add(".calendar_default_alldayevent_inner,.calendar_default_event_inner", "color: #333; border: 1px solid #999;"), e.add(".calendar_default_event_bar", "top: 0px;bottom: 0px;left: 0px;width: 6px;background-color: #9dc8e8;"), e.add(".calendar_default_event_bar_inner", "position: absolute;width: 6px;background-color: #1066a8;"), e.add(".calendar_default_alldayevent_inner,.calendar_default_event_inner", 'background: #fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".calendar_default_selected .calendar_default_event_inner", "background: #ddd;"), e.add(".calendar_default_alldayevent_inner", "position: absolute;top: 2px;bottom: 2px;left: 2px;right: 2px;overflow:hidden;padding: 2px;margin-right: 1px; font-size: 13px;"), e.add(".calendar_default_event_withheader .calendar_default_event_inner", "padding-top: 15px;"), e.add(".calendar_default_event", "cursor: default;"), e.add(".calendar_default_event_inner", "position: absolute;overflow: hidden;top: 0px;bottom: 0px;left: 0px;right: 0px;padding: 2px 2px 2px 8px; font-size: 13px;"), e.add(".calendar_default_shadow_inner", "position:absolute;top:0px;left:0px;right:0px;bottom:0px;background-color: #666666; opacity: 0.5;"), e.add(".calendar_default_event_delete", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAACprHcmAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAI5JREFUKFNtkLERgCAMRbmzdK8s4gAUlhYOYEHJEJYOYOEwDmGBPxC4kOPfvePy84MGR0RJ2N1A8H3N6DATwSQ57m2ql8NBG+AEM7D+UW+wjdfUPgerYNgB5gOLRHqhcasg84C2QxPMtrUhSqQIhg7ypy9VM2EUZPI/4rQ7rGxqo9sadTegw+UdjeDLAKUfhbaQUVPIfJYAAAAASUVORK5CYII=) center center no-repeat; opacity: 0.6; cursor: pointer;"), e.add(".calendar_default_event_delete:hover", "opacity: 1;-ms-filter: none;"), e.add(".calendar_default_scroll_up", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAB3RJTUUH2wESDiYcrhwCiQAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAARnQU1BAACxjwv8YQUAAACcSURBVHjaY2AgF9wWsTW6yGMlhi7OhC7AyMDQzMnBXIpFHAFuCtuaMTP+P8nA8P/b1x//FfW/HHuF1UQmxv+NUP1c3OxMVVhNvCVi683E8H8LXOY/w9+fTH81tF8fv4NiIpBRj+YoZtZ/LDUoJmKYhsVUpv0MDiyMDP96sIYV0FS2/8z9ICaLlOhvS4b/jC//MzC8xBG0vJeF7GQBlK0xdiUzCtsAAAAASUVORK5CYII=);"), e.add(".calendar_default_scroll_down", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAALiMAAC4jAXilP3YAAACqSURBVChTY7wpam3L9J+xmQEP+PGPKZZxP4MDi4zI78uMDIwa2NT+Z2DYovrmiC+TI8OBP/8ZmEqwGvif4e8vxr+FIDkmEKH25vBWBgbG0+iK/zEwLtF+ffwOXCGI8Y+BoRFFIdC030x/WmBiYBNhpgLdswNJ8RSYaSgmgk39z1gPUfj/29ef/9rwhQTDHRHbrbdEbLvRFcGthkkAra/9/uMvhkK8piNLAgCRpTnNn4AEmAAAAABJRU5ErkJggg==);"), e.add(".calendar_default_now", "background-color: red;"), e.add(".calendar_default_now:before", "content: ''; top: -5px; border-width: 5px; border-color: transparent transparent transparent red; border-style: solid; width: 0px; height:0px; position: absolute; -moz-transform: scale(.9999);"), e.add(".calendar_default_shadow_forbidden .calendar_default_shadow_inner", "background-color: red;"), e.add(".calendar_default_shadow_top", 'box-sizing: border-box; padding:2px;border:1px solid #ccc;background:#fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".calendar_default_shadow_bottom", 'box-sizing: border-box; padding:2px;border:1px solid #ccc;background:#fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".calendar_default_crosshair_vertical, .calendar_default_crosshair_horizontal, .calendar_default_crosshair_left, .calendar_default_crosshair_top", "background-color: gray; opacity: 0.2;"), e.add(".calendar_default_loading", "background-color: orange; color: white; padding: 2px;"), e.add(".calendar_default_scroll", "background-color: #f3f3f3;"), e.add(".calendar_default_event_moving_source", "opacity: 0.5;"), e.add(".menu_default_main", "user-select:none; font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;font-size: 13px;border: 1px solid #dddddd;background-color: white;padding: 0px;cursor: default;background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAABCAIAAABG0om7AAAAKXRFWHRDcmVhdGlvbiBUaW1lAHBvIDEwIDUgMjAxMCAyMjozMzo1OSArMDEwMGzy7+IAAAAHdElNRQfaBQoUJAesj4VUAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAABGdBTUEAALGPC/xhBQAAABVJREFUeNpj/P//PwO1weMnT2RlZAAYuwX/4oA3BgAAAABJRU5ErkJggg==);background-repeat: repeat-y;xborder-radius: 5px;-moz-box-shadow:0px 2px 3px rgba(000,000,000,0.3),inset 0px 0px 2px rgba(255,255,255,0.8);-webkit-box-shadow:0px 2px 3px rgba(000,000,000,0.3),inset 0px 0px 2px rgba(255,255,255,0.8);box-shadow:0px 2px 3px rgba(000,000,000,0.3),inset 0px 0px 2px rgba(255,255,255,0.8);"), e.add(".menu_default_main, .menu_default_main *, .menu_default_main *:before, .menu_default_main *:after", "box-sizing: content-box;"), e.add(".menu_default_title", "background-color: #f2f2f2;border-bottom: 1px solid gray;padding: 4px 4px 4px 37px;"), e.add(".menu_default_main a", "padding: 2px 2px 2px 35px;color: black;text-decoration: none;cursor: default;"), e.add(".menu_default_main.menu_default_withchildren a", "padding: 2px 35px 2px 35px;"), e.add(".menu_default_main a img", "margin-left: 6px;margin-top: 2px;"), e.add(".menu_default_item_text", "display: block;height: 20px;line-height: 20px; overflow:hidden;padding-left: 2px;padding-right: 20px; white-space: nowrap;"), e.add(".menu_default_main a:hover", "background-color: #f3f3f3;"), e.add(".menu_default_main div div", "border-top: 1px solid #dddddd;margin-top: 2px;margin-bottom: 2px;margin-left: 28px;"), e.add(".menu_default_main a.menu_default_item_disabled", "color: #ccc"), e.add(".menu_default_item_haschildren.menu_default_item_haschildren_active", "background-color: #f3f3f3;"), e.add(".menu_default_item_haschildren a:before", "content: ''; border-width: 5px; border-color: transparent transparent transparent #666; border-style: solid; width: 0px; height:0px; position: absolute; right: 5px; margin-top: 5px;"), e.add(".menu_default_item_icon", "position: absolute; top:0px; left: 0px; padding: 2px 2px 2px 8px;"), e.add(".menu_default_item a i", "height: 20px;line-height: 20px;"), e.add(".menu_default_item .menu_default_item_symbol", "width: 18px; height: 18px; color: #999; margin-left: 6px;margin-top: 2px;"), e.add(".menubar_default_main", "border-bottom: 1px solid #ccc; font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px; user-select:none;"), e.add(".menubar_default_item", "display: inline-block; padding: 6px 10px; cursor: default;"), e.add(".menubar_default_item:hover", "background-color: #f2f2f2;"), e.add(".menubar_default_item_active", "background-color: #f2f2f2;"), e.add(".scheduler_default_selected .scheduler_default_event_inner", "background: #ddd;"), e.add(".scheduler_default_main", "border: 1px solid #c0c0c0;font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px;"), e.add(".scheduler_default_timeheader", "cursor: default;color: #333;"), e.add(".scheduler_default_message", "opacity: 0.9;filter: alpha(opacity=90);padding: 10px; color: #ffffff;background: #ffa216;"), e.add(".scheduler_default_timeheadergroup,.scheduler_default_timeheadercol", "color: #333;background: #f3f3f3;"), e.add(".scheduler_default_rowheader,.scheduler_default_corner", "color: #333;background: #f3f3f3;"), e.add(".scheduler_default_rowheader_inner", "position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #eee;padding: 2px;"), e.add(".scheduler_default_timeheadergroup, .scheduler_default_timeheadercol", "text-align: center;"), e.add(".scheduler_default_timeheadergroup_inner", "position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;"), e.add(".scheduler_default_timeheadercol_inner", "position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #c0c0c0;"), e.add(".scheduler_default_divider", "background-color: #c0c0c0;"), e.add(".scheduler_default_divider_horizontal", "background-color: #c0c0c0;"), e.add(".scheduler_default_matrix_vertical_line", "background-color: #eee;"), e.add(".scheduler_default_matrix_vertical_break", "background-color: #000;"), e.add(".scheduler_default_matrix_horizontal_line", "background-color: #eee;"), e.add(".scheduler_default_resourcedivider", "background-color: #c0c0c0;"), e.add(".scheduler_default_shadow_inner", "background-color: #666666;opacity: 0.5;filter: alpha(opacity=50);height: 100%;xborder-radius: 5px;"), e.add(".scheduler_default_event", "color:#333; font-size: 13px;"), e.add(".scheduler_default_event_inner", "position:absolute;top:0px;left:0px;right:0px;bottom:0px;padding:5px 2px 2px 2px;overflow:hidden;border:1px solid #ccc;"), e.add(".scheduler_default_event_bar", "top:0px;left:0px;right:0px;height:4px;background-color:#9dc8e8;"), e.add(".scheduler_default_event_bar_inner", "position:absolute;height:4px;background-color:#1066a8;"), e.add(".scheduler_default_event_inner", 'background:#fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".scheduler_default_event_float_inner", "padding:6px 2px 2px 8px;"), e.add(".scheduler_default_event_float_inner:after", 'content:"";border-color: transparent #666 transparent transparent;border-style:solid;border-width:5px;width:0;height:0;position:absolute;top:8px;left:-4px;'), e.add(".scheduler_default_columnheader_inner", "font-weight: bold;"), e.add(".scheduler_default_columnheader_splitter", "background-color: #666;opacity: 0.5;filter: alpha(opacity=50);"), e.add(".scheduler_default_columnheader_cell_inner", "padding: 2px;"), e.add(".scheduler_default_cell", "background-color: #f9f9f9;"), e.add(".scheduler_default_cell.scheduler_default_cell_business", "background-color: #fff;"), e.add(".navigator_default_main", "border-left: 1px solid #c0c0c0;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;background-color: white;color: #000000; box-sizing: content-box;"), e.add(".navigator_default_main *, .navigator_default_main *:before, .navigator_default_main *:after", "box-sizing: content-box;"), e.add(".navigator_default_month", "font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 12px;"), e.add(".navigator_default_day", "color: black;"), e.add(".navigator_default_weekend", "background-color: #f0f0f0;"), e.add(".navigator_default_dayheader", "color: black;"), e.add(".navigator_default_line", "border-bottom: 1px solid #c0c0c0;"), e.add(".navigator_default_dayother", "color: gray;"), e.add(".navigator_default_todaybox", "border: 1px solid red;"), e.add(".navigator_default_title, .navigator_default_titleleft, .navigator_default_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), e.add(".navigator_default_busy", "font-weight: bold;"), e.add(".navigator_default_cell", "text-align: center;"), e.add(".navigator_default_select .navigator_default_cell_box", "background-color: #FFE794; opacity: 0.5;"), e.add(".navigator_default_title", "text-align: center;"), e.add(".navigator_default_titleleft, .navigator_default_titleright", "text-align: center;"), e.add(".navigator_default_dayheader", "text-align: center;"), e.add(".navigator_default_weeknumber", "text-align: center; color: #999;"), e.add(".navigator_default_cell_text", "cursor: pointer;"), e.add(".month_default_main", "border: 1px solid #c0c0c0;font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px;color: #333;"), e.add(".month_default_main *, .month_default_main *:before, .month_default_main *:after", "box-sizing: content-box;"), e.add(".month_default_cell_inner", "border-right: 1px solid #ddd;border-bottom: 1px solid #ddd;position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;background-color: #f9f9f9;"), e.add(".month_default_cell_business .month_default_cell_inner", "background-color: #fff;"), e.add(".month_default_cell_header", "text-align: right; padding: 4px; box-sizing: border-box;"), e.add(".month_default_header_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;cursor: default;color: #333;background: #f3f3f3; overflow:hidden; display: flex; align-items: center; justify-content: center;"), e.add(".month_default_message", "padding: 10px;opacity: 0.9; color: #ffffff;background: #ffa216;"), e.add(".month_default_event_inner", "position: absolute;top: 0px;bottom: 0px;left: 1px;right: 1px;overflow:hidden;padding: 2px;padding-left: 10px;color: #333;background: #fff;background: linear-gradient(to bottom, #ffffff 0%, #eeeeee);border: 1px solid #999;border-radius: 0px;display: flex; align-items: center; font-size: 13px;"), e.add(".month_default_event_continueright .month_default_event_inner", "border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-right-style: dotted;"), e.add(".month_default_event_continueleft .month_default_event_inner", "border-top-left-radius: 0px;border-bottom-left-radius: 0px;border-left-style: dotted;"), e.add(".month_default_event_bar", "top: 0px;bottom: 0px;left: 0px;width: 6px;"), e.add(".month_default_event_bar_inner", "position: absolute;width: 6px;background-color: #1066a8;"), e.add(".month_default_event_continueleft .month_default_event_bar", "display: none;"), e.add(".month_default_selected .month_default_event_inner", "background: #ddd;"), e.add(".month_default_shadow_inner", "background-color: #666666;opacity: 0.5;height: 100%;"), e.add(".month_default_event_delete", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAACprHcmAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAI5JREFUKFNtkLERgCAMRbmzdK8s4gAUlhYOYEHJEJYOYOEwDmGBPxC4kOPfvePy84MGR0RJ2N1A8H3N6DATwSQ57m2ql8NBG+AEM7D+UW+wjdfUPgerYNgB5gOLRHqhcasg84C2QxPMtrUhSqQIhg7ypy9VM2EUZPI/4rQ7rGxqo9sadTegw+UdjeDLAKUfhbaQUVPIfJYAAAAASUVORK5CYII=) center center no-repeat; opacity: 0.6; cursor: pointer;"), e.add(".month_default_event_delete:hover", "opacity: 1;-ms-filter: none;"), e.add(".month_default_event_timeleft", "color: #ccc; font-size: 8pt"), e.add(".month_default_event_timeright", "color: #ccc; font-size: 8pt; text-align: right;"), e.add(".month_default_loading", "background-color: orange; color: white; padding: 2px;"), e.commit(), DayPilot.Global.defaultCss = !0;
207
210
  }
208
211
  }(), DayPilot.doc = function () { var e = document.documentElement; return e && e.clientHeight ? e : document.body; }, DayPilot.guid = function () { var e = function () { return (65536 * (1 + Math.random()) | 0).toString(16).substring(1); }; return "" + e() + e() + "-" + e() + "-" + e() + "-" + e() + "-" + e() + e() + e(); }, DayPilot.pageOffset = function () {
209
212
  if ("undefined" != typeof pageXOffset)
@@ -217,7 +220,13 @@ if ("undefined" == typeof DayPilot)
217
220
  if (e[a] === t)
218
221
  return a;
219
222
  return -1;
220
- }, DayPilot.mc = function (e) { return e.pageX || e.pageY ? { x: e.pageX, y: e.pageY } : { x: e.clientX + document.documentElement.scrollLeft, y: e.clientY + document.documentElement.scrollTop }; }, DayPilot.Stats = {}, DayPilot.Stats.eventObjects = 0, DayPilot.Stats.dateObjects = 0, DayPilot.Stats.cacheHitsCtor = 0, DayPilot.Stats.cacheHitsParsing = 0, DayPilot.Stats.cacheHitsTicks = 0, DayPilot.Stats.print = function () { console.log("DayPilot.Stats.eventObjects: " + DayPilot.Stats.eventObjects), console.log("DayPilot.Stats.dateObjects: " + DayPilot.Stats.dateObjects), console.log("DayPilot.Stats.cacheHitsCtor: " + DayPilot.Stats.cacheHitsCtor), console.log("DayPilot.Stats.cacheHitsParsing: " + DayPilot.Stats.cacheHitsParsing), console.log("DayPilot.Stats.cacheHitsTicks: " + DayPilot.Stats.cacheHitsTicks), console.log("DayPilot.Date.Cache.Ctor keys: " + Object.keys(DayPilot.Date.Cache.Ctor).length), console.log("DayPilot.Date.Cache.Parsing keys: " + Object.keys(DayPilot.Date.Cache.Parsing).length); }, DayPilot.re = function (e, t, a) { a && e && e.addEventListener(t, a, !1); }, DayPilot.rePassive = function (e, t, a) { a && e && e.addEventListener(t, a, { "passive": !0 }); }, DayPilot.reNonPassive = function (e, t, a) { a && e && e.addEventListener(t, a, { "passive": !1 }); }, DayPilot.pu = function (e) {
223
+ }, DayPilot.ac = function (e, t) {
224
+ if (!t)
225
+ var t = [];
226
+ for (var a = 0; e.children && a < e.children.length; a++)
227
+ t.push(e.children[a]), DayPilot.ac(e.children[a], t);
228
+ return t;
229
+ }, DayPilot.rfa = function (e, t) { var a = DayPilot.indexOf(e, t); a !== -1 && e.splice(a, 1); }, DayPilot.mc = function (e) { return e.pageX || e.pageY ? { x: e.pageX, y: e.pageY } : { x: e.clientX + document.documentElement.scrollLeft, y: e.clientY + document.documentElement.scrollTop }; }, DayPilot.Stats = {}, DayPilot.Stats.eventObjects = 0, DayPilot.Stats.dateObjects = 0, DayPilot.Stats.cacheHitsCtor = 0, DayPilot.Stats.cacheHitsParsing = 0, DayPilot.Stats.cacheHitsTicks = 0, DayPilot.re = function (e, t, a) { a && t && e && e.addEventListener(t, a, !1); }, DayPilot.rePassive = function (e, t, a) { a && t && e && e.addEventListener(t, a, { "passive": !0 }); }, DayPilot.reNonPassive = function (e, t, a) { a && t && e && e.addEventListener(t, a, { "passive": !1 }); }, DayPilot.pu = function (e) {
221
230
  var t, a, r, o = e.attributes;
222
231
  if (o)
223
232
  for (a = o.length, t = 0; t < a; t += 1)
@@ -247,8 +256,8 @@ if ("undefined" == typeof DayPilot)
247
256
  var t = DayPilot.createXmlHttp();
248
257
  if (!t)
249
258
  throw new DayPilot.Exception("Unable to create XMLHttpRequest object");
250
- var a = "object" == typeof e.data, r = e.data, o = e.method || (e.data ? "POST" : "GET"), n = e.success || function () { }, i = e.error || function () { }, d = e.url, l = e.contentType || (a ? "application/json" : "text/plain"), s = e.headers || {};
251
- t.open(o, d, !0), t.setRequestHeader("Content-type", l), DayPilot.Util.ownPropsAsArray(s).forEach(function (e) { t.setRequestHeader(e.key, e.val); }), t.onreadystatechange = function () {
259
+ var a = "object" == typeof e.data, r = e.data, o = e.method || (e.data ? "POST" : "GET"), n = e.success || function () { }, i = e.error || function () { }, l = e.url, d = e.contentType || (a ? "application/json" : "text/plain"), s = e.headers || {};
260
+ t.open(o, l, !0), t.setRequestHeader("Content-type", d), DayPilot.Util.ownPropsAsArray(s).forEach(function (e) { t.setRequestHeader(e.key, e.val); }), t.onreadystatechange = function () {
252
261
  if (4 === t.readyState)
253
262
  if (200 === t.status || 201 === t.status || 204 === t.status || 304 === t.status) {
254
263
  var e = {};
@@ -294,7 +303,181 @@ if ("undefined" == typeof DayPilot)
294
303
  r.key = a, r.val = e[a], t.push(r);
295
304
  }
296
305
  return t;
297
- }, DayPilot.Util.replaceCharAt = function (e, t, a) { return e.substr(0, t) + a + e.substr(t + a.length); }, DayPilot.Util.isNullOrUndefined = function (e) { return null === e || "undefined" == typeof e; }, DayPilot.Util.escapeHtml = function (e) { var t = document.createElement("div"); return t.innerText = e, t.innerHTML; }, DayPilot.Util.escapeTextHtml = function (e, t) { return DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : DayPilot.Util.escapeHtml(e) : t; }, DayPilot.Exception = function (e) { return new Error(e); }, DayPilot.Locale = function (e, t) {
306
+ }, DayPilot.Util.replaceCharAt = function (e, t, a) { return e.substr(0, t) + a + e.substr(t + a.length); }, DayPilot.Util.isNullOrUndefined = function (e) { return null === e || "undefined" == typeof e; }, DayPilot.Util.escapeHtml = function (e) { var t = document.createElement("div"); return t.innerText = e, t.innerHTML; }, DayPilot.Util.escapeTextHtml = function (e, t) { return DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : DayPilot.Util.escapeHtml(e) : t; }, DayPilot.Areas = {}, DayPilot.Areas.attach = function (e, t, a) {
307
+ var a = a || {}, o = a.areas, n = a.allowed || function () { return !0; }, i = a.offsetX || 0;
308
+ o = r(t, o), o && DayPilot.isArray(o) && 0 !== o.length && (DayPilot.re(e, "mousemove", function (r) { e.active || e.areasDisabled || !n() || DayPilot.Areas.showAreas(e, t, r, o, { "offsetX": i, "eventDiv": a.eventDiv }); }), DayPilot.re(e, "mouseleave", function (t) { DayPilot.Areas.hideAreas(e, t); }), o.forEach(function (r) {
309
+ if (DayPilot.Areas.isVisible(r)) {
310
+ var o = DayPilot.Areas.createArea(e, t, r, { "offsetX": i, "eventDiv": a.eventDiv });
311
+ e.appendChild(o);
312
+ }
313
+ }));
314
+ }, DayPilot.Areas.disable = function (e) { e.areasDisabled = !0, Array.from(e.childNodes).filter(function (e) { return e.isActiveArea && !e.area.start; }).forEach(function (e) { e.c = e.style.display, e.style.display = "none"; }); }, DayPilot.Areas.enable = function (e) { e.areasDisabled = !1, Array.from(e.childNodes).filter(function (e) { return e.isActiveArea && !e.area.start; }).forEach(function (e) { e.c ? e.style.display = e.c : e.style.display = ""; }); }, DayPilot.Areas.remove = function (e) { var t = Array.from(e.childNodes).filter(function (e) { return e.isActiveArea; }); DayPilot.de(t); }, DayPilot.Areas.isVisible = function (e) { var t = e.visibility || e.v || "Visible"; return "Visible" === t || "TouchVisible" === t && !DayPilot.browser.hover; }, DayPilot.Areas.copy = function (e) { return DayPilot.isArray(e) ? e.map(function (e) { return DayPilot.Util.copyProps(e, {}); }) : []; };
315
+ var r = function (e, t) { return DayPilot.isArray(t) || (t = e.areas, t || (e.cache ? t = e.cache.areas : e.data && (t = e.data.areas))), t; };
316
+ DayPilot.Areas.showAreas = function (e, t, a, r, o) {
317
+ if (!DayPilot.Global.resizing && !DayPilot.Global.moving && !DayPilot.Global.selecting && !e.active && DayPilot.browser.hover) {
318
+ if (DayPilot.Areas.all && DayPilot.Areas.all.length > 0)
319
+ for (var n = 0; n < DayPilot.Areas.all.length; n++) {
320
+ var i = DayPilot.Areas.all[n];
321
+ i !== e && DayPilot.Areas.hideAreas(i, a);
322
+ }
323
+ if (e.active = {}, DayPilot.isArray(r) || (r = t.areas, r || (t.cache ? r = t.cache.areas : t.data && (r = t.data.areas))), r && 0 !== r.length && !(e.areas && e.areas.length > 0)) {
324
+ e.areas = [];
325
+ for (var n = 0; n < r.length; n++) {
326
+ var l = r[n];
327
+ if (!DayPilot.Areas.isVisible(l)) {
328
+ var d = DayPilot.Areas.createArea(e, t, l, o);
329
+ e.areas.push(d), e.appendChild(d), DayPilot.Areas.all.push(e);
330
+ }
331
+ }
332
+ e.active.children = DayPilot.ac(e);
333
+ }
334
+ }
335
+ }, DayPilot.Areas.createArea = function (e, t, a, r) {
336
+ function o(e, t, a) { var r = {}; return r.area = e, r.source = t, r.originalEvent = a, r.preventDefault = function () { r.preventDefault.value = !0; }, "function" == typeof e.onClick && e.onClick(r), r; }
337
+ function n(e, t, a) { DayPilot.Bubble && DayPilot.Bubble.touchPosition(a), e.calendar.bubble && e.calendar.bubble.showEvent(e, !0); }
338
+ function i(e, t, a, r) {
339
+ DayPilot.Menu && DayPilot.Menu.touchPosition(r);
340
+ var o = a.contextMenu || a.menu;
341
+ if (o instanceof DayPilot.Menu || (t.isEvent && t.client.contextMenu() ? o = t.client.contextMenu() : t.isEvent && t.calendar.contextMenu && (o = t.calendar.contextMenu)), o && o.show) {
342
+ var n = { "type": "area", "div": e, "e": t, "area": a, "a": s };
343
+ o.show(t, { "initiator": n });
344
+ }
345
+ }
346
+ var r = r || {}, l = r.offsetX || 0, d = r.eventDiv || e, s = document.createElement("div");
347
+ s.isActiveArea = !0, s.area = a, s.setAttribute("unselectable", "on");
348
+ var u = a.w || a.width, c = a.h || a.height, f = a.cssClass || a.css || a.className;
349
+ if ("undefined" != typeof a.style && s.setAttribute("style", a.style), s.style.position = "absolute", "undefined" != typeof u && (s.style.width = u + "px"), "undefined" != typeof c && (s.style.height = c + "px"), "undefined" != typeof a.right && (s.style.right = a.right + "px"), "undefined" != typeof a.top && (s.style.top = a.top + "px"), "undefined" != typeof a.left && (s.style.left = a.left + l + "px"), "undefined" != typeof a.bottom && (s.style.bottom = a.bottom + "px"), "undefined" != typeof a.html || "undefined" != typeof a.text)
350
+ s.innerHTML = DayPilot.Util.escapeTextHtml(a.text, a.html);
351
+ else if (a.icon) {
352
+ var y = document.createElement("i");
353
+ y.className = a.icon, s.appendChild(y);
354
+ }
355
+ else if (a.image) {
356
+ var m = document.createElement("img");
357
+ m.src = a.image, s.appendChild(m);
358
+ }
359
+ else if (a.symbol) {
360
+ var h = "http://www.w3.org/2000/svg", p = document.createElementNS(h, "svg");
361
+ p.setAttribute("width", "100%"), p.setAttribute("height", "100%");
362
+ var g = document.createElementNS(h, "use");
363
+ g.setAttribute("href", a.symbol), p.appendChild(g), s.appendChild(p);
364
+ }
365
+ if (f && (s.className = f), a.toolTip && s.setAttribute("title", a.toolTip), a.backColor && (s.style.background = a.backColor), a.background && (s.style.background = a.background), a.fontColor && (s.style.color = a.fontColor), a.padding && (s.style.padding = a.padding + "px", s.style.boxSizing = "border-box"), a.verticalAlignment)
366
+ switch (s.style.display = "flex", a.verticalAlignment) {
367
+ case "center":
368
+ s.style.alignItems = "center";
369
+ break;
370
+ case "top":
371
+ s.style.alignItems = "flex-start";
372
+ break;
373
+ case "bottom": s.style.alignItems = "flex-end";
374
+ }
375
+ if (a.horizontalAlignment)
376
+ switch (s.style.display = "flex", a.horizontalAlignment) {
377
+ case "right":
378
+ s.style.justifyContent = "flex-end";
379
+ break;
380
+ case "left":
381
+ s.style.justifyContent = "flex-start";
382
+ break;
383
+ case "center": s.style.justifyContent = "center";
384
+ }
385
+ if ("ResizeEnd" === a.action || "ResizeStart" === a.action || "Move" === a.action) {
386
+ if (t.calendar.isCalendar)
387
+ switch (a.action) {
388
+ case "ResizeEnd":
389
+ a.cursor = "s-resize", a.dpBorder = "bottom";
390
+ break;
391
+ case "ResizeStart":
392
+ a.cursor = "n-resize", a.dpBorder = "top";
393
+ break;
394
+ case "Move": a.cursor = "move";
395
+ }
396
+ if (t.calendar.isScheduler || t.calendar.isMonth)
397
+ switch (a.action) {
398
+ case "ResizeEnd":
399
+ a.cursor = "e-resize", a.dpBorder = "right";
400
+ break;
401
+ case "ResizeStart":
402
+ a.cursor = "w-resize", a.dpBorder = "left";
403
+ break;
404
+ case "Move": a.cursor = "move";
405
+ }
406
+ s.onmousemove = function (e, t, a) { return function (r) { t.calendar.internal && t.calendar.internal.dragInProgress && t.calendar.internal.dragInProgress() || (r.cancelBubble = !0, e.style.cursor = a.cursor, a.dpBorder && (e.dpBorder = a.dpBorder)); }; }(d, t, a), s.onmouseout = function (e, t, a) { return function (t) { e.style.cursor = ""; }; }(d, t, a);
407
+ }
408
+ if (("ResizeEnd" === a.action || "ResizeStart" === a.action) && t.isEvent && t.calendar.internal.touch) {
409
+ var b = function (e, t, a) { return function (r) { r.cancelBubble = !0; var o = t.calendar.internal.touch, n = r.touches ? r.touches[0] : r, i = { x: n.pageX, y: n.pageY }; t.calendar.coords = o.relativeCoords(r), o.preventEventTap = !0, t.calendar.isScheduler ? o.startResizing(e, "ResizeEnd" === a.action ? "right" : "left") : t.calendar.isCalendar && o.startResizing(e, "ResizeEnd" === a.action ? "bottom" : "top", i); }; }(d, t, a);
410
+ DayPilot.rePassive(s, DayPilot.touch.start, b);
411
+ }
412
+ if ("ContextMenu" === a.action && t.isEvent && t.calendar.internal.touch) {
413
+ var b = function (e, t, a) { return function (r) { r.cancelBubble = !0, r.preventDefault(), i(e, t, a, r), t.calendar.internal.touch.preventEventTap = !0; }; }(d, t, a), D = function (e, t, a) { return function (e) { e.cancelBubble = !0, e.preventDefault(); }; }(d, t, a);
414
+ DayPilot.reNonPassive(s, DayPilot.touch.start, b), DayPilot.reNonPassive(s, DayPilot.touch.end, D);
415
+ }
416
+ if ("Bubble" === a.action && t.isEvent && t.calendar.internal.touch) {
417
+ var b = function (e, t, a) {
418
+ return function (e) {
419
+ e.cancelBubble = !0, e.preventDefault();
420
+ var r = o(a, t, e);
421
+ if (!r.preventDefault.value) {
422
+ n(t, a, e);
423
+ t.calendar.internal.touch.preventEventTap = !0, "function" == typeof a.onClicked && a.onClicked(r);
424
+ }
425
+ };
426
+ }(d, t, a), D = function (e, t, a) { return function (e) { e.cancelBubble = !0, e.preventDefault(); }; }(d, t, a);
427
+ DayPilot.reNonPassive(s, DayPilot.touch.start, b), DayPilot.reNonPassive(s, DayPilot.touch.end, D);
428
+ }
429
+ if ("Move" === a.action && t.isEvent && t.calendar.internal.touch) {
430
+ var b = function (e, t, a) { return function (a) { a.cancelBubble = !0; var r = t.calendar.internal.touch, o = a.touches ? a.touches[0] : a, n = { x: o.pageX, y: o.pageY }; t.calendar.coords = r.relativeCoords(a), DayPilot.Global && DayPilot.Global.touch && (DayPilot.Global.touch.active = !0), r.preventEventTap = !0, r.startMoving(e, n); }; }(d, t, a);
431
+ DayPilot.rePassive(s, DayPilot.touch.start, b);
432
+ }
433
+ if ("Bubble" === a.action && t.isEvent ? (s.onmousemove = function (e, t, a) { return function (e) { a.bubble ? a.bubble.showEvent(t, !0) : t.calendar.bubble && t.calendar.bubble.showEvent(t, !0); }; }(e, t, a), s.onmouseout = function (e, t, a) { return function (e) { "undefined" != typeof DayPilot.Bubble && (a.bubble ? a.bubble.hideOnMouseOut() : t.calendar.bubble && t.calendar.bubble.hideOnMouseOut()); }; }(e, t, a)) : "Bubble" === a.action && t.isRow ? (s.onmousemove = function (e, t, a) { return function (e) { a.bubble ? a.bubble.showResource(t, !0) : t.calendar.resourceBubble && t.calendar.resourceBubble.showResource(t, !0); }; }(e, t, a), s.onmouseout = function (e, t, a) { return function (e) { "undefined" != typeof DayPilot.Bubble && (a.bubble ? a.bubble.hideOnMouseOut() : t.calendar.resourceBubble && t.calendar.resourceBubble.hideOnMouseOut()); }; }(e, t, a)) : "Bubble" === a.action && "undefined" != typeof DayPilot.Bubble && a.bubble instanceof DayPilot.Bubble && (s.onmousemove = function (e, t, a) { return function (e) { a.bubble.showHtml(null, null); }; }(e, t, a), s.onmouseout = function (e, t, a) { return function (e) { "undefined" != typeof DayPilot.Bubble && a.bubble && a.bubble.hideOnMouseOut(); }; }(e, t, a)), "HoverMenu" === a.action && (s.onmousemove = function (e, t, a) { return function (e) { var r = a.menu; r && r.show && (r.visible ? r.source && "undefined" != typeof r.source.id && r.source.id !== t.id && r.show(t) : r.show(t), r.cancelHideTimeout()); }; }(e, t, a), s.onmouseout = function (e, t, a) { return function (e) { var t = a.menu; t && t.hideOnMouseOver && t.delayedHide(); }; }(e, t, a)), "None" === a.action) {
434
+ var b = function (e, t, a) { return function (e) { var r = o(a, t, e); "function" == typeof a.onClicked && a.onClicked(r), e.preventDefault(), e.stopPropagation(); }; }(d, t, a);
435
+ DayPilot.reNonPassive(s, DayPilot.touch.start, b);
436
+ }
437
+ return s.onmousedown = function (e, t, a) {
438
+ return function (r) {
439
+ if ("function" == typeof a.onmousedown && a.onmousedown(r), "function" == typeof a.mousedown) {
440
+ var o = {};
441
+ o.area = a, o.div = e, o.originalEvent = r, o.source = t, a.mousedown(o);
442
+ }
443
+ if ("Move" === a.action && t.isRow) {
444
+ var n = t.$.row;
445
+ (0, t.calendar.internal.rowStartMoving)(n);
446
+ }
447
+ "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), "Move" === a.action && (DayPilot.Global.movingAreaData = a.data), "Move" === a.action && t.isEvent && t.calendar.internal && t.calendar.internal.startMoving && t.calendar.internal.startMoving(e, r);
448
+ "Move" !== a.action && "ResizeEnd" !== a.action && "ResizeStart" !== a.action && a.action && "Default" !== a.action && (r.preventDefault(), r.cancelBubble = !0);
449
+ };
450
+ }(e, t, a), s.onclick = function (e, t, a) {
451
+ return function (r) {
452
+ var n = o(a, t, r);
453
+ if (!n.preventDefault.value) {
454
+ switch (a.action) {
455
+ case "ContextMenu":
456
+ i(e, t, a, r), r.cancelBubble = !0;
457
+ break;
458
+ case "None": r.cancelBubble = !0;
459
+ }
460
+ "function" == typeof a.onClicked && a.onClicked(n);
461
+ }
462
+ };
463
+ }(e, t, a), "function" == typeof a.onMouseEnter && s.addEventListener("mouseenter", function (e, t, a) { return function (e) { var r = {}; r.area = a, r.source = t, r.originalEvent = e, a.onMouseEnter(r); }; }(e, t, a)), "function" == typeof a.onMouseLeave && s.addEventListener("mouseleave", function (e, t, a) { return function (e) { var r = {}; r.area = a, r.source = t, r.originalEvent = e, a.onMouseLeave(r); }; }(e, t, a)), s;
464
+ }, DayPilot.Areas.all = [], DayPilot.Areas.hideAreas = function (e, t) {
465
+ if (e && e && e.active) {
466
+ var a = e.active, r = e.areas;
467
+ if (a && a.children && t) {
468
+ var o = t.toElement || t.relatedTarget;
469
+ if (~DayPilot.indexOf(a.children, o))
470
+ return;
471
+ }
472
+ if (!r || 0 === r.length)
473
+ return void (e.active = null);
474
+ DayPilot.de(r), e.active = null, e.areas = [], DayPilot.rfa(DayPilot.Areas.all, e), a.children = null;
475
+ }
476
+ }, DayPilot.Areas.hideAll = function (e) {
477
+ if (DayPilot.Areas.all && 0 !== DayPilot.Areas.all.length)
478
+ for (var t = 0; t < DayPilot.Areas.all.length; t++)
479
+ DayPilot.Areas.hideAreas(DayPilot.Areas.all[t], e);
480
+ }, DayPilot.Exception = function (e) { return new Error(e); }, DayPilot.Locale = function (e, t) {
298
481
  if (this.id = e, this.dayNames = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], this.dayNamesShort = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], this.monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], this.datePattern = "M/d/yyyy", this.timePattern = "H:mm", this.dateTimePattern = "M/d/yyyy H:mm", this.timeFormat = "Clock12Hours", this.weekStarts = 0, t)
299
482
  for (var a in t)
300
483
  this[a] = t[a];
@@ -303,16 +486,15 @@ if ("undefined" == typeof DayPilot)
303
486
  return null;
304
487
  var t = e.toLowerCase();
305
488
  return t.length > 2 && (t = DayPilot.Util.replaceCharAt(t, 2, "-")), DayPilot.Locale.all[t];
306
- }, DayPilot.Locale.register = function (e) { DayPilot.Locale.all[e.id] = e; }, DayPilot.Locale.register(new DayPilot.Locale("ca-es", { "dayNames": ["diumenge", "dilluns", "dimarts", "dimecres", "dijous", "divendres", "dissabte"], "dayNamesShort": ["dg", "dl", "dt", "dc", "dj", "dv", "ds"], "monthNames": ["gener", "febrer", "març", "abril", "maig", "juny", "juliol", "agost", "setembre", "octubre", "novembre", "desembre", ""], "monthNamesShort": ["gen.", "febr.", "març", "abr.", "maig", "juny", "jul.", "ag.", "set.", "oct.", "nov.", "des.", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("cs-cz", { "dayNames": ["neděle", "pondělí", "úterý", "středa", "čtvrtek", "pátek", "sobota"], "dayNamesShort": ["ne", "po", "út", "st", "čt", "pá", "so"], "monthNames": ["leden", "únor", "březen", "duben", "květen", "červen", "červenec", "srpen", "září", "říjen", "listopad", "prosinec", ""], "monthNamesShort": ["I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX", "X", "XI", "XII", ""], "timePattern": "H:mm", "datePattern": "d. M. yyyy", "dateTimePattern": "d. M. yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("da-dk", { "dayNames": ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], "dayNamesShort": ["sø", "ma", "ti", "on", "to", "fr", "lø"], "monthNames": ["januar", "februar", "marts", "april", "maj", "juni", "juli", "august", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "dd-MM-yyyy", "dateTimePattern": "dd-MM-yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-at", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"],
307
- "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) {
489
+ }, DayPilot.Locale.register = function (e) { DayPilot.Locale.all[e.id] = e; }, DayPilot.Locale.register(new DayPilot.Locale("ca-es", { "dayNames": ["diumenge", "dilluns", "dimarts", "dimecres", "dijous", "divendres", "dissabte"], "dayNamesShort": ["dg", "dl", "dt", "dc", "dj", "dv", "ds"], "monthNames": ["gener", "febrer", "març", "abril", "maig", "juny", "juliol", "agost", "setembre", "octubre", "novembre", "desembre", ""], "monthNamesShort": ["gen.", "febr.", "març", "abr.", "maig", "juny", "jul.", "ag.", "set.", "oct.", "nov.", "des.", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("cs-cz", { "dayNames": ["neděle", "pondělí", "úterý", "středa", "čtvrtek", "pátek", "sobota"], "dayNamesShort": ["ne", "po", "út", "st", "čt", "pá", "so"], "monthNames": ["leden", "únor", "březen", "duben", "květen", "červen", "červenec", "srpen", "září", "říjen", "listopad", "prosinec", ""], "monthNamesShort": ["I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX", "X", "XI", "XII", ""], "timePattern": "H:mm", "datePattern": "d. M. yyyy", "dateTimePattern": "d. M. yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("da-dk", { "dayNames": ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], "dayNamesShort": ["sø", "ma", "ti", "on", "to", "fr", "lø"], "monthNames": ["januar", "februar", "marts", "april", "maj", "juni", "juli", "august", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "dd-MM-yyyy", "dateTimePattern": "dd-MM-yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-at", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Jänner", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jän", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-ch", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-de", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-lu", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-au", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "h:mm tt", "datePattern": "d/MM/yyyy", "dateTimePattern": "d/MM/yyyy h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-ca", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "h:mm tt", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("en-gb", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-us", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "h:mm tt", "datePattern": "M/d/yyyy", "dateTimePattern": "M/d/yyyy h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("es-es", { "dayNames": ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], "dayNamesShort": ["D", "L", "M", "X", "J", "V", "S"], "monthNames": ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre", ""], "monthNamesShort": ["ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sep.", "oct.", "nov.", "dic.", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("es-mx", { "dayNames": ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], "dayNamesShort": ["do.", "lu.", "ma.", "mi.", "ju.", "vi.", "sá."], "monthNames": ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre", ""], "monthNamesShort": ["ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sep.", "oct.", "nov.", "dic.", ""], "timePattern": "hh:mm tt", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy hh:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("eu-es", { "dayNames": ["igandea", "astelehena", "asteartea", "asteazkena", "osteguna", "ostirala", "larunbata"], "dayNamesShort": ["ig", "al", "as", "az", "og", "or", "lr"], "monthNames": ["urtarrila", "otsaila", "martxoa", "apirila", "maiatza", "ekaina", "uztaila", "abuztua", "iraila", "urria", "azaroa", "abendua", ""], "monthNamesShort": ["urt.", "ots.", "mar.", "api.", "mai.", "eka.", "uzt.", "abu.", "ira.", "urr.", "aza.", "abe.", ""], "timePattern": "H:mm", "datePattern": "yyyy/MM/dd", "dateTimePattern": "yyyy/MM/dd H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fi-fi", { "dayNames": ["sunnuntai", "maanantai", "tiistai", "keskiviikko", "torstai", "perjantai", "lauantai"], "dayNamesShort": ["su", "ma", "ti", "ke", "to", "pe", "la"], "monthNames": ["tammikuu", "helmikuu", "maaliskuu", "huhtikuu", "toukokuu", "kesäkuu", "heinäkuu", "elokuu", "syyskuu", "lokakuu", "marraskuu", "joulukuu", ""], "monthNamesShort": ["tammi", "helmi", "maalis", "huhti", "touko", "kesä", "heinä", "elo", "syys", "loka", "marras", "joulu", ""], "timePattern": "H:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-be", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd-MM-yy", "dateTimePattern": "dd-MM-yy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-ch", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-fr", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-lu", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("gl-es", { "dayNames": ["domingo", "luns", "martes", "mércores", "xoves", "venres", "sábado"], "dayNamesShort": ["do", "lu", "ma", "mé", "xo", "ve", "sá"], "monthNames": ["xaneiro", "febreiro", "marzo", "abril", "maio", "xuño", "xullo", "agosto", "setembro", "outubro", "novembro", "decembro", ""], "monthNamesShort": ["xan", "feb", "mar", "abr", "maio", "xuño", "xul", "ago", "set", "out", "nov", "dec", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("it-it", { "dayNames": ["domenica", "lunedì", "martedì", "mercoledì", "giovedì", "venerdì", "sabato"], "dayNamesShort": ["do", "lu", "ma", "me", "gi", "ve", "sa"], "monthNames": ["gennaio", "febbraio", "marzo", "aprile", "maggio", "giugno", "luglio", "agosto", "settembre", "ottobre", "novembre", "dicembre", ""], "monthNamesShort": ["gen", "feb", "mar", "apr", "mag", "giu", "lug", "ago", "set", "ott", "nov", "dic", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("it-ch", { "dayNames": ["domenica", "lunedì", "martedì", "mercoledì", "giovedì", "venerdì", "sabato"], "dayNamesShort": ["do", "lu", "ma", "me", "gi", "ve", "sa"], "monthNames": ["gennaio", "febbraio", "marzo", "aprile", "maggio", "giugno", "luglio", "agosto", "settembre", "ottobre", "novembre", "dicembre", ""], "monthNamesShort": ["gen", "feb", "mar", "apr", "mag", "giu", "lug", "ago", "set", "ott", "nov", "dic", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("ja-jp", { "dayNames": ["日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"], "dayNamesShort": ["日", "月", "火", "水", "木", "金", "土"], "monthNames": ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月", ""], "monthNamesShort": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", ""], "timePattern": "H:mm", "datePattern": "yyyy/MM/dd", "dateTimePattern": "yyyy/MM/dd H:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("nb-no", { "dayNames": ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], "dayNamesShort": ["sø", "ma", "ti", "on", "to", "fr", "lø"], "monthNames": ["januar", "februar", "mars", "april", "mai", "juni", "juli", "august", "september", "oktober", "november", "desember", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "mai", "jun", "jul", "aug", "sep", "okt", "nov", "des", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nl-nl", { "dayNames": ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"], "dayNamesShort": ["zo", "ma", "di", "wo", "do", "vr", "za"], "monthNames": ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "d-M-yyyy", "dateTimePattern": "d-M-yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nl-be", { "dayNames": ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"], "dayNamesShort": ["zo", "ma", "di", "wo", "do", "vr", "za"], "monthNames": ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "H:mm", "datePattern": "d/MM/yyyy", "dateTimePattern": "d/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nn-no", { "dayNames": ["søndag", "måndag", "tysdag", "onsdag", "torsdag", "fredag", "laurdag"], "dayNamesShort": ["sø", "må", "ty", "on", "to", "fr", "la"], "monthNames": ["januar", "februar", "mars", "april", "mai", "juni", "juli", "august", "september", "oktober", "november", "desember", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "mai", "jun", "jul", "aug", "sep", "okt", "nov", "des", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("pt-br", { "dayNames": ["domingo", "segunda-feira", "terça-feira", "quarta-feira", "quinta-feira", "sexta-feira", "sábado"], "dayNamesShort": ["D", "S", "T", "Q", "Q", "S", "S"], "monthNames": ["janeiro", "fevereiro", "março", "abril", "maio", "junho", "julho", "agosto", "setembro", "outubro", "novembro", "dezembro", ""], "monthNamesShort": ["jan", "fev", "mar", "abr", "mai", "jun", "jul", "ago", "set", "out", "nov", "dez", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("pl-pl", { "dayNames": ["niedziela", "poniedziałek", "wtorek", "środa", "czwartek", "piątek", "sobota"], "dayNamesShort": ["N", "Pn", "Wt", "Śr", "Cz", "Pt", "So"], "monthNames": ["styczeń", "luty", "marzec", "kwiecień", "maj", "czerwiec", "lipiec", "sierpień", "wrzesień", "październik", "listopad", "grudzień", ""], "monthNamesShort": ["sty", "lut", "mar", "kwi", "maj", "cze", "lip", "sie", "wrz", "paź", "lis", "gru", ""], "timePattern": "HH:mm", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("pt-pt", { "dayNames": ["domingo", "segunda-feira", "terça-feira", "quarta-feira", "quinta-feira", "sexta-feira", "sábado"], "dayNamesShort": ["D", "S", "T", "Q", "Q", "S", "S"], "monthNames": ["janeiro", "fevereiro", "março", "abril", "maio", "junho", "julho", "agosto", "setembro", "outubro", "novembro", "dezembro", ""], "monthNamesShort": ["jan", "fev", "mar", "abr", "mai", "jun", "jul", "ago", "set", "out", "nov", "dez", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("ro-ro", { "dayNames": ["duminică", "luni", "marți", "miercuri", "joi", "vineri", "sâmbătă"], "dayNamesShort": ["D", "L", "Ma", "Mi", "J", "V", "S"], "monthNames": ["ianuarie", "februarie", "martie", "aprilie", "mai", "iunie", "iulie", "august", "septembrie", "octombrie", "noiembrie", "decembrie", ""], "monthNamesShort": ["ian.", "feb.", "mar.", "apr.", "mai.", "iun.", "iul.", "aug.", "sep.", "oct.", "nov.", "dec.", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("ru-ru", { "dayNames": ["воскресенье", "понедельник", "вторник", "среда", "четверг", "пятница", "суббота"], "dayNamesShort": ["Вс", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], "monthNames": ["Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь", ""], "monthNamesShort": ["янв", "фев", "мар", "апр", "май", "июн", "июл", "авг", "сен", "окт", "ноя", "дек", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("sk-sk", { "dayNames": ["nedeľa", "pondelok", "utorok", "streda", "štvrtok", "piatok", "sobota"], "dayNamesShort": ["ne", "po", "ut", "st", "št", "pi", "so"], "monthNames": ["január", "február", "marec", "apríl", "máj", "jún", "júl", "august", "september", "október", "november", "december", ""], "monthNamesShort": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", ""], "timePattern": "H:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("sv-se", { "dayNames": ["söndag", "måndag", "tisdag", "onsdag", "torsdag", "fredag", "lördag"], "dayNamesShort": ["sö", "må", "ti", "on", "to", "fr", "lö"], "monthNames": ["januari", "februari", "mars", "april", "maj", "juni", "juli", "augusti", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("tr-tr", { "dayNames": ["Pazar", "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi"], "dayNamesShort": ["Pz", "Pt", "Sa", "Ça", "Pe", "Cu", "Ct"], "monthNames": ["Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık", ""], "monthNamesShort": ["Oca", "Şub", "Mar", "Nis", "May", "Haz", "Tem", "Ağu", "Eyl", "Eki", "Kas", "Ara", ""], "timePattern": "HH:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("uk-ua", { "dayNames": ["неділя", "понеділок", "вівторок", "середа", "четвер", "п'ятниця", "субота"], "dayNamesShort": ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], "monthNames": ["січень", "лютий", "березень", "квітень", "травень", "червень", "липень", "серпень", "вересень", "жовтень", "листопад", "грудень", ""], "monthNamesShort": ["Січ", "Лют", "Бер", "Кві", "Тра", "Чер", "Лип", "Сер", "Вер", "Жов", "Лис", "Гру", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("zh-cn", { "dayNames": ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], "dayNamesShort": ["日", "一", "二", "三", "四", "五", "六"], "monthNames": ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月", ""], "monthNamesShort": ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月", ""], "timePattern": "H:mm", "datePattern": "yyyy/M/d", "dateTimePattern": "yyyy/M/d H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.US = DayPilot.Locale.find("en-us"), DayPilot.Duration = function (e) {
308
490
  var t = this, a = 864e5, r = 36e5, o = 6e4, n = 1e3;
309
491
  if (2 === arguments.length) {
310
- var i = arguments[0], d = arguments[1];
492
+ var i = arguments[0], l = arguments[1];
311
493
  if (!(i instanceof DayPilot.Date) && "string" != typeof i)
312
494
  throw "DayPilot.Duration(): Invalid start argument, DayPilot.Date expected";
313
- if (!(d instanceof DayPilot.Date) && "string" != typeof d)
495
+ if (!(l instanceof DayPilot.Date) && "string" != typeof l)
314
496
  throw "DayPilot.Duration(): Invalid end argument, DayPilot.Date expected";
315
- "string" == typeof i && (i = new DayPilot.Date(i)), "string" == typeof d && (d = new DayPilot.Date(d)), e = d.getTime() - i.getTime();
497
+ "string" == typeof i && (i = new DayPilot.Date(i)), "string" == typeof l && (l = new DayPilot.Date(l)), e = l.getTime() - i.getTime();
316
498
  }
317
499
  return this.ticks = e, DayPilot.Date.Cache.DurationCtor["" + e] ? DayPilot.Date.Cache.DurationCtor["" + e] : (DayPilot.Date.Cache.DurationCtor["" + e] = this, this.toString = function (e) {
318
500
  if (!e)
@@ -350,7 +532,8 @@ if ("undefined" == typeof DayPilot)
350
532
  }
351
533
  var i = e(r);
352
534
  return o[i] ? o[i] : (o[i] = this, o[r] = this, n && i !== t && DayPilot.DateUtil.hasTzSpec(t) && (o[t] = this), Object.defineProperty && !DayPilot.browser.ielt9 ? (Object.defineProperty(this, "ticks", { get: function () { return r; } }), Object.defineProperty(this, "value", { "value": i, "writable": !1, "enumerable": !0 })) : (this.ticks = r, this.value = i), DayPilot.Date.Config.legacyShowD && (this.d = new Date(r)), void (DayPilot.Stats.dateObjects += 1));
353
- }, DayPilot.Date.Config = {}, DayPilot.Date.Config.legacyShowD = !1, DayPilot.Date.Cache = {}, DayPilot.Date.Cache.Parsing = {}, DayPilot.Date.Cache.Ctor = {}, DayPilot.Date.Cache.Ticks = {}, DayPilot.Date.Cache.DurationCtor = {}, DayPilot.Date.Cache.clear = function () { DayPilot.Date.Cache.Parsing = {}, DayPilot.Date.Cache.Ctor = {}, DayPilot.Date.Cache.Ticks = {}, DayPilot.Date.Cache.DurationCtor = {}; }, DayPilot.Date.prototype.addDays = function (e) { return e ? new DayPilot.Date(this.ticks + 24 * e * 60 * 60 * 1e3) : this; }, DayPilot.Date.prototype.addHours = function (e) { return e ? this.addTime(60 * e * 60 * 1e3) : this; }, DayPilot.Date.prototype.addMilliseconds = function (e) { return e ? this.addTime(e) : this; }, DayPilot.Date.prototype.addMinutes = function (e) { return e ? this.addTime(60 * e * 1e3) : this; }, DayPilot.Date.prototype.addMonths = function (e) {
535
+ }, DayPilot.Date.Config = {},
536
+ DayPilot.Date.Config.legacyShowD = !1, DayPilot.Date.Cache = {}, DayPilot.Date.Cache.Parsing = {}, DayPilot.Date.Cache.Ctor = {}, DayPilot.Date.Cache.Ticks = {}, DayPilot.Date.Cache.DurationCtor = {}, DayPilot.Date.Cache.clear = function () { DayPilot.Date.Cache.Parsing = {}, DayPilot.Date.Cache.Ctor = {}, DayPilot.Date.Cache.Ticks = {}, DayPilot.Date.Cache.DurationCtor = {}; }, DayPilot.Date.prototype.addDays = function (e) { return e ? new DayPilot.Date(this.ticks + 24 * e * 60 * 60 * 1e3) : this; }, DayPilot.Date.prototype.addHours = function (e) { return e ? this.addTime(60 * e * 60 * 1e3) : this; }, DayPilot.Date.prototype.addMilliseconds = function (e) { return e ? this.addTime(e) : this; }, DayPilot.Date.prototype.addMinutes = function (e) { return e ? this.addTime(60 * e * 1e3) : this; }, DayPilot.Date.prototype.addMonths = function (e) {
354
537
  if (!e)
355
538
  return this;
356
539
  var t = new Date(this.ticks), a = t.getUTCFullYear(), r = t.getUTCMonth() + 1;
@@ -387,7 +570,7 @@ if ("undefined" == typeof DayPilot)
387
570
  for (var r = t.dayOfWeek(); r !== e;)
388
571
  t = t.addDays(-1), r = t.dayOfWeek();
389
572
  return new DayPilot.Date(t);
390
- }, DayPilot.Date.prototype.getDay = function () { return new Date(this.ticks).getUTCDate(); }, DayPilot.Date.prototype.getDatePart = function () { var e = new Date(this.ticks); return e.setUTCHours(0), e.setUTCMinutes(0), e.setUTCSeconds(0), e.setUTCMilliseconds(0), new DayPilot.Date(e); }, DayPilot.Date.prototype.getYear = function () { return new Date(this.ticks).getUTCFullYear(); }, DayPilot.Date.prototype.getHours = function () { return new Date(this.ticks).getUTCHours(); }, DayPilot.Date.prototype.getMilliseconds = function () { return new Date(this.ticks).getUTCMilliseconds(); }, DayPilot.Date.prototype.getMinutes = function () { return new Date(this.ticks).getUTCMinutes(); }, DayPilot.Date.prototype.getMonth = function () { return new Date(this.ticks).getUTCMonth(); }, DayPilot.Date.prototype.getSeconds = function () { return new Date(this.ticks).getUTCSeconds(); }, DayPilot.Date.prototype.getTotalTicks = function () { return this.getTime(); }, DayPilot.Date.prototype.getTime = function () { return this.ticks; }, DayPilot.Date.prototype.getTimePart = function () { var e = this.getDatePart(); return DayPilot.DateUtil.diff(this, e); }, DayPilot.Date.prototype.lastDayOfMonth = function () { var e = new Date(this.firstDayOfMonth().getTime()), t = this.daysInMonth(); return e.setUTCDate(t), new DayPilot.Date(e); }, DayPilot.Date.prototype.weekNumber = function () { var e = this.firstDayOfYear(), t = (this.getTime() - e.getTime()) / 864e5; return Math.ceil((t + e.dayOfWeek() + 1) / 7); }, DayPilot.Date.prototype.weekNumberISO = function () { var e = !1, t = this.dayOfYear(), a = this.firstDayOfYear().dayOfWeek(), r = this.firstDayOfYear().addYears(1).addDays(-1).dayOfWeek(); 0 === a && (a = 7), 0 === r && (r = 7); var o = 8 - a; 4 !== a && 4 !== r || (e = !0); var n = Math.ceil((t - o) / 7), i = n; return o >= 4 && (i += 1), i > 52 && !e && (i = 1), 0 === i && (i = this.firstDayOfYear().addDays(-1).weekNumberISO()), i; }, DayPilot.Date.prototype.toDateLocal = function () { var e = new Date(this.ticks), t = new Date; return t.setFullYear(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate()), t.setHours(e.getUTCHours()), t.setMinutes(e.getUTCMinutes()), t.setSeconds(e.getUTCSeconds()), t.setMilliseconds(e.getUTCMilliseconds()), t; }, DayPilot.Date.prototype.toDate = function () { return new Date(this.ticks); }, DayPilot.Date.prototype.toJSON = function () { return this.value; }, DayPilot.Date.prototype.toString = function (e, t) { return e ? new r(e, t).print(this) : this.toStringSortable(); }, DayPilot.Date.prototype.toStringSortable = function () { return e(this.ticks); }, DayPilot.Date.parse = function (e, t, a) { return new r(t, a).parse(e); };
573
+ }, DayPilot.Date.prototype.getDay = function () { return new Date(this.ticks).getUTCDate(); }, DayPilot.Date.prototype.getDatePart = function () { var e = new Date(this.ticks); return e.setUTCHours(0), e.setUTCMinutes(0), e.setUTCSeconds(0), e.setUTCMilliseconds(0), new DayPilot.Date(e); }, DayPilot.Date.prototype.getYear = function () { return new Date(this.ticks).getUTCFullYear(); }, DayPilot.Date.prototype.getHours = function () { return new Date(this.ticks).getUTCHours(); }, DayPilot.Date.prototype.getMilliseconds = function () { return new Date(this.ticks).getUTCMilliseconds(); }, DayPilot.Date.prototype.getMinutes = function () { return new Date(this.ticks).getUTCMinutes(); }, DayPilot.Date.prototype.getMonth = function () { return new Date(this.ticks).getUTCMonth(); }, DayPilot.Date.prototype.getSeconds = function () { return new Date(this.ticks).getUTCSeconds(); }, DayPilot.Date.prototype.getTotalTicks = function () { return this.getTime(); }, DayPilot.Date.prototype.getTime = function () { return this.ticks; }, DayPilot.Date.prototype.getTimePart = function () { var e = this.getDatePart(); return DayPilot.DateUtil.diff(this, e); }, DayPilot.Date.prototype.lastDayOfMonth = function () { var e = new Date(this.firstDayOfMonth().getTime()), t = this.daysInMonth(); return e.setUTCDate(t), new DayPilot.Date(e); }, DayPilot.Date.prototype.weekNumber = function () { var e = this.firstDayOfYear(), t = (this.getTime() - e.getTime()) / 864e5; return Math.ceil((t + e.dayOfWeek() + 1) / 7); }, DayPilot.Date.prototype.weekNumberISO = function () { var e = !1, t = this.dayOfYear(), a = this.firstDayOfYear().dayOfWeek(), r = this.firstDayOfYear().addYears(1).addDays(-1).dayOfWeek(); 0 === a && (a = 7), 0 === r && (r = 7); var o = 8 - a; 4 !== a && 4 !== r || (e = !0); var n = Math.ceil((t - o) / 7), i = n; return o >= 4 && (i += 1), i > 52 && !e && (i = 1), 0 === i && (i = this.firstDayOfYear().addDays(-1).weekNumberISO()), i; }, DayPilot.Date.prototype.toDateLocal = function () { var e = new Date(this.ticks), t = new Date; return t.setFullYear(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate()), t.setHours(e.getUTCHours()), t.setMinutes(e.getUTCMinutes()), t.setSeconds(e.getUTCSeconds()), t.setMilliseconds(e.getUTCMilliseconds()), t; }, DayPilot.Date.prototype.toDate = function () { return new Date(this.ticks); }, DayPilot.Date.prototype.toJSON = function () { return this.value; }, DayPilot.Date.prototype.toString = function (e, t) { return e ? new o(e, t).print(this) : this.toStringSortable(); }, DayPilot.Date.prototype.toStringSortable = function () { return e(this.ticks); }, DayPilot.Date.parse = function (e, t, a) { return new o(t, a).parse(e); };
391
574
  DayPilot.Date.today = function () { return new DayPilot.Date(DayPilot.DateUtil.localToday(), !0); }, DayPilot.Date.now = function () { return new DayPilot.Date; }, DayPilot.Date.fromYearMonthDay = function (e, t, a) { t = t || 1, a = a || 1; var r = new Date(0); return r.setUTCFullYear(e), r.setUTCMonth(t - 1), r.setUTCDate(a), new DayPilot.Date(r); }, DayPilot.DateUtil = {}, DayPilot.DateUtil.fromStringSortable = function (e, t) {
392
575
  if (!e)
393
576
  throw "Can't create DayPilot.Date from an empty string";
@@ -396,21 +579,21 @@ if ("undefined" == typeof DayPilot)
396
579
  throw "Invalid string format (use '2010-01-01' or '2010-01-01T00:00:00'): " + e;
397
580
  if (DayPilot.Date.Cache.Parsing[e] && !t)
398
581
  return DayPilot.Stats.cacheHitsParsing += 1, DayPilot.Date.Cache.Parsing[e];
399
- var i = e.substring(0, 4), d = e.substring(5, 7), l = e.substring(8, 10), s = new Date(0);
400
- if (s.setUTCFullYear(i, d - 1, l), r)
582
+ var i = e.substring(0, 4), l = e.substring(5, 7), d = e.substring(8, 10), s = new Date(0);
583
+ if (s.setUTCFullYear(i, l - 1, d), r)
401
584
  return DayPilot.Date.Cache.Parsing[e] = s, s;
402
585
  var u = e.substring(11, 13), c = e.substring(14, 16), f = e.substring(17, 19);
403
586
  if (s.setUTCHours(u), s.setUTCMinutes(c), s.setUTCSeconds(f), o)
404
587
  return DayPilot.Date.Cache.Parsing[e] = s, s;
405
- var m = e[19], y = 0;
406
- if ("." === m) {
588
+ var y = e[19], m = 0;
589
+ if ("." === y) {
407
590
  var h = parseInt(e.substring(20, 23));
408
- s.setUTCMilliseconds(h), y = DayPilot.DateUtil.getTzOffsetMinutes(e.substring(23));
591
+ s.setUTCMilliseconds(h), m = DayPilot.DateUtil.getTzOffsetMinutes(e.substring(23));
409
592
  }
410
593
  else
411
- y = DayPilot.DateUtil.getTzOffsetMinutes(e.substring(19));
594
+ m = DayPilot.DateUtil.getTzOffsetMinutes(e.substring(19));
412
595
  var p = new DayPilot.Date(s);
413
- return t || (p = p.addMinutes(-y)), s = p.toDate(), DayPilot.Date.Cache.Parsing[e] = s, s;
596
+ return t || (p = p.addMinutes(-m)), s = p.toDate(), DayPilot.Date.Cache.Parsing[e] = s, s;
414
597
  }, DayPilot.DateUtil.getTzOffsetMinutes = function (e) {
415
598
  if (DayPilot.Util.isNullOrUndefined(e) || "" === e)
416
599
  return 0;
@@ -448,22 +631,20 @@ if ("undefined" == typeof DayPilot)
448
631
  }
449
632
  return r + ":" + a;
450
633
  }, DayPilot.DateUtil.max = function (e, t) { return e.getTime() > t.getTime() ? e : t; }, DayPilot.DateUtil.min = function (e, t) { return e.getTime() < t.getTime() ? e : t; };
451
- var r = function (e, a) {
634
+ var o = function (e, a) {
452
635
  "string" == typeof a && (a = DayPilot.Locale.find(a));
453
- 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) {
454
- return a.dayNamesShort[e.getDayOfWeek()];
455
- } }, { "seq": "dd", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getDay(); return t < 10 ? "0" + t : t; } }, { "seq": "%d", "expr": "[0-9]{1,2}", "str": function (e) { return e.getDay(); } }, { "seq": "d", "expr": "[0-9]{1,2}", "str": function (e) { return e.getDay(); } }, { "seq": "tt", "expr": "(AM|PM|am|pm)", "str": function (e) { return e.getHours() < 12 ? "AM" : "PM"; }, "transform": function (e) { return e.toUpperCase(); } }], o = function (e) { return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); };
636
+ var a = a || DayPilot.Locale.US, r = [{ "seq": "yyyy", "expr": "[0-9]{4,4}", "str": function (e) { return e.getYear(); } }, { "seq": "yy", "expr": "[0-9]{2,2}", "str": function (e) { return e.getYear() % 100; } }, { "seq": "mm", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getMinutes(); return t < 10 ? "0" + t : t; } }, { "seq": "m", "expr": "[0-9]{1,2}", "str": function (e) { return e.getMinutes(); } }, { "seq": "HH", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getHours(); return t < 10 ? "0" + t : t; } }, { "seq": "H", "expr": "[0-9]{1,2}", "str": function (e) { return e.getHours(); } }, { "seq": "hh", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getHours(), t = t % 12; 0 === t && (t = 12); var a = t; return a < 10 ? "0" + a : a; } }, { "seq": "h", "expr": "[0-9]{1,2}", "str": function (e) { var t = e.getHours(), t = t % 12; return 0 === t && (t = 12), t; } }, { "seq": "ss", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getSeconds(); return t < 10 ? "0" + t : t; } }, { "seq": "s", "expr": "[0-9]{1,2}", "str": function (e) { return e.getSeconds(); } }, { "seq": "MMMM", "expr": "[^\\s0-9]*", "str": function (e) { return a.monthNames[e.getMonth()]; }, "transform": function (e) { var r = DayPilot.indexOf(a.monthNames, e, t); return r < 0 ? null : r + 1; } }, { "seq": "MMM", "expr": "[^\\s0-9]*", "str": function (e) { return a.monthNamesShort[e.getMonth()]; }, "transform": function (e) { var r = DayPilot.indexOf(a.monthNamesShort, e, t); return r < 0 ? null : r + 1; } }, { "seq": "MM", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getMonth() + 1; return t < 10 ? "0" + t : t; } }, { "seq": "M", "expr": "[0-9]{1,2}", "str": function (e) { return e.getMonth() + 1; } }, { "seq": "dddd", "expr": "[^\\s0-9]*", "str": function (e) { return a.dayNames[e.getDayOfWeek()]; } }, { "seq": "ddd", "expr": "[^\\s0-9]*", "str": function (e) { return a.dayNamesShort[e.getDayOfWeek()]; } }, { "seq": "dd", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getDay(); return t < 10 ? "0" + t : t; } }, { "seq": "%d", "expr": "[0-9]{1,2}", "str": function (e) { return e.getDay(); } }, { "seq": "d", "expr": "[0-9]{1,2}", "str": function (e) { return e.getDay(); } }, { "seq": "tt", "expr": "(AM|PM|am|pm)", "str": function (e) { return e.getHours() < 12 ? "AM" : "PM"; }, "transform": function (e) { return e.toUpperCase(); } }], o = function (e) { return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); };
456
637
  this.init = function () { this.year = this.findSequence("yyyy"), this.month = this.findSequence("MMMM") || this.findSequence("MMM") || this.findSequence("MM") || this.findSequence("M"), this.day = this.findSequence("dd") || this.findSequence("d"), this.hours = this.findSequence("HH") || this.findSequence("H"), this.minutes = this.findSequence("mm") || this.findSequence("m"), this.seconds = this.findSequence("ss") || this.findSequence("s"), this.ampm = this.findSequence("tt"), this.hours12 = this.findSequence("hh") || this.findSequence("h"); }, this.findSequence = function (t) {
457
638
  function a(e) { return parseInt(e); }
458
639
  return e.indexOf(t) === -1 ? null : { "findValue": function (n) {
459
- for (var i = o(e), d = null, l = 0; l < r.length; l++) {
460
- var s = (r[l].length, t === r[l].seq), u = r[l].expr;
461
- s && (u = "(" + u + ")", d = r[l].transform), i = i.replace(r[l].seq, u);
640
+ for (var i = o(e), l = null, d = 0; d < r.length; d++) {
641
+ var s = (r[d].length, t === r[d].seq), u = r[d].expr;
642
+ s && (u = "(" + u + ")", l = r[d].transform), i = i.replace(r[d].seq, u);
462
643
  }
463
644
  i = "^" + i + "$";
464
645
  try {
465
646
  var c = new RegExp(i), f = c.exec(n);
466
- return f ? (d = d || a)(f[1]) : null;
647
+ return f ? (l = l || a)(f[1]) : null;
467
648
  }
468
649
  catch (e) {
469
650
  throw "unable to create regex from: " + i;
@@ -476,9 +657,9 @@ if ("undefined" == typeof DayPilot)
476
657
  return r[t];
477
658
  return null;
478
659
  }, o = e.length <= 0, n = 0, i = []; !o;) {
479
- var d = e.substring(n), l = /%?(.)\1*/.exec(d);
480
- if (l && l.length > 0) {
481
- var s = l[0], u = a(s);
660
+ var l = e.substring(n), d = /%?(.)\1*/.exec(l);
661
+ if (d && d.length > 0) {
662
+ var s = d[0], u = a(s);
482
663
  u ? i.push(u) : i.push(s), n += s.length, o = e.length <= n;
483
664
  }
484
665
  else
@@ -501,28 +682,28 @@ if ("undefined" == typeof DayPilot)
501
682
  var r = this.day.findValue(e), o = DayPilot.Date.fromYearMonthDay(t, a).daysInMonth();
502
683
  if (r < 1 || r > o)
503
684
  return null;
504
- var n = this.hours ? this.hours.findValue(e) : 0, i = this.minutes ? this.minutes.findValue(e) : 0, d = this.seconds ? this.seconds.findValue(e) : 0, l = this.ampm ? this.ampm.findValue(e) : null;
685
+ var n = this.hours ? this.hours.findValue(e) : 0, i = this.minutes ? this.minutes.findValue(e) : 0, l = this.seconds ? this.seconds.findValue(e) : 0, d = this.ampm ? this.ampm.findValue(e) : null;
505
686
  if (this.ampm && this.hours12) {
506
687
  var s = this.hours12.findValue(e);
507
688
  if (s < 1 || s > 12)
508
689
  return null;
509
- n = "PM" === l ? 12 === s ? 12 : s + 12 : 12 === s ? 0 : s;
690
+ n = "PM" === d ? 12 === s ? 12 : s + 12 : 12 === s ? 0 : s;
510
691
  }
511
692
  if (n < 0 || n > 23)
512
693
  return null;
513
694
  if (i < 0 || i > 59)
514
695
  return null;
515
- if (d < 0 || d > 59)
696
+ if (l < 0 || l > 59)
516
697
  return null;
517
698
  var u = new Date;
518
- return u.setUTCFullYear(t, a - 1, r), u.setUTCHours(n), u.setUTCMinutes(i), u.setUTCSeconds(d), u.setUTCMilliseconds(0), new DayPilot.Date(u);
699
+ return u.setUTCFullYear(t, a - 1, r), u.setUTCHours(n), u.setUTCMinutes(i), u.setUTCSeconds(l), u.setUTCMilliseconds(0), new DayPilot.Date(u);
519
700
  }, this.init();
520
701
  };
521
702
  DayPilot.ColorUtil = {}, DayPilot.ColorUtil.hexToRgb = function (e) {
522
703
  if (!/^#[0-9a-f]{6}$/i.test(e))
523
704
  throw new DayPilot.Exception("Invalid color, only full hex color string accepted, eg. '#ffaaff'.");
524
705
  return e = e.replace("#", ""), { r: parseInt(e.substring(0, 2), 16), g: parseInt(e.substring(2, 4), 16), b: parseInt(e.substring(4, 6), 16) };
525
- }, DayPilot.ColorUtil.rgbToHex = function (e) { return "#" + a(e.r) + a(e.g) + a(e.b); }, DayPilot.ColorUtil.adjustLuminance = function (e, t) { return { r: e.r + t, g: e.g + t, b: e.b + t }; }, DayPilot.ColorUtil.darker = function (e, t) { var a = DayPilot.ColorUtil.hexToRgb(e); t = t || 1; var r = 17, o = t * r, n = DayPilot.ColorUtil.adjustLuminance(a, -o); return DayPilot.ColorUtil.rgbToHex(n); }, DayPilot.Event = function (e, t, a) {
706
+ }, DayPilot.ColorUtil.rgbToHex = function (e) { return "#" + a(e.r) + a(e.g) + a(e.b); }, DayPilot.ColorUtil.adjustLuminance = function (e, t) { return { r: e.r + t, g: e.g + t, b: e.b + t }; }, DayPilot.ColorUtil.darker = function (e, t) { var a = DayPilot.ColorUtil.hexToRgb(e); t = t || 1; var r = 17, o = t * r, n = DayPilot.ColorUtil.adjustLuminance(a, -o); return DayPilot.ColorUtil.rgbToHex(n); }, DayPilot.ColorUtil.lighter = function (e, t) { return "number" != typeof t && (t = 1), DayPilot.ColorUtil.darker(e, -t); }, DayPilot.ColorUtil.pl = function (e) { var t = DayPilot.ColorUtil.hexToRgb(e), a = t.r / 255, r = t.g / 255, o = t.b / 255; return Math.sqrt(.299 * a * a + .587 * r * r + .114 * o * o); }, DayPilot.ColorUtil.contrasting = function (e, t, a) { var r = DayPilot.ColorUtil.pl(e); return t = t || "#ffffff", a = a || "#000000", r > .5 ? a : t; }, DayPilot.Event = function (e, t, a) {
526
707
  var r = this;
527
708
  this.calendar = t, this.data = e ? e : {}, this.part = a ? a : {}, "undefined" == typeof this.data.id && (this.data.id = this.data.value);
528
709
  var o = {}, n = ["id", "text", "start", "end", "resource"];
@@ -578,37 +759,37 @@ if ("undefined" == typeof DayPilot)
578
759
  }
579
760
  }(), DayPilot.JSON = {}, function () {
580
761
  function e(e) { return e < 10 ? "0" + e : e; }
581
- function t(e) { return i.lastIndex = 0, i.test(e) ? '"' + e.replace(i, function (e) { var t = d[e]; return "string" == typeof t ? t : "\\u" + ("0000" + e.charCodeAt(0).toString(16)).slice(-4); }) + '"' : '"' + e + '"'; }
762
+ function t(e) { return i.lastIndex = 0, i.test(e) ? '"' + e.replace(i, function (e) { var t = l[e]; return "string" == typeof t ? t : "\\u" + ("0000" + e.charCodeAt(0).toString(16)).slice(-4); }) + '"' : '"' + e + '"'; }
582
763
  function a(e, i) {
583
- var d, l, s, u, c, f = r, m = i[e];
584
- 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) {
585
- case "string": return t(m);
586
- case "number": return isFinite(m) ? String(m) : "null";
764
+ var l, d, s, u, c, f = r, y = i[e];
765
+ switch (y && "object" == typeof y && "function" == typeof y.toJSON2 ? y = y.toJSON2(e) : y && "object" == typeof y && "function" == typeof y.toJSON && !y.ignoreToJSON && (y = y.toJSON(e)), "function" == typeof n && (y = n.call(i, e, y)), typeof y) {
766
+ case "string": return t(y);
767
+ case "number": return isFinite(y) ? String(y) : "null";
587
768
  case "boolean":
588
- case "null": return String(m);
769
+ case "null": return String(y);
589
770
  case "object":
590
- if (!m)
771
+ if (!y)
591
772
  return "null";
592
- if (r += o, c = [], "number" == typeof m.length && !m.propertyIsEnumerable("length")) {
593
- for (u = m.length, d = 0; d < u; d += 1)
594
- c[d] = a(d, m) || "null";
773
+ if (r += o, c = [], "number" == typeof y.length && !y.propertyIsEnumerable("length")) {
774
+ for (u = y.length, l = 0; l < u; l += 1)
775
+ c[l] = a(l, y) || "null";
595
776
  return s = 0 === c.length ? "[]" : r ? "[\n" + r + c.join(",\n" + r) + "\n" + f + "]" : "[" + c.join(",") + "]", r = f, s;
596
777
  }
597
778
  if (n && "object" == typeof n)
598
- for (u = n.length, d = 0; d < u; d += 1)
599
- l = n[d], "string" == typeof l && (s = a(l, m), s && c.push(t(l) + (r ? ": " : ":") + s));
779
+ for (u = n.length, l = 0; l < u; l += 1)
780
+ d = n[l], "string" == typeof d && (s = a(d, y), s && c.push(t(d) + (r ? ": " : ":") + s));
600
781
  else
601
- for (l in m)
602
- Object.hasOwnProperty.call(m, l) && (s = a(l, m), s && c.push(t(l) + (r ? ": " : ":") + s));
782
+ for (d in y)
783
+ Object.hasOwnProperty.call(y, d) && (s = a(d, y), s && c.push(t(d) + (r ? ": " : ":") + s));
603
784
  return s = 0 === c.length ? "{}" : r ? "{\n" + r + c.join(",\n" + r) + "\n" + f + "}" : "{" + c.join(",") + "}", r = f, s;
604
785
  }
605
786
  }
606
787
  "function" != typeof Date.prototype.toJSON2 && (Date.prototype.toJSON2 = function (t) { return this.getUTCFullYear() + "-" + e(this.getUTCMonth() + 1) + "-" + e(this.getUTCDate()) + "T" + e(this.getUTCHours()) + ":" + e(this.getUTCMinutes()) + ":" + e(this.getUTCSeconds()); }, String.prototype.toJSON = Number.prototype.toJSON = Boolean.prototype.toJSON = function (e) { return this.valueOf(); });
607
- var r, o, n, i = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, d = { "\b": "\\b", "\t": "\\t", "\n": "\\n", "\f": "\\f", "\r": "\\r", '"': '\\"', "\\": "\\\\" };
788
+ var r, o, n, i = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, l = { "\b": "\\b", "\t": "\\t", "\n": "\\n", "\f": "\\f", "\r": "\\r", '"': '\\"', "\\": "\\\\" };
608
789
  "function" != typeof DayPilot.JSON.stringify && (DayPilot.JSON.stringify = function (e, t, i) {
609
- var d;
790
+ var l;
610
791
  if (r = "", o = "", "number" == typeof i)
611
- for (d = 0; d < i; d += 1)
792
+ for (l = 0; l < i; l += 1)
612
793
  o += " ";
613
794
  else
614
795
  "string" == typeof i && (o = i);
@@ -658,51 +839,41 @@ if ("undefined" == typeof DayPilot)
658
839
  }, t.gMouseUp = function (i) {
659
840
  if (t.resizing) {
660
841
  if (!t.resizingShadow)
661
- return t.resizing.style.cursor = "default", document.body.style.cursor = "default", void (t.resizing = null);
842
+ return t.resizing.style.cursor = "default", document.body.style.cursor = "default", t.resizing = null, void (DayPilot.Global.resizing = null);
662
843
  var n = t.resizing.event, s = t.resizingShadow.clientHeight + 4, a = t.resizingShadow.offsetTop, l = t.resizing.dpBorder;
663
- t.deleteShadow(t.resizingShadow), t.resizingShadow = null, t.resizing.style.cursor = "default", n.calendar.nav.top.style.cursor = "auto", t.resizing.onclick = null, t.resizing = null, n.calendar.a(n, s, a, l);
844
+ t.deleteShadow(t.resizingShadow), t.resizingShadow = null, t.resizing.style.cursor = "default", n.calendar.nav.top.style.cursor = "auto", t.resizing.onclick = null, t.resizing = null, DayPilot.Global.resizing = null, n.calendar.a(n, s, a, l);
664
845
  }
665
846
  else if (t.moving) {
666
847
  if (!t.movingShadow)
667
- return t.moving = null, void (document.body.style.cursor = "default");
668
- var a = t.movingShadow.offsetTop;
669
- t.deleteShadow(t.movingShadow);
670
- var n = t.moving.event, o = t.movingShadow.column;
671
- t.moving = null, t.movingShadow = null, n.calendar.nav.top.style.cursor = "auto", n.calendar.b(n, o, a, i);
848
+ return t.moving = null, DayPilot.Global.moving = null, void (document.body.style.cursor = "default");
849
+ var a = t.movingShadow.offsetTop, n = t.moving.event;
850
+ t.deleteShadow(t.movingShadow), DayPilot.Util.removeClass(t.moving, n.calendar.b("_event_moving_source"));
851
+ var o = t.movingShadow.column;
852
+ t.moving = null, DayPilot.Global.moving = null, t.movingShadow = null, n.calendar.nav.top.style.cursor = "auto", n.calendar.c(n, o, a, i);
672
853
  }
673
854
  else if (t.selecting && null !== t.topSelectedCell) {
674
855
  var r = t.selecting.calendar;
675
856
  t.selecting = !1;
676
857
  var h = r.getSelection();
677
- r.c(h.start, h.end, h.resource), "Hold" !== r.timeRangeSelectedHandling && "HoldForever" !== r.timeRangeSelectedHandling && e();
858
+ r.d(h.start, h.end, h.resource), "Hold" !== r.timeRangeSelectedHandling && "HoldForever" !== r.timeRangeSelectedHandling && e();
678
859
  }
679
860
  else
680
861
  t.selecting = !1;
681
862
  }, t.deleteShadow = function (e) { e && e.parentNode && e.parentNode.removeChild(e); }, t.moveShadow = function (e) { var i = t.movingShadow, n = i.parentNode; n.style.display = "none", i.parentNode.removeChild(i), e.firstChild.appendChild(i), i.style.left = "0px", n.style.display = "", i.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px"; }, t.Calendar = function (e, i) {
682
863
  var n = !1;
683
- if (this instanceof t.Calendar && !this.d && (n = !0, this.d = !0), !n)
864
+ if (this instanceof t.Calendar && !this.f && (n = !0, this.f = !0), !n)
684
865
  throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
685
866
  var s = this;
686
- this.uniqueID = null, this.v = "2022.3.426-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.f(); }, this.f = function () { DayPilot.de(s.elements.selection), s.elements.selection = [], s.nav.activeSelection = null; }, this.g = navigator && navigator.userAgent && navigator.userAgent.indexOf("MSIE") !== -1, this.h = navigator && navigator.userAgent && navigator.userAgent.indexOf("Firefox") !== -1, this.i = function () {
687
- if (/Opera[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
688
- return new Number(RegExp.$1) >= 10.5;
689
- }
690
- return !1;
691
- }(), this.j = function () {
692
- if (/AppleWebKit[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
693
- return new Number(RegExp.$1) >= 522;
694
- }
695
- return !1;
696
- }(), this.cleanSelection = this.clearSelection, this.k = function (e, t, i) { var n = {}; n.action = e, n.parameters = i, n.data = t, n.header = this.l(); var a = "JSON" + DayPilot.JSON.stringify(n); __doPostBack(s.uniqueID, a); }, this.m = 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.l(); var a = "JSON" + DayPilot.JSON.stringify(n); this.backendUrl ? DayPilot.request(this.backendUrl, this.n, a, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, a, this.o, 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.p(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.q(), e.r(), 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.s = function () { this.nav.top.dispose = this.dispose; }, this.n = function (e) { s.o(e.responseText); }, this.l = 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.t = function (e, t) {
867
+ this.uniqueID = null, this.isCalendar = !0, this.v = "2022.4.438-lite", this.id = e, this.clientName = e, this.cache = {}, this.cache.pixels = {}, this.elements = {}, this.elements.events = [], this.elements.selection = [], this.nav = {}, this.afterRender = function () { }, this.fasterDispose = !0, this.angularAutoApply = !1, this.api = 2, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.cellHeight = 30, this.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.contextMenu = null, this.days = 1, this.durationBarVisible = !0, this.eventHeaderHeight = 14, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.headerTextWrappingEnabled = !1, this.height = 300, this.heightSpec = "BusinessHours", this.hideUntilInit = !0, this.hourWidth = 60, this.initScrollPos = "Auto", this.loadingLabelText = "Loading...", this.loadingLabelVisible = !0, this.loadingLabelBackColor = "ff0000", this.loadingLabelFontColor = "#ffffff", this.loadingLabelFontFamily = "Tahoma, Arial, Helvetica, sans-serif", this.loadingLabelFontSize = "10pt", this.locale = "en-us", this.showToolTip = !0, this.startDate = (new DayPilot.Date).getDatePart(), this.cssClassPrefix = "calendar_default", this.theme = null, this.timeFormat = "Auto", this.viewType = "Days", this.visible = !0, this.xssProtection = "Enabled", this.headerClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.eventMoveHandling = "Update", this.eventDeleteHandling = "Disabled", this.timeRangeSelectedHandling = "Enabled", this.onBeforeEventRender = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onHeaderClick = null, this.onHeaderClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.g(); }, this.g = function () { DayPilot.de(s.elements.selection), s.elements.selection = [], s.nav.activeSelection = null; }, this.h = navigator && navigator.userAgent && navigator.userAgent.indexOf("MSIE") !== -1, this.cleanSelection = this.clearSelection, this.i = function (e, t, i) { var n = {}; n.action = e, n.parameters = i, n.data = t, n.header = this.j(); var a = "JSON" + DayPilot.JSON.stringify(n); __doPostBack(s.uniqueID, a); }, this.k = function (e, t, i) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.callbackTimeout = window.setTimeout(function () { s.loadingStart(); }, 100); var n = {}; n.action = e, n.parameters = i, n.data = t, n.header = this.j(); var a = "JSON" + DayPilot.JSON.stringify(n); this.backendUrl ? DayPilot.request(this.backendUrl, this.l, a, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, a, this.m, this.clientName, this.onCallbackError, !0); }, this.onCallbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.dispose = function () { var e = s; e.n(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.o(), e.p(), e.nav.select = null, e.nav.cornerRight = null, e.nav.scrollable = null, e.nav.zoom = null, e.nav.loading = null, e.nav.header = null, e.nav.hourTable = null, e.nav.scrolltop = null, e.nav.scroll.onscroll = null, e.nav.scroll = null, e.nav.main = null, e.nav.message = null, e.nav.messageClose = null, e.nav.top = null, t.unregister(e); }, this.q = function () { this.nav.top.dispose = this.dispose; }, this.l = function (e) { s.m(e.responseText); }, this.j = function () { var e = {}; return e.control = "dpc", e.id = this.id, e.v = this.v, e.days = s.days, e.startDate = s.startDate, e.heightSpec = s.heightSpec, e.businessBeginsHour = s.businessBeginsHour, e.businessEndsHour = s.businessEndsHour, e.hashes = s.hashes, e.timeFormat = s.timeFormat, e.viewType = s.viewType, e.locale = s.locale, e; }, this.r = function (e, t) {
697
868
  for (var i = e.parentNode; i && "TD" !== i.tagName;)
698
869
  i = i.parentNode;
699
870
  var n = document.createElement("div");
700
- 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.u("_shadow");
871
+ 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");
701
872
  var a = document.createElement("div");
702
- return a.className = s.u("_shadow_inner"), n.appendChild(a), i.firstChild.appendChild(n), n;
703
- }, this.w = {}, this.w.locale = function () { var e = DayPilot.Locale.find(s.locale); return e ? e : DayPilot.Locale.US; }, this.w.timeFormat = function () { return "Auto" !== s.timeFormat ? s.timeFormat : this.locale().timeFormat; }, this.w.z = function () { return "Disabled" !== s.xssProtection; };
704
- var a = this.w;
705
- this.o = function (e, t) {
873
+ return a.className = s.b("_shadow_inner"), n.appendChild(a), i.firstChild.appendChild(n), n;
874
+ }, 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; };
875
+ var a = this.s;
876
+ this.m = function (e, t) {
706
877
  if (e && 0 === e.indexOf("$$$")) {
707
878
  if (!window.console)
708
879
  throw "Error received from the server side: " + e;
@@ -712,16 +883,16 @@ if ("undefined" == typeof DayPilot)
712
883
  if (e.CallBackRedirect)
713
884
  return void (document.location.href = e.CallBackRedirect);
714
885
  if ("None" === e.UpdateType)
715
- return s.loadingStop(), void s.A();
716
- if (s.p(), "Full" === e.UpdateType && (s.columns = e.Columns, s.days = e.Days, s.startDate = new DayPilot.Date(e.StartDate), s.heightSpec = e.HeightSpec ? e.HeightSpec : s.heightSpec, s.businessBeginsHour = e.BusinessBeginsHour ? e.BusinessBeginsHour : s.businessBeginsHour, s.businessEndsHour = e.BusinessEndsHour ? e.BusinessEndsHour : s.businessEndsHour, s.headerDateFormat = e.HeaderDateFormat ? e.HeaderDateFormat : s.headerDateFormat, s.viewType = e.ViewType, s.backColor = e.BackColor ? e.BackColor : s.backColor, s.eventHeaderVisible = e.EventHeaderVisible ? e.EventHeaderVisible : s.eventHeaderVisible, s.timeFormat = e.TimeFormat ? e.TimeFormat : s.timeFormat, s.locale = e.Locale ? e.Locale : s.locale, s.B()), e.Hashes)
886
+ return s.loadingStop(), void s.u();
887
+ if (s.n(), "Full" === e.UpdateType && (s.columns = e.Columns, s.days = e.Days, s.startDate = new DayPilot.Date(e.StartDate), s.heightSpec = e.HeightSpec ? e.HeightSpec : s.heightSpec, s.businessBeginsHour = e.BusinessBeginsHour ? e.BusinessBeginsHour : s.businessBeginsHour, s.businessEndsHour = e.BusinessEndsHour ? e.BusinessEndsHour : s.businessEndsHour, s.headerDateFormat = e.HeaderDateFormat ? e.HeaderDateFormat : s.headerDateFormat, s.viewType = e.ViewType, s.backColor = e.BackColor ? e.BackColor : s.backColor, s.eventHeaderVisible = e.EventHeaderVisible ? e.EventHeaderVisible : s.eventHeaderVisible, s.timeFormat = e.TimeFormat ? e.TimeFormat : s.timeFormat, s.locale = e.Locale ? e.Locale : s.locale, s.w()), e.Hashes)
717
888
  for (var i in e.Hashes)
718
889
  s.hashes[i] = e.Hashes[i];
719
- s.events.list = e.Events, s.C(), s.D(), "Full" === e.UpdateType && (s.E(), s.F(), s.G(), s.H()), s.A(), s.I(), s.clearSelection(), s.afterRender(e.CallBackData, !0), s.loadingStop();
720
- }, this.J = function () { return this.K() / 36e5; }, this.L = function () { return this.businessBeginsHour > this.businessEndsHour ? 24 - this.businessBeginsHour + this.businessEndsHour : this.businessEndsHour - this.businessBeginsHour; }, this.M = function () { return this.K() / 18e5; }, this.K = function () { var e = 0; return e = "BusinessHoursNoScroll" === this.heightSpec ? this.L() : 24, 60 * e * 60 * 1e3; }, this.N = function () { return "BusinessHoursNoScroll" === this.heightSpec ? this.businessBeginsHour : 0; }, this.O = function () { return 2 === s.api; }, this.eventClickCallBack = function (e, t) { this.m("EventClick", t, e); }, this.eventClickPostBack = function (e, t) { this.k("EventClick", t, e); }, this.P = function (e) {
890
+ s.events.list = e.Events, s.z(), s.A(), "Full" === e.UpdateType && (s.B(), s.C(), s.D(), s.E()), s.u(), s.F(), s.clearSelection(), s.afterRender(e.CallBackData, !0), s.loadingStop();
891
+ }, this.G = function () { return this.H() / 36e5; }, this.I = function () { return this.businessBeginsHour > this.businessEndsHour ? 24 - this.businessBeginsHour + this.businessEndsHour : this.businessEndsHour - this.businessBeginsHour; }, this.J = function () { return this.H() / 18e5; }, this.H = function () { var e = 0; return e = "BusinessHoursNoScroll" === this.heightSpec ? this.I() : 24, 60 * e * 60 * 1e3; }, this.K = function () { return "BusinessHoursNoScroll" === this.heightSpec ? this.businessBeginsHour : 0; }, this.L = function () { return 2 === s.api; }, this.eventClickCallBack = function (e, t) { this.k("EventClick", t, e); }, this.eventClickPostBack = function (e, t) { this.i("EventClick", t, e); }, this.M = function (e) {
721
892
  var t = this, i = t.event;
722
- if (s.O()) {
893
+ if (s.L()) {
723
894
  var n = {};
724
- if (n.e = i, n.originalEvent = e, n.meta = e.metaKey, n.ctrl = e.ctrlKey, n.control = s, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onEventClick && (s.Q.apply(function () { s.onEventClick(n); }), n.preventDefault.value))
895
+ if (n.e = i, n.originalEvent = e, n.meta = e.metaKey, n.ctrl = e.ctrlKey, n.control = s, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onEventClick && (s.N.apply(function () { s.onEventClick(n); }), n.preventDefault.value))
725
896
  return;
726
897
  switch (s.eventClickHandling) {
727
898
  case "CallBack":
@@ -734,7 +905,7 @@ if ("undefined" == typeof DayPilot)
734
905
  var a = i.client.contextMenu();
735
906
  a ? a.show(i) : s.contextMenu && s.contextMenu.show(i);
736
907
  }
737
- "function" == typeof s.onEventClicked && s.Q.apply(function () { s.onEventClicked(n); });
908
+ "function" == typeof s.onEventClicked && s.N.apply(function () { s.onEventClicked(n); });
738
909
  }
739
910
  else
740
911
  switch (s.eventClickHandling) {
@@ -746,7 +917,7 @@ if ("undefined" == typeof DayPilot)
746
917
  break;
747
918
  case "JavaScript": s.onEventClick(i);
748
919
  }
749
- }, this.R = function (e) {
920
+ }, this.O = function (e) {
750
921
  var t = this.event;
751
922
  if (e.stopPropagation && e.stopPropagation(), !t.client.rightClickEnabled())
752
923
  return !1;
@@ -759,10 +930,10 @@ if ("undefined" == typeof DayPilot)
759
930
  n ? n.show(t) : s.contextMenu && s.contextMenu.show(this.event);
760
931
  }
761
932
  return "function" == typeof s.onEventRightClicked && s.onEventRightClicked(i), e.preventDefault && e.preventDefault(), !1;
762
- }, this.eventDeleteCallBack = function (e, t) { this.m("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.k("EventDelete", t, e); }, this.S = function (e) {
763
- if (s.O()) {
933
+ }, this.eventDeleteCallBack = function (e, t) { this.k("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.i("EventDelete", t, e); }, this.P = function (e) {
934
+ if (s.L()) {
764
935
  var t = {};
765
- if (t.e = e, t.control = s, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onEventDelete && (s.Q.apply(function () { s.onEventDelete(t); }), t.preventDefault.value))
936
+ if (t.e = e, t.control = s, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onEventDelete && (s.N.apply(function () { s.onEventDelete(t); }), t.preventDefault.value))
766
937
  return;
767
938
  switch (s.eventDeleteHandling) {
768
939
  case "CallBack":
@@ -773,7 +944,7 @@ if ("undefined" == typeof DayPilot)
773
944
  break;
774
945
  case "Update": s.events.remove(e);
775
946
  }
776
- "function" == typeof s.onEventDeleted && s.Q.apply(function () { s.onEventDeleted(t); });
947
+ "function" == typeof s.onEventDeleted && s.N.apply(function () { s.onEventDeleted(t); });
777
948
  }
778
949
  else
779
950
  switch (s.eventDeleteHandling) {
@@ -791,27 +962,27 @@ if ("undefined" == typeof DayPilot)
791
962
  if (!i)
792
963
  throw "newEnd is null";
793
964
  var s = {};
794
- s.e = e, s.newStart = t, s.newEnd = i, this.m("EventResize", n, s);
965
+ s.e = e, s.newStart = t, s.newEnd = i, this.k("EventResize", n, s);
795
966
  }, this.eventResizePostBack = function (e, t, i, n) {
796
967
  if (!t)
797
968
  throw "newStart is null";
798
969
  if (!i)
799
970
  throw "newEnd is null";
800
971
  var s = {};
801
- s.e = e, s.newStart = t, s.newEnd = i, this.k("EventResize", n, s);
972
+ s.e = e, s.newStart = t, s.newEnd = i, this.i("EventResize", n, s);
802
973
  }, this.a = function (e, t, i, n) {
803
974
  var a = 1, l = new Date, o = new Date, r = e.start(), h = e.end();
804
975
  if ("top" === n) {
805
- var c = r.getDatePart(), d = Math.floor((i - a) / s.cellHeight), u = 30 * d, v = 60 * u * 1e3, p = 60 * s.N() * 60 * 1e3;
976
+ var c = r.getDatePart(), d = Math.floor((i - a) / s.cellHeight), u = 30 * d, v = 60 * u * 1e3, p = 60 * s.K() * 60 * 1e3;
806
977
  l = c.addTime(v + p), o = e.end();
807
978
  }
808
979
  else if ("bottom" === n) {
809
- var c = h.getDatePart(), d = Math.floor((i + t - a) / s.cellHeight), u = 30 * d, v = 60 * u * 1e3, p = 60 * s.N() * 60 * 1e3;
980
+ var c = h.getDatePart(), d = Math.floor((i + t - a) / s.cellHeight), u = 30 * d, v = 60 * u * 1e3, p = 60 * s.K() * 60 * 1e3;
810
981
  l = r, o = c.addTime(v + p);
811
982
  }
812
- if (s.O()) {
983
+ if (s.L()) {
813
984
  var f = {};
814
- if (f.e = e, f.control = s, f.newStart = l, f.newEnd = o, f.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onEventResize && (s.Q.apply(function () { s.onEventResize(f); }), f.preventDefault.value))
985
+ if (f.e = e, f.control = s, f.newStart = l, f.newEnd = o, f.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onEventResize && (s.N.apply(function () { s.onEventResize(f); }), f.preventDefault.value))
815
986
  return;
816
987
  switch (s.eventResizeHandling) {
817
988
  case "PostBack":
@@ -822,7 +993,7 @@ if ("undefined" == typeof DayPilot)
822
993
  break;
823
994
  case "Update": e.start(l), e.end(o), s.events.update(e);
824
995
  }
825
- "function" == typeof s.onEventResized && s.Q.apply(function () { s.onEventResized(f); });
996
+ "function" == typeof s.onEventResized && s.N.apply(function () { s.onEventResized(f); });
826
997
  }
827
998
  else
828
999
  switch (s.eventResizeHandling) {
@@ -840,23 +1011,23 @@ if ("undefined" == typeof DayPilot)
840
1011
  if (!i)
841
1012
  throw "newEnd is null";
842
1013
  var a = {};
843
- a.e = e, a.newStart = t, a.newEnd = i, this.k("EventMove", s, a);
1014
+ a.e = e, a.newStart = t, a.newEnd = i, this.i("EventMove", s, a);
844
1015
  }, this.eventMoveCallBack = function (e, t, i, n, s) {
845
1016
  if (!t)
846
1017
  throw "newStart is null";
847
1018
  if (!i)
848
1019
  throw "newEnd is null";
849
1020
  var a = {};
850
- a.e = e, a.newStart = t, a.newEnd = i, this.m("EventMove", s, a);
851
- }, this.b = function (e, t, i, n) {
1021
+ a.e = e, a.newStart = t, a.newEnd = i, this.k("EventMove", s, a);
1022
+ }, this.c = function (e, t, i, n) {
852
1023
  var a = 1, l = Math.floor((i - a) / s.cellHeight), o = 30 * l * 60 * 1e3, r = e.start(), h = e.end(), c = new Date;
853
1024
  r instanceof DayPilot.Date && (r = r.toDate()), c.setTime(Date.UTC(r.getUTCFullYear(), r.getUTCMonth(), r.getUTCDate()));
854
- var d = r.getTime() - (c.getTime() + 3600 * r.getUTCHours() * 1e3 + 30 * Math.floor(r.getUTCMinutes() / 30) * 60 * 1e3), u = h.getTime() - r.getTime(), v = this.T[t], p = v.id, f = v.start.getTime(), g = new Date;
1025
+ var d = r.getTime() - (c.getTime() + 3600 * r.getUTCHours() * 1e3 + 30 * Math.floor(r.getUTCMinutes() / 30) * 60 * 1e3), u = h.getTime() - r.getTime(), v = this.Q[t], p = v.id, f = v.start.getTime(), g = new Date;
855
1026
  g.setTime(f + o + d);
856
1027
  var m = new DayPilot.Date(g), y = m.addTime(u);
857
- if (s.O()) {
1028
+ if (s.L()) {
858
1029
  var b = {};
859
- if (b.e = e, b.newStart = m, b.newEnd = y, b.newResource = p, b.ctrl = n.ctrlKey, b.shift = n.shiftKey, b.control = s, b.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onEventMove && (s.Q.apply(function () { s.onEventMove(b); }), b.preventDefault.value))
1030
+ if (b.e = e, b.newStart = m, b.newEnd = y, b.newResource = p, b.ctrl = n.ctrlKey, b.shift = n.shiftKey, b.control = s, b.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onEventMove && (s.N.apply(function () { s.onEventMove(b); }), b.preventDefault.value))
860
1031
  return;
861
1032
  switch (s.eventMoveHandling) {
862
1033
  case "PostBack":
@@ -867,7 +1038,7 @@ if ("undefined" == typeof DayPilot)
867
1038
  break;
868
1039
  case "Update": e.start(m), e.end(y), e.resource(p), s.events.update(e);
869
1040
  }
870
- "function" == typeof s.onEventMoved && s.Q.apply(function () { s.onEventMoved(b); });
1041
+ "function" == typeof s.onEventMoved && s.N.apply(function () { s.onEventMoved(b); });
871
1042
  }
872
1043
  else
873
1044
  switch (s.eventMoveHandling) {
@@ -879,10 +1050,10 @@ if ("undefined" == typeof DayPilot)
879
1050
  break;
880
1051
  case "JavaScript": s.onEventMove(e, m, y, v.id, !1);
881
1052
  }
882
- }, this.timeRangeSelectedPostBack = function (e, t, i, n) { var s = {}; s.start = e, s.end = t, this.k("TimeRangeSelected", n, s); }, this.timeRangeSelectedCallBack = function (e, t, i, n) { var s = {}; s.start = e, s.end = t, this.m("TimeRangeSelected", n, s); }, this.c = function (e, t, i) {
883
- if (e = new DayPilot.Date(e), t = new DayPilot.Date(t), this.O()) {
1053
+ }, this.timeRangeSelectedPostBack = function (e, t, i, n) { var s = {}; s.start = e, s.end = t, this.i("TimeRangeSelected", n, s); }, this.timeRangeSelectedCallBack = function (e, t, i, n) { var s = {}; s.start = e, s.end = t, this.k("TimeRangeSelected", n, s); }, this.d = function (e, t, i) {
1054
+ if (e = new DayPilot.Date(e), t = new DayPilot.Date(t), this.L()) {
884
1055
  var n = {};
885
- if (n.start = e, n.end = t, n.resource = i, n.control = s, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onTimeRangeSelect && (s.Q.apply(function () { s.onTimeRangeSelect(n); }), n.preventDefault.value))
1056
+ if (n.start = e, n.end = t, n.resource = i, n.control = s, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onTimeRangeSelect && (s.N.apply(function () { s.onTimeRangeSelect(n); }), n.preventDefault.value))
886
1057
  return;
887
1058
  switch (s.timeRangeSelectedHandling) {
888
1059
  case "PostBack":
@@ -890,7 +1061,7 @@ if ("undefined" == typeof DayPilot)
890
1061
  break;
891
1062
  case "CallBack": s.timeRangeSelectedCallBack(e, t);
892
1063
  }
893
- "function" == typeof s.onTimeRangeSelected && s.Q.apply(function () { s.onTimeRangeSelected(n); });
1064
+ "function" == typeof s.onTimeRangeSelected && s.N.apply(function () { s.onTimeRangeSelected(n); });
894
1065
  }
895
1066
  else
896
1067
  switch (s.timeRangeSelectedHandling) {
@@ -902,13 +1073,13 @@ if ("undefined" == typeof DayPilot)
902
1073
  break;
903
1074
  case "JavaScript": s.onTimeRangeSelected(e, t);
904
1075
  }
905
- }, this.U = function (e) {
1076
+ }, this.R = function (e) {
906
1077
  if (!t.selecting && "Disabled" !== s.timeRangeSelectedHandling) {
907
1078
  var i = e.which;
908
1079
  if (1 === i || 0 === i)
909
- return t.firstMousePos = DayPilot.mc(e), t.selecting = {}, t.selecting.calendar = s, t.selectedCells && (s.clearSelection(), t.selectedCells = []), t.column = t.getColumn(this), t.selectedCells.push(this), t.firstSelected = this, t.topSelectedCell = this, t.bottomSelectedCell = this, s.V(), !1;
1080
+ return t.firstMousePos = DayPilot.mc(e), t.selecting = {}, t.selecting.calendar = s, t.selectedCells && (s.clearSelection(), t.selectedCells = []), t.column = t.getColumn(this), t.selectedCells.push(this), t.firstSelected = this, t.topSelectedCell = this, t.bottomSelectedCell = this, s.S(), !1;
910
1081
  }
911
- }, this.V = function () {
1082
+ }, this.S = function () {
912
1083
  this.getSelection();
913
1084
  !function () {
914
1085
  var e = t.topSelectedCell, i = t.bottomSelectedCell, n = function () {
@@ -918,7 +1089,7 @@ if ("undefined" == typeof DayPilot)
918
1089
  if (t[i] === e)
919
1090
  return i;
920
1091
  return -1;
921
- }(), a = s.T[n];
1092
+ }(), a = s.Q[n];
922
1093
  if (a) {
923
1094
  var l = a.start, o = s.getPixels(e.start, l).boxTop, r = s.getPixels(i.end, l).boxBottom, h = r - o, c = function () {
924
1095
  if (s.nav.activeSelection)
@@ -926,17 +1097,17 @@ if ("undefined" == typeof DayPilot)
926
1097
  var e = document.createElement("div");
927
1098
  e.setAttribute("unselectable", "on"), e.style.position = "absolute", e.style.left = "0px", e.style.width = "100%";
928
1099
  var t = document.createElement("div");
929
- return t.setAttribute("unselectable", "on"), t.className = s.u("_shadow_inner"), e.appendChild(t), s.nav.events.rows[0].cells[n].selection.appendChild(e), s.elements.selection.push(e), s.nav.activeSelection = e, e;
1100
+ return t.setAttribute("unselectable", "on"), t.className = s.b("_shadow_inner"), e.appendChild(t), s.nav.events.rows[0].cells[n].selection.appendChild(e), s.elements.selection.push(e), s.nav.activeSelection = e, e;
930
1101
  }();
931
- c.className = s.u("_shadow"), c.firstChild.innerHTML = "", c.style.top = o + "px", c.style.height = h + "px";
1102
+ c.className = s.b("_shadow"), c.firstChild.innerHTML = "", c.style.top = o + "px", c.style.height = h + "px";
932
1103
  }
933
1104
  }();
934
- }, this.W = function (e) {
1105
+ }, this.T = function (e) {
935
1106
  if ("undefined" != typeof t && t.selecting) {
936
1107
  var i = DayPilot.mc(e);
937
- t.getColumn(this) === t.column && (s.clearSelection(), i.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(this), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(this), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), s.V());
1108
+ t.getColumn(this) === t.column && (s.clearSelection(), i.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(this), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(this), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), s.S());
938
1109
  }
939
- }, this.getSelection = function () { var e = t.topSelectedCell.start, i = t.bottomSelectedCell.end, n = t.topSelectedCell.resource; return new DayPilot.Selection(e, i, n, s); }, this.X = function (e) {
1110
+ }, this.getSelection = function () { var e = t.topSelectedCell.start, i = t.bottomSelectedCell.end, n = t.topSelectedCell.resource; return new DayPilot.Selection(e, i, n, s); }, this.U = function (e) {
940
1111
  if (e < 0)
941
1112
  return null;
942
1113
  for (var t = 0, i = s.nav.events.rows[0].cells, n = 0; n < i.length; n++) {
@@ -944,11 +1115,11 @@ if ("undefined" == typeof DayPilot)
944
1115
  return n;
945
1116
  }
946
1117
  return null;
947
- }, this.Y = {}, this.Y.getCellCoords = function () {
1118
+ }, this.V = {}, this.V.getCellCoords = function () {
948
1119
  var e = {};
949
1120
  if (e.x = 0, e.y = 0, !s.coords)
950
1121
  return null;
951
- e.x = s.X(s.coords.x);
1122
+ e.x = s.U(s.coords.x);
952
1123
  var t = 0, i = Math.floor((s.coords.y - t) / s.cellHeight);
953
1124
  return e.y = i, e.x < 0 ? null : e;
954
1125
  }, this.columns = {}, this.columns.list = [], this.columns.load = function (e, t, i) {
@@ -967,18 +1138,18 @@ if ("undefined" == typeof DayPilot)
967
1138
  var o = {};
968
1139
  if (o.preventDefault = function () { this.preventDefault.value = !0; }, o.data = i, "function" == typeof t && t(o), o.preventDefault.value)
969
1140
  return;
970
- s.columns.list = i, s.Z && s.update();
1141
+ s.columns.list = i, s.W && s.update();
971
1142
  }
972
1143
  };
973
1144
  s.columnsLoadMethod && "POST" === s.columnsLoadMethod.toUpperCase() ? DayPilot.ajax({ "method": "POST", "url": e, "success": a, "error": n }) : DayPilot.ajax({ "method": "GET", "url": e, "success": a, "error": n });
974
- }, this.B = function () {
1145
+ }, this.w = function () {
975
1146
  var e;
976
- e = "Resources" !== s.viewType ? this.$() : s.columns.list, this.T = [];
1147
+ e = "Resources" !== s.viewType ? this.X() : s.columns.list, this.Q = [];
977
1148
  for (var t = 0; t < e.length; t++) {
978
- var i = this._(e[t]);
979
- this.T.push(i);
1149
+ var i = this.Y(e[t]);
1150
+ this.Q.push(i);
980
1151
  }
981
- }, this._ = function (e) {
1152
+ }, this.Y = function (e) {
982
1153
  var t = {};
983
1154
  return t.name = e.name, t.html = e.html, t.id = e.id, t.toolTip = e.toolTip, t.data = e, e.start ? t.start = new DayPilot.Date(e.start) : t.start = new DayPilot.Date(s.startDate), t.putIntoBlock = function (e) {
984
1155
  for (var t = 0; t < this.blocks.length; t++) {
@@ -1019,7 +1190,7 @@ if ("undefined" == typeof DayPilot)
1019
1190
  return !0;
1020
1191
  }, i.push(e), this.lines.push(i), this.lines.length - 1;
1021
1192
  }, t;
1022
- }, this.$ = function () {
1193
+ }, this.X = function () {
1023
1194
  var e = [], t = this.startDate.getDatePart(), i = this.days;
1024
1195
  switch (this.viewType) {
1025
1196
  case "Day":
@@ -1038,22 +1209,22 @@ if ("undefined" == typeof DayPilot)
1038
1209
  return e;
1039
1210
  }, this.visibleStart = function () {
1040
1211
  if ("Resources" === s.viewType) {
1041
- if (0 === s.T.length)
1212
+ if (0 === s.Q.length)
1042
1213
  return DayPilot.Date.today();
1043
- var e = s.T.map(function (e) { return e.start.getTime(); }), t = Math.min.apply(null, e);
1214
+ var e = s.Q.map(function (e) { return e.start.getTime(); }), t = Math.min.apply(null, e);
1044
1215
  return new DayPilot.Date(t);
1045
1216
  }
1046
- return this.T[0].start;
1217
+ return this.Q[0].start;
1047
1218
  }, this.visibleEnd = function () {
1048
1219
  if ("Resources" === s.viewType) {
1049
- if (0 === s.T.length)
1220
+ if (0 === s.Q.length)
1050
1221
  return DayPilot.Date.today().addDays(1);
1051
- var e = s.T.map(function (e) { return e.start.getTime(); }), t = Math.max.apply(null, e);
1222
+ var e = s.Q.map(function (e) { return e.start.getTime(); }), t = Math.max.apply(null, e);
1052
1223
  return new DayPilot.Date(t).addDays(1);
1053
1224
  }
1054
- var t = this.T.length - 1;
1055
- return this.T[t].start.addDays(1);
1056
- }, this.u = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.p = function () {
1225
+ var t = this.Q.length - 1;
1226
+ return this.Q[t].start.addDays(1);
1227
+ }, this.b = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.n = function () {
1057
1228
  if (this.elements.events)
1058
1229
  for (var e = 0; e < this.elements.events.length; e++) {
1059
1230
  var t = this.elements.events[e], i = t.event;
@@ -1064,58 +1235,59 @@ if ("undefined" == typeof DayPilot)
1064
1235
  t.helper = null, t.data = null, t.event = null, DayPilot.de(t);
1065
1236
  }
1066
1237
  this.elements.events = [];
1067
- }, this.aa = function (e) {
1238
+ }, this.Z = function (e) {
1068
1239
  var i = e.cache || e.data, n = this.nav.events, a = document.createElement("div");
1069
- 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.u("_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.P, DayPilot.re(a, "contextmenu", this.R), a.onmouseout = function (e) { a.deleteIcon && (a.deleteIcon.style.display = "none"); }, a.onmousemove = function (i) {
1070
- var n = s.eventHeaderVisible ? s.eventHeaderHeight : 10;
1240
+ a.style.position = "absolute", a.style.left = e.part.left + "%", a.style.top = e.part.top + "px", a.style.width = e.part.width + "%", a.style.height = Math.max(e.part.height, 2) + "px", a.style.overflow = "hidden", a.data = e, a.event = e, a.unselectable = "on", a.style.MozUserSelect = "none", a.style.KhtmlUserSelect = "none", a.className = this.b("_event"), i.cssClass && DayPilot.Util.addClass(a, i.cssClass), a.isFirst = e.part.start.getTime() === e.start().getTime(), a.isLast = e.part.end.getTime() === e.end().getTime(), a.onclick = this.M, DayPilot.re(a, "contextmenu", this.O), a.onmouseout = function (e) { a.deleteIcon && (a.deleteIcon.style.display = "none"); }, a.onmousemove = function (i) {
1241
+ var n = 5;
1071
1242
  if ("undefined" != typeof t) {
1072
1243
  var l = DayPilot.mo3(a, i);
1073
1244
  if (l && !t.resizing && !t.moving) {
1074
1245
  a.deleteIcon && (a.deleteIcon.style.display = "");
1075
1246
  var o = this.isLast;
1076
- l.y <= n && e.client.resizeEnabled() ? (this.style.cursor = "n-resize", this.dpBorder = "top") : this.offsetHeight - l.y <= 5 && e.client.resizeEnabled() ? o ? (this.style.cursor = "s-resize", this.dpBorder = "bottom") : this.style.cursor = "not-allowed" : t.resizing || t.moving || ("Disabled" !== s.eventClickHandling ? this.style.cursor = "pointer" : this.style.cursor = "default");
1247
+ l.y <= n && e.client.resizeEnabled() ? (this.style.cursor = "n-resize", this.dpBorder = "top") : this.offsetHeight - l.y <= n && e.client.resizeEnabled() ? o ? (this.style.cursor = "s-resize", this.dpBorder = "bottom") : this.style.cursor = "not-allowed" : t.resizing || t.moving || ("Disabled" !== s.eventClickHandling ? this.style.cursor = "pointer" : this.style.cursor = "default");
1077
1248
  }
1078
1249
  }
1079
1250
  }, a.onmousedown = function (i) {
1080
1251
  var n = i.which || i.button;
1081
1252
  if ("n-resize" !== this.style.cursor && "s-resize" !== this.style.cursor || 1 !== n) {
1082
1253
  if (1 === n && e.client.moveEnabled()) {
1083
- t.moving = this, t.moving.event = this.event;
1254
+ t.moving = this, DayPilot.Global.moving = this, t.moving.event = this.event;
1084
1255
  var a = t.moving.helper = {};
1085
- a.oldColumn = s.T[this.data.part.dayIndex].id, t.originalMouse = DayPilot.mc(i), t.originalTop = this.offsetTop;
1256
+ a.oldColumn = s.Q[this.data.part.dayIndex].id, t.originalMouse = DayPilot.mc(i), t.originalTop = this.offsetTop;
1086
1257
  var l = DayPilot.mo3(this, i);
1087
1258
  l ? t.moveOffsetY = l.y : t.moveOffsetY = 0, s.nav.top.style.cursor = "move";
1088
1259
  }
1089
1260
  }
1090
1261
  else
1091
- t.resizing = this, t.originalMouse = DayPilot.mc(i), t.originalHeight = this.offsetHeight, t.originalTop = this.offsetTop, s.nav.top.style.cursor = this.style.cursor;
1262
+ t.resizing = this, DayPilot.Global.resizing = this, t.originalMouse = DayPilot.mc(i), t.originalHeight = this.offsetHeight, t.originalTop = this.offsetTop, s.nav.top.style.cursor = this.style.cursor;
1092
1263
  return !1;
1093
1264
  };
1094
1265
  var l = document.createElement("div");
1095
- if (l.setAttribute("unselectable", "on"), l.className = s.u("_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()) {
1266
+ 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()) {
1096
1267
  var o = e.part.height - 2, r = 100 * e.part.barTop / o, h = Math.ceil(100 * e.part.barHeight / o), c = document.createElement("div");
1097
- c.setAttribute("unselectable", "on"), c.className = this.u("_event_bar"), c.style.position = "absolute", i.barBackColor && (c.style.backgroundColor = i.barBackColor);
1268
+ c.setAttribute("unselectable", "on"), c.className = this.b("_event_bar"), c.style.position = "absolute", i.barBackColor && (c.style.backgroundColor = i.barBackColor);
1098
1269
  var d = document.createElement("div");
1099
- d.setAttribute("unselectable", "on"), d.className = this.u("_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);
1270
+ 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);
1100
1271
  }
1101
1272
  if (e.client.deleteEnabled()) {
1102
1273
  var u = document.createElement("div");
1103
- u.style.position = "absolute", u.style.right = "2px", u.style.top = "2px", u.style.width = "17px", u.style.height = "17px", u.className = s.u("_event_delete"), u.onmousedown = function (e) { e.stopPropagation(); }, u.onclick = function (e) { var t = this.parentNode.event; t && s.S(t); }, u.style.display = "none", a.deleteIcon = u, a.appendChild(u);
1274
+ u.style.position = "absolute", u.style.right = "2px", u.style.top = "2px", u.style.width = "17px", u.style.height = "17px", u.className = s.b("_event_delete"), u.onmousedown = function (e) { e.stopPropagation(); }, u.onclick = function (e) { var t = this.parentNode.event; t && s.P(t); }, u.style.display = "none", a.deleteIcon = u, a.appendChild(u);
1104
1275
  }
1105
- if (n.rows[0].cells[e.part.dayIndex]) {
1106
- n.rows[0].cells[e.part.dayIndex].firstChild.appendChild(a), s.ba(a);
1276
+ var v = i.areas ? DayPilot.Areas.copy(i.areas) : [];
1277
+ if (DayPilot.Areas.attach(a, e, { "areas": v }), n.rows[0].cells[e.part.dayIndex]) {
1278
+ n.rows[0].cells[e.part.dayIndex].firstChild.appendChild(a), s.$(a);
1107
1279
  }
1108
1280
  s.elements.events.push(a);
1109
- }, this.ba = function (e) {
1281
+ }, this.$ = function (e) {
1110
1282
  for (var t = e && e.childNodes ? e.childNodes.length : 0, i = 0; i < t; i++)
1111
1283
  try {
1112
1284
  var n = e.childNodes[i];
1113
- 1 === n.nodeType && (n.unselectable = "on", this.ba(n));
1285
+ 1 === n.nodeType && (n.unselectable = "on", this.$(n));
1114
1286
  }
1115
1287
  catch (e) { }
1116
- }, this.I = function () {
1117
- for (var e = 0; e < this.T.length; e++) {
1118
- var t = this.T[e];
1288
+ }, this.F = function () {
1289
+ for (var e = 0; e < this.Q.length; e++) {
1290
+ var t = this.Q[e];
1119
1291
  if (t.blocks)
1120
1292
  for (var i = 0; i < t.blocks.length; i++)
1121
1293
  for (var n = t.blocks[i], s = 0; s < n.lines.length; s++)
@@ -1123,13 +1295,13 @@ if ("undefined" == typeof DayPilot)
1123
1295
  var o = a[l];
1124
1296
  o.part.width = 100 / n.lines.length, o.part.left = o.part.width * s;
1125
1297
  var r = s === n.lines.length - 1;
1126
- r || (o.part.width = 1.5 * o.part.width), this.aa(o);
1298
+ r || (o.part.width = 1.5 * o.part.width), this.Z(o);
1127
1299
  }
1128
1300
  }
1129
- }, this.ca = function () { this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.u("_main")), this.nav.top.style.MozUserSelect = "none", this.nav.top.style.KhtmlUserSelect = "none", this.nav.top.style.position = "relative", this.nav.top.style.width = this.width ? this.width : "100%", this.hideUntilInit && (this.nav.top.style.visibility = "hidden"), this.visible || (this.nav.top.style.display = "none"), this.nav.scroll = document.createElement("div"), this.nav.scroll.style.height = this.da() + "px", "BusinessHours" === this.heightSpec ? this.nav.scroll.style.overflow = "auto" : this.nav.scroll.style.overflow = "hidden", this.nav.scroll.style.position = "relative"; var e = this.ea(); this.nav.top.appendChild(e), this.nav.scroll.style.zoom = 1; var t = this.fa(); this.nav.scrollable = t.firstChild, this.nav.scroll.appendChild(t), this.nav.top.appendChild(this.nav.scroll), this.nav.scrollLayer = document.createElement("div"), this.nav.scrollLayer.style.position = "absolute", this.nav.scrollLayer.style.top = "0px", this.nav.scrollLayer.style.left = "0px", this.nav.top.appendChild(this.nav.scrollLayer), this.nav.loading = document.createElement("div"), this.nav.loading.style.position = "absolute", this.nav.loading.style.top = "0px", this.nav.loading.style.left = this.hourWidth + 5 + "px", this.nav.loading.style.backgroundColor = this.loadingLabelBackColor, this.nav.loading.style.fontSize = this.loadingLabelFontSize, this.nav.loading.style.fontFamily = this.loadingLabelFontFamily, this.nav.loading.style.color = this.loadingLabelFontColor, this.nav.loading.style.padding = "2px", this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.display = "none", this.nav.top.appendChild(this.nav.loading); }, this.G = function () { this.fasterDispose || DayPilot.pu(this.nav.hourTable), this.nav.scrollable.rows[0].cells[0].innerHTML = "", this.nav.hourTable = this.ga(), this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable); }, this.fa = function () { var e = document.createElement("div"); e.style.zoom = 1, e.style.position = "relative"; var t = document.createElement("table"); t.cellSpacing = "0", t.cellPadding = "0", t.border = "0", t.style.border = "0px none", t.style.width = "100%", t.style.position = "absolute"; var i, n = t.insertRow(-1); i = n.insertCell(-1), i.valign = "top", i.style.padding = "0px", i.style.border = "0px none", this.nav.hourTable = this.ga(), i.appendChild(this.nav.hourTable), i = n.insertCell(-1), i.valign = "top", i.width = "100%", i.style.padding = "0px", i.style.border = "0px none"; var s = document.createElement("div"); return s.style.position = "relative", i.appendChild(s), s.appendChild(this.ha()), s.appendChild(this.ia()), e.appendChild(t), this.nav.zoom = e, e; }, this.ha = function () { var e = document.createElement("table"); return e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.nav.main = e, this.nav.events = e, e; }, this.ia = function () {
1301
+ }, this._ = function () { this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.b("_main")), this.nav.top.style.MozUserSelect = "none", this.nav.top.style.KhtmlUserSelect = "none", this.nav.top.style.position = "relative", this.nav.top.style.width = this.width ? this.width : "100%", this.hideUntilInit && (this.nav.top.style.visibility = "hidden"), this.visible || (this.nav.top.style.display = "none"), this.nav.scroll = document.createElement("div"), this.nav.scroll.style.height = this.aa() + "px", "BusinessHours" === this.heightSpec ? this.nav.scroll.style.overflow = "auto" : this.nav.scroll.style.overflow = "hidden", this.nav.scroll.style.position = "relative"; var e = this.ba(); this.nav.top.appendChild(e), this.nav.scroll.style.zoom = 1; var t = this.ca(); this.nav.scrollable = t.firstChild, this.nav.scroll.appendChild(t), this.nav.top.appendChild(this.nav.scroll), this.nav.scrollLayer = document.createElement("div"), this.nav.scrollLayer.style.position = "absolute", this.nav.scrollLayer.style.top = "0px", this.nav.scrollLayer.style.left = "0px", this.nav.top.appendChild(this.nav.scrollLayer), this.nav.loading = document.createElement("div"), this.nav.loading.style.position = "absolute", this.nav.loading.style.top = "0px", this.nav.loading.style.left = this.hourWidth + 5 + "px", this.nav.loading.style.backgroundColor = this.loadingLabelBackColor, this.nav.loading.style.fontSize = this.loadingLabelFontSize, this.nav.loading.style.fontFamily = this.loadingLabelFontFamily, this.nav.loading.style.color = this.loadingLabelFontColor, this.nav.loading.style.padding = "2px", this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.display = "none", this.nav.top.appendChild(this.nav.loading); }, this.D = function () { this.fasterDispose || DayPilot.pu(this.nav.hourTable), this.nav.scrollable.rows[0].cells[0].innerHTML = "", this.nav.hourTable = this.da(), this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable); }, this.ca = function () { var e = document.createElement("div"); e.style.zoom = 1, e.style.position = "relative"; var t = document.createElement("table"); t.cellSpacing = "0", t.cellPadding = "0", t.border = "0", t.style.border = "0px none", t.style.width = "100%", t.style.position = "absolute"; var i, n = t.insertRow(-1); i = n.insertCell(-1), i.valign = "top", i.style.padding = "0px", i.style.border = "0px none", this.nav.hourTable = this.da(), i.appendChild(this.nav.hourTable), i = n.insertCell(-1), i.valign = "top", i.width = "100%", i.style.padding = "0px", i.style.border = "0px none"; var s = document.createElement("div"); return s.style.position = "relative", i.appendChild(s), s.appendChild(this.ea()), s.appendChild(this.fa()), e.appendChild(t), this.nav.zoom = e, e; }, this.ea = function () { var e = document.createElement("table"); return e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.nav.main = e, this.nav.events = e, e; }, this.fa = function () {
1130
1302
  var e = document.createElement("table");
1131
1303
  e.style.top = "0px", e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.position = "absolute", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.nav.events = e;
1132
- for (var t = this.T, i = t.length, n = e.insertRow(-1), a = 0; a < i; a++) {
1304
+ for (var t = this.Q, i = t.length, n = e.insertRow(-1), a = 0; a < i; a++) {
1133
1305
  var l = n.insertCell(-1);
1134
1306
  l.style.padding = "0px", l.style.border = "0px none", l.style.height = "0px", l.style.overflow = "visible", s.rtl || (l.style.textAlign = "left");
1135
1307
  var o = document.createElement("div");
@@ -1138,61 +1310,60 @@ if ("undefined" == typeof DayPilot)
1138
1310
  l.selection = r, l.appendChild(o), l.appendChild(r);
1139
1311
  }
1140
1312
  return e;
1141
- }, this.ga = function () {
1313
+ }, this.da = function () {
1142
1314
  var e = document.createElement("table");
1143
1315
  e.cellSpacing = "0", e.cellPadding = "0", e.border = "0", e.style.border = "0px none", e.style.width = this.hourWidth + "px", e.oncontextmenu = function () { return !1; };
1144
- for (var t = s.J(), i = 0; i < t; i++)
1145
- this.ja(e, i);
1316
+ for (var t = s.G(), i = 0; i < t; i++)
1317
+ this.ga(e, i);
1146
1318
  return e;
1147
- }, this.ja = function (e, t) { var i = 2 * this.cellHeight, n = e.insertRow(-1); n.style.height = i + "px"; var l = n.insertCell(-1); l.valign = "bottom", l.unselectable = "on", l.style.cursor = "default", l.style.padding = "0px", l.style.border = "0px none"; var o = document.createElement("div"); o.style.position = "relative", o.className = this.u("_rowheader"), o.style.width = this.hourWidth + "px", o.style.height = i + "px", o.style.overflow = "hidden", o.unselectable = "on"; var r = document.createElement("div"); r.className = this.u("_rowheader_inner"), r.unselectable = "on"; var h = document.createElement("div"); h.unselectable = "on"; var c = this.startDate.addHours(t).addHours(s.N()), d = c.getHours(), u = d < 12, v = a.timeFormat(); "Clock12Hours" === v && (d %= 12, 0 === d && (d = 12)), h.innerHTML = d; var p = document.createElement("span"); p.unselectable = "on", p.className = this.u("_rowheader_minutes"); var f; f = "Clock12Hours" === v ? u ? "AM" : "PM" : "00", p.innerHTML = f, h.appendChild(p), r.appendChild(h), o.appendChild(r), l.appendChild(o); }, this.da = function () {
1319
+ }, this.ga = function (e, t) { var i = 2 * this.cellHeight, n = e.insertRow(-1); n.style.height = i + "px"; var l = n.insertCell(-1); l.valign = "bottom", l.unselectable = "on", l.style.cursor = "default", l.style.padding = "0px", l.style.border = "0px none"; var o = document.createElement("div"); o.style.position = "relative", o.className = this.b("_rowheader"), o.style.width = this.hourWidth + "px", o.style.height = i + "px", o.style.overflow = "hidden", o.unselectable = "on"; var r = document.createElement("div"); r.className = this.b("_rowheader_inner"), r.unselectable = "on"; var h = document.createElement("div"); h.unselectable = "on"; var c = this.startDate.addHours(t).addHours(s.K()), d = c.getHours(), u = d < 12, v = a.timeFormat(); "Clock12Hours" === v && (d %= 12, 0 === d && (d = 12)), h.innerHTML = d; var p = document.createElement("span"); p.unselectable = "on", p.className = this.b("_rowheader_minutes"); var f; f = "Clock12Hours" === v ? u ? "AM" : "PM" : "00", p.innerHTML = f, h.appendChild(p), r.appendChild(h), o.appendChild(r), l.appendChild(o); }, this.aa = function () {
1148
1320
  switch (this.heightSpec) {
1149
1321
  case "Full": return 48 * this.cellHeight;
1150
1322
  case "BusinessHours":
1151
- var e = this.L();
1323
+ var e = this.I();
1152
1324
  return e * this.cellHeight * 2;
1153
1325
  case "BusinessHoursNoScroll":
1154
- var e = this.L();
1326
+ var e = this.I();
1155
1327
  return e * this.cellHeight * 2;
1156
1328
  default: throw "DayPilot.Calendar: Unexpected 'heightSpec' value.";
1157
1329
  }
1158
- }, this.ka = function () {
1330
+ }, this.ha = function () {
1159
1331
  var e = s.nav.corner ? s.nav.corner.parentNode : null;
1160
1332
  if (e) {
1161
1333
  e.innerHTML = "";
1162
- var t = this.la();
1334
+ var t = this.ia();
1163
1335
  e.appendChild(t), s.nav.corner = t;
1164
1336
  }
1165
- }, this.ea = function () {
1337
+ }, this.ba = function () {
1166
1338
  var e = document.createElement("div");
1167
1339
  e.style.overflow = "auto";
1168
1340
  var t = document.createElement("table");
1169
1341
  t.cellPadding = "0", t.cellSpacing = "0", t.border = "0", t.style.width = "100%", t.style.borderCollapse = "separate", t.style.border = "0px none";
1170
1342
  var i = t.insertRow(-1), n = i.insertCell(-1);
1171
1343
  n.style.padding = "0px", n.style.border = "0px none";
1172
- var s = this.la();
1344
+ var s = this.ia();
1173
1345
  n.appendChild(s), this.nav.corner = s, n = i.insertCell(-1), n.style.width = "100%", n.valign = "top", n.style.position = "relative", n.style.padding = "0px", n.style.border = "0px none", this.nav.header = document.createElement("table"), this.nav.header.cellPadding = "0", this.nav.header.cellSpacing = "0", this.nav.header.border = "0", this.nav.header.width = "100%", this.nav.header.style.tableLayout = "fixed", this.nav.header.oncontextmenu = function () { return !1; };
1174
1346
  var a = "hidden" !== this.nav.scroll.style.overflow;
1175
1347
  if (n.appendChild(this.nav.header), a) {
1176
1348
  n = i.insertCell(-1), n.unselectable = "on";
1177
1349
  var l = document.createElement("div");
1178
- l.unselectable = "on", l.style.position = "relative", l.style.width = "16px", l.style.height = this.headerHeight + "px", l.className = this.u("_cornerright");
1350
+ l.unselectable = "on", l.style.position = "relative", l.style.width = "16px", l.style.height = this.headerHeight + "px", l.className = this.b("_cornerright");
1179
1351
  var o = document.createElement("div");
1180
- o.className = this.u("_cornerright_inner"), l.appendChild(o), n.appendChild(l), this.nav.cornerRight = l;
1352
+ o.className = this.b("_cornerright_inner"), l.appendChild(o), n.appendChild(l), this.nav.cornerRight = l;
1181
1353
  }
1182
1354
  return e.appendChild(t), e;
1183
- }, this.la = function () { var e = document.createElement("div"); e.style.position = "relative", e.className = this.u("_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.u("_corner_inner"), e.appendChild(t), e; }, this.q = function () {
1355
+ }, 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 () {
1184
1356
  var e = this.nav.main;
1185
1357
  e.root = null, e.onmouseup = null;
1186
1358
  for (var t = 0; t < e.rows.length; t++)
1187
1359
  for (var i = e.rows[t], n = 0; n < i.cells.length; n++) {
1188
1360
  var s = i.cells[n];
1189
- s.root = null, s.onmousedown = null,
1190
- s.onmousemove = null, s.onmouseout = null, s.onmouseup = null;
1361
+ s.root = null, s.onmousedown = null, s.onmousemove = null, s.onmouseout = null, s.onmouseup = null;
1191
1362
  }
1192
1363
  this.fasterDispose || DayPilot.pu(e);
1193
- }, this.F = function () {
1194
- var e = this.nav.main, i = 18e5, n = this.M(), a = s.T;
1195
- for (e && this.q(); e && e.rows && e.rows.length > 0;)
1364
+ }, this.C = function () {
1365
+ var e = this.nav.main, i = 18e5, n = this.J(), a = s.Q;
1366
+ for (e && this.o(); e && e.rows && e.rows.length > 0;)
1196
1367
  this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
1197
1368
  this.tableCreated = !0;
1198
1369
  for (var l = a.length, o = this.nav.events; o && o.rows && o.rows.length > 0;)
@@ -1209,13 +1380,13 @@ if ("undefined" == typeof DayPilot)
1209
1380
  var r = e.insertRow(-1);
1210
1381
  r.style.MozUserSelect = "none", r.style.KhtmlUserSelect = "none";
1211
1382
  for (var h = 0; h < l; h++) {
1212
- var p = this.T[h], c = r.insertCell(-1);
1213
- c.start = p.start.addTime(v * i), c.end = c.start.addTime(i), c.resource = p.id, c.onmousedown = this.U, 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";
1383
+ var p = this.Q[h], c = r.insertCell(-1);
1384
+ 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";
1214
1385
  var d = document.createElement("div");
1215
- d.unselectable = "on", d.style.height = s.cellHeight + "px", d.style.position = "relative", d.className = this.u("_cell");
1216
- this.ma(c.start, c.end) && DayPilot.Util.addClass(d, s.u("_cell_business"));
1386
+ d.unselectable = "on", d.style.height = s.cellHeight + "px", d.style.position = "relative", d.className = this.b("_cell");
1387
+ this.ja(c.start, c.end) && DayPilot.Util.addClass(d, s.b("_cell_business"));
1217
1388
  var f = document.createElement("div");
1218
- f.setAttribute("unselectable", "on"), f.className = this.u("_cell_inner"), d.appendChild(f), c.appendChild(d), c.appendChild(d);
1389
+ f.setAttribute("unselectable", "on"), f.className = this.b("_cell_inner"), d.appendChild(f), c.appendChild(d), c.appendChild(d);
1219
1390
  }
1220
1391
  }
1221
1392
  e.root = this, s.nav.scrollable.onmousemove = function (e) {
@@ -1223,7 +1394,7 @@ if ("undefined" == typeof DayPilot)
1223
1394
  s.coords = DayPilot.mo3(i, e);
1224
1395
  var n = DayPilot.mc(e);
1225
1396
  if (t.resizing) {
1226
- t.resizingShadow || (t.resizingShadow = s.t(t.resizing, !1, s.shadow));
1397
+ t.resizingShadow || (t.resizingShadow = s.r(t.resizing, !1, s.shadow));
1227
1398
  var a = s.cellHeight, l = 1, o = n.y - t.originalMouse.y;
1228
1399
  if ("bottom" === t.resizing.dpBorder) {
1229
1400
  var r = Math.floor((t.originalHeight + t.originalTop + o + a / 2) / a) * a - t.originalTop + l;
@@ -1239,23 +1410,23 @@ if ("undefined" == typeof DayPilot)
1239
1410
  }
1240
1411
  }
1241
1412
  else if (t.moving) {
1242
- if (t.movingShadow || (t.movingShadow = s.t(t.moving, !s.g, s.shadow), t.movingShadow.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px"), !s.coords)
1413
+ 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)
1243
1414
  return;
1244
1415
  var a = s.cellHeight, l = 1, d = t.moveOffsetY;
1245
1416
  d || (d = a / 2);
1246
1417
  var c = Math.floor((s.coords.y - d - l + a / 2) / a) * a + l;
1247
1418
  c < l && (c = l);
1248
1419
  var u = s.nav.events, h = s.nav.main.clientHeight, v = parseInt(t.movingShadow.style.height);
1249
- c + v > h && (c = h - v), t.movingShadow.parentNode.style.display = "none", t.movingShadow.style.top = c + "px", t.movingShadow.parentNode.style.display = "";
1420
+ 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 = "";
1250
1421
  var p = u.clientWidth / u.rows[0].cells.length, f = Math.floor((s.coords.x - 45) / p);
1251
1422
  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]));
1252
1423
  }
1253
1424
  else if (t.selecting) {
1254
- var n = DayPilot.mc(e), g = s.Y.getCellCoords(), m = t.column, y = s.nav.main.rows[g.y].cells[m];
1255
- 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.V();
1425
+ var n = DayPilot.mc(e), g = s.V.getCellCoords(), m = t.column, y = s.nav.main.rows[g.y].cells[m];
1426
+ 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();
1256
1427
  }
1257
1428
  }, s.nav.scrollable.style.display = "";
1258
- }, this.ma = 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.r = function () {
1429
+ }, 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 () {
1259
1430
  var e = this.nav.header;
1260
1431
  if (e && e.rows)
1261
1432
  for (var t = 0; t < e.rows.length; t++)
@@ -1264,32 +1435,32 @@ if ("undefined" == typeof DayPilot)
1264
1435
  s.onclick = null, s.onmousemove = null, s.onmouseout = null;
1265
1436
  }
1266
1437
  this.fasterDispose || DayPilot.pu(e);
1267
- }, this.na = function (e) {
1268
- for (var t = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], i = this.T, n = i.length, a = 0; a < n; a++) {
1438
+ }, this.ka = function (e) {
1439
+ for (var t = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], i = this.Q, n = i.length, a = 0; a < n; a++) {
1269
1440
  var l = i[a], o = e ? t.insertCell(-1) : t.cells[a];
1270
- o.data = l, o.style.overflow = "hidden", o.style.padding = "0px", o.style.border = "0px none", o.style.height = this.headerHeight + "px", o.onclick = s.oa;
1441
+ o.data = l, o.style.overflow = "hidden", o.style.padding = "0px", o.style.border = "0px none", o.style.height = this.headerHeight + "px", o.onclick = s.la;
1271
1442
  var r = e ? document.createElement("div") : o.firstChild;
1272
1443
  if (e) {
1273
- r.unselectable = "on", r.style.MozUserSelect = "none", r.style.cursor = "default", r.style.position = "relative", r.className = s.u("_colheader"), r.style.height = this.headerHeight + "px", s.headerTextWrappingEnabled || (r.style.whiteSpace = "nowrap");
1444
+ r.unselectable = "on", r.style.MozUserSelect = "none", r.style.cursor = "default", r.style.position = "relative", r.className = s.b("_colheader"), r.style.height = this.headerHeight + "px", s.headerTextWrappingEnabled || (r.style.whiteSpace = "nowrap");
1274
1445
  var h = document.createElement("div");
1275
- h.className = s.u("_colheader_inner"), h.unselectable = "on", r.appendChild(h), o.appendChild(r);
1446
+ h.className = s.b("_colheader_inner"), h.unselectable = "on", r.appendChild(h), o.appendChild(r);
1276
1447
  }
1277
1448
  l.toolTip && (h.title = l.toolTip);
1278
1449
  var h = r.firstChild;
1279
- h.innerHTML = s.pa(l.name, l.html);
1450
+ h.innerHTML = s.ma(l.name, l.html);
1280
1451
  }
1281
- }, this.oa = function (e) {
1452
+ }, this.la = function (e) {
1282
1453
  if ("Disabled" !== s.headerClickHandling) {
1283
- var t = this.data, i = s.qa(t), n = {};
1454
+ var t = this.data, i = s.na(t), n = {};
1284
1455
  n.header = {}, n.header.id = t.id, n.header.name = t.name, n.header.start = t.start, n.column = i, n.originalEvent = e, n.shift = e.shiftKey, n.ctrl = e.ctrlKey, n.meta = e.metaKey, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onHeaderClick && (s.onHeaderClick(n), n.preventDefault.value) || "function" == typeof s.onHeaderClicked && s.onHeaderClicked(n);
1285
1456
  }
1286
- }, this.qa = function (e) { return new DayPilot.CalendarColumn(e, s); }, this.ra = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.E = function () {
1287
- var e = this.nav.header, t = !0, i = this.T;
1457
+ }, this.na = function (e) { return new DayPilot.CalendarColumn(e, s); }, this.oa = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.B = function () {
1458
+ var e = this.nav.header, t = !0, i = this.Q;
1288
1459
  for (i.length; this.headerCreated && e && e.rows && e.rows.length > 0;)
1289
1460
  this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
1290
1461
  this.headerCreated = !0;
1291
- this.na(t);
1292
- }, this.loadingStart = function () { this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = ""); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.m("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.sa = function () { var e = this.nav.scroll; e.onscroll || (e.onscroll = function () { s.ta(); }); var t = "undefined" != typeof this.ua.scrollpos ? this.ua.scrollpos : this.initScrollPos; t && ("Auto" === t && (t = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), e.root = this, 0 === e.scrollTop && (e.scrollTop = t)); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.va = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.wa = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp), DayPilot.re(window, "unload", t.gUnload)); }, this.events = {}, this.events.add = function (e) {
1462
+ this.ka(t);
1463
+ }, this.loadingStart = function () { this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = ""); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.k("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.pa = function () { var e = this.nav.scroll; e.onscroll || (e.onscroll = function () { s.qa(); }); var t = "undefined" != typeof this.ra.scrollpos ? this.ra.scrollpos : this.initScrollPos; t && ("Auto" === t && (t = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), e.root = this, 0 === e.scrollTop && (e.scrollTop = t)); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.sa = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.ta = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp), DayPilot.re(window, "unload", t.gUnload)); }, this.events = {}, this.events.add = function (e) {
1293
1464
  var t = null;
1294
1465
  if (e instanceof DayPilot.Event)
1295
1466
  t = e.data;
@@ -1298,7 +1469,7 @@ if ("undefined" == typeof DayPilot)
1298
1469
  throw "DayPilot.Calendar.events.add() expects an object or DayPilot.Event instance.";
1299
1470
  t = e;
1300
1471
  }
1301
- s.events.list || (s.events.list = []), s.events.list.push(t), s.update(), s.Q.notify();
1472
+ s.events.list || (s.events.list = []), s.events.list.push(t), s.update(), s.N.notify();
1302
1473
  }, this.events.find = function (e) {
1303
1474
  if (!s.events.list)
1304
1475
  return null;
@@ -1318,7 +1489,7 @@ if ("undefined" == typeof DayPilot)
1318
1489
  s.events.list.splice(i, 1, e);
1319
1490
  }
1320
1491
  }
1321
- s.update(), s.Q.notify();
1492
+ s.update(), s.N.notify();
1322
1493
  }, this.events.remove = function (e) {
1323
1494
  var t;
1324
1495
  if (e instanceof DayPilot.Event)
@@ -1332,7 +1503,7 @@ if ("undefined" == typeof DayPilot)
1332
1503
  i && (t = i.data);
1333
1504
  }
1334
1505
  var n = DayPilot.indexOf(s.events.list, t);
1335
- s.events.list.splice(n, 1), s.update(), s.Q.notify();
1506
+ s.events.list.splice(n, 1), s.update(), s.N.notify();
1336
1507
  }, this.events.load = function (e, t, i) {
1337
1508
  var n = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, a = function (e) {
1338
1509
  var i, a = e.request;
@@ -1347,7 +1518,7 @@ if ("undefined" == typeof DayPilot)
1347
1518
  var o = {};
1348
1519
  if (o.preventDefault = function () { this.preventDefault.value = !0; }, o.data = i, "function" == typeof t && t(o), o.preventDefault.value)
1349
1520
  return;
1350
- s.events.list = i, s.Z && s.update();
1521
+ s.events.list = i, s.W && s.update();
1351
1522
  }
1352
1523
  };
1353
1524
  if (s.eventsLoadMethod && "POST" === s.eventsLoadMethod.toUpperCase())
@@ -1356,15 +1527,23 @@ if ("undefined" == typeof DayPilot)
1356
1527
  var l = e, o = "start=" + s.visibleStart().toString() + "&end=" + s.visibleEnd().toString();
1357
1528
  l += l.indexOf("?") > -1 ? "&" + o : "?" + o, DayPilot.Http.ajax({ "method": "GET", "url": l, "success": a, "error": n });
1358
1529
  }
1530
+ }, this.ua = function () {
1531
+ if (s.nav.top.className !== s.b("_main")) {
1532
+ s.nav.top.className = s.b("_main");
1533
+ var e = s.nav.corner;
1534
+ e.className = s.b("_corner"), e.firstChild.className = s.b("_corner_inner");
1535
+ var t = s.nav.cornerRight;
1536
+ t && (t.className = s.b("_cornerright"), t.firstChild.className = s.b("_cornerright_inner"));
1537
+ }
1359
1538
  }, this.update = function (e) {
1360
- if (s.xa(e), this.Z) {
1361
- s.ya(), s.p(), s.nav.top.style.cursor = "auto";
1362
- s.B(), s.E(), s.F(), s.G(), s.H(), s.ka(), s.za(), s.C(), s.D(), s.A(), s.I(), s.clearSelection(), this.visible ? this.show() : this.hide();
1539
+ if (s.va(e), this.W) {
1540
+ s.wa(), s.n(), s.nav.top.style.cursor = "auto";
1541
+ 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();
1363
1542
  }
1364
- }, this.Aa = null, this.xa = function (e) {
1543
+ }, this.ya = null, this.va = function (e) {
1365
1544
  if (e) {
1366
1545
  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; } } };
1367
- this.Aa = t;
1546
+ this.ya = t;
1368
1547
  for (var i in e)
1369
1548
  if (t[i]) {
1370
1549
  var n = t[i];
@@ -1373,13 +1552,13 @@ if ("undefined" == typeof DayPilot)
1373
1552
  else
1374
1553
  s[i] = e[i];
1375
1554
  }
1376
- }, this.Ba = function () {
1377
- var e = this.Aa;
1555
+ }, this.za = function () {
1556
+ var e = this.ya;
1378
1557
  for (var t in e) {
1379
1558
  var i = e[t];
1380
1559
  i.postInit && i.postInit();
1381
1560
  }
1382
- }, this.Ca = function () {
1561
+ }, this.Aa = function () {
1383
1562
  if (this.id && this.id.tagName)
1384
1563
  this.nav.top = this.id;
1385
1564
  else {
@@ -1388,8 +1567,8 @@ if ("undefined" == typeof DayPilot)
1388
1567
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
1389
1568
  throw "DayPilot.Calendar: The placeholder element not found: '" + e + "'.";
1390
1569
  }
1391
- }, this.Da = {}, this.Da.events = [], this.Ea = function (e) {
1392
- var t = this.Da.events, i = this.events.list[e], n = {};
1570
+ }, this.Ba = {}, this.Ba.events = [], this.Ca = function (e) {
1571
+ var t = this.Ba.events, i = this.events.list[e], n = {};
1393
1572
  for (var s in i)
1394
1573
  n[s] = i[s];
1395
1574
  if ("function" == typeof this.onBeforeEventRender) {
@@ -1397,62 +1576,72 @@ if ("undefined" == typeof DayPilot)
1397
1576
  a.data = n, this.onBeforeEventRender(a);
1398
1577
  }
1399
1578
  t[e] = n;
1400
- }, this.C = function () {
1579
+ }, this.z = function () {
1401
1580
  var e = this.events.list;
1402
- if (s.Da.events = [], e) {
1581
+ if (s.Ba.events = [], e) {
1582
+ if (!DayPilot.isArray(e))
1583
+ throw new DayPilot.Exception("DayPilot.Calendar.events.list expects an array object. You supplied: " + typeof e);
1403
1584
  var t = e.length, i = 864e5;
1404
1585
  this.cache.pixels = {};
1405
1586
  var n = [];
1406
1587
  this.scrollLabels = [], this.minStart = 1e4, this.maxEnd = 0;
1407
1588
  for (var a = 0; a < t; a++) {
1408
- var l = e[a];
1589
+ var l = e[a], o = l;
1590
+ if ("object" != typeof o)
1591
+ throw new DayPilot.Exception("Event data item must be an object");
1592
+ if (!o.start)
1593
+ throw new DayPilot.Exception("Event data item must specify 'start' property");
1594
+ if (!o.end)
1595
+ throw new DayPilot.Exception("Event data item must specify 'end' property");
1596
+ if (o instanceof DayPilot.Event)
1597
+ throw new DayPilot.Exception("DayPilot.Calendar: DayPilot.Event object detected in events.list array. Use raw event data instead.");
1409
1598
  l.start = new DayPilot.Date(l.start), l.end = new DayPilot.Date(l.end);
1410
1599
  }
1411
1600
  if ("function" == typeof this.onBeforeEventRender)
1412
1601
  for (var a = 0; a < t; a++)
1413
- this.Ea(a);
1414
- for (var a = 0; a < this.T.length; a++) {
1415
- var o = {};
1416
- o.minEnd = 1e6, o.maxStart = -1, this.scrollLabels.push(o);
1417
- var r = this.T[a];
1418
- r.events = [], r.lines = [], r.blocks = [];
1419
- for (var h = new DayPilot.Date(r.start), c = h.getTime(), d = h.addTime(i), u = d.getTime(), v = 0; v < t; v++)
1420
- if (!n[v]) {
1421
- var l = e[v], p = l.start, f = l.end, g = p.getTime(), m = f.getTime();
1422
- if (!(m < g)) {
1423
- var y = !(m <= c || g >= u);
1424
- if ("Resources" === s.viewType && (y = y && r.id === l.resource), y) {
1425
- var b = new DayPilot.Event(l, s);
1426
- b.part.dayIndex = a, b.part.start = c < g ? l.start : h, b.part.end = u > m ? l.end : d;
1427
- var C = this.getPixels(b.part.start, r.start), w = this.getPixels(b.part.end, r.start), D = C.top, S = w.top;
1428
- if (D === S && (C.cut || w.cut))
1602
+ this.Ca(a);
1603
+ for (var a = 0; a < this.Q.length; a++) {
1604
+ var r = {};
1605
+ r.minEnd = 1e6, r.maxStart = -1, this.scrollLabels.push(r);
1606
+ var h = this.Q[a];
1607
+ h.events = [], h.lines = [], h.blocks = [];
1608
+ for (var c = new DayPilot.Date(h.start), d = c.getTime(), u = c.addTime(i), v = u.getTime(), p = 0; p < t; p++)
1609
+ if (!n[p]) {
1610
+ var l = e[p], f = l.start, g = l.end, m = f.getTime(), y = g.getTime();
1611
+ if (!(y < m)) {
1612
+ var b = !(y <= d || m >= v);
1613
+ if ("Resources" === s.viewType && (b = b && h.id === l.resource), b) {
1614
+ var C = new DayPilot.Event(l, s);
1615
+ C.part.dayIndex = a, C.part.start = d < m ? l.start : c, C.part.end = v > y ? l.end : u;
1616
+ var w = this.getPixels(C.part.start, h.start), D = this.getPixels(C.part.end, h.start), S = w.top, x = D.top;
1617
+ if (S === x && (w.cut || D.cut))
1429
1618
  continue;
1430
- var x = w.boxBottom;
1431
- b.part.top = Math.floor(D / this.cellHeight) * this.cellHeight + 1, b.part.height = Math.max(Math.ceil(x / 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);
1432
- var p = b.part.top, f = b.part.top + b.part.height;
1433
- 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.Da.events[v]), b.part.start.getTime() === g && b.part.end.getTime() === m && (n[v] = !0);
1619
+ var k = D.boxBottom;
1620
+ C.part.top = Math.floor(S / this.cellHeight) * this.cellHeight + 1, C.part.height = Math.max(Math.ceil(k / this.cellHeight) * this.cellHeight - C.part.top, this.cellHeight - 1) + 1, C.part.barTop = Math.max(S - C.part.top - 1, 0), C.part.barHeight = Math.max(x - S - 2, 1);
1621
+ var f = C.part.top, g = C.part.top + C.part.height;
1622
+ f > r.maxStart && (r.maxStart = f), g < r.minEnd && (r.minEnd = g), f < this.minStart && (this.minStart = f), g > this.maxEnd && (this.maxEnd = g), h.events.push(C), "function" == typeof this.onBeforeEventRender && (C.cache = this.Ba.events[p]), C.part.start.getTime() === m && C.part.end.getTime() === y && (n[p] = !0);
1434
1623
  }
1435
1624
  }
1436
1625
  }
1437
1626
  }
1438
- for (var a = 0; a < this.T.length; a++) {
1439
- var r = this.T[a];
1440
- r.events.sort(this.Fa);
1441
- for (var v = 0; v < r.events.length; v++) {
1442
- var l = r.events[v];
1443
- r.putIntoBlock(l);
1627
+ for (var a = 0; a < this.Q.length; a++) {
1628
+ var h = this.Q[a];
1629
+ h.events.sort(this.Da);
1630
+ for (var p = 0; p < h.events.length; p++) {
1631
+ var l = h.events[p];
1632
+ h.putIntoBlock(l);
1444
1633
  }
1445
- for (var v = 0; v < r.blocks.length; v++) {
1446
- var k = r.blocks[v];
1447
- k.events.sort(this.Fa);
1448
- for (var H = 0; H < k.events.length; H++) {
1449
- var l = k.events[H];
1450
- k.putIntoLine(l);
1634
+ for (var p = 0; p < h.blocks.length; p++) {
1635
+ var P = h.blocks[p];
1636
+ P.events.sort(this.Da);
1637
+ for (var E = 0; E < P.events.length; E++) {
1638
+ var l = P.events[E];
1639
+ P.putIntoLine(l);
1451
1640
  }
1452
1641
  }
1453
1642
  }
1454
1643
  }
1455
- }, this.Fa = function (e, t) {
1644
+ }, this.Da = function (e, t) {
1456
1645
  if (!(e && t && e.start && t.start))
1457
1646
  return 0;
1458
1647
  var i = e.start().getTime() - t.start().getTime();
@@ -1466,30 +1655,30 @@ if ("undefined" == typeof DayPilot)
1466
1655
  var a = 18e5, l = n - i, o = l % a, r = l - o, h = r + a;
1467
1656
  0 === o && (h = r);
1468
1657
  var c = {};
1469
- return c.cut = !1, c.top = this.Ga(l), c.boxTop = this.Ga(r), c.boxBottom = this.Ga(h), this.cache.pixels[n + "_" + i] = c, c;
1470
- }, this.Ga = function (e) { return Math.floor(this.cellHeight * e / 18e5); }, this.ya = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.D = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.H = function () { var e = this.da(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.Q = {}, this.Q.scope = null, this.Q.notify = function () { s.Q.scope && s.Q.scope["$apply"](); }, this.Q.apply = function (e) { e(); }, this.ta = function () {
1658
+ return c.cut = !1, c.top = this.Ea(l), c.boxTop = this.Ea(r), c.boxBottom = this.Ea(h), this.cache.pixels[n + "_" + i] = c, c;
1659
+ }, this.Ea = function (e) { return Math.floor(this.cellHeight * e / 18e5); }, this.wa = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.A = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.E = function () { var e = this.aa(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.N = {}, this.N.scope = null, this.N.notify = function () { s.N.scope && s.N.scope["$apply"](); }, this.N.apply = function (e) { e(); }, this.qa = function () {
1471
1660
  if (s.nav.scroll) {
1472
1661
  var e = s.nav.scroll.scrollTop, t = e / (2 * s.cellHeight);
1473
- s.ua.scrollHour = t;
1662
+ s.ra.scrollHour = t;
1474
1663
  }
1475
- }, this.za = function () { var e = 0; s.ua.scrollHour ? e = 2 * s.cellHeight * s.ua.scrollHour : "Auto" === s.initScrollPos && (e = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), s.nav.scroll.scrollTop = e; }, this.Ha = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof s.events.list || !s.events.list); }, this.A = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { s.visible = !0, s.nav.top.style.display = ""; }, this.hide = function () { s.visible = !1, s.nav.top.style.display = "none"; }, this.Ia = function () { this.ya(), this.B(), this.ca(), this.E(), this.F(), this.va(), this.sa(), this.wa(), t.register(this), this.Ja(), this.m("Init"); }, this.ua = {}, this.Ka = function () { this.ua.themes = [], this.ua.themes.push(this.theme || this.cssClassPrefix); }, this.La = function () {
1476
- for (var e = this.ua.themes, t = 0; t < e.length; t++) {
1664
+ }, this.xa = function () { var e = 0; s.ra.scrollHour ? e = 2 * s.cellHeight * s.ra.scrollHour : "Auto" === s.initScrollPos && (e = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), s.nav.scroll.scrollTop = e; }, this.Fa = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof s.events.list || !s.events.list); }, this.u = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { s.visible = !0, s.nav.top.style.display = ""; }, this.hide = function () { s.visible = !1, s.nav.top.style.display = "none"; }, this.Ga = function () { this.wa(), this.w(), this._(), this.B(), this.C(), this.sa(), this.pa(), this.ta(), t.register(this), this.Ha(), this.k("Init"); }, this.ra = {}, this.Ia = function () { this.ra.themes = [], this.ra.themes.push(this.theme || this.cssClassPrefix); }, this.Ja = function () {
1665
+ for (var e = this.ra.themes, t = 0; t < e.length; t++) {
1477
1666
  var i = e[t];
1478
1667
  DayPilot.Util.removeClass(this.nav.top, i + "_main");
1479
1668
  }
1480
- this.ua.themes = [];
1481
- }, this.Ma = function () {
1669
+ this.ra.themes = [];
1670
+ }, this.Ka = function () {
1482
1671
  if (this.afterRender(null, !1), "function" == typeof this.onAfterRender) {
1483
1672
  var e = {};
1484
1673
  e.isCallBack = !1, this.onAfterRender(e);
1485
1674
  }
1486
- }, this.Na = function () {
1487
- if ("function" == typeof this.onInit && !this.Oa) {
1488
- this.Oa = !0;
1675
+ }, this.La = function () {
1676
+ if ("function" == typeof this.onInit && !this.Ma) {
1677
+ this.Ma = !0;
1489
1678
  var e = {};
1490
1679
  this.onInit(e);
1491
1680
  }
1492
- }, this.Pa = function () { var e = s.nav.top; return e.offsetWidth > 0 && e.offsetHeight > 0; }, this.Ja = function () { var e = s.Pa; e() || (s.Qa = setInterval(function () { e() && (s.sa(), s.va(), clearInterval(s.Qa)); }, 100)); }, this.pa = function (e, t) { return s.w.z() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.loadOptions = s.xa, this.internal.xssTextHtml = s.pa, this.init = function () { this.Ca(); var e = this.Ha(); return this.Ka(), e ? void this.Ia() : (this.ya(), this.B(), this.C(), this.ca(), this.E(), this.F(), this.A(), this.va(), this.sa(), this.wa(), t.register(this), this.events && (this.D(), this.I()), this.Ma(), this.Na(), this.Ja(), this.Z = !0, this); }, this.Init = this.init, this.xa(i);
1681
+ }, this.Na = function () { var e = s.nav.top; return e.offsetWidth > 0 && e.offsetHeight > 0; }, this.Ha = function () { var e = s.Na; e() || (s.Oa = setInterval(function () { e() && (s.pa(), s.sa(), clearInterval(s.Oa)); }, 100)); }, this.ma = function (e, t) { return s.s.t() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.loadOptions = s.va, this.internal.xssTextHtml = s.ma, this.init = function () { this.Aa(); var e = this.Fa(); return this.Ia(), e ? void this.Ga() : (this.wa(), this.w(), this.z(), this._(), this.B(), this.C(), this.u(), this.sa(), this.pa(), this.ta(), t.register(this), this.events && (this.A(), this.F()), this.Ka(), this.La(), this.Ha(), this.W = !0, this); }, this.Init = this.init, this.va(i);
1493
1682
  }, DayPilot.CalendarColumn = function (e, t) { var i = this; i.id = e.id, i.name = e.name, i.data = e.data, i.start = new DayPilot.Date(e.start), i.calendar = t, i.toJSON = function () { var e = {}; return e.id = this.id, this.start && (e.start = this.start.toString()), e.name = this.name, e; }; }, DayPilot.Calendar = t.Calendar, "undefined" != typeof jQuery && !function (e) {
1494
1683
  e.fn.daypilotCalendar = function (e) {
1495
1684
  var t = null, i = this.each(function () {
@@ -1508,7 +1697,7 @@ if ("undefined" == typeof DayPilot)
1508
1697
  e && e.directive("daypilotCalendar", ["$parse", function (e) {
1509
1698
  return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, n) {
1510
1699
  var s = new DayPilot.Calendar(i[0]);
1511
- s.Q.scope = t, s.init();
1700
+ s.N.scope = t, s.init();
1512
1701
  var a = n["id"];
1513
1702
  a && (t[a] = s);
1514
1703
  var l = n["publishAs"];
@@ -1521,7 +1710,7 @@ if ("undefined" == typeof DayPilot)
1521
1710
  r.call(t, h, function (e) {
1522
1711
  for (var t in e)
1523
1712
  s[t] = e[t];
1524
- s.update(), s.Na();
1713
+ s.update(), s.La();
1525
1714
  }, !0), r.call(t, c, function (e) { s.events.list = e, s.update(); }, !0);
1526
1715
  } };
1527
1716
  }]);
@@ -1532,7 +1721,7 @@ if ("undefined" == typeof DayPilot)
1532
1721
  var DayPilot = {};
1533
1722
  !function () {
1534
1723
  "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (t) {
1535
- this.v = "2022.3.426-lite";
1724
+ this.v = "2022.4.438-lite";
1536
1725
  var e = "navigator_" + (new Date).getTime(), i = this;
1537
1726
  this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () {
1538
1727
  if (this.locale = "en-us", this.target = null, this.targetAlignment = "left", this.resetTarget = !0, this.pattern = this.a.locale().datePattern, this.theme = "navigator_default", this.patterns = [], this.zIndex = null, t)
@@ -1583,7 +1772,7 @@ if ("undefined" == typeof DayPilot)
1583
1772
  var e = function () { }, t = {};
1584
1773
  t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (n) {
1585
1774
  var i = this, o = null;
1586
- this.v = "2022.3.426-lite", this.zIndex = 120, this.cssClassPrefix = "menu_default", this.cssOnly = !0, this.menuTitle = null, this.showMenuTitle = !1, this.hideOnMouseOut = !1, this.hideAfter = 200, this.theme = null, this.onShow = null, this.b = function () { }, n && DayPilot.isArray(n) && (this.items = n), this.toJSON = function () { return null; }, this.show = function (n, u) {
1775
+ this.v = "2022.4.438-lite", this.zIndex = 120, this.cssClassPrefix = "menu_default", this.cssOnly = !0, this.menuTitle = null, this.showMenuTitle = !1, this.hideOnMouseOut = !1, this.hideAfter = 200, this.theme = null, this.onShow = null, this.b = function () { }, n && DayPilot.isArray(n) && (this.items = n), this.toJSON = function () { return null; }, this.show = function (n, u) {
1587
1776
  u = u || {};
1588
1777
  var a = null;
1589
1778
  if (n ? "string" == typeof n.id || "number" == typeof n.id ? a = n.id : "function" == typeof n.id ? a = n.id() : "function" == typeof n.value && (a = n.value()) : a = null, "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), u.submenu || t.menuClean(), this.b.submenu = null, null !== t.mouse) {
@@ -2533,7 +2722,7 @@ if ("undefined" == typeof DayPilot)
2533
2722
  if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
2534
2723
  var t = {};
2535
2724
  t.Month = function (e, i) {
2536
- this.v = "2022.3.426-lite", this.nav = {};
2725
+ this.v = "2022.4.438-lite", this.nav = {};
2537
2726
  var n = this;
2538
2727
  this.id = e, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, this.contextMenu = null, this.cssClassPrefix = "month_default", this.eventBarVisible = !0, this.eventHeight = 25, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.hideUntilInit = !0, this.lineSpace = 1, this.locale = "en-us", this.showToolTip = !0, this.startDate = new DayPilot.Date, this.theme = null, this.visible = !0, this.weekStarts = 1, this.width = "100%", this.xssProtection = "Enabled", this.afterRender = function () { }, this.cellHeaderClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.headerClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onCellHeaderClick = null, this.onCellHeaderClicked = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.cellEvents = [], this.elements = {}, this.elements.events = [], this.cache = {}, this.a = function (t, e) { var t = JSON.parse(t); return t.CallBackRedirect ? void (document.location.href = t.CallBackRedirect) : "None" === t.UpdateType ? void n.fireAfterRenderDetached(t.CallBackData, !0) : (n.events.list = t.Events, "Full" === t.UpdateType && (n.startDate = t.StartDate, n.timeFormat = t.TimeFormat ? t.TimeFormat : n.timeFormat, "undefined" != typeof t.WeekStarts && (n.weekStarts = t.WeekStarts), n.hashes = t.Hashes), n.b(), n.c(), n.d(), "Full" === t.UpdateType && (n.f(), n.g()), n.h(), n.show(), n.i(), void n.fireAfterRenderDetached(t.CallBackData, !0)); }, this.fireAfterRenderDetached = function (t, e) { var i = function (t, e) { return function () { n.afterRender && n.afterRender(t, e); }; }; window.setTimeout(i(t, e), 0); }, this.lineHeight = function () { return this.eventHeight + this.lineSpace; }, this.events = {}, this.events.add = function (t) {
2539
2728
  var e = null;
@@ -2566,14 +2755,14 @@ if ("undefined" == typeof DayPilot)
2566
2755
  }
2567
2756
  n.update(), n.j.notify();
2568
2757
  }, this.events.remove = function (t) { var e = DayPilot.indexOf(n.events.list, t.data); n.events.list.splice(e, 1), n.update(), n.j.notify(); }, this.events.load = function (t, e, i) {
2569
- var s = function (t) { var e = {}; e.exception = t.exception, e.request = t.request, "function" == typeof i && i(e); }, a = function (t) {
2570
- var i, a = t.request;
2758
+ var a = function (t) { var e = {}; e.exception = t.exception, e.request = t.request, "function" == typeof i && i(e); }, s = function (t) {
2759
+ var i, s = t.request;
2571
2760
  try {
2572
- i = JSON.parse(a.responseText);
2761
+ i = JSON.parse(s.responseText);
2573
2762
  }
2574
2763
  catch (t) {
2575
2764
  var l = {};
2576
- return l.exception = t, void s(l);
2765
+ return l.exception = t, void a(l);
2577
2766
  }
2578
2767
  if (DayPilot.isArray(i)) {
2579
2768
  var o = {};
@@ -2583,10 +2772,10 @@ if ("undefined" == typeof DayPilot)
2583
2772
  }
2584
2773
  };
2585
2774
  if (n.eventsLoadMethod && "POST" === n.eventsLoadMethod.toUpperCase())
2586
- DayPilot.Http.ajax({ "method": "POST", "data": { "start": n.visibleStart().toString(), "end": n.visibleEnd().toString() }, "url": t, "success": a, "error": s });
2775
+ DayPilot.Http.ajax({ "method": "POST", "data": { "start": n.visibleStart().toString(), "end": n.visibleEnd().toString() }, "url": t, "success": s, "error": a });
2587
2776
  else {
2588
2777
  var l = t, o = "start=" + n.visibleStart().toString() + "&end=" + n.visibleEnd().toString();
2589
- l += l.indexOf("?") > -1 ? "&" + o : "?" + o, DayPilot.Http.ajax({ "method": "GET", "url": l, "success": a, "error": s });
2778
+ l += l.indexOf("?") > -1 ? "&" + o : "?" + o, DayPilot.Http.ajax({ "method": "GET", "url": l, "success": s, "error": a });
2590
2779
  }
2591
2780
  }, this.update = function (t) {
2592
2781
  if (n.l(t), this.k && this.cells) {
@@ -2598,8 +2787,8 @@ if ("undefined" == typeof DayPilot)
2598
2787
  this.n = e;
2599
2788
  for (var i in t)
2600
2789
  if (e[i]) {
2601
- var s = e[i];
2602
- s.data = t[i], s.preInit && s.preInit();
2790
+ var a = e[i];
2791
+ a.data = t[i], a.preInit && a.preInit();
2603
2792
  }
2604
2793
  else
2605
2794
  n[i] = t[i];
@@ -2612,22 +2801,31 @@ if ("undefined" == typeof DayPilot)
2612
2801
  }
2613
2802
  }, this.p = {}, this.p.events = [], this.q = function (t) {
2614
2803
  var e = this.p.events, i = this.events.list[t], n = {};
2615
- for (var s in i)
2616
- n[s] = i[s];
2804
+ for (var a in i)
2805
+ n[a] = i[a];
2617
2806
  if ("function" == typeof this.onBeforeEventRender) {
2618
- var a = {};
2619
- a.data = n, this.onBeforeEventRender(a);
2807
+ var s = {};
2808
+ s.data = n, this.onBeforeEventRender(s);
2620
2809
  }
2621
2810
  e[t] = n;
2622
2811
  }, this.d = function () {
2623
2812
  var t = this.events.list;
2624
2813
  if (t) {
2814
+ if (!DayPilot.isArray(t))
2815
+ throw new DayPilot.Exception("DayPilot.Month.events.list expects an array object. You supplied: " + typeof t);
2625
2816
  if ("function" == typeof this.onBeforeEventRender)
2626
2817
  for (var e = 0; e < t.length; e++)
2627
2818
  this.q(e);
2628
2819
  for (var i = 0; i < t.length; i++) {
2629
- var n = t[i], s = new DayPilot.Date(n.start), a = new DayPilot.Date(n.end);
2630
- if (!(s.getTime() > a.getTime()))
2820
+ var n = t[i];
2821
+ if ("object" != typeof n)
2822
+ throw new DayPilot.Exception("Event data item must be an object");
2823
+ if (!n.start)
2824
+ throw new DayPilot.Exception("Event data item must specify 'start' property");
2825
+ if (!n.end)
2826
+ throw new DayPilot.Exception("Event data item must specify 'end' property");
2827
+ var a = new DayPilot.Date(n.start), s = new DayPilot.Date(n.end);
2828
+ if (!(a.getTime() > s.getTime()))
2631
2829
  for (var e = 0; e < this.rows.length; e++) {
2632
2830
  var l = this.rows[e], o = new DayPilot.Event(n, this);
2633
2831
  l.belongsHere(o) && (l.events.push(o), "function" == typeof this.onBeforeEventRender && (o.cache = this.p.events[i]));
@@ -2652,20 +2850,20 @@ if ("undefined" == typeof DayPilot)
2652
2850
  this.elements.events = [];
2653
2851
  for (var t = 0; t < this.rows.length; t++)
2654
2852
  for (var e = this.rows[t], i = 0; i < e.lines.length; i++)
2655
- for (var n = e.lines[i], s = 0; s < n.length; s++)
2656
- this.t(n[s]);
2853
+ for (var n = e.lines[i], a = 0; a < n.length; a++)
2854
+ this.t(n[a]);
2657
2855
  }, this.r = function (t, e) {
2658
2856
  if (!(t && e && t.start && e.start))
2659
2857
  return 0;
2660
2858
  var i = t.start().getTime() - e.start().getTime();
2661
2859
  return 0 !== i ? i : e.end().getTime() - t.end().getTime();
2662
- }, this.drawShadow = function (e, i, n, s, a, l) {
2663
- a || (a = 0);
2664
- var o = s;
2665
- this.shadow = {}, this.shadow.list = [], this.shadow.start = { x: e, y: i }, this.shadow.width = s;
2666
- var r = 7 * i + e - a;
2860
+ }, this.drawShadow = function (e, i, n, a, s, l) {
2861
+ s || (s = 0);
2862
+ var o = a;
2863
+ this.shadow = {}, this.shadow.list = [], this.shadow.start = { x: e, y: i }, this.shadow.width = a;
2864
+ var r = 7 * i + e - s;
2667
2865
  r < 0 && (o += r, e = 0, i = 0);
2668
- for (var h = a; h >= 7;)
2866
+ for (var h = s; h >= 7;)
2669
2867
  i--, h -= 7;
2670
2868
  if (h > e) {
2671
2869
  h > e + (7 - this.getColCount()) ? (i--, e = e + 7 - h) : (o = o - h + e, e = 0);
@@ -2677,8 +2875,8 @@ if ("undefined" == typeof DayPilot)
2677
2875
  for (t.resizingEvent ? c = "w-resize" : t.movingEvent && (c = "move"), this.nav.top.style.cursor = c; o > 0 && i < this.rows.length;) {
2678
2876
  var d = Math.min(this.getColCount() - e, o), v = this.rows[i], u = this.getRowTop(i), f = v.getHeight(), p = document.createElement("div");
2679
2877
  p.setAttribute("unselectable", "on"), p.style.position = "absolute", p.style.left = this.getCellWidth() * e + "%", p.style.width = this.getCellWidth() * d + "%", p.style.top = u + "px", p.style.height = f + "px", p.style.cursor = c;
2680
- var g = document.createElement("div");
2681
- g.setAttribute("unselectable", "on"), p.appendChild(g), g.style.position = "absolute", g.style.top = "0px", g.style.right = "0px", g.style.left = "0px", g.style.bottom = "0px", g.style.backgroundColor = "#aaaaaa", g.style.opacity = .5, g.style.filter = "alpha(opacity=50)", this.nav.top.appendChild(p), this.shadow.list.push(p), o -= d + 7 - this.getColCount(), e = 0, i++;
2878
+ var y = document.createElement("div");
2879
+ y.setAttribute("unselectable", "on"), p.appendChild(y), y.style.position = "absolute", y.style.top = "0px", y.style.right = "0px", y.style.left = "0px", y.style.bottom = "0px", y.style.backgroundColor = "#aaaaaa", y.style.opacity = .5, y.style.filter = "alpha(opacity=50)", this.nav.top.appendChild(p), this.shadow.list.push(p), o -= d + 7 - this.getColCount(), e = 0, i++;
2682
2880
  }
2683
2881
  }, this.clearShadow = function () {
2684
2882
  if (this.shadow) {
@@ -2691,32 +2889,32 @@ if ("undefined" == typeof DayPilot)
2691
2889
  i += this.rows[n].getHeight();
2692
2890
  return i += this.cellHeaderHeight, i += e * this.lineHeight();
2693
2891
  }, this.getDateFromCell = function (t, e) { return this.firstDate.addDays(7 * e + t); }, this.t = function (e) {
2694
- var i = e.cache || e.data, s = e.part.row, a = e.part.line, l = e.part.colStart, o = e.part.colWidth, r = this.getCellWidth() * l, h = this.getCellWidth() * o, c = this.getEventTop(s, a), d = document.createElement("div");
2892
+ var i = e.cache || e.data, a = e.part.row, s = e.part.line, l = e.part.colStart, o = e.part.colWidth, r = this.getCellWidth() * l, h = this.getCellWidth() * o, c = this.getEventTop(a, s), d = document.createElement("div");
2695
2893
  d.setAttribute("unselectable", "on"), d.style.height = this.eventHeight + "px", d.className = this.u("_event"), i.cssClass && DayPilot.Util.addClass(d, i.cssClass), e.part.startsHere || DayPilot.Util.addClass(d, this.u("_event_continueleft")), e.part.endsHere || DayPilot.Util.addClass(d, this.u("_event_continueright")), d.event = e, d.style.width = h + "%", d.style.position = "absolute", d.style.left = r + "%", d.style.top = c + "px", this.showToolTip && e.client.toolTip() && (d.title = e.client.toolTip()), d.onclick = n.w, d.oncontextmenu = n.z, d.onmousedown = function (i) {
2696
2894
  i = i || window.event;
2697
2895
  var r = i.which || i.button;
2698
2896
  if (i.cancelBubble = !0, i.stopPropagation && i.stopPropagation(), 1 === r)
2699
2897
  if (t.movingEvent = null, "w-resize" === this.style.cursor || "e-resize" === this.style.cursor) {
2700
2898
  var h = {};
2701
- h.start = {}, h.start.x = l, h.start.y = s, h.event = d.event, h.width = DayPilot.DateUtil.daysSpan(h.event.start(), h.event.end()) + 1, h.direction = this.style.cursor, t.resizingEvent = h;
2899
+ h.start = {}, h.start.x = l, h.start.y = a, h.event = d.event, h.width = DayPilot.DateUtil.daysSpan(h.event.start(), h.event.end()) + 1, h.direction = this.style.cursor, t.resizingEvent = h;
2702
2900
  }
2703
2901
  else if ("move" === this.style.cursor || e.client.moveEnabled()) {
2704
2902
  n.clearShadow();
2705
2903
  var c = DayPilot.mo2(n.nav.top, i);
2706
2904
  if (!c)
2707
2905
  return;
2708
- var v = n.getCellBelowPoint(c.x, c.y), u = DayPilot.DateUtil.daysDiff(e.start(), n.rows[s].start), f = 7 * v.y + v.x - (7 * s + l);
2906
+ var v = n.getCellBelowPoint(c.x, c.y), u = DayPilot.DateUtil.daysDiff(e.start(), n.rows[a].start), f = 7 * v.y + v.x - (7 * a + l);
2709
2907
  u && (f += u);
2710
2908
  var p = {};
2711
- p.start = {}, p.start.x = l, p.start.y = s, p.start.line = a, p.offset = n.eventMoveToPosition ? 0 : f, p.colWidth = o, p.event = d.event, p.coords = c, t.movingEvent = p;
2909
+ p.start = {}, p.start.x = l, p.start.y = a, p.start.line = s, p.offset = n.eventMoveToPosition ? 0 : f, p.colWidth = o, p.event = d.event, p.coords = c, t.movingEvent = p;
2712
2910
  }
2713
2911
  }, d.onmousemove = function (i) {
2714
2912
  if ("undefined" != typeof t && !t.movingEvent && !t.resizingEvent) {
2715
2913
  var n = DayPilot.mo3(d, i);
2716
2914
  if (n) {
2717
2915
  d.deleteIcon && (d.deleteIcon.style.display = "");
2718
- var s = 6;
2719
- n.x <= s && e.client.resizeEnabled() ? e.part.startsHere ? (d.style.cursor = "w-resize", d.dpBorder = "left") : d.style.cursor = "not-allowed" : d.clientWidth - n.x <= s && e.client.resizeEnabled() ? e.part.endsHere ? (d.style.cursor = "e-resize", d.dpBorder = "right") : d.style.cursor = "not-allowed" : d.style.cursor = "default";
2916
+ var a = 6;
2917
+ n.x <= a && e.client.resizeEnabled() ? e.part.startsHere ? (d.style.cursor = "w-resize", d.dpBorder = "left") : d.style.cursor = "not-allowed" : d.clientWidth - n.x <= a && e.client.resizeEnabled() ? e.part.endsHere ? (d.style.cursor = "e-resize", d.dpBorder = "right") : d.style.cursor = "not-allowed" : e.client.clickEnabled() ? d.style.cursor = "pointer" : d.style.cursor = "default";
2720
2918
  }
2721
2919
  }
2722
2920
  }, d.onmouseleave = function (t) { d.deleteIcon && (d.deleteIcon.style.display = "none"), d.style.cursor = ""; }, d.onmouseenter = function (t) { d.deleteIcon && (d.deleteIcon.style.display = ""); };
@@ -2728,32 +2926,33 @@ if ("undefined" == typeof DayPilot)
2728
2926
  f.setAttribute("unselectable", "on"), f.className = this.u("_event_bar_inner"), f.style.top = "0%", f.style.height = "100%", i.barColor && (f.style.backgroundColor = i.barColor), u.appendChild(f), d.appendChild(u);
2729
2927
  }
2730
2928
  if (e.client.deleteEnabled()) {
2731
- var p = Math.floor(n.eventHeight / 2 - 9), g = document.createElement("div");
2732
- g.style.position = "absolute", g.style.right = "2px", g.style.top = p + "px", g.style.width = "18px", g.style.height = "18px", g.className = n.u("_event_delete"), g.onmousedown = function (t) { t.stopPropagation(); }, g.onclick = function (t) { t.stopPropagation(); var e = this.parentNode.event; e && n.A(e); }, g.style.display = "none", d.deleteIcon = g, d.appendChild(g);
2929
+ var p = Math.floor(n.eventHeight / 2 - 9), y = document.createElement("div");
2930
+ y.style.position = "absolute", y.style.right = "2px", y.style.top = p + "px", y.style.width = "18px", y.style.height = "18px", y.className = n.u("_event_delete"), y.onmousedown = function (t) { t.stopPropagation(); }, y.onclick = function (t) { t.stopPropagation(); var e = this.parentNode.event; e && n.A(e); }, y.style.display = "none", d.deleteIcon = y, d.appendChild(y);
2733
2931
  }
2734
- this.elements.events.push(d), this.nav.events.appendChild(d);
2932
+ var g = i.areas ? DayPilot.Areas.copy(i.areas) : [];
2933
+ DayPilot.Areas.attach(d, e, { "areas": g }), this.elements.events.push(d), this.nav.events.appendChild(d);
2735
2934
  }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.c = function () {
2736
2935
  "string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart());
2737
2936
  var t, e = (this.startDate, this.lastVisibleDayOfMonth()), i = DayPilot.DateUtil.daysDiff(this.firstDate, e) + 1;
2738
2937
  t = Math.ceil(i / 7), this.days = 7 * t, this.rows = [];
2739
- for (var s = 0; s < t; s++) {
2740
- var a = {};
2741
- 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) {
2742
- for (var s = this, a = 0; a < this.lines.length; a++) {
2743
- var l = this.lines[a];
2938
+ for (var a = 0; a < t; a++) {
2939
+ var s = {};
2940
+ s.start = this.firstDate.addDays(7 * a), s.end = s.start.addDays(this.getColCount()), s.events = [], s.lines = [], s.index = a, s.minHeight = this.cellHeight, s.calendar = this, s.belongsHere = function (t) { return t.end().getTime() === t.start().getTime() && t.start().getTime() === this.start.getTime() || !(t.end().getTime() <= this.start.getTime() || t.start().getTime() >= this.end.getTime()); }, s.getPartStart = function (t) { return DayPilot.DateUtil.max(this.start, t.start()); }, s.getPartEnd = function (t) { return DayPilot.DateUtil.min(this.end, t.end()); }, s.getStartColumn = function (t) { var e = this.getPartStart(t); return DayPilot.DateUtil.daysDiff(this.start, e); }, s.getWidth = function (t) { return DayPilot.DateUtil.daysSpan(this.getPartStart(t), this.getPartEnd(t)) + 1; }, s.putIntoLine = function (t, e, i, n) {
2941
+ for (var a = this, s = 0; s < this.lines.length; s++) {
2942
+ var l = this.lines[s];
2744
2943
  if (l.isFree(e, i))
2745
- return l.addEvent(t, e, i, n, a), a;
2944
+ return l.addEvent(t, e, i, n, s), s;
2746
2945
  }
2747
2946
  var l = [];
2748
2947
  return l.isFree = function (t, e) {
2749
2948
  for (var i = !0, n = 0; n < this.length; n++)
2750
2949
  t + e - 1 < this[n].part.colStart || t > this[n].part.colStart + this[n].part.colWidth - 1 || (i = !1);
2751
2950
  return i;
2752
- }, 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;
2753
- }, a.getStart = function () {
2951
+ }, l.addEvent = function (t, e, i, n, s) { t.part.colStart = e, t.part.colWidth = i, t.part.row = n, t.part.line = s, t.part.startsHere = a.start.getTime() <= t.start().getTime(), t.part.endsHere = a.end.getTime() >= t.end().getTime(), this.push(t); }, l.addEvent(t, e, i, n, this.lines.length), this.lines.push(l), this.lines.length - 1;
2952
+ }, s.getStart = function () {
2754
2953
  for (var t = 0, e = 0; e < n.rows.length && e < this.index; e++)
2755
2954
  t += n.rows[e].getHeight();
2756
- }, a.getHeight = function () { return Math.max(this.lines.length * n.lineHeight() + n.cellHeaderHeight, this.calendar.cellHeight); }, this.rows.push(a);
2955
+ }, s.getHeight = function () { return Math.max(this.lines.length * n.lineHeight() + n.cellHeaderHeight, this.calendar.cellHeight); }, this.rows.push(s);
2757
2956
  }
2758
2957
  this.endDate = this.firstDate.addDays(7 * t);
2759
2958
  }, this.visibleStart = function () { return n.firstDate; }, this.visibleEnd = function () { return n.endDate; }, this.getHeight = function () {
@@ -2765,26 +2964,26 @@ if ("undefined" == typeof DayPilot)
2765
2964
  e.setAttribute("unselectable", "on"), e.style.MozUserSelect = "none", e.style.KhtmlUserSelect = "none", e.style.WebkitUserSelect = "none", e.style.position = "relative", this.width && (e.style.width = this.width), e.style.height = this.getHeight() + "px", e.onselectstart = function (t) { return !1; }, this.hideUntilInit && (e.style.visibility = "hidden"), this.visible || (e.style.display = "none"), e.className = this.u("_main");
2766
2965
  var i = document.createElement("div");
2767
2966
  this.nav.cells = i, i.style.position = "absolute", i.style.left = "0px", i.style.right = "0px", i.setAttribute("unselectable", "on"), e.appendChild(i);
2768
- var s = document.createElement("div");
2769
- this.nav.events = s, s.style.position = "absolute", s.style.left = "0px", s.style.right = "0px", s.setAttribute("unselectable", "on"), e.appendChild(s), e.onmousemove = function (e) {
2967
+ var a = document.createElement("div");
2968
+ this.nav.events = a, a.style.position = "absolute", a.style.left = "0px", a.style.right = "0px", a.setAttribute("unselectable", "on"), e.appendChild(a), e.onmousemove = function (e) {
2770
2969
  if (t.resizingEvent) {
2771
2970
  var i = DayPilot.mo2(n.nav.top, e);
2772
2971
  if (!i)
2773
2972
  return;
2774
- var s = n.getCellBelowPoint(i.x, i.y);
2973
+ var a = n.getCellBelowPoint(i.x, i.y);
2775
2974
  n.clearShadow();
2776
- var a, l, o = t.resizingEvent;
2975
+ var s, l, o = t.resizingEvent;
2777
2976
  o.start;
2778
2977
  if ("w-resize" === o.direction) {
2779
- l = s;
2978
+ l = a;
2780
2979
  var r = o.event.end();
2781
2980
  r.getDatePart() === r && (r = r.addDays(-1));
2782
2981
  var h = n.getCellFromDate(r);
2783
- a = n.getWidth(s, h);
2982
+ s = n.getWidth(a, h);
2784
2983
  }
2785
2984
  else
2786
- l = n.getCellFromDate(o.event.start()), a = n.getWidth(l, s);
2787
- a < 1 && (a = 1), n.drawShadow(l.x, l.y, 0, a);
2985
+ l = n.getCellFromDate(o.event.start()), s = n.getWidth(l, a);
2986
+ s < 1 && (s = 1), n.drawShadow(l.x, l.y, 0, s);
2788
2987
  }
2789
2988
  else if (t.movingEvent) {
2790
2989
  var i = DayPilot.mo2(n.nav.top, e);
@@ -2792,21 +2991,21 @@ if ("undefined" == typeof DayPilot)
2792
2991
  return;
2793
2992
  if (i.x === t.movingEvent.coords.x && i.y === t.movingEvent.coords.y)
2794
2993
  return;
2795
- var s = n.getCellBelowPoint(i.x, i.y);
2994
+ var a = n.getCellBelowPoint(i.x, i.y);
2796
2995
  n.clearShadow();
2797
- var c = t.movingEvent.event, d = t.movingEvent.offset, a = n.cellMode ? 1 : DayPilot.DateUtil.daysSpan(c.start(), c.end()) + 1;
2798
- a < 1 && (a = 1), n.drawShadow(s.x, s.y, 0, a, d, c);
2996
+ var c = t.movingEvent.event, d = t.movingEvent.offset, s = n.cellMode ? 1 : DayPilot.DateUtil.daysSpan(c.start(), c.end()) + 1;
2997
+ s < 1 && (s = 1), n.drawShadow(a.x, a.y, 0, s, d, c);
2799
2998
  }
2800
2999
  else if (t.timeRangeSelecting) {
2801
3000
  var i = DayPilot.mo2(n.nav.top, e);
2802
3001
  if (!i)
2803
3002
  return;
2804
- var s = n.getCellBelowPoint(i.x, i.y);
3003
+ var a = n.getCellBelowPoint(i.x, i.y);
2805
3004
  n.clearShadow();
2806
- var l = t.timeRangeSelecting, v = 7 * l.y + l.x, u = 7 * s.y + s.x, a = Math.abs(u - v) + 1;
2807
- a < 1 && (a = 1);
2808
- var f = v < u ? l : s;
2809
- t.timeRangeSelecting.from = { x: f.x, y: f.y }, t.timeRangeSelecting.width = a, t.timeRangeSelecting.moved = !0, n.drawShadow(f.x, f.y, 0, a, 0, null);
3005
+ var l = t.timeRangeSelecting, v = 7 * l.y + l.x, u = 7 * a.y + a.x, s = Math.abs(u - v) + 1;
3006
+ s < 1 && (s = 1);
3007
+ var f = v < u ? l : a;
3008
+ t.timeRangeSelecting.from = { x: f.x, y: f.y }, t.timeRangeSelecting.width = s, t.timeRangeSelecting.moved = !0, n.drawShadow(f.x, f.y, 0, s, 0, null);
2810
3009
  }
2811
3010
  };
2812
3011
  }, this.h = function () {
@@ -2815,16 +3014,16 @@ if ("undefined" == typeof DayPilot)
2815
3014
  for (var e = 0; e < this.cells[t].length; e++)
2816
3015
  this.cells[t][e].style.top = this.getRowTop(e) + "px", this.cells[t][e].style.height = this.rows[e].getHeight() + "px";
2817
3016
  }, this.getCellBelowPoint = function (t, e) {
2818
- 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++) {
2819
- var r = a;
2820
- if (a += this.rows[o].getHeight(), e < a) {
2821
- l = e - r, s = o;
3017
+ for (var i = Math.floor(this.nav.top.clientWidth / this.getColCount()), n = Math.min(Math.floor(t / i), this.getColCount() - 1), a = null, s = this.headerHeight, l = 0, o = 0; o < this.rows.length; o++) {
3018
+ var r = s;
3019
+ if (s += this.rows[o].getHeight(), e < s) {
3020
+ l = e - r, a = o;
2822
3021
  break;
2823
3022
  }
2824
3023
  }
2825
- null === s && (s = this.rows.length - 1);
3024
+ null === a && (a = this.rows.length - 1);
2826
3025
  var h = {};
2827
- return h.x = n, h.y = s, h.relativeY = l, h;
3026
+ return h.x = n, h.y = a, h.relativeY = l, h;
2828
3027
  }, this.getCellFromDate = function (t) {
2829
3028
  for (var e = DayPilot.DateUtil.daysDiff(this.firstDate, t), i = { x: 0, y: 0 }; e >= 7;)
2830
3029
  i.y++, e -= 7;
@@ -2838,8 +3037,8 @@ if ("undefined" == typeof DayPilot)
2838
3037
  i.setAttribute("unselectable", "on"), i.style.position = "absolute", i.style.left = this.getCellWidth() * e + "%", i.style.width = this.getCellWidth() + "%", i.style.top = "0px", i.style.height = this.headerHeight + "px";
2839
3038
  var n = e + this.getWeekStart();
2840
3039
  n > 6 && (n -= 7), i.className = this.u("_header");
2841
- var a = document.createElement("div");
2842
- a.setAttribute("unselectable", "on"), a.innerHTML = s.locale().dayNames[n], i.appendChild(a), a.style.position = "absolute", a.style.top = "0px", a.style.bottom = "0px", a.style.left = "0px", a.style.right = "0px", a.className = this.u("_header_inner"), a.innerHTML = s.locale().dayNames[n], t.appendChild(i);
3040
+ var s = document.createElement("div");
3041
+ s.setAttribute("unselectable", "on"), s.innerHTML = a.locale().dayNames[n], i.appendChild(s), s.style.position = "absolute", s.style.top = "0px", s.style.bottom = "0px", s.style.left = "0px", s.style.right = "0px", s.className = this.u("_header_inner"), s.innerHTML = a.locale().dayNames[n], t.appendChild(i);
2843
3042
  for (var l = 0; l < this.rows.length; l++)
2844
3043
  this.C(e, l, t);
2845
3044
  }
@@ -2848,14 +3047,14 @@ if ("undefined" == typeof DayPilot)
2848
3047
  for (var e = 0; e < this.cells[t].length; e++)
2849
3048
  this.cells[t][e].onclick = null;
2850
3049
  this.nav.cells.innerHTML = "";
2851
- }, this.D = function () { return 2 === n.api; }, this.C = function (e, i, a) {
3050
+ }, this.D = function () { return 2 === n.api; }, this.C = function (e, i, s) {
2852
3051
  var l = this.rows[i], o = this.firstDate.addDays(7 * i + e), r = document.createElement("div");
2853
3052
  if (r.setAttribute("unselectable", "on"), r.style.position = "absolute", r.style.cursor = "default", r.style.left = this.getCellWidth() * e + "%", r.style.width = this.getCellWidth() + "%", r.style.top = this.getRowTop(i) + "px", r.style.height = l.getHeight() + "px", r.className = this.u("_cell"), !this.isWeekend(o)) {
2854
3053
  var h = this.u("_cell_business");
2855
3054
  DayPilot.Util.addClass(r, h);
2856
3055
  }
2857
3056
  var c = (this.startDate.addMonths(-1).getMonth(), this.startDate.addMonths(1).getMonth(), this.startDate.getMonth(), document.createElement("div"));
2858
- c.setAttribute("unselectable", "on"), r.appendChild(c), c.style.position = "absolute", c.style.left = "0px", c.style.right = "0px", c.style.top = "0px", c.style.bottom = "0px", c.className = this.u("_cell_inner"), r.onmousedown = function (s) { "Disabled" !== n.timeRangeSelectedHandling && (n.clearShadow(), t.timeRangeSelecting = { "root": n, "x": e, "y": i, "from": { x: e, y: i }, "width": 1 }); }, r.onclick = function () {
3057
+ c.setAttribute("unselectable", "on"), r.appendChild(c), c.style.position = "absolute", c.style.left = "0px", c.style.right = "0px", c.style.top = "0px", c.style.bottom = "0px", c.className = this.u("_cell_inner"), r.onmousedown = function (a) { "Disabled" !== n.timeRangeSelectedHandling && (n.clearShadow(), t.timeRangeSelecting = { "root": n, "x": e, "y": i, "from": { x: e, y: i }, "width": 1 }); }, r.onclick = function () {
2859
3058
  var t = function (t) { var e = new DayPilot.Date(t), i = e.addDays(1); n.E(e, i); };
2860
3059
  if ("Disabled" !== n.timeRangeSelectedHandling)
2861
3060
  return void t(o);
@@ -2869,27 +3068,27 @@ if ("undefined" == typeof DayPilot)
2869
3068
  }
2870
3069
  };
2871
3070
  var v = o.getDay();
2872
- 1 === v ? d.innerHTML = s.locale().monthNames[o.getMonth()] + " " + v : d.innerHTML = v, c.appendChild(d), this.cells[e][i] = r, a.appendChild(r);
2873
- }, this.getWeekStart = function () { return s.locale().weekStarts; }, this.getColCount = function () { return 7; }, this.getCellWidth = function () { return 14.285; }, this.getRowTop = function (t) {
3071
+ 1 === v ? d.innerHTML = a.locale().monthNames[o.getMonth()] + " " + v : d.innerHTML = v, c.appendChild(d), this.cells[e][i] = r, s.appendChild(r);
3072
+ }, this.getWeekStart = function () { return a.locale().weekStarts; }, this.getColCount = function () { return 7; }, this.getCellWidth = function () { return 14.285; }, this.getRowTop = function (t) {
2874
3073
  for (var e = this.headerHeight, i = 0; i < t; i++)
2875
3074
  e += this.rows[i].getHeight();
2876
3075
  return e;
2877
- }, this.F = function (t, e, i) { var n = {}; n.action = t, n.parameters = i, n.data = e, n.header = this.G(); var s = "JSON" + DayPilot.JSON.stringify(n); this.backendUrl && DayPilot.request(this.backendUrl, this.H, s, this.ajaxError); }, this.H = function (t) { n.a(t.responseText); }, this.G = function () { var t = {}; return t.control = "dpm", t.id = this.id, t.v = this.v, t.visibleStart = new DayPilot.Date(this.firstDate), t.visibleEnd = t.visibleStart.addDays(this.days), t.startDate = n.startDate, t.timeFormat = this.timeFormat, t.weekStarts = this.weekStarts, t; }, this.eventClickCallBack = function (t, e) { this.F("EventClick", e, t); }, this.w = function (e) { t.movingEvent = null, t.resizingEvent = null; var i = this, e = e || window.event; e.ctrlKey; e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(), n.eventClickSingle(i, e); }, this.eventClickSingle = function (t, e) {
3076
+ }, this.F = function (t, e, i) { var n = {}; n.action = t, n.parameters = i, n.data = e, n.header = this.G(); var a = "JSON" + DayPilot.JSON.stringify(n); this.backendUrl && DayPilot.request(this.backendUrl, this.H, a, this.ajaxError); }, this.H = function (t) { n.a(t.responseText); }, this.G = function () { var t = {}; return t.control = "dpm", t.id = this.id, t.v = this.v, t.visibleStart = new DayPilot.Date(this.firstDate), t.visibleEnd = t.visibleStart.addDays(this.days), t.startDate = n.startDate, t.timeFormat = this.timeFormat, t.weekStarts = this.weekStarts, t; }, this.eventClickCallBack = function (t, e) { this.F("EventClick", e, t); }, this.w = function (e) { t.movingEvent = null, t.resizingEvent = null; var i = this, e = e || window.event; e.ctrlKey; e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(), n.eventClickSingle(i, e); }, this.eventClickSingle = function (t, e) {
2878
3077
  var i = t.event;
2879
3078
  if (i.client.clickEnabled())
2880
3079
  if (n.D()) {
2881
- var s = {};
2882
- if (s.e = i, s.control = n, s.div = t, s.originalEvent = e, s.meta = e.metaKey, s.ctrl = e.ctrlKey, s.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventClick && (n.j.apply(function () { n.onEventClick(s); }), s.preventDefault.value))
3080
+ var a = {};
3081
+ if (a.e = i, a.control = n, a.div = t, a.originalEvent = e, a.meta = e.metaKey, a.ctrl = e.ctrlKey, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventClick && (n.j.apply(function () { n.onEventClick(a); }), a.preventDefault.value))
2883
3082
  return;
2884
3083
  switch (n.eventClickHandling) {
2885
3084
  case "CallBack":
2886
3085
  n.eventClickCallBack(i);
2887
3086
  break;
2888
3087
  case "ContextMenu":
2889
- var a = i.client.contextMenu();
2890
- a ? a.show(i) : n.contextMenu && n.contextMenu.show(i);
3088
+ var s = i.client.contextMenu();
3089
+ s ? s.show(i) : n.contextMenu && n.contextMenu.show(i);
2891
3090
  }
2892
- "function" == typeof n.onEventClicked && n.j.apply(function () { n.onEventClicked(s); });
3091
+ "function" == typeof n.onEventClicked && n.j.apply(function () { n.onEventClicked(a); });
2893
3092
  }
2894
3093
  else
2895
3094
  switch (n.eventClickHandling) {
@@ -2936,22 +3135,22 @@ if ("undefined" == typeof DayPilot)
2936
3135
  break;
2937
3136
  case "JavaScript": n.onEventDelete(t);
2938
3137
  }
2939
- }, this.eventDeleteCallBack = function (t, e) { this.F("EventDelete", e, t); }, this.eventDeletePostBack = function (t, e) { this.J("EventDelete", e, t); }, this.eventMoveCallBack = function (t, e, i, n, s) {
3138
+ }, this.eventDeleteCallBack = function (t, e) { this.F("EventDelete", e, t); }, this.eventDeletePostBack = function (t, e) { this.J("EventDelete", e, t); }, this.eventMoveCallBack = function (t, e, i, n, a) {
2940
3139
  if (!e)
2941
3140
  throw "newStart is null";
2942
3141
  if (!i)
2943
3142
  throw "newEnd is null";
2944
- var a = {};
2945
- a.e = t, a.newStart = e, a.newEnd = i, a.position = s, this.F("EventMove", n, a);
2946
- }, this.K = function (t, e, i, s, a, l) {
3143
+ var s = {};
3144
+ s.e = t, s.newStart = e, s.newEnd = i, s.position = a, this.F("EventMove", n, s);
3145
+ }, this.K = function (t, e, i, a, s, l) {
2947
3146
  var o = t.start().getTimePart(), r = t.end().getDatePart();
2948
3147
  r !== t.end() && (r = r.addDays(1));
2949
3148
  var h = DayPilot.DateUtil.diff(t.end(), r), c = this.getDateFromCell(e, i);
2950
- c = c.addDays(-s);
3149
+ c = c.addDays(-a);
2951
3150
  var d = DayPilot.DateUtil.daysSpan(t.start(), t.end()) + 1, v = c.addDays(d), u = c.addTime(o), f = v.addTime(h);
2952
3151
  if (n.D()) {
2953
3152
  var p = {};
2954
- if (p.e = t, p.control = n, p.newStart = u, p.newEnd = f, p.ctrl = a.ctrlKey, p.shift = a.shiftKey, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventMove && (n.j.apply(function () { n.onEventMove(p); }), p.preventDefault.value))
3153
+ if (p.e = t, p.control = n, p.newStart = u, p.newEnd = f, p.ctrl = s.ctrlKey, p.shift = s.shiftKey, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventMove && (n.j.apply(function () { n.onEventMove(p); }), p.preventDefault.value))
2955
3154
  return;
2956
3155
  switch (n.eventMoveHandling) {
2957
3156
  case "CallBack":
@@ -2973,12 +3172,12 @@ if ("undefined" == typeof DayPilot)
2973
3172
  throw "newStart is null";
2974
3173
  if (!i)
2975
3174
  throw "newEnd is null";
2976
- var s = {};
2977
- s.e = t, s.newStart = e, s.newEnd = i, this.F("EventResize", n, s);
3175
+ var a = {};
3176
+ a.e = t, a.newStart = e, a.newEnd = i, this.F("EventResize", n, a);
2978
3177
  }, this.L = function (t, e, i) {
2979
- var s = t.start().getTimePart(), a = t.end().getDatePart();
2980
- a !== t.end() && (a = a.addDays(1));
2981
- var l = DayPilot.DateUtil.diff(t.end(), a), o = this.getDateFromCell(e.x, e.y), r = o.addDays(i), h = o.addTime(s), c = r.addTime(l);
3178
+ var a = t.start().getTimePart(), s = t.end().getDatePart();
3179
+ s !== t.end() && (s = s.addDays(1));
3180
+ var l = DayPilot.DateUtil.diff(t.end(), s), o = this.getDateFromCell(e.x, e.y), r = o.addDays(i), h = o.addTime(a), c = r.addTime(l);
2982
3181
  if (n.D()) {
2983
3182
  var d = {};
2984
3183
  if (d.e = t, d.control = n, d.newStart = h, d.newEnd = c, d.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventResize && (n.j.apply(function () { n.onEventResize(d); }), d.preventDefault.value))
@@ -3016,7 +3215,7 @@ if ("undefined" == typeof DayPilot)
3016
3215
  case "JavaScript": n.onTimeRangeSelected(t, e);
3017
3216
  }
3018
3217
  }, this.j = {}, this.j.scope = null, this.j.notify = function () { n.j.scope && n.j.scope["$apply"](); }, this.j.apply = function (t) { t(); }, this.clearSelection = function () { n.clearShadow(); }, this.commandCallBack = function (t, e) { var i = {}; i.command = t, this.F("Command", e, i); }, this.isWeekend = function (t) { return t = new DayPilot.Date(t), 0 === t.dayOfWeek() || 6 === t.dayOfWeek(); }, this.M = {}, this.M.locale = function () { var t = DayPilot.Locale.find(n.locale); return t ? t : DayPilot.Locale.US; }, this.M.N = function () { return "Disabled" !== n.xssProtection; };
3019
- var s = this.M;
3218
+ var a = this.M;
3020
3219
  this.debug = function (t, e) { this.debuggingEnabled && (n.debugMessages || (n.debugMessages = []), n.debugMessages.push(t), "undefined" != typeof console && console.log(t)); }, this.dispose = function () { var t = n; t.nav.top && (t.b(), t.nav.top.removeAttribute("style"), t.nav.top.removeAttribute("class"), t.nav.top.innerHTML = "", t.nav.top.dp = null, t.nav.top.onmousemove = null, t.nav.top = null); }, this.O = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp)); }, this.loadFromServer = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof n.events.list || !n.events.list); }, this.m = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { n.visible = !0, n.nav.top.style.display = ""; }, this.hide = function () { n.visible = !1, n.nav.top.style.display = "none"; }, this.P = function () {
3021
3220
  if (this.id && this.id.tagName)
3022
3221
  this.nav.top = this.id;
@@ -3038,10 +3237,10 @@ if ("undefined" == typeof DayPilot)
3038
3237
  return;
3039
3238
  if (!i.event.calendar.shadow.start)
3040
3239
  return;
3041
- var n = t.movingEvent.event.calendar, s = t.movingEvent.event, a = n.shadow.start, l = n.shadow.position, o = t.movingEvent.offset;
3240
+ var n = t.movingEvent.event.calendar, a = t.movingEvent.event, s = n.shadow.start, l = n.shadow.position, o = t.movingEvent.offset;
3042
3241
  n.clearShadow(), t.movingEvent = null;
3043
3242
  var e = e || window.event;
3044
- return n.K(s, a.x, a.y, o, e, l), e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(), t.movingEvent = null, !1;
3243
+ return n.K(a, s.x, s.y, o, e, l), e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(), t.movingEvent = null, !1;
3045
3244
  }
3046
3245
  if (t.resizingEvent) {
3047
3246
  var i = t.resizingEvent;
@@ -3053,13 +3252,13 @@ if ("undefined" == typeof DayPilot)
3053
3252
  return;
3054
3253
  if (!i.event.calendar.shadow.start)
3055
3254
  return;
3056
- var n = t.resizingEvent.event.calendar, s = t.resizingEvent.event, a = n.shadow.start, r = n.shadow.width;
3057
- return n.clearShadow(), t.resizingEvent = null, n.L(s, a, r), e.cancelBubble = !0, t.resizingEvent = null, !1;
3255
+ var n = t.resizingEvent.event.calendar, a = t.resizingEvent.event, s = n.shadow.start, r = n.shadow.width;
3256
+ return n.clearShadow(), t.resizingEvent = null, n.L(a, s, r), e.cancelBubble = !0, t.resizingEvent = null, !1;
3058
3257
  }
3059
3258
  if (t.timeRangeSelecting) {
3060
3259
  if (t.timeRangeSelecting.moved) {
3061
- var h = t.timeRangeSelecting, n = h.root, a = new DayPilot.Date(n.getDateFromCell(h.from.x, h.from.y)), c = a.addDays(h.width);
3062
- n.E(a, c), n.clearShadow();
3260
+ var h = t.timeRangeSelecting, n = h.root, s = new DayPilot.Date(n.getDateFromCell(h.from.x, h.from.y)), c = s.addDays(h.width);
3261
+ n.E(s, c), n.clearShadow();
3063
3262
  }
3064
3263
  t.timeRangeSelecting = null;
3065
3264
  }
@@ -3080,22 +3279,22 @@ if ("undefined" == typeof DayPilot)
3080
3279
  var t = DayPilot.am();
3081
3280
  t && t.directive("daypilotMonth", ["$parse", function (t) {
3082
3281
  return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (e, i, n) {
3083
- var s = new DayPilot.Month(i[0]);
3084
- s.j.scope = e, s.init();
3085
- var a = n["id"];
3086
- a && (e[a] = s);
3282
+ var a = new DayPilot.Month(i[0]);
3283
+ a.j.scope = e, a.init();
3284
+ var s = n["id"];
3285
+ s && (e[s] = a);
3087
3286
  var l = n["publishAs"];
3088
3287
  if (l) {
3089
- (0, t(l).assign)(e, s);
3288
+ (0, t(l).assign)(e, a);
3090
3289
  }
3091
3290
  for (var o in n)
3092
- 0 === o.indexOf("on") && !function (i) { s[i] = function (s) { var a = t(n[i]); e["$apply"](function () { a(e, { "args": s }); }); }; }(o);
3291
+ 0 === o.indexOf("on") && !function (i) { a[i] = function (a) { var s = t(n[i]); e["$apply"](function () { s(e, { "args": a }); }); }; }(o);
3093
3292
  var r = e["$watch"], h = n["config"] || n["daypilotConfig"], c = n["events"] || n["daypilotEvents"];
3094
3293
  r.call(e, h, function (t) {
3095
3294
  for (var e in t)
3096
- s[e] = t[e];
3097
- s.update();
3098
- }, !0), r.call(e, c, function (t) { s.events.list = t, s.update(); }, !0);
3295
+ a[e] = t[e];
3296
+ a.update();
3297
+ }, !0), r.call(e, c, function (t) { a.events.list = t, a.update(); }, !0);
3099
3298
  } };
3100
3299
  }]);
3101
3300
  }(), "undefined" != typeof Sys && Sys.Application && Sys.Application.notifyScriptLoaded && Sys.Application.notifyScriptLoaded();
@@ -3106,7 +3305,7 @@ if ("undefined" == typeof DayPilot)
3106
3305
  "undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () {
3107
3306
  if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.nav) {
3108
3307
  DayPilot.Navigator = function (t, e) {
3109
- this.v = "2022.3.426-lite";
3308
+ this.v = "2022.4.438-lite";
3110
3309
  var i = this;
3111
3310
  this.id = t, this.api = 2, this.isNavigator = !0, this.autoFocusOnClick = !0, this.weekStarts = "Auto", this.selectMode = "Day", this.titleHeight = 30, this.dayHeaderHeight = 30, this.bound = null, this.cellWidth = 30, this.cellHeight = 30, this.cssClassPrefix = "navigator_default", this.freeHandSelectionEnabled = !1, this.selectionStart = (new DayPilot.Date).getDatePart(), this.selectionEnd = null, this.selectionDay = null, this.showMonths = 1, this.skipMonths = 1, this.command = "navigate", this.year = (new DayPilot.Date).getYear(), this.month = (new DayPilot.Date).getMonth() + 1, this.showWeekNumbers = !1, this.weekNumberAlgorithm = "Auto", this.rowsPerMonth = "Six", this.orientation = "Vertical", this.locale = "en-us", this.rtl = !1, this.visible = !0, this.timeRangeSelectedHandling = "Bind", this.visibleRangeChangedHandling = "Enabled", this.onVisibleRangeChange = null, this.onVisibleRangeChanged = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.nav = {}, this.a = {}, this.b = function () { this.root.dp = this, this.root.className = this.c("_main"), "Horizontal" === this.orientation ? (this.root.style.width = this.showMonths * (7 * a.cellWidth() + this.d()) + "px", this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : this.root.style.width = 7 * a.cellWidth() + this.d() + "px", this.rtl && (this.root.style.direction = "rtl"), this.root.style.position = "relative", this.visible || (this.root.style.display = "none"); var t = document.createElement("input"); t.type = "hidden", t.name = i.id + "_state", t.id = t.name, this.root.appendChild(t), this.state = t, this.startDate ? this.startDate = new DayPilot.Date(this.startDate).firstDayOfMonth() : this.startDate = DayPilot.Date.fromYearMonthDay(this.year, this.month), this.calendars = [], this.selected = [], this.months = []; }, this.e = function () { return 2 === i.api; }, this.f = function () { this.root.innerHTML = ""; }, this.c = function (t) { var e = this.theme || this.cssClassPrefix; return e ? e + t : ""; }, this.g = function (t, e) { var i = this.c("_" + e); DayPilot.Util.addClass(t, i); }, this.h = function (t, e) { var i = this.c("_" + e); DayPilot.Util.removeClass(t, i); }, this.i = function (t, e) {
3112
3311
  var s = {};