@daypilot/daypilot-lite-angular 4.6.1 → 4.8.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.
@@ -132,7 +132,7 @@ DayPilot Lite
132
132
  Copyright (c) 2005 - 2025 Annpoint s.r.o.
133
133
  https://www.daypilot.org/
134
134
  Licensed under Apache Software License 2.0
135
- Version: 2025.3.739-lite
135
+ Version: 2025.4.750-lite
136
136
  */
137
137
  "use strict";
138
138
  var DayPilot = { Global: {} };
@@ -179,9 +179,9 @@ var DayPilot = { Global: {} };
179
179
  function a(e, t) { return !DayPilot.Util.isNullOrUndefined(e) && (!DayPilot.Util.isNullOrUndefined(t) && e.toLocaleLowerCase() === t.toLocaleLowerCase()); }
180
180
  function i(e) { e = Math.min(e, 255), e = Math.max(e, 0); var t = e.toString(16); return e < 16 ? "0" + t : t; }
181
181
  if ("undefined" == typeof DayPilot.$) {
182
- "undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), DayPilot.$ = function (e) { return document.getElementById(e); }, Object.defineProperty(DayPilot, "isKhtml", { get: function () { return "undefined" != typeof navigator && navigator.userAgent && navigator.userAgent.indexOf("KHTML") !== -1; } }), DayPilot.touch = {}, DayPilot.touch.start = "touchstart", DayPilot.touch.move = "touchmove", DayPilot.touch.end = "touchend", DayPilot.mo3 = function (e, t) { var n = t.touches && t.touches[0] ? t.touches[0] : t; if (!e) {
182
+ "undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), DayPilot.$ = function (e) { return document.getElementById(e); }, DayPilot.touch = {}, DayPilot.touch.start = "touchstart", DayPilot.touch.move = "touchmove", DayPilot.touch.end = "touchend", DayPilot.mo3 = function (e, t) { var n = t.touches && t.touches[0] ? t.touches[0] : t; if (!e) {
183
183
  return { x: void 0 !== n.pageX ? n.pageX : n.clientX + window.pageXOffset, y: void 0 !== n.pageY ? n.pageY : n.clientY + window.pageYOffset, shift: !!t.shiftKey, meta: !!t.metaKey, ctrl: !!t.ctrlKey, alt: !!t.altKey };
184
- } var a = e.getBoundingClientRect(), i = n.clientX - a.left, r = n.clientY - a.top; return i = Math.round(i), r = Math.round(r), { x: i, y: r, shift: !!t.shiftKey, meta: !!t.metaKey, ctrl: !!t.ctrlKey, alt: !!t.altKey }; }, DayPilot.browser = {}, Object.defineProperty(DayPilot.browser, "hover", { get: function () { return !window.matchMedia("(any-hover: none)").matches; } }), DayPilot.touch = {}, DayPilot.debounce = function (e, t) { var n; return function () { var a = this, i = arguments, r = function () { n = null, e.apply(a, i); }; clearTimeout(n), n = setTimeout(r, t); }; }, DayPilot.page = function (e) { var t = e.changedTouches && e.changedTouches[0] ? e.changedTouches[0] : e; return "undefined" != typeof t.pageX ? { x: t.pageX, y: t.pageY } : "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; }, DayPilot.abs = function (e, t) { if (!e)
184
+ } var a = e.getBoundingClientRect(), i = n.clientX - a.left, r = n.clientY - a.top; return i = Math.round(i), r = Math.round(r), { x: i, y: r, shift: !!t.shiftKey, meta: !!t.metaKey, ctrl: !!t.ctrlKey, alt: !!t.altKey }; }, DayPilot.browser = { get ios() { var e, t; return "undefined" != typeof navigator && ((null === (e = navigator.userAgent) || void 0 === e ? void 0 : e.includes("iPad")) || (null === (t = navigator.userAgent) || void 0 === t ? void 0 : t.includes("iPhone"))); }, get hover() { return !window.matchMedia("(any-hover: none)").matches; } }, DayPilot.debounce = function (e, t) { var n; return function () { var a = this, i = arguments, r = function () { n = null, e.apply(a, i); }; clearTimeout(n), n = setTimeout(r, t); }; }, DayPilot.page = function (e) { var t = e.changedTouches && e.changedTouches[0] ? e.changedTouches[0] : e; return "undefined" != typeof t.pageX ? { x: t.pageX, y: t.pageY } : "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; }, DayPilot.abs = function (e, t) { if (!e)
185
185
  return null; if (e.getBoundingClientRect) {
186
186
  var n = DayPilot.absBoundingClientBased(e);
187
187
  if (t) {
@@ -205,8 +205,8 @@ var DayPilot = { Global: {} };
205
205
  } var n = document.createElement("style"); n.nonce = e(), n.styleSheet || n.appendChild(document.createTextNode("")), (document.head || document.getElementsByTagName("head")[0]).appendChild(n); var a = !!n.styleSheet, i = {}; return i.rules = [], i.commit = function () { a && (n.styleSheet.cssText = this.rules.join("\n")); }, i.add = function (e, t, i) { return a ? void this.rules.push(e + "{" + t + "}") : void (n.sheet.insertRule ? ("undefined" == typeof i && (i = n.sheet.cssRules.length), n.sheet.insertRule(e + "{" + t + "}", i)) : n.sheet.addRule && n.sheet.addRule(e, t, i)); }, i; }, 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 () {
206
206
  if (!DayPilot.Global.defaultCss) {
207
207
  var e = DayPilot.sheet();
208
- 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(".calendar_default_main", " --dp-calendar-border-color: #c0c0c0; --dp-calendar-font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; --dp-calendar-font-size: 13px; --dp-calendar-header-bg-color: #f3f3f3; --dp-calendar-header-color: #333; --dp-calendar-colheader-padding: 0px; --dp-calendar-rowheader-font-size: 16pt; --dp-calendar-rowheader-padding: 3px; --dp-calendar-cell-bg-color: #f9f9f9; --dp-calendar-cell-business-bg-color: #ffffff; --dp-calendar-cell-border-color: #ddd; --dp-calendar-colheader-horizontal-align: center; --dp-calendar-colheader-vertical-align: center; --dp-calendar-allday-event-color: #333; --dp-calendar-allday-event-border-color: #999; --dp-calendar-allday-event-border: 1px solid var(--dp-calendar-allday-event-border-color); --dp-calendar-allday-event-border-radius: 0px; --dp-calendar-allday-event-bg-top-color: #ffffff; --dp-calendar-allday-event-bg-bottom-color: #eeeeee; --dp-calendar-allday-event-background: linear-gradient(to bottom, var(--dp-calendar-allday-event-bg-top-color) 0%, var(--dp-calendar-allday-event-bg-bottom-color) 100%); --dp-calendar-allday-event-box-shadow: none; --dp-calendar-allday-event-padding: 4px; --dp-calendar-allday-event-horizontal-align: flex-start; --dp-calendar-event-color: #333; --dp-calendar-event-border-color: #999; --dp-calendar-event-border: 1px solid var(--dp-calendar-event-border-color); --dp-calendar-event-border-radius: 0px; --dp-calendar-event-box-shadow: none; --dp-calendar-event-bg-top-color: #ffffff; --dp-calendar-event-bg-bottom-color: #eeeeee; --dp-calendar-event-background: linear-gradient(to bottom, var(--dp-calendar-event-bg-top-color) 0%, var(--dp-calendar-event-bg-bottom-color) 100%); --dp-calendar-event-bar-bg-color: #9dc8e8; --dp-calendar-event-bar-color: #1066a8; --dp-calendar-event-bar-width: 6px; --dp-calendar-event-bar-left: 0px; --dp-calendar-event-bar-bottom: 0px; --dp-calendar-event-bar-top: 0px; --dp-calendar-event-bar-display: block; --dp-calendar-event-padding: 2px; --dp-calendar-event-padding-left: 8px; --dp-calendar-message-bg-color: #ffa216; --dp-calendar-message-color: #ffffff; --dp-calendar-message-padding: 10px; --dp-calendar-message-opacity: 0.9; --dp-calendar-selected-event-bg-color: #ddd; --dp-calendar-shadow-color: #bbbbbb; --dp-calendar-shadow-border-color: #888888; --dp-calendar-forbidden-shadow-border-color: #cc0000; --dp-calendar-forbidden-shadow-bg-color: #cc4125; --dp-calendar-now-indicator-color: red; --dp-calendar-scroll-bg-color: #f3f3f3;"), e.add(".calendar_default_main *, .calendar_default_main *:before, .calendar_default_main *:after", "box-sizing: content-box;"), e.add(".calendar_default_main", "border:1px solid var(--dp-calendar-border-color); font-family:var(--dp-calendar-font-family); font-size:var(--dp-calendar-font-size);"), e.add(".calendar_default_rowheader_inner, .calendar_default_cornerright_inner, .calendar_default_corner_inner, .calendar_default_colheader_inner, .calendar_default_alldayheader_inner", "color: var(--dp-calendar-header-color); background: var(--dp-calendar-header-bg-color);"), e.add(".calendar_default_colheader_back", "background: var(--dp-calendar-header-bg-color); border-bottom: 1px solid red;"), e.add(".calendar_default_colheader_back_inner", "position: absolute; inset: 0; border-bottom: 1px solid var(--dp-calendar-border-color);"), e.add(".calendar_default_cornerright_inner", "position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; border-bottom: 1px solid var(--dp-calendar-border-color);"), e.add(".calendar_default_direction_rtl .calendar_default_cornerright_inner", "border-right: 1px solid var(--dp-calendar-border-color);"), e.add(".calendar_default_rowheader_inner", "font-size: var(--dp-calendar-rowheader-font-size); text-align: right; position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; border-right: 1px solid var(--dp-calendar-border-color); border-bottom: 1px solid var(--dp-calendar-border-color); padding: var(--dp-calendar-rowheader-padding);"), e.add(".calendar_default_rowheader_simple .calendar_default_rowheader_inner", "font-size: inherit; display: flex; align-items: center; justify-content: center; white-space: nowrap;"), 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 var(--dp-calendar-border-color); border-bottom: 1px solid var(--dp-calendar-border-color);"), 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; padding: var(--dp-calendar-colheader-padding);border-right: 1px solid var(--dp-calendar-border-color); border-bottom: 1px solid var(--dp-calendar-border-color); display: flex; align-items: var(--dp-calendar-colheader-vertical-align); justify-content: var(--dp-calendar-colheader-horizontal-align);"), e.add(".calendar_default_cell_inner", "position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; border-right: 1px solid var(--dp-calendar-cell-border-color); border-bottom: 1px solid var(--dp-calendar-cell-border-color); background: var(--dp-calendar-cell-bg-color);"), e.add(".calendar_default_cell_business .calendar_default_cell_inner", "background: var(--dp-calendar-cell-business-bg-color);"), e.add(".calendar_default_alldayheader_inner", "text-align: center; position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; border-right: 1px solid var(--dp-calendar-border-color); border-bottom: 1px solid var(--dp-calendar-border-color);"), e.add(".calendar_default_message", "opacity: var(--dp-calendar-message-opacity); padding: var(--dp-calendar-message-padding); color: var(--dp-calendar-message-color); background: var(--dp-calendar-message-bg-color);"), e.add(".calendar_default_event_inner", "color: var(--dp-calendar-event-color); border: var(--dp-calendar-event-border); border-radius: var(--dp-calendar-event-border-radius); background: var(--dp-calendar-event-background);"), e.add(".calendar_default_alldayevent", "box-shadow: var(--dp-calendar-allday-event-box-shadow); border-radius: var(--dp-calendar-allday-event-border-radius);"), e.add(".calendar_default_alldayevent_inner", "color: var(--dp-calendar-allday-event-color); border: var(--dp-calendar-allday-event-border); border-radius: var(--dp-calendar-allday-event-border-radius); background: var(--dp-calendar-allday-event-background);"), e.add(".calendar_default_event_bar", "display: var(--dp-calendar-event-bar-display); top: var(--dp-calendar-event-bar-top); bottom: var(--dp-calendar-event-bar-bottom); left: var(--dp-calendar-event-bar-left); width: var(--dp-calendar-event-bar-width); background-color: var(--dp-calendar-event-bar-bg-color);"), e.add(".calendar_default_direction_rtl .calendar_default_event_bar", "top: 0px; bottom: 0px; right: 0px; width: var(--dp-calendar-event-bar-width); background-color: var(--dp-calendar-event-bar-bg-color);"), e.add(".calendar_default_event_bar_inner", "position: absolute; width: var(--dp-calendar-event-bar-width); background-color: var(--dp-calendar-event-bar-color);"), e.add(".calendar_default_selected .calendar_default_event_inner", "background: var(--dp-calendar-selected-event-bg-color);"), e.add(".calendar_default_alldayevent_inner", "position: absolute; top: 0px; bottom: 0px; left: 0px; right: 0px; overflow: hidden; padding: var(--dp-calendar-allday-event-padding); margin-right: 0px; display: flex; align-items: center; justify-content: var(--dp-calendar-allday-event-horizontal-align);"), e.add(".calendar_default_event_withheader .calendar_default_event_inner", "padding-top: 15px;"), e.add(".calendar_default_event", "box-shadow: var(--dp-calendar-event-box-shadow); border-radius: var(--dp-calendar-event-border-radius); cursor: default;"), e.add(".calendar_default_event_inner", "position: absolute; overflow: hidden; top: 0px; bottom: 0px; left: 0px; right: 0px; padding: var(--dp-calendar-event-padding) var(--dp-calendar-event-padding) var(--dp-calendar-event-padding) var(--dp-calendar-event-padding-left);"), e.add(".calendar_default_direction_rtl .calendar_default_event_inner", "padding: 2px 8px 2px 2px;"), e.add(".calendar_default_shadow_inner", "box-sizing: border-box; background-color: var(--dp-calendar-shadow-color); border: 1px solid var(--dp-calendar-shadow-border-color); opacity: 0.5; height: 100%;"), e.add(".calendar_default_shadow", "box-shadow: 0 2px 5px rgba(0,0,0,0.2);"), e.add(".calendar_default_shadow_forbidden:after", "content: ''; position: absolute; top: 5px; left: calc(50% - 10px); border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; background-image: url('data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2720%27 height=%2720%27 viewBox=%270 0 20 20%27%3E%3Ccircle cx=%2710%27 cy=%2710%27 r=%279%27 fill=%27%23cc0000aa%27 /%3E%3Cline x1=%275%27 y1=%275%27 x2=%2715%27 y2=%2715%27 stroke=%27white%27 stroke-width=%271.5%27/%3E%3Cline x1=%2715%27 y1=%275%27 x2=%275%27 y2=%2715%27 stroke=%27white%27 stroke-width=%271.5%27/%3E%3C/svg%3E'); background-repeat: no-repeat; background-position: center; background-size: contain;"), e.add(".calendar_default_shadow_forbidden .calendar_default_shadow_inner", "border: 1px solid var(--dp-calendar-forbidden-shadow-border-color); background: var(--dp-calendar-forbidden-shadow-bg-color);"), 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: var(--dp-calendar-now-indicator-color);"), e.add(".calendar_default_now:before", "content: ''; top: -5px; border-width: 5px; border-color: transparent transparent transparent var(--dp-calendar-now-indicator-color); border-style: solid; width: 0px; height: 0px; position: absolute; -moz-transform: scale(.9999);"), e.add(".calendar_default_shadow_top", "box-sizing: border-box; padding: 2px; border: 1px solid var(--dp-calendar-border-color); background: linear-gradient(to bottom, #ffffff 0%, #eeeeee); pointer-events: none;"), e.add(".calendar_default_shadow_bottom", "box-sizing: border-box; padding: 2px; border: 1px solid var(--dp-calendar-border-color); background: linear-gradient(to bottom, #ffffff 0%, #eeeeee); pointer-events: none;"), 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: var(--dp-calendar-header-bg-color);"), e.add(".calendar_default_event_moving_source", "opacity: 0.5;"), e.add(".calendar_default_colmove_handle", "background-repeat: no-repeat; background-position: center center; background-color: #ccc; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAKCAYAAACT+/8OAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAClJREFUGFdj+P//P4O9vX2Bg4NDP4gNFgBytgPxebgAMsYuQGMz/jMAAFsTZDPYJlDHAAAAAElFTkSuQmCC); cursor: move;"), e.add(".calendar_default_colheader:hover .calendar_default_colheader_splitter", "background-color: #c0c0c0;"), e.add(".calendar_default_colmove_source", "background-color: black; opacity: 0.5;"), e.add(".calendar_default_colmove_position_before", "box-sizing: border-box; border-left: 2px solid #999999;"), e.add(".calendar_default_colmove_position_before:before", "content: ''; border-width: 6px; border-color: transparent #999999 transparent transparent; border-style: solid; width: 0px; height: 0px; position: absolute;"), e.add(".calendar_default_colmove_position_after", "box-sizing: border-box; border-right: 2px solid #999999;"), e.add(".calendar_default_colmove_position_after:before", "content: ''; border-width: 6px; border-color: transparent transparent transparent #999999; border-style: solid; width: 0px; height: 0px; position: absolute;"), e.add(".calendar_default_colmove_position_child", "box-sizing: border-box; border-bottom: 2px solid #999999;"), e.add(".calendar_default_colmove_position_child:before", "content: ''; border-width: 6px; border-color: #999999 transparent transparent transparent; border-style: solid; width: 0px; height: 0px; position: absolute;"), e.add(".calendar_default_colmove_position_forbidden", "border-top: 2px solid red;"), e.add(".calendar_default_colheader .calendar_default_colheader_splitter:hover", "background-color: #999999;"), e.add(".calendar_default_block", "background-color: #808080; opacity: 0.5;"), e.add(".month_default_main", " --dp-month-border-color: #c0c0c0; --dp-month-font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; --dp-month-font-size: 13px; --dp-month-cell-border-color: #ddd; --dp-month-cell-bg-color: #f9f9f9; --dp-month-cell-business-bg-color: #ffffff; --dp-month-event-color: #333; --dp-month-event-border-color: #999; --dp-month-event-border: 1px solid var(--dp-month-event-border-color); --dp-month-event-bg-top-color: #ffffff; --dp-month-event-bg-bottom-color: #eeeeee; --dp-month-event-background: linear-gradient(to bottom, var(--dp-month-event-bg-top-color) 0%, var(--dp-month-event-bg-bottom-color) 100%); --dp-month-event-horizontal-align: flex-start; --dp-month-event-vertical-align: center; --dp-month-event-padding: 2px; --dp-month-event-padding-left: 10px; --dp-month-event-padding-rtl: 2px 10px 2px 1px; --dp-month-event-border-radius: 0px; --dp-month-event-box-shadow: none; --dp-month-event-bar-top: 1px; --dp-month-event-bar-left: 2px; --dp-month-event-bar-bottom: 1px; --dp-month-event-bar-width: 6px; --dp-month-event-bar-color: #1066a8; --dp-month-event-bar-display: block; --dp-month-header-bg-color: #f3f3f3; --dp-month-header-color: #333; --dp-month-header-horizontal-align: center; --dp-month-header-vertical-align: center; --dp-month-header-padding: 0px; --dp-month-message-bg-color: #ffa216; --dp-month-message-color: #ffffff; --dp-month-message-padding: 10px; --dp-month-selected-event-bg-color: #ddd; --dp-month-shadow-color: #bbbbbb; --dp-month-shadow-border-color: #888888;"), e.add(".month_default_main *, .month_default_main *:before, .month_default_main *:after", "box-sizing: content-box; "), e.add(".month_default_main", "border: 1px solid var(--dp-month-border-color); font-family: var(--dp-month-font-family); font-size: var(--dp-month-font-size); color: #333; "), e.add(".month_default_cell_inner", "border-right: 1px solid var(--dp-month-cell-border-color); border-bottom: 1px solid var(--dp-month-cell-border-color); position: absolute; top: 0; left: 0; bottom: 0; right: 0; background-color: var(--dp-month-cell-bg-color); "), e.add(".month_default_cell_business .month_default_cell_inner", "background-color: var(--dp-month-cell-business-bg-color); "), e.add(".month_default_cell_header", "text-align: right; padding: 4px; box-sizing: border-box; "), e.add(".month_default_header_inner", "position: absolute; inset: 0; border-right: 1px solid var(--dp-month-border-color); border-bottom: 1px solid var(--dp-month-border-color); cursor: default; color: var(--dp-month-header-color); background: var(--dp-month-header-bg-color); overflow: hidden; display: flex; align-items: var(--dp-month-header-vertical-align); justify-content: var(--dp-month-header-horizontal-align); padding: var(--dp-month-header-padding);"), e.add(".month_default_message", "opacity: 0.9; color: var(--dp-month-message-color); background: var(--dp-month-message-bg-color); padding: var(--dp-month-message-padding); "), e.add(".month_default_event", "border-radius: var(--dp-month-event-border-radius); box-shadow: var(--dp-month-event-box-shadow); "), e.add(".month_default_event_inner", "position: absolute; top: 0; bottom: 0; left: 1px; right: 1px; overflow: hidden; padding: var(--dp-month-event-padding) var(--dp-month-event-padding) var(--dp-month-event-padding) var(--dp-month-event-padding-left); color: var(--dp-month-event-color); background: var(--dp-month-event-background); border: var(--dp-month-event-border); border-radius: var(--dp-month-event-border-radius); display: flex; align-items: var(--dp-month-event-vertical-align); justify-content: var(--dp-month-event-horizontal-align); "), e.add(".month_default_direction_rtl .month_default_event_inner", "right: 2px; padding: var(--dp-month-event-padding-rtl); "), e.add(".month_default_event_continueright .month_default_event_inner", "border-top-right-radius: 0; border-bottom-right-radius: 0; border-right-style: dotted; "), e.add(".month_default_event_continueleft .month_default_event_inner", "border-top-left-radius: 0; border-bottom-left-radius: 0; border-left-style: dotted; "), e.add(".month_default_event_bar", "display: var(--dp-month-event-bar-display); top: var(--dp-month-event-bar-top); bottom: var(--dp-month-event-bar-bottom); left: var(--dp-month-event-bar-left); width: var(--dp-month-event-bar-width); "), e.add(".month_default_direction_rtl .month_default_event_bar", "top: 1px; bottom: 1px; right: 3px; width: var(--dp-month-event-bar-width); "), e.add(".month_default_event_bar_inner", "position: absolute; width: var(--dp-month-event-bar-width); background-color: var(--dp-month-event-bar-color); "), e.add(".month_default_event_continueleft .month_default_event_bar", "display: none; "), e.add(".month_default_selected .month_default_event_inner", "background: var(--dp-month-selected-event-bg-color); "), e.add(".month_default_shadow_inner", "box-sizing: border-box; background-color: var(--dp-month-shadow-color); border: 1px solid var(--dp-month-shadow-border-color); opacity: 0.5; height: 100%; "), e.add(".month_default_shadow", "box-shadow: 0 2px 5px rgba(0, 0, 0, .2); "), 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; "),
209
- e.add(".month_default_event_delete:hover", "opacity: 1; "), e.add(".month_default_event_timeleft", "color: #ccc; font-size: 11px; display: flex; align-items: center; "), e.add(".month_default_event_timeright", "color: #ccc; font-size: 11px; display: flex; align-items: center; justify-content: end; "), e.add(".month_default_loading", "background-color: orange; color: white; padding: 2px; "), e.add(".month_default_shadow_forbidden:after", "content: ''; position: absolute; top: calc(50% - 10px); left: 10px; border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; background-image: url('data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2720%27 height=%2720%27 viewBox=%270 0 20 20%27%3E%3Ccircle cx=%2710%27 cy=%2710%27 r=%279%27 fill=%27%23cc0000aa%27 /%3E%3Cline x1=%275%27 y1=%275%27 x2=%2715%27 y2=%2715%27 stroke=%27white%27 stroke-width=%271.5%27/%3E%3Cline x1=%2715%27 y1=%275%27 x2=%275%27 y2=%2715%27 stroke=%27white%27 stroke-width=%271.5%27/%3E%3C/svg%3E'); background-repeat: no-repeat; background-position: center; background-size: contain; "), e.add(".month_default_shadow_forbidden .month_default_shadow_inner", "border: 1px solid #cc0000; background: #cc4125; "), e.add(".navigator_default_main", " --dp-nav-border-color: #c0c0c0; --dp-nav-font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; --dp-nav-font-size: 12px; --dp-nav-title-color: #333; --dp-nav-title-bg-color: #f3f3f3; --dp-nav-dayheader-color: #333; --dp-nav-dayheader-bg-color: #ffffff; --dp-nav-weeknumber-color: #999; --dp-nav-weeknumber-bg-color: #ffffff; --dp-nav-day-color: #000; --dp-nav-day-bg-color: #ffffff; --dp-nav-dayother-color: gray; --dp-nav-dayother-bg-color: #ffffff; --dp-nav-weekend-bg-color: #f0f0f0; --dp-nav-select-bg-color: #FFE794; --dp-nav-text-align: center;"), e.add(".navigator_default_main *, .navigator_default_main *:before, .navigator_default_main *:after", "box-sizing: content-box;"), e.add(".navigator_default_main", "border-left: 1px solid var(--dp-nav-border-color);border-right: 1px solid var(--dp-nav-border-color);border-bottom: 1px solid var(--dp-nav-border-color);background-color: white;color: var(--dp-nav-day-color);box-sizing: content-box;"), e.add(".navigator_default_month", "font-family: var(--dp-nav-font-family);font-size: var(--dp-nav-font-size);"), e.add(".navigator_default_day", "color: var(--dp-nav-day-color); background-color: var(--dp-nav-day-bg-color);"), e.add(".navigator_default_weekend", "background-color: var(--dp-nav-weekend-bg-color);"), e.add(".navigator_default_dayheader", "color: var(--dp-nav-dayheader-color);background-color: var(--dp-nav-dayheader-bg-color);text-align: var(--dp-nav-text-align);padding: 0px;"), e.add(".navigator_default_line", "border-bottom: 1px solid var(--dp-nav-border-color);"), e.add(".navigator_default_dayother", "color: var(--dp-nav-dayother-color); background-color: var(--dp-nav-dayother-bg-color);"), e.add(".navigator_default_todaybox", "border: 1px solid red;"), e.add(".navigator_default_title, .navigator_default_titleleft, .navigator_default_titleright", "box-sizing: border-box; border-top: 1px solid var(--dp-nav-border-color);border-bottom: 1px solid var(--dp-nav-border-color);color: var(--dp-nav-title-color);background: var(--dp-nav-title-bg-color);text-align: var(--dp-nav-text-align);"), e.add(".navigator_default_busy", "font-weight: bold;"), e.add(".navigator_default_cell", "text-align: var(--dp-nav-text-align);"), e.add(".navigator_default_select .navigator_default_cell_box", "background-color: var(--dp-nav-select-bg-color);opacity: 0.5;"), e.add(".navigator_default_weeknumber", "text-align: var(--dp-nav-text-align);color: var(--dp-nav-weeknumber-color);background: var(--dp-nav-weeknumber-bg-color);"), e.add(".navigator_default_cell_text", "cursor: pointer;"), e.add(".navigator_default_todaysection", "box-sizing: border-box; display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--dp-nav-border-color);"), e.add(".navigator_default_todaysection_button", "cursor: pointer; color: #333; background-color: #f0f0f0; border: 1px solid var(--dp-nav-border-color); padding: 5px 10px; border-radius: 0px; "), e.add(".scheduler_default_main", ' --dp-scheduler-border-color: #c0c0c0; --dp-scheduler-border-inner-color: #e0e0e0; --dp-scheduler-cell-bg-color: #f9f9f9; --dp-scheduler-cell-business-bg-color: #ffffff; --dp-scheduler-event-background: linear-gradient(to bottom, var(--dp-scheduler-event-bg-top-color) 0%, var(--dp-scheduler-event-bg-bottom-color) 100%); --dp-scheduler-event-bg-bottom-color: #eeeeee; --dp-scheduler-event-bg-top-color: #ffffff; --dp-scheduler-event-bar-bg-color: #9dc8e8; --dp-scheduler-event-bar-color: #1066a8; --dp-scheduler-event-bar-display: block; --dp-scheduler-event-bar-height: 4px; --dp-scheduler-event-bar-left: 0px; --dp-scheduler-event-bar-right: 0px; --dp-scheduler-event-bar-top: 0px; --dp-scheduler-event-border: 1px solid var(--dp-scheduler-event-border-color); --dp-scheduler-event-border-color: #ccc; --dp-scheduler-event-border-radius: 0px; --dp-scheduler-event-box-shadow: none; --dp-scheduler-event-color: #333; --dp-scheduler-event-horizontal-align: flex-start; --dp-scheduler-event-milestone-color: #38761d; --dp-scheduler-event-padding: 2px; --dp-scheduler-event-selected-bg-color: #ddd; --dp-scheduler-event-vertical-align: center; --dp-scheduler-focus-outline-color: red; --dp-scheduler-font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --dp-scheduler-font-size: 13px; --dp-scheduler-grid-line-break-color: #999; --dp-scheduler-grid-line-color: #eee; --dp-scheduler-header-bg-color: #f3f3f3; --dp-scheduler-header-color: #333; --dp-scheduler-link-color: #cc0000; --dp-scheduler-message-bg-color: #ffa216; --dp-scheduler-message-color: #ffffff; --dp-scheduler-message-padding: 10px; --dp-scheduler-rowheader-padding: 7px; --dp-scheduler-rowheader-vertical-align: center; --dp-scheduler-selectionrectangle-color: #1066a8; --dp-scheduler-shadow-border-color: #888888; --dp-scheduler-shadow-color: #bbbbbb; --dp-scheduler-timeheader-horizontal-align: center; --dp-scheduler-timeheader-padding: 0px; --dp-scheduler-timeheader-vertical-align: center;'), e.add(".scheduler_default_main *, .scheduler_default_main *:before, .scheduler_default_main *:after", "box-sizing: content-box;"), e.add(".scheduler_default_main, .scheduler_default_main svg text", "box-sizing: content-box; border: 1px solid var(--dp-scheduler-border-color); font-family: var(--dp-scheduler-font-family); font-size: var(--dp-scheduler-font-size);"), e.add(".scheduler_default_selected .scheduler_default_event_inner", "background: var(--dp-scheduler-event-selected-bg-color);"), e.add(".scheduler_default_timeheader_scroll", "background: var(--dp-scheduler-header-bg-color);"), e.add(".scheduler_default_message", "opacity: 0.9; padding: var(--dp-scheduler-message-padding); color: var(--dp-scheduler-message-color); background: var(--dp-scheduler-message-bg-color);"), e.add(".scheduler_default_timeheadergroup,.scheduler_default_timeheadercol", "color: var(--dp-scheduler-header-color); background: var(--dp-scheduler-header-bg-color);"), e.add(".scheduler_default_rowheader,.scheduler_default_corner", "color: var(--dp-scheduler-header-color); background: var(--dp-scheduler-header-bg-color);"), e.add(".scheduler_default_rowheader.scheduler_default_rowheader_selected", "background-color: #aaa; background-image: linear-gradient(45deg, rgba(255,255,255,0.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.2) 75%, transparent 75%, transparent); background-size: 20px 20px;"), e.add(".scheduler_default_rowheader_inner", "position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; border-right: 1px solid var(--dp-scheduler-border-inner-color); padding: var(--dp-scheduler-rowheader-padding); display: flex; align-items: var(--dp-scheduler-rowheader-vertical-align);"), e.add(".scheduler_default_timeheadergroup_inner, .scheduler_default_timeheadercol_inner", "position: absolute; left: 0; right: 0; top: 0; bottom: 0; border-right: 1px solid var(--dp-scheduler-border-color);"), e.add(".scheduler_default_timeheadergroup_inner", "border-bottom: 1px solid var(--dp-scheduler-border-color);"), e.add(".scheduler_default_timeheadergroup_inner, .scheduler_default_timeheadercol_inner, .scheduler_default_timeheader_float", "display: flex; align-items: var(--dp-scheduler-timeheader-vertical-align); justify-content: var(--dp-scheduler-timeheader-horizontal-align); padding: var(--dp-scheduler-timeheader-padding);"), e.add(".scheduler_default_divider, .scheduler_default_splitter", "background-color: var(--dp-scheduler-border-color);"), e.add(".scheduler_default_divider_horizontal", "background-color: var(--dp-scheduler-border-color);"), e.add(".scheduler_default_matrix_vertical_line", "background-color: var(--dp-scheduler-grid-line-color);"), e.add(".scheduler_default_matrix_vertical_break", "background-color: var(--dp-scheduler-grid-line-break-color);"), e.add(".scheduler_default_matrix_horizontal_line", "background-color: var(--dp-scheduler-grid-line-color);"), e.add(".scheduler_default_resourcedivider", "background-color: var(--dp-scheduler-border-color);"), e.add(".scheduler_default_shadow_inner", "box-sizing: border-box; background-color: var(--dp-scheduler-shadow-color); border: 1px solid var(--dp-scheduler-shadow-border-color); border-radius: var(--dp-scheduler-event-border-radius); opacity: 0.5; height: 100%;"), e.add(".scheduler_default_shadow", "box-shadow: 0 2px 5px rgba(0,0,0,.2); border-radius: var(--dp-scheduler-event-border-radius);"), e.add(".scheduler_default_event", "font-size: var(--dp-scheduler-font-size); color: var(--dp-scheduler-event-color); border-radius: var(--dp-scheduler-event-border-radius); box-shadow: var(--dp-scheduler-event-box-shadow);"), e.add(".scheduler_default_event_inner", "position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; border-radius: var(--dp-scheduler-event-border-radius); padding: var(--dp-scheduler-event-padding); overflow: hidden; border: var(--dp-scheduler-event-border); display: flex; align-items: var(--dp-scheduler-event-vertical-align); justify-content: var(--dp-scheduler-event-horizontal-align); background: var(--dp-scheduler-event-background);"), e.add(".scheduler_default_event_bar", "display: var(--dp-scheduler-event-bar-display);top: var(--dp-scheduler-event-bar-top); left: var(--dp-scheduler-event-bar-left); right: var(--dp-scheduler-event-bar-right); height: var(--dp-scheduler-event-bar-height); background-color: var(--dp-scheduler-event-bar-bg-color);"), e.add(".scheduler_default_event_bar_inner", "position:absolute; height: var(--dp-scheduler-event-bar-height); background-color: var(--dp-scheduler-event-bar-color);"), e.add(".scheduler_default_event_float", "display: flex; align-items: center;"), e.add(".scheduler_default_event_float_inner", "padding: var(--dp-scheduler-event-padding) var(--dp-scheduler-event-padding) var(--dp-scheduler-event-padding) 8px; position: relative;"), 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: calc(50% - 5px); left:-4px;'), e.add(".scheduler_default_event_focus", "outline: var(--dp-scheduler-focus-outline-color) 2px solid; z-index: 100; opacity: 0.5;"), e.add(".scheduler_default_columnheader_inner", "font-weight: bold;"), e.add(".scheduler_default_columnheader_splitter", "box-sizing: border-box; border-right: 1px solid var(--dp-scheduler-border-color);"), e.add(".scheduler_default_columnheader_splitter:hover", "background-color: var(--dp-scheduler-border-color);"), e.add(".scheduler_default_columnheader_cell_inner", "position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; padding: 2px; display: flex; align-items: center;"), e.add(".scheduler_default_cell", "background-color: var(--dp-scheduler-cell-bg-color);"), e.add(".scheduler_default_cell.scheduler_default_cell_business", "background-color: var(--dp-scheduler-cell-business-bg-color);"), e.add(".scheduler_default_cell.scheduler_default_cell_business.scheduler_default_cell_selected, .scheduler_default_cell.scheduler_default_cell_selected", "background-color: #ccc; background-image: linear-gradient(45deg, rgba(255,255,255,0.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.2) 75%, transparent 75%, transparent); background-size: 20px 20px;"), e.add(".scheduler_default_tree_image_no_children", ""), e.add(".scheduler_default_tree_image_expand", "background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnPjxwYXRoIGQ9J00gMS41IDAuNSBMIDYuNSA1IEwgMS41IDkuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6Izk5OTk5OTtzdHJva2Utd2lkdGg6MjtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLWxpbmVjYXA6YnV0dCcgLz48L3N2Zz4=);"), e.add(".scheduler_default_tree_image_collapse", "background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMS41IEwgNSA2LjUgTCA5LjUgMS41JyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojOTk5OTk5O3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==);"), e.add(".scheduler_default_event_delete", "background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTInIGhlaWdodD0nMTInIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgMTEuNSAxMS41IE0gMC41IDExLjUgTCAxMS41IDAuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6IzQ2NDY0NjtzdHJva2Utd2lkdGg6MztzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLWxpbmVjYXA6YnV0dCcgLz48L3N2Zz4=) no-repeat center center; opacity: 0.6; cursor: pointer;"), e.add(".scheduler_default_event_delete:hover", "opacity: 1;"), e.add(".scheduler_default_rowmove_handle", "background-repeat: no-repeat; background-position: center center; background-color: #ccc; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAKCAYAAACT+/8OAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAClJREFUGFdj+P//P4O9vX2Bg4NDP4gNFgBytgPxebgAMsYuQGMz/jMAAFsTZDPYJlDHAAAAAElFTkSuQmCC); cursor: move;"), e.add(".scheduler_default_rowmove_source", "background-color: black; opacity: 0.2;"), e.add(".scheduler_default_rowmove_position_before, .scheduler_default_rowmove_position_after", "background-color: #999; height: 2px;"), e.add(".scheduler_default_rowmove_position_child", "margin-left: 20px; background-color: #999; height: 2px;"), e.add(".scheduler_default_rowmove_position_forbidden", "background-color: #cc0000; height: 2px; margin-left: 20px;"), e.add(".scheduler_default_link_horizontal", "border-bottom-style: solid; border-bottom-color: var(--dp-scheduler-link-color);"), e.add(".scheduler_default_link_vertical", "border-right-style: solid; border-right-color: var(--dp-scheduler-link-color);"), e.add(".scheduler_default_link_arrow_right:before", "content: ''; border-width: 6px; border-color: transparent transparent transparent var(--dp-scheduler-link-color); border-style: solid; width: 0; height:0; position: absolute;"), e.add(".scheduler_default_link_arrow_left:before", "content: ''; border-width: 6px; border-color: transparent var(--dp-scheduler-link-color) transparent transparent; border-style: solid; width: 0; height:0; position: absolute;"), e.add(".scheduler_default_link_arrow_down:before", "content: ''; border-width: 6px; border-color: var(--dp-scheduler-link-color) transparent transparent transparent; border-style: solid; width: 0; height:0; position: absolute;"), e.add(".scheduler_default_link_arrow_up:before", "content: ''; border-width: 6px; border-color: transparent transparent var(--dp-scheduler-link-color) transparent; border-style: solid; width: 0; height:0; position: absolute;"), e.add(".scheduler_default_link_mshadow.scheduler_default_link_horizontal", "border-bottom-color: #aaaaaa;"), e.add(".scheduler_default_link_mshadow.scheduler_default_link_vertical", "border-right-color: #aaaaaa;"), e.add(".scheduler_default_link_mshadow.scheduler_default_link_arrow_right:before", "border-color: transparent transparent transparent #aaaaaa;"), e.add(".scheduler_default_link_mshadow.scheduler_default_link_arrow_left:before", "border-color: transparent #aaaaaa transparent transparent;"), e.add(".scheduler_default_link_mshadow.scheduler_default_link_arrow_down:before", "border-color: #aaaaaa transparent transparent transparent;"), e.add(".scheduler_default_link_mshadow.scheduler_default_link_arrow_up:before", "border-color: transparent transparent #aaaaaa transparent;"), e.add(".scheduler_default_block", "background-color: #808080; opacity: 0.5;"), e.add(".scheduler_default_main .scheduler_default_event_group", "box-sizing: border-box; font-size: 13px; color: #666; padding: 2px; overflow:hidden; border:1px solid var(--dp-scheduler-event-border-color); background-color: #fff; display: flex; align-items: center; white-space: nowrap;"), e.add(".scheduler_default_main .scheduler_default_header_icon", "box-sizing: border-box; border: 1px solid var(--dp-scheduler-border-color); background-color: var(--dp-scheduler-header-bg-color); color: var(--dp-scheduler-header-color);"), e.add(".scheduler_default_header_icon:hover", "background-color: #ccc;"), e.add(".scheduler_default_header_icon_hide:before", "content: '\\00AB';"), e.add(".scheduler_default_header_icon_show:before", "content: '\\00BB';"), e.add(".scheduler_default_row_new .scheduler_default_rowheader_inner", "padding-left: 10px; color: #666; cursor: text; background-position: 0px 50%; background-repeat: no-repeat; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABUSURBVChTY0ACslAaK2CC0iCQDMSlECYmQFYIAl1AjFUxukIQwKoYm0IQwFCMSyEIaEJpMMClcD4Qp0CYEIBNIUzRPzAPCtAVYlWEDgyAGIdTGBgAbqEJYyjqa3oAAAAASUVORK5CYII=);"), e.add(".scheduler_default_row_new .scheduler_default_rowheader_inner:hover", "background: white; color: white;"), e.add(".scheduler_default_rowheader textarea", "padding: 3px;"), e.add(".scheduler_default_rowheader_scroll", "cursor: default; background: var(--dp-scheduler-header-bg-color);"), e.add(".scheduler_default_shadow_forbidden .scheduler_default_shadow_inner, .scheduler_default_shadow_overlap .scheduler_default_shadow_inner", "border: 1px solid #cc0000; background: #cc4125;"), e.add(".scheduler_default_event_moving_source", "opacity: 0.5;"), e.add(".scheduler_default_linkpoint", "background-color: white; border: 1px solid gray; border-radius: 5px;"), e.add(".scheduler_default_linkpoint.scheduler_default_linkpoint_hover", "background-color: black;"), e.add(".scheduler_default_event.scheduler_default_event_version .scheduler_default_event_inner", "overflow:hidden; background-color: #cfdde8; background-image: linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent); background-size: 20px 20px;"), e.add(".scheduler_default_crosshair_vertical, .scheduler_default_crosshair_horizontal, .scheduler_default_crosshair_left, .scheduler_default_crosshair_top", "background-color: gray; opacity: 0.2;"), e.add(".scheduler_default_link_dot", "border-radius: 10px; background-color: var(--dp-scheduler-link-color);"), e.add(".scheduler_default_task_milestone .scheduler_default_event_inner", "position:absolute; top:16%; left:16%; right:16%; bottom:16%; background: var(--dp-scheduler-event-milestone-color); border: 0px none; transform: rotate(45deg); filter: none;"), e.add(".scheduler_default_event_left, .scheduler_default_event_right", "white-space: nowrap; color: #666; cursor: default; display: flex; align-items: center;");
208
+ 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(".calendar_default_main", "--dp-calendar-border-color: #c0c0c0;--dp-calendar-font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;--dp-calendar-font-size: 13px;--dp-calendar-header-bg-color: #f3f3f3;--dp-calendar-header-color: #333;--dp-calendar-colheader-padding: 0px;--dp-calendar-rowheader-font-size: 16pt;--dp-calendar-rowheader-padding: 3px;--dp-calendar-cell-bg-color: #f9f9f9;--dp-calendar-cell-business-bg-color: #ffffff;--dp-calendar-cell-border-color: #ddd;--dp-calendar-colheader-horizontal-align: center;--dp-calendar-colheader-vertical-align: center;--dp-calendar-allday-event-color: #333;--dp-calendar-allday-event-border-color: #999;--dp-calendar-allday-event-border: 1px solid var(--dp-calendar-allday-event-border-color);--dp-calendar-allday-event-border-radius: 0px;--dp-calendar-allday-event-bg-top-color: #ffffff;--dp-calendar-allday-event-bg-bottom-color: #eeeeee;--dp-calendar-allday-event-background: linear-gradient(to bottom, var(--dp-calendar-allday-event-bg-top-color) 0%, var(--dp-calendar-allday-event-bg-bottom-color) 100%);--dp-calendar-allday-event-box-shadow: none;--dp-calendar-allday-event-padding: 4px;--dp-calendar-allday-event-horizontal-align: flex-start;--dp-calendar-event-color: #333;--dp-calendar-event-border-color: #999;--dp-calendar-event-border: 1px solid var(--dp-calendar-event-border-color);--dp-calendar-event-border-radius: 0px;--dp-calendar-event-box-shadow: none;--dp-calendar-event-bg-top-color: #ffffff;--dp-calendar-event-bg-bottom-color: #eeeeee;--dp-calendar-event-background: linear-gradient(to bottom, var(--dp-calendar-event-bg-top-color) 0%, var(--dp-calendar-event-bg-bottom-color) 100%);--dp-calendar-event-bar-bg-color: #9dc8e8;--dp-calendar-event-bar-color: #1066a8;--dp-calendar-event-bar-width: 6px;--dp-calendar-event-bar-left: 0px;--dp-calendar-event-bar-bottom: 0px;--dp-calendar-event-bar-top: 0px;--dp-calendar-event-bar-display: block;--dp-calendar-event-padding: 2px;--dp-calendar-event-padding-left: 8px;--dp-calendar-message-bg-color: #ffa216;--dp-calendar-message-color: #ffffff;--dp-calendar-message-padding: 10px;--dp-calendar-message-opacity: 0.9;--dp-calendar-selected-event-bg-color: #ddd;--dp-calendar-shadow-color: #bbbbbb;--dp-calendar-shadow-border-color: #888888;--dp-calendar-forbidden-shadow-border-color: #cc0000;--dp-calendar-forbidden-shadow-bg-color: #cc4125;--dp-calendar-now-indicator-color: red;--dp-calendar-scroll-bg-color: #f3f3f3;"), e.add(".calendar_default_main *, .calendar_default_main *:before, .calendar_default_main *:after", "box-sizing: content-box;"), e.add(".calendar_default_main", "border:1px solid var(--dp-calendar-border-color); font-family:var(--dp-calendar-font-family); font-size:var(--dp-calendar-font-size);"), e.add(".calendar_default_rowheader_inner, .calendar_default_cornerright_inner, .calendar_default_corner_inner, .calendar_default_colheader_inner, .calendar_default_alldayheader_inner", "color: var(--dp-calendar-header-color); background: var(--dp-calendar-header-bg-color);"), e.add(".calendar_default_colheader_back", "background: var(--dp-calendar-header-bg-color); border-bottom: 1px solid red;"), e.add(".calendar_default_colheader_back_inner", "position: absolute; inset: 0; border-bottom: 1px solid var(--dp-calendar-border-color);"), e.add(".calendar_default_cornerright_inner", "position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; border-bottom: 1px solid var(--dp-calendar-border-color);"), e.add(".calendar_default_direction_rtl .calendar_default_cornerright_inner", "border-right: 1px solid var(--dp-calendar-border-color);"), e.add(".calendar_default_rowheader_inner", "font-size: var(--dp-calendar-rowheader-font-size); text-align: right; position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; border-right: 1px solid var(--dp-calendar-border-color); border-bottom: 1px solid var(--dp-calendar-border-color); padding: var(--dp-calendar-rowheader-padding);"), e.add(".calendar_default_rowheader_simple .calendar_default_rowheader_inner", "font-size: inherit; display: flex; align-items: center; justify-content: center; white-space: nowrap;"), 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 var(--dp-calendar-border-color); border-bottom: 1px solid var(--dp-calendar-border-color);"), 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; padding: var(--dp-calendar-colheader-padding);border-right: 1px solid var(--dp-calendar-border-color); border-bottom: 1px solid var(--dp-calendar-border-color); display: flex; align-items: var(--dp-calendar-colheader-vertical-align); justify-content: var(--dp-calendar-colheader-horizontal-align);"), e.add(".calendar_default_cell_inner", "position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; border-right: 1px solid var(--dp-calendar-cell-border-color); border-bottom: 1px solid var(--dp-calendar-cell-border-color); background: var(--dp-calendar-cell-bg-color);"), e.add(".calendar_default_cell_business .calendar_default_cell_inner", "background: var(--dp-calendar-cell-business-bg-color);"), e.add(".calendar_default_alldayheader_inner", "text-align: center; position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; border-right: 1px solid var(--dp-calendar-border-color); border-bottom: 1px solid var(--dp-calendar-border-color);"), e.add(".calendar_default_message", "opacity: var(--dp-calendar-message-opacity); padding: var(--dp-calendar-message-padding); color: var(--dp-calendar-message-color); background: var(--dp-calendar-message-bg-color);"), e.add(".calendar_default_event_inner", "color: var(--dp-calendar-event-color); border: var(--dp-calendar-event-border); border-radius: var(--dp-calendar-event-border-radius); background: var(--dp-calendar-event-background);"), e.add(".calendar_default_alldayevent", "box-shadow: var(--dp-calendar-allday-event-box-shadow); border-radius: var(--dp-calendar-allday-event-border-radius);"), e.add(".calendar_default_alldayevent_inner", "color: var(--dp-calendar-allday-event-color); border: var(--dp-calendar-allday-event-border); border-radius: var(--dp-calendar-allday-event-border-radius); background: var(--dp-calendar-allday-event-background);"), e.add(".calendar_default_event_bar", "display: var(--dp-calendar-event-bar-display); top: var(--dp-calendar-event-bar-top); bottom: var(--dp-calendar-event-bar-bottom); left: var(--dp-calendar-event-bar-left); width: var(--dp-calendar-event-bar-width); background-color: var(--dp-calendar-event-bar-bg-color);"), e.add(".calendar_default_direction_rtl .calendar_default_event_bar", "top: 0px; bottom: 0px; right: 0px; width: var(--dp-calendar-event-bar-width); background-color: var(--dp-calendar-event-bar-bg-color);"), e.add(".calendar_default_event_bar_inner", "position: absolute; width: var(--dp-calendar-event-bar-width); background-color: var(--dp-calendar-event-bar-color);"), e.add(".calendar_default_selected .calendar_default_event_inner", "background: var(--dp-calendar-selected-event-bg-color);"), e.add(".calendar_default_alldayevent_inner", "position: absolute; top: 0px; bottom: 0px; left: 0px; right: 0px; overflow: hidden; padding: var(--dp-calendar-allday-event-padding); margin-right: 0px; display: flex; align-items: center; justify-content: var(--dp-calendar-allday-event-horizontal-align);"), e.add(".calendar_default_event_withheader .calendar_default_event_inner", "padding-top: 15px;"), e.add(".calendar_default_event", "box-shadow: var(--dp-calendar-event-box-shadow); border-radius: var(--dp-calendar-event-border-radius); cursor: default;"), e.add(".calendar_default_event_inner", "position: absolute; overflow: hidden; top: 0px; bottom: 0px; left: 0px; right: 0px; padding: var(--dp-calendar-event-padding) var(--dp-calendar-event-padding) var(--dp-calendar-event-padding) var(--dp-calendar-event-padding-left);"), e.add(".calendar_default_direction_rtl .calendar_default_event_inner", "padding: 2px 8px 2px 2px;"), e.add(".calendar_default_shadow_inner", "box-sizing: border-box; background-color: var(--dp-calendar-shadow-color); border: 1px solid var(--dp-calendar-shadow-border-color); opacity: 0.5; height: 100%;"), e.add(".calendar_default_shadow", "box-shadow: 0 2px 5px rgba(0,0,0,0.2);"), e.add(".calendar_default_shadow_forbidden:after", "content: ''; position: absolute; top: 5px; left: calc(50% - 10px); border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; background-image: url('data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2720%27 height=%2720%27 viewBox=%270 0 20 20%27%3E%3Ccircle cx=%2710%27 cy=%2710%27 r=%279%27 fill=%27%23cc0000aa%27 /%3E%3Cline x1=%275%27 y1=%275%27 x2=%2715%27 y2=%2715%27 stroke=%27white%27 stroke-width=%271.5%27/%3E%3Cline x1=%2715%27 y1=%275%27 x2=%275%27 y2=%2715%27 stroke=%27white%27 stroke-width=%271.5%27/%3E%3C/svg%3E'); background-repeat: no-repeat; background-position: center; background-size: contain;"), e.add(".calendar_default_shadow_forbidden .calendar_default_shadow_inner", "border: 1px solid var(--dp-calendar-forbidden-shadow-border-color); background: var(--dp-calendar-forbidden-shadow-bg-color);"), 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: var(--dp-calendar-now-indicator-color);"), e.add(".calendar_default_now:before", "content: ''; top: -5px; border-width: 5px; border-color: transparent transparent transparent var(--dp-calendar-now-indicator-color); border-style: solid; width: 0px; height: 0px; position: absolute; -moz-transform: scale(.9999);"), e.add(".calendar_default_shadow_top", "box-sizing: border-box; padding: 2px; border: 1px solid var(--dp-calendar-border-color); background: linear-gradient(to bottom, #ffffff 0%, #eeeeee); pointer-events: none;"), e.add(".calendar_default_shadow_bottom", "box-sizing: border-box; padding: 2px; border: 1px solid var(--dp-calendar-border-color); background: linear-gradient(to bottom, #ffffff 0%, #eeeeee); pointer-events: none;"), 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: var(--dp-calendar-header-bg-color);"), e.add(".calendar_default_event_moving_source", "opacity: 0.5;"), e.add(".calendar_default_colmove_handle", "background-repeat: no-repeat; background-position: center center; background-color: #ccc; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAKCAYAAACT+/8OAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAClJREFUGFdj+P//P4O9vX2Bg4NDP4gNFgBytgPxebgAMsYuQGMz/jMAAFsTZDPYJlDHAAAAAElFTkSuQmCC); cursor: move;"), e.add(".calendar_default_colheader:hover .calendar_default_colheader_splitter", "background-color: #c0c0c0;"), e.add(".calendar_default_colmove_source", "background-color: black; opacity: 0.5;"), e.add(".calendar_default_colmove_position_before", "box-sizing: border-box; border-left: 2px solid #999999;"), e.add(".calendar_default_colmove_position_before:before", "content: ''; border-width: 6px; border-color: transparent #999999 transparent transparent; border-style: solid; width: 0px; height: 0px; position: absolute;"), e.add(".calendar_default_colmove_position_after", "box-sizing: border-box; border-right: 2px solid #999999;"), e.add(".calendar_default_colmove_position_after:before", "content: ''; border-width: 6px; border-color: transparent transparent transparent #999999; border-style: solid; width: 0px; height: 0px; position: absolute;"), e.add(".calendar_default_colmove_position_child", "box-sizing: border-box; border-bottom: 2px solid #999999;"), e.add(".calendar_default_colmove_position_child:before", "content: ''; border-width: 6px; border-color: #999999 transparent transparent transparent; border-style: solid; width: 0px; height: 0px; position: absolute;"), e.add(".calendar_default_colmove_position_forbidden", "border-top: 2px solid red;"), e.add(".calendar_default_colheader .calendar_default_colheader_splitter:hover", "background-color: #999999;"), e.add(".calendar_default_block", "background-color: #808080; opacity: 0.5;"), e.add(".month_default_main", "--dp-month-border-color: #c0c0c0;--dp-month-font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;--dp-month-font-size: 13px;--dp-month-cell-border-color: #ddd;--dp-month-cell-bg-color: #f9f9f9;--dp-month-cell-business-bg-color: #ffffff;--dp-month-event-color: #333;--dp-month-event-border-color: #999;--dp-month-event-border: 1px solid var(--dp-month-event-border-color);--dp-month-event-bg-top-color: #ffffff;--dp-month-event-bg-bottom-color: #eeeeee;--dp-month-event-background: linear-gradient(to bottom, var(--dp-month-event-bg-top-color) 0%, var(--dp-month-event-bg-bottom-color) 100%);--dp-month-event-horizontal-align: flex-start;--dp-month-event-vertical-align: center;--dp-month-event-padding: 2px;--dp-month-event-padding-left: 10px;--dp-month-event-padding-rtl: 2px 10px 2px 1px;--dp-month-event-border-radius: 0px;--dp-month-event-box-shadow: none;--dp-month-event-bar-top: 1px;--dp-month-event-bar-left: 2px;--dp-month-event-bar-bottom: 1px;--dp-month-event-bar-width: 6px;--dp-month-event-bar-color: #1066a8;--dp-month-event-bar-display: block;--dp-month-header-bg-color: #f3f3f3;--dp-month-header-color: #333;--dp-month-header-horizontal-align: center;--dp-month-header-vertical-align: center;--dp-month-header-padding: 0px;--dp-month-message-bg-color: #ffa216;--dp-month-message-color: #ffffff;--dp-month-message-padding: 10px;--dp-month-selected-event-bg-color: #ddd;--dp-month-shadow-color: #bbbbbb;--dp-month-shadow-border-color: #888888;"), e.add(".month_default_main *, .month_default_main *:before, .month_default_main *:after", "box-sizing: content-box; "), e.add(".month_default_main", "border: 1px solid var(--dp-month-border-color); font-family: var(--dp-month-font-family); font-size: var(--dp-month-font-size); color: #333; "), e.add(".month_default_cell_inner", "border-right: 1px solid var(--dp-month-cell-border-color); border-bottom: 1px solid var(--dp-month-cell-border-color); position: absolute; top: 0; left: 0; bottom: 0; right: 0; background-color: var(--dp-month-cell-bg-color); "), e.add(".month_default_cell_business .month_default_cell_inner", "background-color: var(--dp-month-cell-business-bg-color); "), e.add(".month_default_cell_header", "text-align: right; padding: 4px; box-sizing: border-box; "), e.add(".month_default_header_inner", "position: absolute; inset: 0; border-right: 1px solid var(--dp-month-border-color); border-bottom: 1px solid var(--dp-month-border-color); cursor: default; color: var(--dp-month-header-color); background: var(--dp-month-header-bg-color); overflow: hidden; display: flex; align-items: var(--dp-month-header-vertical-align); justify-content: var(--dp-month-header-horizontal-align); padding: var(--dp-month-header-padding);"), e.add(".month_default_message", "opacity: 0.9; color: var(--dp-month-message-color); background: var(--dp-month-message-bg-color); padding: var(--dp-month-message-padding); "), e.add(".month_default_event", "border-radius: var(--dp-month-event-border-radius); box-shadow: var(--dp-month-event-box-shadow); "), e.add(".month_default_event_inner", "position: absolute; top: 0; bottom: 0; left: 1px; right: 1px; overflow: hidden; padding: var(--dp-month-event-padding) var(--dp-month-event-padding) var(--dp-month-event-padding) var(--dp-month-event-padding-left); color: var(--dp-month-event-color); background: var(--dp-month-event-background); border: var(--dp-month-event-border); border-radius: var(--dp-month-event-border-radius); display: flex; align-items: var(--dp-month-event-vertical-align); justify-content: var(--dp-month-event-horizontal-align); "), e.add(".month_default_direction_rtl .month_default_event_inner", "right: 2px; padding: var(--dp-month-event-padding-rtl); "), e.add(".month_default_event_continueright .month_default_event_inner", "border-top-right-radius: 0; border-bottom-right-radius: 0; border-right-style: dotted; "), e.add(".month_default_event_continueleft .month_default_event_inner", "border-top-left-radius: 0; border-bottom-left-radius: 0; border-left-style: dotted; "), e.add(".month_default_event_bar", "display: var(--dp-month-event-bar-display); top: var(--dp-month-event-bar-top); bottom: var(--dp-month-event-bar-bottom); left: var(--dp-month-event-bar-left); width: var(--dp-month-event-bar-width); "), e.add(".month_default_direction_rtl .month_default_event_bar", "top: 1px; bottom: 1px; right: 3px; width: var(--dp-month-event-bar-width); "), e.add(".month_default_event_bar_inner", "position: absolute; width: var(--dp-month-event-bar-width); background-color: var(--dp-month-event-bar-color); "), e.add(".month_default_event_continueleft .month_default_event_bar", "display: none; "), e.add(".month_default_selected .month_default_event_inner", "background: var(--dp-month-selected-event-bg-color); "), e.add(".month_default_shadow_inner", "box-sizing: border-box; background-color: var(--dp-month-shadow-color); border: 1px solid var(--dp-month-shadow-border-color); opacity: 0.5; height: 100%; "), e.add(".month_default_shadow", "box-shadow: 0 2px 5px rgba(0, 0, 0, .2); "), 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; "), e.add(".month_default_event_timeleft", "color: #ccc; font-size: 11px; display: flex; align-items: center; "),
209
+ e.add(".month_default_event_timeright", "color: #ccc; font-size: 11px; display: flex; align-items: center; justify-content: end; "), e.add(".month_default_loading", "background-color: orange; color: white; padding: 2px; "), e.add(".month_default_shadow_forbidden:after", "content: ''; position: absolute; top: calc(50% - 10px); left: 10px; border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; background-image: url('data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2720%27 height=%2720%27 viewBox=%270 0 20 20%27%3E%3Ccircle cx=%2710%27 cy=%2710%27 r=%279%27 fill=%27%23cc0000aa%27 /%3E%3Cline x1=%275%27 y1=%275%27 x2=%2715%27 y2=%2715%27 stroke=%27white%27 stroke-width=%271.5%27/%3E%3Cline x1=%2715%27 y1=%275%27 x2=%275%27 y2=%2715%27 stroke=%27white%27 stroke-width=%271.5%27/%3E%3C/svg%3E'); background-repeat: no-repeat; background-position: center; background-size: contain; "), e.add(".month_default_shadow_forbidden .month_default_shadow_inner", "border: 1px solid #cc0000; background: #cc4125; "), e.add(".navigator_default_main", "--dp-nav-border-color: #c0c0c0;--dp-nav-font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;--dp-nav-font-size: 12px;--dp-nav-title-color: #333;--dp-nav-title-bg-color: #f3f3f3;--dp-nav-dayheader-color: #333;--dp-nav-dayheader-bg-color: #ffffff;--dp-nav-weeknumber-color: #999;--dp-nav-weeknumber-bg-color: #ffffff;--dp-nav-day-color: #000;--dp-nav-day-bg-color: #ffffff;--dp-nav-dayother-color: gray;--dp-nav-dayother-bg-color: #ffffff;--dp-nav-weekend-bg-color: #f0f0f0;--dp-nav-select-bg-color: #FFE794;--dp-nav-text-align: center;"), e.add(".navigator_default_main *, .navigator_default_main *:before, .navigator_default_main *:after", "box-sizing: content-box;"), e.add(".navigator_default_main", "border-left: 1px solid var(--dp-nav-border-color);border-right: 1px solid var(--dp-nav-border-color);border-bottom: 1px solid var(--dp-nav-border-color);background-color: white;color: var(--dp-nav-day-color);box-sizing: content-box;"), e.add(".navigator_default_month", "font-family: var(--dp-nav-font-family);font-size: var(--dp-nav-font-size);"), e.add(".navigator_default_day", "color: var(--dp-nav-day-color); background-color: var(--dp-nav-day-bg-color);"), e.add(".navigator_default_weekend", "background-color: var(--dp-nav-weekend-bg-color);"), e.add(".navigator_default_dayheader", "color: var(--dp-nav-dayheader-color);background-color: var(--dp-nav-dayheader-bg-color);text-align: var(--dp-nav-text-align);padding: 0px;"), e.add(".navigator_default_line", "border-bottom: 1px solid var(--dp-nav-border-color);"), e.add(".navigator_default_dayother", "color: var(--dp-nav-dayother-color); background-color: var(--dp-nav-dayother-bg-color);"), e.add(".navigator_default_todaybox", "border: 1px solid red;"), e.add(".navigator_default_title, .navigator_default_titleleft, .navigator_default_titleright", "box-sizing: border-box; border-top: 1px solid var(--dp-nav-border-color);border-bottom: 1px solid var(--dp-nav-border-color);color: var(--dp-nav-title-color);background: var(--dp-nav-title-bg-color);text-align: var(--dp-nav-text-align);"), e.add(".navigator_default_busy", "font-weight: bold;"), e.add(".navigator_default_cell", "text-align: var(--dp-nav-text-align);"), e.add(".navigator_default_select .navigator_default_cell_box", "background-color: var(--dp-nav-select-bg-color);opacity: 0.5;"), e.add(".navigator_default_weeknumber", "text-align: var(--dp-nav-text-align);color: var(--dp-nav-weeknumber-color);background: var(--dp-nav-weeknumber-bg-color);"), e.add(".navigator_default_cell_text", "cursor: pointer;"), e.add(".navigator_default_todaysection", "box-sizing: border-box; display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--dp-nav-border-color);"), e.add(".navigator_default_todaysection_button", "cursor: pointer; color: #333; background-color: #f0f0f0; border: 1px solid var(--dp-nav-border-color); padding: 5px 10px; border-radius: 0px; "), e.add(".scheduler_default_main", '--dp-scheduler-border-color: #c0c0c0;--dp-scheduler-border-inner-color: #e0e0e0;--dp-scheduler-cell-bg-color: #f9f9f9;--dp-scheduler-cell-business-bg-color: #ffffff;--dp-scheduler-event-background: linear-gradient(to bottom, var(--dp-scheduler-event-bg-top-color) 0%, var(--dp-scheduler-event-bg-bottom-color) 100%);--dp-scheduler-event-bg-bottom-color: #eeeeee;--dp-scheduler-event-bg-top-color: #ffffff;--dp-scheduler-event-bar-bg-color: #9dc8e8;--dp-scheduler-event-bar-color: #1066a8;--dp-scheduler-event-bar-display: block;--dp-scheduler-event-bar-height: 4px;--dp-scheduler-event-bar-left: 0px;--dp-scheduler-event-bar-right: 0px;--dp-scheduler-event-bar-top: 0px;--dp-scheduler-event-border: 1px solid var(--dp-scheduler-event-border-color);--dp-scheduler-event-border-color: #ccc;--dp-scheduler-event-border-radius: 0px;--dp-scheduler-event-box-shadow: none;--dp-scheduler-event-color: #333;--dp-scheduler-event-horizontal-align: flex-start;--dp-scheduler-event-milestone-color: #38761d;--dp-scheduler-event-padding: 2px;--dp-scheduler-event-selected-bg-color: #ddd;--dp-scheduler-event-vertical-align: center;--dp-scheduler-focus-outline-color: red;--dp-scheduler-font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--dp-scheduler-font-size: 13px;--dp-scheduler-grid-line-break-color: #999;--dp-scheduler-grid-line-color: #eee;--dp-scheduler-header-bg-color: #f3f3f3;--dp-scheduler-header-color: #333;--dp-scheduler-link-color: #cc0000;--dp-scheduler-message-bg-color: #ffa216;--dp-scheduler-message-color: #ffffff;--dp-scheduler-message-padding: 10px;--dp-scheduler-rowheader-padding: 7px;--dp-scheduler-rowheader-vertical-align: center;--dp-scheduler-selectionrectangle-color: #1066a8;--dp-scheduler-shadow-border-color: #888888;--dp-scheduler-shadow-color: #bbbbbb;--dp-scheduler-timeheader-horizontal-align: center;--dp-scheduler-timeheader-padding: 0px;--dp-scheduler-timeheader-vertical-align: center;'), e.add(".scheduler_default_main *, .scheduler_default_main *:before, .scheduler_default_main *:after", "box-sizing: content-box;"), e.add(".scheduler_default_main, .scheduler_default_main svg text", "box-sizing: content-box; border: 1px solid var(--dp-scheduler-border-color); font-family: var(--dp-scheduler-font-family); font-size: var(--dp-scheduler-font-size);"), e.add(".scheduler_default_selected .scheduler_default_event_inner", "background: var(--dp-scheduler-event-selected-bg-color);"), e.add(".scheduler_default_timeheader_scroll", "background: var(--dp-scheduler-header-bg-color);"), e.add(".scheduler_default_message", "opacity: 0.9; padding: var(--dp-scheduler-message-padding); color: var(--dp-scheduler-message-color); background: var(--dp-scheduler-message-bg-color);"), e.add(".scheduler_default_timeheadergroup,.scheduler_default_timeheadercol", "color: var(--dp-scheduler-header-color); background: var(--dp-scheduler-header-bg-color);"), e.add(".scheduler_default_rowheader,.scheduler_default_corner", "color: var(--dp-scheduler-header-color); background: var(--dp-scheduler-header-bg-color);"), e.add(".scheduler_default_rowheader.scheduler_default_rowheader_selected", "background-color: #aaa; background-image: linear-gradient(45deg, rgba(255,255,255,0.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.2) 75%, transparent 75%, transparent); background-size: 20px 20px;"), e.add(".scheduler_default_rowheader_inner", "position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; border-right: 1px solid var(--dp-scheduler-border-inner-color); padding: var(--dp-scheduler-rowheader-padding); display: flex; align-items: var(--dp-scheduler-rowheader-vertical-align);"), e.add(".scheduler_default_timeheadergroup_inner, .scheduler_default_timeheadercol_inner", "position: absolute; left: 0; right: 0; top: 0; bottom: 0; border-right: 1px solid var(--dp-scheduler-border-color);"), e.add(".scheduler_default_timeheadergroup_inner", "border-bottom: 1px solid var(--dp-scheduler-border-color);"), e.add(".scheduler_default_timeheadergroup_inner, .scheduler_default_timeheadercol_inner, .scheduler_default_timeheader_float", "display: flex; align-items: var(--dp-scheduler-timeheader-vertical-align); justify-content: var(--dp-scheduler-timeheader-horizontal-align); padding: var(--dp-scheduler-timeheader-padding);"), e.add(".scheduler_default_divider, .scheduler_default_splitter", "background-color: var(--dp-scheduler-border-color);"), e.add(".scheduler_default_divider_horizontal", "background-color: var(--dp-scheduler-border-color);"), e.add(".scheduler_default_matrix_vertical_line", "background-color: var(--dp-scheduler-grid-line-color);"), e.add(".scheduler_default_matrix_vertical_break", "background-color: var(--dp-scheduler-grid-line-break-color);"), e.add(".scheduler_default_matrix_horizontal_line", "background-color: var(--dp-scheduler-grid-line-color);"), e.add(".scheduler_default_resourcedivider", "background-color: var(--dp-scheduler-border-color);"), e.add(".scheduler_default_shadow_inner", "box-sizing: border-box; background-color: var(--dp-scheduler-shadow-color); border: 1px solid var(--dp-scheduler-shadow-border-color); border-radius: var(--dp-scheduler-event-border-radius); opacity: 0.5; height: 100%;"), e.add(".scheduler_default_shadow", "box-shadow: 0 2px 5px rgba(0,0,0,.2); border-radius: var(--dp-scheduler-event-border-radius);"), e.add(".scheduler_default_event", "font-size: var(--dp-scheduler-font-size); color: var(--dp-scheduler-event-color); border-radius: var(--dp-scheduler-event-border-radius); box-shadow: var(--dp-scheduler-event-box-shadow);"), e.add(".scheduler_default_event_inner", "position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; border-radius: var(--dp-scheduler-event-border-radius); padding: var(--dp-scheduler-event-padding); overflow: hidden; border: var(--dp-scheduler-event-border); display: flex; align-items: var(--dp-scheduler-event-vertical-align); justify-content: var(--dp-scheduler-event-horizontal-align); background: var(--dp-scheduler-event-background);"), e.add(".scheduler_default_event_bar", "display: var(--dp-scheduler-event-bar-display);top: var(--dp-scheduler-event-bar-top); left: var(--dp-scheduler-event-bar-left); right: var(--dp-scheduler-event-bar-right); height: var(--dp-scheduler-event-bar-height); background-color: var(--dp-scheduler-event-bar-bg-color);"), e.add(".scheduler_default_event_bar_inner", "position:absolute; height: var(--dp-scheduler-event-bar-height); background-color: var(--dp-scheduler-event-bar-color);"), e.add(".scheduler_default_event_float", "display: flex; align-items: center;"), e.add(".scheduler_default_event_float_inner", "padding: var(--dp-scheduler-event-padding) var(--dp-scheduler-event-padding) var(--dp-scheduler-event-padding) 8px; position: relative;"), 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: calc(50% - 5px); left:-4px;'), e.add(".scheduler_default_event_focus", "outline: var(--dp-scheduler-focus-outline-color) 2px solid; z-index: 100; opacity: 0.5;"), e.add(".scheduler_default_columnheader_inner", "font-weight: bold;"), e.add(".scheduler_default_columnheader_splitter", "box-sizing: border-box; border-right: 1px solid var(--dp-scheduler-border-color);"), e.add(".scheduler_default_columnheader_splitter:hover", "background-color: var(--dp-scheduler-border-color);"), e.add(".scheduler_default_columnheader_cell_inner", "position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; padding: 2px; display: flex; align-items: center;"), e.add(".scheduler_default_cell", "background-color: var(--dp-scheduler-cell-bg-color);"), e.add(".scheduler_default_cell.scheduler_default_cell_business", "background-color: var(--dp-scheduler-cell-business-bg-color);"), e.add(".scheduler_default_cell.scheduler_default_cell_business.scheduler_default_cell_selected, .scheduler_default_cell.scheduler_default_cell_selected", "background-color: #ccc; background-image: linear-gradient(45deg, rgba(255,255,255,0.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.2) 75%, transparent 75%, transparent); background-size: 20px 20px;"), e.add(".scheduler_default_tree_image_no_children", ""), e.add(".scheduler_default_tree_image_expand", "background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnPjxwYXRoIGQ9J00gMS41IDAuNSBMIDYuNSA1IEwgMS41IDkuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6Izk5OTk5OTtzdHJva2Utd2lkdGg6MjtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLWxpbmVjYXA6YnV0dCcgLz48L3N2Zz4=);"), e.add(".scheduler_default_tree_image_collapse", "background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMS41IEwgNSA2LjUgTCA5LjUgMS41JyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojOTk5OTk5O3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==);"), e.add(".scheduler_default_event_delete", "background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTInIGhlaWdodD0nMTInIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgMTEuNSAxMS41IE0gMC41IDExLjUgTCAxMS41IDAuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6IzQ2NDY0NjtzdHJva2Utd2lkdGg6MztzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLWxpbmVjYXA6YnV0dCcgLz48L3N2Zz4=) no-repeat center center; opacity: 0.6; cursor: pointer;"), e.add(".scheduler_default_event_delete:hover", "opacity: 1;"), e.add(".scheduler_default_rowmove_handle", "background-repeat: no-repeat; background-position: center center; background-color: #ccc; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAKCAYAAACT+/8OAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAClJREFUGFdj+P//P4O9vX2Bg4NDP4gNFgBytgPxebgAMsYuQGMz/jMAAFsTZDPYJlDHAAAAAElFTkSuQmCC); cursor: move;"), e.add(".scheduler_default_rowmove_source", "background-color: black; opacity: 0.2;"), e.add(".scheduler_default_rowmove_position_before, .scheduler_default_rowmove_position_after", "background-color: #999; height: 2px;"), e.add(".scheduler_default_rowmove_position_child", "margin-left: 20px; background-color: #999; height: 2px;"), e.add(".scheduler_default_rowmove_position_forbidden", "background-color: #cc0000; height: 2px; margin-left: 20px;"), e.add(".scheduler_default_link_horizontal", "border-bottom-style: solid; border-bottom-color: var(--dp-scheduler-link-color);"), e.add(".scheduler_default_link_vertical", "border-right-style: solid; border-right-color: var(--dp-scheduler-link-color);"), e.add(".scheduler_default_link_arrow_right:before", "content: ''; border-width: 6px; border-color: transparent transparent transparent var(--dp-scheduler-link-color); border-style: solid; width: 0; height:0; position: absolute;"), e.add(".scheduler_default_link_arrow_left:before", "content: ''; border-width: 6px; border-color: transparent var(--dp-scheduler-link-color) transparent transparent; border-style: solid; width: 0; height:0; position: absolute;"), e.add(".scheduler_default_link_arrow_down:before", "content: ''; border-width: 6px; border-color: var(--dp-scheduler-link-color) transparent transparent transparent; border-style: solid; width: 0; height:0; position: absolute;"), e.add(".scheduler_default_link_arrow_up:before", "content: ''; border-width: 6px; border-color: transparent transparent var(--dp-scheduler-link-color) transparent; border-style: solid; width: 0; height:0; position: absolute;"), e.add(".scheduler_default_link_mshadow.scheduler_default_link_horizontal", "border-bottom-color: #aaaaaa;"), e.add(".scheduler_default_link_mshadow.scheduler_default_link_vertical", "border-right-color: #aaaaaa;"), e.add(".scheduler_default_link_mshadow.scheduler_default_link_arrow_right:before", "border-color: transparent transparent transparent #aaaaaa;"), e.add(".scheduler_default_link_mshadow.scheduler_default_link_arrow_left:before", "border-color: transparent #aaaaaa transparent transparent;"), e.add(".scheduler_default_link_mshadow.scheduler_default_link_arrow_down:before", "border-color: #aaaaaa transparent transparent transparent;"), e.add(".scheduler_default_link_mshadow.scheduler_default_link_arrow_up:before", "border-color: transparent transparent #aaaaaa transparent;"), e.add(".scheduler_default_block", "background-color: #808080; opacity: 0.5;"), e.add(".scheduler_default_main .scheduler_default_event_group", "box-sizing: border-box; font-size: 13px; color: #666; padding: 2px; overflow:hidden; border:1px solid var(--dp-scheduler-event-border-color); background-color: #fff; display: flex; align-items: center; white-space: nowrap;"), e.add(".scheduler_default_main .scheduler_default_header_icon", "box-sizing: border-box; border: 1px solid var(--dp-scheduler-border-color); background-color: var(--dp-scheduler-header-bg-color); color: var(--dp-scheduler-header-color);"), e.add(".scheduler_default_header_icon:hover", "background-color: #ccc;"), e.add(".scheduler_default_header_icon_hide:before", "content: '\\00AB';"), e.add(".scheduler_default_header_icon_show:before", "content: '\\00BB';"), e.add(".scheduler_default_row_new .scheduler_default_rowheader_inner", "padding-left: 10px; color: #666; cursor: text; background-position: 0px 50%; background-repeat: no-repeat; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABUSURBVChTY0ACslAaK2CC0iCQDMSlECYmQFYIAl1AjFUxukIQwKoYm0IQwFCMSyEIaEJpMMClcD4Qp0CYEIBNIUzRPzAPCtAVYlWEDgyAGIdTGBgAbqEJYyjqa3oAAAAASUVORK5CYII=);"), e.add(".scheduler_default_row_new .scheduler_default_rowheader_inner:hover", "background: white; color: white;"), e.add(".scheduler_default_rowheader textarea", "padding: 3px;"), e.add(".scheduler_default_rowheader_scroll", "cursor: default; background: var(--dp-scheduler-header-bg-color);"), e.add(".scheduler_default_shadow_forbidden .scheduler_default_shadow_inner, .scheduler_default_shadow_overlap .scheduler_default_shadow_inner", "border: 1px solid #cc0000; background: #cc4125;"), e.add(".scheduler_default_event_moving_source", "opacity: 0.5;"), e.add(".scheduler_default_linkpoint", "background-color: white; border: 1px solid gray; border-radius: 5px;"), e.add(".scheduler_default_linkpoint.scheduler_default_linkpoint_hover", "background-color: black;"), e.add(".scheduler_default_event.scheduler_default_event_version .scheduler_default_event_inner", "overflow:hidden; background-color: #cfdde8; background-image: linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent); background-size: 20px 20px;"), e.add(".scheduler_default_crosshair_vertical, .scheduler_default_crosshair_horizontal, .scheduler_default_crosshair_left, .scheduler_default_crosshair_top", "background-color: gray; opacity: 0.2;"), e.add(".scheduler_default_link_dot", "border-radius: 10px; background-color: var(--dp-scheduler-link-color);"), e.add(".scheduler_default_task_milestone .scheduler_default_event_inner", "position:absolute; top:16%; left:16%; right:16%; bottom:16%; background: var(--dp-scheduler-event-milestone-color); border: 0px none; transform: rotate(45deg); filter: none;"), e.add(".scheduler_default_event_left, .scheduler_default_event_right", "white-space: nowrap; color: #666; cursor: default; display: flex; align-items: center;");
210
210
  e.add(".scheduler_default_main:focus", "outline: none;");
211
211
  e.add(".scheduler_default_cell_focus", "outline: var(--dp-scheduler-focus-outline-color) 2px solid; outline-offset: -2px; z-index: 100; opacity: 0.5;"), e.add(".scheduler_default_cell_focus.scheduler_default_cell_focus_top", "border-top: 4px solid var(--dp-scheduler-focus-outline-color);"), e.add(".scheduler_default_cell_focus.scheduler_default_cell_focus_bottom", "border-bottom: 4px solid var(--dp-scheduler-focus-outline-color);"), e.add(".scheduler_default_selectionrectangle", "background-color: var(--dp-scheduler-selectionrectangle-color); border: 1px solid #000033; opacity: 0.4;"), e.add(".scheduler_default_link_shadow", "border:1px solid black;"), e.add(".scheduler_default_link_shadow_circle", "background-color:black;"), e.add(".scheduler_default_event_move_left", "box-sizing: border-box; padding: 2px; border: 1px solid #ccc; background: #fff; background: linear-gradient(to bottom, #ffffff 0%, #eeeeee); display: flex; align-items: center;"), e.add(".scheduler_default_event_move_right", "box-sizing: border-box; padding: 2px; border: 1px solid #ccc; background: #fff; background: linear-gradient(to bottom, #ffffff 0%, #eeeeee); display: flex; align-items: center;"), e.add(".scheduler_default_link_hover", "box-shadow: 0px 0px 2px 2px rgba(255, 0, 0, 0.3)"), e.add(".scheduler_default_sorticon", "opacity: 0.2;background-position: center center; background-repeat: no-repeat; cursor: pointer;"), e.add(".scheduler_default_sorticon.scheduler_default_sorticon_asc", "background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBvbHlnb24gcG9pbnRzPSI1IDEuNSwgMTAgMTAsIDAgMTAiLz48L3N2Zz4=');"), e.add(".scheduler_default_sorticon.scheduler_default_sorticon_desc", "background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBvbHlnb24gcG9pbnRzPSI1IDguNSwgMCAwLCAxMCAwIi8+PC9zdmc+');"), e.add(".scheduler_default_sorticon.scheduler_default_sorticon_active", "opacity: 1;"), e.add(".scheduler_default_loading", "background-color: orange; color: white; padding: 2px;"), e.add(".scheduler_default_link_curve", "stroke: var(--dp-scheduler-link-color); fill: none; stroke-width: 2;"), e.add(".scheduler_default_link_curve:hover", "stroke-opacity: 0.5;"), e.add(".scheduler_default_link_curve_dot", "fill: var(--dp-scheduler-link-color);"), e.add(".scheduler_default_link_curve_marker", "fill: var(--dp-scheduler-link-color);"), e.add(".scheduler_default_link_curve_text", "fill: var(--dp-scheduler-link-color);"), e.add(".scheduler_default_link_curve_mshadow.scheduler_default_link_curve", "stroke: #aaaaaa;"), e.add(".scheduler_default_link_curve_mshadow.scheduler_default_link_curve_dot", "fill: #aaaaaa;"), e.add(".scheduler_default_link_curve_mshadow.scheduler_default_link_curve_marker", "fill: #aaaaaa;"), e.add(".scheduler_default_link_curve_mshadow.scheduler_default_link_curve_text", "fill: #aaaaaa;"), e.commit(), DayPilot.Global.defaultCss = !0;
212
212
  }
@@ -265,7 +265,8 @@ var DayPilot = { Global: {} };
265
265
  t.middle = !0;
266
266
  break;
267
267
  case 2: t.right = !0;
268
- } return t; }, DayPilot.Util.replaceCharAt = function (e, t, n) { return e.substr(0, t) + n + e.substr(t + n.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.Util.isSameEvent = function (e, t) { return !(!e || !t) && (e = e instanceof DayPilot.Event ? e.data : e, t = t instanceof DayPilot.Event ? t.data : t, e === t || !DayPilot.Util.isNullOrUndefined(e.id) && e.id === t.id); }, DayPilot.Util.overlaps = function (e, t, n, a) { return !(t <= n || e >= a); }, DayPilot.Util.isVueVNode = function (e) { return !!e && (DayPilot.isArray(e) ? DayPilot.Util.isVueVNode(e[0]) : e["__v_isVNode"]); }, DayPilot.Util.isMouseEvent = function (e) { return !!e && ("mouse" === e.pointerType || e instanceof MouseEvent); }, DayPilot.Areas = {}, DayPilot.Areas.attach = function (t, n, a) { a = a || {}; var i = a.areas, r = a.allowed || function () { return !0; }, o = a.offsetX || 0; i = e(n, i), i && DayPilot.isArray(i) && 0 !== i.length && (DayPilot.re(t, "mousemove", function (e) { t.active || t.areasDisabled || !r() || DayPilot.Areas.showAreas(t, n, e, i, { "offsetX": o, "eventDiv": a.eventDiv }); }), DayPilot.re(t, "mouseleave", function (e) { DayPilot.Areas.hideAreas(t, e); }), i.forEach(function (e) { if (DayPilot.Areas.isVisible(e)) {
268
+ } return t; }, DayPilot.Util.replaceCharAt = function (e, t, n) { return e.substr(0, t) + n + e.substr(t + n.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.Util.isSameEvent = function (e, t) { return !(!e || !t) && (e = e instanceof DayPilot.Event ? e.data : e, t = t instanceof DayPilot.Event ? t.data : t, e === t || !DayPilot.Util.isNullOrUndefined(e.id) && e.id === t.id); }, DayPilot.Util.overlaps = function (e, t, n, a) { return !(t <= n || e >= a); }, DayPilot.Util.isVueVNode = function (e) { return !!e && (DayPilot.isArray(e) ? DayPilot.Util.isVueVNode(e[0]) : e["__v_isVNode"]); }, DayPilot.Util.isReactComponent = function (e) { if (!e)
269
+ return !1; var t = "function" == typeof Symbol && Symbol.for, n = t && Symbol.for("react.element") || 60103, a = t && Symbol.for("react.transitional.element") || null, i = e.$$typeof; return i === n || i === a || 60103 === i; }, DayPilot.Util.isMouseEvent = function (e) { return !!e && ("mouse" === e.pointerType || e instanceof MouseEvent); }, DayPilot.Areas = {}, DayPilot.Areas.attach = function (t, n, a) { a = a || {}; var i = a.areas, r = a.allowed || function () { return !0; }, o = a.offsetX || 0; i = e(n, i), i && DayPilot.isArray(i) && 0 !== i.length && (DayPilot.re(t, "mousemove", function (e) { t.active || t.areasDisabled || !r() || DayPilot.Areas.showAreas(t, n, e, i, { "offsetX": o, "eventDiv": a.eventDiv }); }), DayPilot.re(t, "mouseleave", function (e) { DayPilot.Areas.hideAreas(t, e); }), i.forEach(function (e) { if (DayPilot.Areas.isVisible(e)) {
269
270
  var i = DayPilot.Areas.createArea(t, n, e, { "offsetX": o, "eventDiv": a.eventDiv });
270
271
  t.appendChild(i);
271
272
  } })); }, 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, {}); }) : []; }, DayPilot.Areas.showAreas = function (e, t, n, a, i) { if (!DayPilot.Global.resizing && !DayPilot.Global.moving && !DayPilot.Global.selecting && !e.active && DayPilot.browser.hover) {
@@ -288,8 +289,9 @@ var DayPilot = { Global: {} };
288
289
  } }, DayPilot.Areas.createArea = function (e, t, n, a) {
289
290
  function i(e, t, n) {
290
291
  var a = {};
291
- return a.area = e, a.source = t, a.originalEvent = n,
292
- a.preventDefault = function () { a.preventDefault.value = !0; }, "function" == typeof e.onClick && e.onClick(a), a;
292
+ return a.area = e, a.source = t, a.originalEvent = n, a.preventDefault = function () {
293
+ a.preventDefault.value = !0;
294
+ }, "function" == typeof e.onClick && e.onClick(a), a;
293
295
  }
294
296
  function r(e, t, n) { DayPilot.Bubble && DayPilot.Bubble.touchPosition(n), e.calendar.bubble && e.calendar.bubble.showEvent(e, !0); }
295
297
  function o(e, t, n, a) { DayPilot.Menu && DayPilot.Menu.touchPosition(a); var i = n.contextMenu || n.menu; if (i instanceof DayPilot.Menu || (t.isEvent && t.client.contextMenu() ? i = t.client.contextMenu() : t.isEvent && t.calendar.contextMenu && (i = t.calendar.contextMenu)), i && i.show) {
@@ -429,7 +431,8 @@ var DayPilot = { Global: {} };
429
431
  else
430
432
  a = e;
431
433
  var i = a, r = {};
432
- return r.o = !0, r.p = i.id, r.control = i, r.q = t || {}, r.s = function () { i.hide ? i.hide() : i.nav && i.nav.top ? i.nav.top.style.display = "none" : i.style.display = "none"; }, r.t = function (e) { (function () { return !!i.backendUrl || !("function" != typeof WebForm_DoCallback || !i.uniqueID); })() ? i.commandCallBack && i.commandCallBack("navigate", { "day": e }) : (i.startDate = e, i.update()); }, r.u = function () { n.z(), i.show ? i.show() : i.nav && i.nav.top ? i.nav.top.style.display = "" : i.style.display = ""; }, r.A = function () { if (r.q.navigatorSelectMode)
434
+ return r.o = !0,
435
+ r.p = i.id, r.control = i, r.q = t || {}, r.s = function () { i.hide ? i.hide() : i.nav && i.nav.top ? i.nav.top.style.display = "none" : i.style.display = "none"; }, r.t = function (e) { (function () { return !!i.backendUrl || !("function" != typeof WebForm_DoCallback || !i.uniqueID); })() ? i.commandCallBack && i.commandCallBack("navigate", { "day": e }) : (i.startDate = e, i.update()); }, r.u = function () { n.z(), i.show ? i.show() : i.nav && i.nav.top ? i.nav.top.style.display = "" : i.style.display = ""; }, r.A = function () { if (r.q.navigatorSelectMode)
433
436
  return r.q.navigatorSelectMode; if (i.isCalendar)
434
437
  switch (i.viewType) {
435
438
  case "Day": return "day";
@@ -631,7 +634,7 @@ var DayPilot = { Global: {} };
631
634
  if (this instanceof t.Calendar && !this.P && (r = !0, this.P = !0), !r)
632
635
  throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
633
636
  var o = this;
634
- this.uniqueID = null, this.isCalendar = !0, this.v = "${v}", 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.cellDuration = 30, this.cellHeight = 30, this.columnMarginLeft = 0, this.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.contextMenu = null, this.days = 1, this.durationBarVisible = !0, this.eventBorderRadius = null, this.eventsLoadMethod = "GET", this.headerDateFormat = null, this.headerHeight = 30, this.headerTextWrappingEnabled = !1, this.height = 300, this.heightSpec = "BusinessHours", this.hideUntilInit = !0, this.hourWidth = 60, this.initScrollPos = "Auto", this.loadingLabelHtml = null, this.loadingLabelText = "Loading...", this.loadingLabelVisible = !0, this.locale = "en-us", this.snapToGrid = !0, this.showToolTip = !0, this.startDate = (new DayPilot.Date).getDatePart(), this.cssClassPrefix = "calendar_default", this.theme = null, this.timeFormat = "Auto", this.useEventBoxes = "Always", 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.onBeforeCellRender = null, this.onBeforeEventRender = null, this.onBeforeHeaderRender = 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.Q = !1, this.R = {};
637
+ this.uniqueID = null, this.isCalendar = !0, this.v = "${v}", 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.cellDuration = 30, this.cellHeight = 30, this.columnMarginLeft = 0, this.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.contextMenu = null, this.days = 1, this.durationBarVisible = !0, this.eventBorderRadius = null, this.eventsLoadMethod = "GET", this.headerDateFormat = null, this.headerHeight = 30, this.headerTextWrappingEnabled = !1, this.height = 300, this.heightSpec = "BusinessHours", this.hideUntilInit = !0, this.hourWidth = 60, this.initScrollPos = "Auto", this.loadingLabelHtml = null, this.loadingLabelText = "Loading...", this.loadingLabelVisible = !0, this.locale = "en-us", this.rtl = !1, this.snapToGrid = !0, this.showToolTip = !0, this.startDate = (new DayPilot.Date).getDatePart(), this.cssClassPrefix = "calendar_default", this.theme = null, this.timeFormat = "Auto", this.useEventBoxes = "Always", 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.onBeforeCellRender = null, this.onBeforeEventRender = null, this.onBeforeHeaderRender = 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.Q = !1, this.R = {};
635
638
  var s = this.R;
636
639
  this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.S(); }, this.S = function () { DayPilot.de(o.elements.selection), o.elements.selection = [], o.nav.activeSelection = null; }, this.T = function (e, t, n) { var a = {}; a.action = e, a.parameters = n, a.data = t, a.header = this.U(); var i = "JSON" + JSON.stringify(a); __doPostBack(o.uniqueID, i); }, this.V = function (e, t, n) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.callbackTimeout = window.setTimeout(function () { o.loadingStart(); }, 100); var a = {}; a.action = e, a.parameters = n, a.data = t, a.header = this.U(); var i = "JSON" + JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.W, i, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, i, this.X, this.clientName, this.onCallbackError, !0); }, this.onCallbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.dispose = function () { var e = o; e.Q || (e.Q = !0, clearInterval(e.Y), e.Z(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e._(), e.aa(), 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.disposed = function () { return this.Q; }, this.ba = function () { this.nav.top.dispose = this.dispose; }, this.W = function (e) { o.X(e.responseText); }, this.U = function () { var e = {}; return e.control = "dpc", e.id = this.id, e.v = this.v, e.days = o.days, e.startDate = o.startDate, e.heightSpec = o.heightSpec, e.businessBeginsHour = o.businessBeginsHour, e.businessEndsHour = o.businessEndsHour, e.hashes = o.hashes, e.timeFormat = o.timeFormat, e.viewType = o.viewType, e.locale = o.locale, e; }, this.ca = function (e) { for (var t = e.parentNode; t && "TD" !== t.tagName;)
637
640
  t = t.parentNode; var n = o.eventBorderRadius; "number" == typeof n && (n += "px"); var a = document.createElement("div"); a.setAttribute("unselectable", "on"), a.style.position = "absolute", a.style.width = e.offsetWidth + "px", a.style.height = e.offsetHeight + "px", a.style.left = e.offsetLeft + "px", a.style.top = e.offsetTop + "px", a.style.boxSizing = "border-box", a.style.zIndex = 101, a.className = o.L("_shadow"); var i = document.createElement("div"); return i.className = o.L("_shadow_inner"), n && (i.style.borderRadius = n, a.style.borderRadius = n), a.appendChild(i), t.firstChild.appendChild(a), a; }, this.R.locale = function () { var e = DayPilot.Locale.find(o.locale); return e ? e : DayPilot.Locale.US; }, this.R.timeFormat = function () { return "Auto" !== o.timeFormat ? o.timeFormat : this.locale().timeFormat; }, this.R.da = function () { return "Disabled" !== o.xssProtection; }, this.R.ea = function () { if ("Auto" === o.weekStarts) {
@@ -791,17 +794,18 @@ var DayPilot = { Global: {} };
791
794
  } }, this.Ca = function (e) { if (!DayPilot.Global.selecting && "Disabled" !== o.timeRangeSelectedHandling) {
792
795
  var t = e.which;
793
796
  if (1 === t || 0 === t) {
794
- DayPilot.Global.selecting = { calendar: o, start: o.coords };
795
- var n = DayPilot.Global.selecting;
796
- return n.start.time = o.Da(o.coords.x, o.coords.y), n.start.columnIndex = o.Ea(o.coords.x), n.start.column = o.Ba[n.start.columnIndex], o.Fa(), o.Ga(), !1;
797
+ var n = o.nav.scrollable;
798
+ o.coords = DayPilot.mo3(n, e), DayPilot.Global.selecting = { calendar: o, start: o.coords };
799
+ var a = DayPilot.Global.selecting;
800
+ return a.start.time = o.Da(o.coords.x, o.coords.y), a.start.columnIndex = o.Ea(o.coords.x), a.start.column = o.Ba[a.start.columnIndex], o.Fa(), o.Ga(), !1;
797
801
  }
798
802
  } }, this.Ga = function () { var e = DayPilot.Global.selecting; !function () { var t = e.start.column, n = e.start.columnIndex, a = t.start, i = o.getPixels(e.startTime, a), r = o.getPixels(e.endTime, a), s = i.boxTop, l = r.boxBottom; o.snapToGrid || (s = i.top, l = r.top); var d = l - s, c = o.eventBorderRadius; "number" == typeof c && (c += "px"); var u = function () { if (o.nav.activeSelection)
799
- return o.nav.activeSelection; var e = document.createElement("div"); e.setAttribute("unselectable", "on"), e.style.position = "absolute", e.style.left = "0px", e.style.width = "100%"; var t = document.createElement("div"); return t.setAttribute("unselectable", "on"), t.className = o.L("_shadow_inner"), c && (t.style.borderRadius = c, e.style.borderRadius = c), e.appendChild(t), o.nav.events.rows[0].cells[n].selection.appendChild(e), o.elements.selection.push(e), o.nav.activeSelection = e, e; }(); u.className = o.L("_shadow"), u.firstChild.innerHTML = "", u.style.top = s + "px", u.style.height = d + "px", o.nav.events.rows[0].cells[n].selection.appendChild(u); }(); }, this.Fa = function () { var e = DayPilot.Global.selecting; e.end = o.coords, e.end.time = o.Da(e.start.x, e.end.y), e.end.column = o.Ba[o.Ea(e.end.x)], o.Ha && (e.end.time = o.Da(e.end.x, e.end.y)), o.Ia(e); }, this.Ia = function (e) { var t, n, a; o.snapToGrid ? e.end.time < e.start.time ? (t = o.Ja(e.end.time, e.start.column.start), n = o.Ka(e.start.time, e.start.column.start), a = e.endTime) : (t = o.Ja(e.start.time, e.start.column.start), n = o.Ka(e.end.time, e.start.column.start), a = e.startTime) : e.end.time < e.start.time ? (t = e.end.time, n = e.start.time, a = e.endTime) : (t = e.start.time, n = e.end.time, a = e.startTime), e.startTime = t, e.endTime = n, e.anchor = a; }, this.getSelection = function () { if (!o.N)
800
- return null; var e = o.N; return new DayPilot.Selection(e.startTime, e.endTime, e.start.column.id, o); }, this.Ea = function (e) { if (e -= o.hourWidth, e < 0)
801
- return null; for (var t = 0, n = o.nav.events.rows[0].cells, a = 0; a < n.length; a++) {
803
+ return o.nav.activeSelection; var e = document.createElement("div"); e.setAttribute("unselectable", "on"), e.style.position = "absolute", e.style.left = "0px", e.style.width = "100%"; var t = document.createElement("div"); return t.setAttribute("unselectable", "on"), t.className = o.L("_shadow_inner"), c && (t.style.borderRadius = c, e.style.borderRadius = c), e.appendChild(t), o.nav.events.rows[0].cells[n].selection.appendChild(e), o.elements.selection.push(e), o.nav.activeSelection = e, e; }(); u.className = o.L("_shadow"), u.firstChild.innerHTML = "", u.style.top = s + "px", u.style.height = d + "px", o.nav.events.rows[0].cells[n].selection.appendChild(u); }(); }, this.Fa = function () { var e = DayPilot.Global.selecting; e.end = o.coords, e.end.time = o.Da(e.start.x, e.end.y), e.end.column = o.Ba[o.Ea(e.end.x)], o.Ha(e); }, this.Ha = function (e) { var t, n, a; o.snapToGrid ? e.end.time < e.start.time ? (t = o.Ia(e.end.time, e.start.column.start), n = o.Ja(e.start.time, e.start.column.start), a = e.endTime) : (t = o.Ia(e.start.time, e.start.column.start), n = o.Ja(e.end.time, e.start.column.start), a = e.startTime) : e.end.time < e.start.time ? (t = e.end.time, n = e.start.time, a = e.endTime) : (t = e.start.time, n = e.end.time, a = e.startTime), e.startTime = t, e.endTime = n, e.anchor = a; }, this.getSelection = function () { if (!o.N)
804
+ return null; var e = o.N; return new DayPilot.Selection(e.startTime, e.endTime, e.start.column.id, o); }, this.Ea = function (e) { if (e < 0)
805
+ return 0; o.rtl ? e = o.nav.main.offsetWidth - e : e -= o.hourWidth; for (var t = 0, n = o.nav.events.rows[0].cells, a = 0; a < n.length; a++) {
802
806
  if (t += n[a].offsetWidth, e < t)
803
807
  return a;
804
- } return null; }, this.Da = function (e, t) { e = DayPilot.Util.atLeast(e, 0); var n = this.Ea(e), a = t / (60 / s.fa()) / o.cellHeight, i = 60 * a * 60 * 1e3, r = 6e4 * Math.floor(i / 6e4), l = this.Ba[n]; return l ? l.start.addTime(r) : null; }, this.Ja = function (e, t) { var n = e.getTime(); t && (n -= t.getTime()); var a = 60 * s.fa() * 1e3, i = n % a; return e.addTime(-i); }, this.Ka = function (e, t) { var n = this.Ja(e, t); return n.getTime() === e.getTime() ? n : n.addTime(60 * s.fa() * 1e3); }, this.La = {}, this.La.getCellCoords = function () { var e = {}; if (e.x = 0, e.y = 0, !o.coords)
808
+ } return null; }, this.Da = function (e, t) { e = DayPilot.Util.atLeast(e, 0); var n = this.Ea(e), a = t / (60 / s.fa()) / o.cellHeight, i = 60 * a * 60 * 1e3, r = 6e4 * Math.floor(i / 6e4), l = this.Ba[n]; return l ? l.start.addTime(r) : null; }, this.Ia = function (e, t) { var n = e.getTime(); t && (n -= t.getTime()); var a = 60 * s.fa() * 1e3, i = n % a; return e.addTime(-i); }, this.Ja = function (e, t) { var n = this.Ia(e, t); return n.getTime() === e.getTime() ? n : n.addTime(60 * s.fa() * 1e3); }, this.Ka = {}, this.Ka.getCellCoords = function () { var e = {}; if (e.x = 0, e.y = 0, !o.coords)
805
809
  return null; e.x = o.Ea(o.coords.x); var t = 0, n = Math.floor((o.coords.y - t) / o.cellHeight); return e.y = n, e.x < 0 ? null : e; }, this.columns = {}, this.columns.list = [], this.columns.load = function (e, t, n) { if (!e)
806
810
  throw new DayPilot.Exception("columns.load(): 'url' parameter required"); var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof n && n(t); }, i = function (e) { var n, i = e.request; try {
807
811
  n = JSON.parse(i.responseText);
@@ -813,11 +817,11 @@ var DayPilot = { Global: {} };
813
817
  var s = {};
814
818
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = n, "function" == typeof t && t(s), s.preventDefault.value)
815
819
  return;
816
- o.columns.list = n, o.Ma && o.update();
817
- } }; o.columnsLoadMethod && "POST" === o.columnsLoadMethod.toUpperCase() ? DayPilot.ajax({ "method": "POST", "url": e, "success": i, "error": a }) : DayPilot.ajax({ "method": "GET", "url": e, "success": i, "error": a }); }, this.ga = function () { var e; e = "Resources" !== o.viewType ? this.Na() : o.columns.list, this.Ba = []; for (var t = 0; t < e.length; t++) {
818
- var n = this.Oa(e[t]);
820
+ o.columns.list = n, o.La && o.update();
821
+ } }; o.columnsLoadMethod && "POST" === o.columnsLoadMethod.toUpperCase() ? DayPilot.ajax({ "method": "POST", "url": e, "success": i, "error": a }) : DayPilot.ajax({ "method": "GET", "url": e, "success": i, "error": a }); }, this.ga = function () { var e; e = "Resources" !== o.viewType ? this.Ma() : o.columns.list, this.Ba = []; for (var t = 0; t < e.length; t++) {
822
+ var n = this.Na(e[t]);
819
823
  this.Ba.push(n);
820
- } }, this.Oa = function (e) { var t = {}; if (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(o.startDate), "BusinessHoursNoScroll" === this.heightSpec) {
824
+ } }, this.Na = function (e) { var t = {}; if (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(o.startDate), "BusinessHoursNoScroll" === this.heightSpec) {
821
825
  var n = t.start.getDatePart();
822
826
  t.start = n.addHours(this.businessBeginsHour);
823
827
  } return t.putIntoBlock = function (e) { for (var t = 0; t < this.blocks.length; t++) {
@@ -840,7 +844,7 @@ var DayPilot = { Global: {} };
840
844
  var r = this[i];
841
845
  if (!(n < r.part.top || e > r.part.top + r.part.height - 1))
842
846
  return !1;
843
- } return !0; }, a.push(e), this.lines.push(a), this.lines.length - 1; }, t; }, this.Na = function () { var e = [], t = this.startDate.getDatePart(), n = this.days; switch (this.viewType) {
847
+ } return !0; }, a.push(e), this.lines.push(a), this.lines.length - 1; }, t; }, this.Ma = function () { var e = [], t = this.startDate.getDatePart(), n = this.days; switch (this.viewType) {
844
848
  case "Day":
845
849
  n = 1;
846
850
  break;
@@ -866,16 +870,16 @@ var DayPilot = { Global: {} };
866
870
  } var n = this.Ba.length - 1; return this.Ba[n].start.addDays(1); }, this.L = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Z = function () { if (this.elements.events)
867
871
  for (var e = 0; e < this.elements.events.length; e++) {
868
872
  var t = this.elements.events[e];
869
- o.Pa(t);
870
- } this.elements.events = []; }, this.Pa = function (e) { !function () { var t = e.domArgs; if (e.domArgs = null, t && "function" == typeof o.onBeforeEventDomRemove && o.onBeforeEventDomRemove(t), t && "function" == typeof o.onBeforeEventDomAdd) {
871
- var a = t && t.Qa;
873
+ o.Oa(t);
874
+ } this.elements.events = []; }, this.Oa = function (e) { !function () { var t = e.domArgs; if (e.domArgs = null, t && "function" == typeof o.onBeforeEventDomRemove && o.onBeforeEventDomRemove(t), t && "function" == typeof o.onBeforeEventDomAdd) {
875
+ var a = t && t.Pa;
872
876
  if (a) {
873
- o.Sa.Ra && n(t.element) && (o.Sa.Ta = !0, o.Sa.Ua(a), o.Sa.Ta = !1);
877
+ o.Ra.Qa && n(t.element) && (o.Ra.Sa = !0, o.Ra.Ta(a), o.Ra.Sa = !1);
874
878
  }
875
879
  } }(); var t = e.event; if (t && (t.calendar = null), e.onclick = null, e.onclickSave = null, e.onmouseover = null, e.onmouseout = null, e.onmousemove = null, e.onmousedown = null, e.firstChild && e.firstChild.firstChild && e.firstChild.firstChild.tagName && "IMG" === e.firstChild.firstChild.tagName.toUpperCase()) {
876
880
  var a = e.firstChild.firstChild;
877
881
  a.onmousedown = null, a.onmousemove = null, a.onclick = null;
878
- } e.helper = null, e.data = null, e.event = null, DayPilot.de(e); }, this.Va = function (e) { var a = e.cache || e.data, i = this.nav.events, r = a.borderRadius || o.eventBorderRadius; "number" == typeof r && (r += "px"); var s = document.createElement("div"); s.style.position = "absolute", s.style.left = e.part.left + "%", s.style.top = e.part.top + "px", s.style.width = e.part.width + "%", s.style.height = Math.max(e.part.height, 2) + "px", s.style.overflow = "hidden", s.data = e, s.event = e, s.unselectable = "on", s.style.MozUserSelect = "none", s.style.KhtmlUserSelect = "none", s.className = this.L("_event"), a.cssClass && DayPilot.Util.addClass(s, a.cssClass), o.showToolTip && e.client.toolTip() && (s.title = e.client.toolTip()), s.isFirst = e.part.start.getTime() === e.start().getTime(), s.isLast = e.part.end.getTime() === e.end().getTime(), s.onclick = this.va, DayPilot.re(s, "contextmenu", this.xa), s.onmouseout = function () { s.deleteIcon && (s.deleteIcon.style.display = "none"); }, s.onmousemove = function (n) { var a = 5; if ("undefined" != typeof t) {
882
+ } e.helper = null, e.data = null, e.event = null, DayPilot.de(e); }, this.Ua = function (e) { var a = e.cache || e.data, i = this.nav.events, r = a.borderRadius || o.eventBorderRadius; "number" == typeof r && (r += "px"); var s = document.createElement("div"); s.style.position = "absolute", s.style.left = e.part.left + "%", s.style.top = e.part.top + "px", s.style.width = e.part.width + "%", s.style.height = Math.max(e.part.height, 2) + "px", s.style.overflow = "hidden", s.data = e, s.event = e, s.unselectable = "on", s.style.MozUserSelect = "none", s.style.KhtmlUserSelect = "none", s.className = this.L("_event"), a.cssClass && DayPilot.Util.addClass(s, a.cssClass), o.showToolTip && e.client.toolTip() && (s.title = e.client.toolTip()), s.isFirst = e.part.start.getTime() === e.start().getTime(), s.isLast = e.part.end.getTime() === e.end().getTime(), s.onclick = this.va, DayPilot.re(s, "contextmenu", this.xa), s.onmouseout = function () { s.deleteIcon && (s.deleteIcon.style.display = "none"); }, s.onmousemove = function (n) { var a = 5; if ("undefined" != typeof t) {
879
883
  var i = DayPilot.mo3(s, n);
880
884
  if (i && !t.resizing && !t.moving) {
881
885
  s.deleteIcon && (s.deleteIcon.style.display = "");
@@ -906,11 +910,11 @@ var DayPilot = { Global: {} };
906
910
  } if (function () { var t = {}; if (t.control = o, t.e = e, t.element = null, s.domArgs = t, "function" == typeof o.onBeforeEventDomAdd && o.onBeforeEventDomAdd(t), t.element) {
907
911
  var a = l;
908
912
  if (a) {
909
- t.Qa = a;
913
+ t.Pa = a;
910
914
  if (n(t.element)) {
911
- if (!o.Sa.Ra)
915
+ if (!o.Ra.Qa)
912
916
  throw new DayPilot.Exception("Can't reach Vue");
913
- o.Sa.Ta = !0, o.Sa.Wa(t.element, a), o.Sa.Ta = !1;
917
+ o.Ra.Sa = !0, o.Ra.Va(t.element, a), o.Ra.Sa = !1;
914
918
  }
915
919
  else
916
920
  a.appendChild(t.element);
@@ -928,17 +932,17 @@ var DayPilot = { Global: {} };
928
932
  var s = r[o];
929
933
  s.part.width = 100 / a.lines.length, s.part.left = s.part.width * i;
930
934
  var l = i === a.lines.length - 1;
931
- l || (s.part.width = 1.5 * s.part.width), this.Va(s);
935
+ l || (s.part.width = 1.5 * s.part.width), this.Ua(s);
932
936
  }
933
- } }, this.Xa = function () { this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.L("_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.Ya() + "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.Za(); this.nav.top.appendChild(e), this.nav.scroll.style.zoom = 1; var t = this.$a(); 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.innerHTML = o._a(o.loadingLabelText, o.loadingLabelHtml), this.nav.loading.style.display = "none", this.nav.top.appendChild(this.nav.loading); }, this.la = function () { this.fasterDispose || DayPilot.pu(this.nav.hourTable), this.nav.scrollable.rows[0].cells[0].innerHTML = "", this.nav.hourTable = this.ab(), this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable); }, this.$a = 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 n, a = t.insertRow(-1); n = a.insertCell(-1), n.valign = "top", n.style.padding = "0px", n.style.border = "0px none", this.nav.hourTable = this.ab(), n.appendChild(this.nav.hourTable), n = a.insertCell(-1), n.valign = "top", n.width = "100%", n.style.padding = "0px", n.style.border = "0px none"; var i = document.createElement("div"); return i.style.position = "relative", n.appendChild(i), i.appendChild(this.bb()), i.appendChild(this.cb()), e.appendChild(t), this.nav.zoom = e, e; }, this.bb = 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.cb = function () { var e = document.createElement("table"); 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; for (var t = this.Ba, n = t.length, a = e.insertRow(-1), i = 0; i < n; i++) {
937
+ } }, this.Wa = function () { var e = this.nav.top; e.innerHTML = "", DayPilot.Util.addClass(e, this.L("_main")), e.style.MozUserSelect = "none", e.style.KhtmlUserSelect = "none", e.style.position = "relative", e.style.width = this.width ? this.width : "100%", this.hideUntilInit && (e.style.visibility = "hidden"), this.visible || (e.style.display = "none"), this.rtl && (e.style.direction = "rtl"), this.nav.scroll = document.createElement("div"), this.nav.scroll.style.height = this.Xa() + "px", "BusinessHours" === this.heightSpec ? this.nav.scroll.style.overflow = "auto" : this.nav.scroll.style.overflow = "hidden", this.nav.scroll.style.position = "relative"; var t = this.Ya(); this.nav.top.appendChild(t), this.nav.scroll.style.zoom = 1; var n = this.Za(); this.nav.scrollable = n.firstChild, this.nav.scroll.appendChild(n), e.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", e.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.innerHTML = o.$a(o.loadingLabelText, o.loadingLabelHtml), this.nav.loading.style.display = "none", e.appendChild(this.nav.loading); }, this.la = function () { this.fasterDispose || DayPilot.pu(this.nav.hourTable), this.nav.scrollable.rows[0].cells[0].innerHTML = "", this.nav.hourTable = this._a(), this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable); }, this.Za = 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 n, a = t.insertRow(-1); n = a.insertCell(-1), n.valign = "top", n.style.padding = "0px", n.style.border = "0px none", this.nav.hourTable = this._a(), n.appendChild(this.nav.hourTable), n = a.insertCell(-1), n.valign = "top", n.width = "100%", n.style.padding = "0px", n.style.border = "0px none"; var i = document.createElement("div"); return i.style.position = "relative", n.appendChild(i), i.appendChild(this.ab()), i.appendChild(this.bb()), e.appendChild(t), this.nav.zoom = e, e; }, this.ab = 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.bb = function () { var e = document.createElement("table"); 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; for (var t = this.Ba, n = t.length, a = e.insertRow(-1), i = 0; i < n; i++) {
934
938
  var r = a.insertCell(-1);
935
939
  r.style.padding = "0px", r.style.border = "0px none", r.style.height = "0px", r.style.overflow = "visible", o.rtl || (r.style.textAlign = "left");
936
940
  var s = document.createElement("div");
937
941
  s.style.marginRight = o.columnMarginRight + "px", s.style.marginLeft = o.columnMarginLeft + "px", s.style.position = "relative", s.style.height = "1px", s.style.marginTop = "-1px";
938
942
  var l = document.createElement("div");
939
943
  r.selection = l, r.appendChild(s), r.appendChild(l);
940
- } return e; }, this.ab = function () { var e = document.createElement("table"); 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; }; for (var t = o.oa(), n = 0; n < t; n++)
941
- this.db(e, n); return e; }, this.db = function (e, t) { var n = 60 * o.cellHeight / s.fa(), a = e.insertRow(-1); a.style.height = n + "px"; var i = a.insertCell(-1); i.valign = "bottom", i.unselectable = "on", i.style.cursor = "default", i.style.padding = "0px", i.style.border = "0px none"; var r = document.createElement("div"); r.style.position = "relative", r.className = this.L("_rowheader"), r.style.width = this.hourWidth + "px", r.style.height = n + "px", r.style.overflow = "hidden", r.unselectable = "on"; var l = document.createElement("div"); l.className = this.L("_rowheader_inner"), l.unselectable = "on"; var d = document.createElement("div"); d.unselectable = "on"; var c = this.startDate.addHours(t).addHours(o.sa()), u = c.getHours(), h = u < 12, f = s.timeFormat(); "Clock12Hours" === f && (u %= 12, 0 === u && (u = 12)), d.innerHTML = u; var v = document.createElement("span"); v.unselectable = "on", v.className = this.L("_rowheader_minutes"); var p; p = "Clock12Hours" === f ? h ? "AM" : "PM" : "00", v.innerHTML = p, d.appendChild(v), l.appendChild(d), r.appendChild(l), i.appendChild(r); }, this.Ya = function () { var e = s.fa(), t = 60 / e; switch (this.heightSpec) {
944
+ } return e; }, this._a = function () { var e = document.createElement("table"); 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; }; for (var t = o.oa(), n = 0; n < t; n++)
945
+ this.cb(e, n); return e; }, this.cb = function (e, t) { var n = 60 * o.cellHeight / s.fa(), a = e.insertRow(-1); a.style.height = n + "px"; var i = a.insertCell(-1); i.valign = "bottom", i.unselectable = "on", i.style.cursor = "default", i.style.padding = "0px", i.style.border = "0px none"; var r = document.createElement("div"); r.style.position = "relative", r.className = this.L("_rowheader"), r.style.width = this.hourWidth + "px", r.style.height = n + "px", r.style.overflow = "hidden", r.unselectable = "on"; var l = document.createElement("div"); l.className = this.L("_rowheader_inner"), l.unselectable = "on"; var d = document.createElement("div"); d.unselectable = "on"; var c = this.startDate.addHours(t).addHours(o.sa()), u = c.getHours(), h = u < 12, f = s.timeFormat(); "Clock12Hours" === f && (u %= 12, 0 === u && (u = 12)), d.innerHTML = u; var v = document.createElement("span"); v.unselectable = "on", v.className = this.L("_rowheader_minutes"); var p; p = "Clock12Hours" === f ? h ? "AM" : "PM" : "00", v.innerHTML = p, d.appendChild(v), l.appendChild(d), r.appendChild(l), i.appendChild(r); }, this.Xa = function () { var e = s.fa(), t = 60 / e; switch (this.heightSpec) {
942
946
  case "Full": return 24 * t * this.cellHeight;
943
947
  case "BusinessHours":
944
948
  var n = this.qa();
@@ -947,24 +951,24 @@ var DayPilot = { Global: {} };
947
951
  var n = this.qa();
948
952
  return n * this.cellHeight * t;
949
953
  default: throw "DayPilot.Calendar: Unexpected 'heightSpec' value.";
950
- } }, this.eb = function () { var e = o.nav.corner ? o.nav.corner.parentNode : null; if (e) {
954
+ } }, this.db = function () { var e = o.nav.corner ? o.nav.corner.parentNode : null; if (e) {
951
955
  e.innerHTML = "";
952
- var t = this.fb();
956
+ var t = this.eb();
953
957
  e.appendChild(t), o.nav.corner = t;
954
- } }, this.Za = function () { var e = document.createElement("div"); e.style.overflow = "auto"; var t = document.createElement("table"); t.cellPadding = "0", t.cellSpacing = "0", t.border = "0", t.style.width = "100%", t.style.borderCollapse = "separate", t.style.border = "0px none"; var n = t.insertRow(-1), a = n.insertCell(-1); a.style.padding = "0px", a.style.border = "0px none"; var i = this.fb(); a.appendChild(i), this.nav.corner = i, a = n.insertCell(-1), a.style.width = "100%", a.valign = "top", a.style.position = "relative", a.style.padding = "0px", a.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; }; var r = "hidden" !== this.nav.scroll.style.overflow; if (a.appendChild(this.nav.header), r) {
958
+ } }, this.Ya = function () { var e = document.createElement("div"); e.style.overflow = "auto"; var t = document.createElement("table"); t.cellPadding = "0", t.cellSpacing = "0", t.border = "0", t.style.width = "100%", t.style.borderCollapse = "separate", t.style.border = "0px none"; var n = t.insertRow(-1), a = n.insertCell(-1); a.style.padding = "0px", a.style.border = "0px none"; var i = this.eb(); a.appendChild(i), this.nav.corner = i, a = n.insertCell(-1), a.style.width = "100%", a.valign = "top", a.style.position = "relative", a.style.padding = "0px", a.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; }; var r = "hidden" !== this.nav.scroll.style.overflow; if (a.appendChild(this.nav.header), r) {
955
959
  a = n.insertCell(-1), a.unselectable = "on";
956
960
  var o = document.createElement("div");
957
961
  o.unselectable = "on", o.style.position = "relative", o.style.width = "16px", o.style.height = this.headerHeight + "px", o.className = this.L("_cornerright");
958
962
  var s = document.createElement("div");
959
963
  s.className = this.L("_cornerright_inner"), o.appendChild(s), a.appendChild(o), this.nav.cornerRight = o;
960
- } return e.appendChild(t), e; }, this.fb = function () { var e = document.createElement("div"); e.style.position = "relative", e.className = this.L("_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.L("_corner_inner"), e.appendChild(t), e; }, this._ = function () { var e = this.nav.main; e.root = null, e.onmouseup = null; for (var t = 0; t < e.rows.length; t++)
964
+ } return e.appendChild(t), e; }, this.eb = function () { var e = document.createElement("div"); e.style.position = "relative", e.className = this.L("_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.L("_corner_inner"), e.appendChild(t), e; }, this._ = function () { var e = this.nav.main; e.root = null, e.onmouseup = null; for (var t = 0; t < e.rows.length; t++)
961
965
  for (var n = e.rows[t], a = 0; a < n.cells.length; a++) {
962
966
  var i = n.cells[a];
963
- o.gb(i);
964
- } this.fasterDispose || DayPilot.pu(e); }, this.gb = function (e) { e && (!function () { var t = e, a = t.domArgs; if (t.domArgs = null, a && "function" == typeof o.onBeforeCellDomRemove && o.onBeforeCellDomRemove(a), a && "function" == typeof o.onBeforeCellDomAdd) {
965
- var i = a && a.Qa;
967
+ o.fb(i);
968
+ } this.fasterDispose || DayPilot.pu(e); }, this.fb = function (e) { e && (!function () { var t = e, a = t.domArgs; if (t.domArgs = null, a && "function" == typeof o.onBeforeCellDomRemove && o.onBeforeCellDomRemove(a), a && "function" == typeof o.onBeforeCellDomAdd) {
969
+ var i = a && a.Pa;
966
970
  if (i) {
967
- o.Sa.Ra && n(a.element) && (o.Sa.Ta = !0, o.Sa.Ua(i), o.Sa.Ta = !1);
971
+ o.Ra.Qa && n(a.element) && (o.Ra.Sa = !0, o.Ra.Ta(i), o.Ra.Sa = !1);
968
972
  }
969
973
  } }(), e.root = null, e.onmousedown = null, e.onmousemove = null, e.onmouseout = null, e.onmouseup = null); }, this.ka = function () { var e = s.fa(), a = this.nav.main, i = 60 * e * 1e3, r = this.ra(), l = o.Ba; for (a && this._(); a && a.rows && a.rows.length > 0;)
970
974
  this.fasterDispose || DayPilot.pu(a.rows[0]), a.deleteRow(0); this.tableCreated = !0; for (var d = this.nav.events; d && d.rows && d.rows.length > 0;)
@@ -978,7 +982,7 @@ var DayPilot = { Global: {} };
978
982
  } for (var m = 0; m < r; m++) {
979
983
  var g = a.insertRow(-1);
980
984
  g.style.MozUserSelect = "none", g.style.KhtmlUserSelect = "none";
981
- for (var y = function (e) { var t = b.Ba[e], a = g.insertCell(-1); a.start = t.start.addTime(m * i), a.end = a.start.addTime(i), a.resource = t.id, a.onmousedown = b.Ca, a.onmouseup = function () { return !1; }, a.onclick = function () { return !1; }, a.root = b, a.style.padding = "0px", a.style.border = "0px none", a.style.verticalAlign = "top", a.style.height = o.cellHeight + "px", a.style.overflow = "hidden", a.unselectable = "on"; var r = document.createElement("div"); r.unselectable = "on", r.style.height = o.cellHeight + "px", r.style.position = "relative", r.className = b.L("_cell"); var s = b.hb(a.start, a.end), l = { "business": s, "text": null, "html": null, "cssClass": null, "backColor": null, "backImage": null, "backRepeat": null, "fontColor": null }, d = { "start": a.start, "end": a.end, "resource": a.resource, "properties": l, "x": e, "y": m }; !function () { if ("function" == typeof o.onBeforeCellRender) {
985
+ for (var y = function (e) { var t = b.Ba[e], a = g.insertCell(-1); a.start = t.start.addTime(m * i), a.end = a.start.addTime(i), a.resource = t.id, a.onmousedown = b.Ca, a.onmouseup = function () { return !1; }, a.onclick = function () { return !1; }, a.root = b, a.style.padding = "0px", a.style.border = "0px none", a.style.verticalAlign = "top", a.style.height = o.cellHeight + "px", a.style.overflow = "hidden", a.unselectable = "on"; var r = document.createElement("div"); r.unselectable = "on", r.style.height = o.cellHeight + "px", r.style.position = "relative", r.className = b.L("_cell"); var s = b.gb(a.start, a.end), l = { "business": s, "text": null, "html": null, "cssClass": null, "backColor": null, "backImage": null, "backRepeat": null, "fontColor": null }, d = { "start": a.start, "end": a.end, "resource": a.resource, "properties": l, "x": e, "y": m }; !function () { if ("function" == typeof o.onBeforeCellRender) {
982
986
  var e = {};
983
987
  e.cell = d, o.onBeforeCellRender(e);
984
988
  } }(), l.business && DayPilot.Util.addClass(r, o.L("_cell_business")), l.cssClass && DayPilot.Util.addClass(r, l.cssClass); var c = document.createElement("div"); c.setAttribute("unselectable", "on"), c.className = b.L("_cell_inner"); var u = DayPilot.Util.escapeTextHtml(l.text, l.html); u && (c.innerHTML = u), l.backColor && (c.style.backgroundColor = l.backColor), l.backImage && (c.style.backgroundImage = "url(" + l.backImage + ")"), l.backRepeat && (c.style.backgroundRepeat = l.backRepeat), l.fontColor && (c.style.color = l.fontColor), r.appendChild(c), function () { if ("function" == typeof o.onBeforeCellDomAdd || "function" == typeof o.onBeforeCellDomRemove) {
@@ -986,11 +990,11 @@ var DayPilot = { Global: {} };
986
990
  if (e.control = o, e.cell = d, e.element = null, a.domArgs = e, "function" == typeof o.onBeforeCellDomAdd && o.onBeforeCellDomAdd(e), e.element) {
987
991
  var t = c;
988
992
  if (t) {
989
- e.Qa = t;
993
+ e.Pa = t;
990
994
  if (n(e.element)) {
991
- if (!o.Sa.Ra)
995
+ if (!o.Ra.Qa)
992
996
  throw new DayPilot.Exception("Can't reach Vue");
993
- o.Sa.Ta = !0, o.Sa.Wa(e.element, t), o.Sa.Ta = !1;
997
+ o.Ra.Sa = !0, o.Ra.Va(e.element, t), o.Ra.Sa = !1;
994
998
  }
995
999
  else
996
1000
  t.appendChild(e.element);
@@ -1029,16 +1033,16 @@ var DayPilot = { Global: {} };
1029
1033
  o.snapToGrid && (c = Math.floor((o.coords.y - v - r + i / 2) / i) * i + r), c < r && (c = r);
1030
1034
  var p = o.nav.events, d = o.nav.main.clientHeight + r, m = parseInt(t.movingShadow.style.height);
1031
1035
  c + m > d && (c = d - m), DayPilot.Util.addClass(t.moving, o.L("_event_moving_source")), t.movingShadow.parentNode.style.display = "none", t.movingShadow.style.top = c + "px", t.movingShadow.parentNode.style.display = "";
1032
- var g = p.clientWidth / p.rows[0].cells.length, y = Math.floor((o.coords.x - 45) / g);
1033
- y < 0 && (y = 0), y < p.rows[0].cells.length && y >= 0 && t.movingShadow.column !== y && (t.movingShadow.column = y, t.moveShadow(p.rows[0].cells[y]));
1036
+ var g = p.clientWidth / p.rows[0].cells.length, y = Math.floor((o.coords.x - o.hourWidth) / g);
1037
+ o.rtl && (y = o.Ba.length - y - 1), y < 0 && (y = 0), y < p.rows[0].cells.length && y >= 0 && t.movingShadow.column !== y && (t.movingShadow.column = y, t.moveShadow(p.rows[0].cells[y]));
1034
1038
  }
1035
1039
  else
1036
- DayPilot.Global.selecting && (o.Fa(), o.Ga()); }, o.nav.scrollable.style.display = ""; }, this.hb = function (e) { 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.aa = function () { var e = this.nav.header; if (e && e.rows)
1040
+ DayPilot.Global.selecting && (o.Fa(), o.Ga()); }, o.nav.scrollable.style.display = ""; }, this.gb = function (e) { 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.aa = function () { var e = this.nav.header; if (e && e.rows)
1037
1041
  for (var t = 0; t < e.rows.length; t++)
1038
1042
  for (var n = e.rows[t], a = 0; a < n.cells.length; a++) {
1039
1043
  var i = n.cells[a];
1040
1044
  i.onclick = null, i.onmousemove = null, i.onmouseout = null;
1041
- } this.fasterDispose || DayPilot.pu(e); }, this.ib = function (e) { function t(t) { var i = a[t], r = e ? n.insertCell(-1) : n.cells[t]; r.data = i, r.style.overflow = "hidden", r.style.padding = "0px", r.style.border = "0px none", r.style.height = o.headerHeight + "px", r.onclick = o.jb; var s, l = e ? document.createElement("div") : r.firstChild; e ? (l.unselectable = "on", l.style.MozUserSelect = "none", l.style.cursor = "default", l.style.position = "relative", l.className = o.L("_colheader"), l.style.height = o.headerHeight + "px", o.headerTextWrappingEnabled || (l.style.whiteSpace = "nowrap"), s = document.createElement("div"), s.className = o.L("_colheader_inner"), s.unselectable = "on", l.appendChild(s), r.appendChild(l)) : s = l.firstChild; var d = {}; d.header = {}, d.header.cssClass = null, d.header.verticalAlignment = "center", d.header.horizontalAlignment = "center", d.column = o.kb(i, o), "function" == typeof o.onBeforeHeaderRender && (DayPilot.Util.copyProps(i, d.header, ["id", "start", "name", "html", "backColor", "toolTip", "areas"]), o.onBeforeHeaderRender(d), DayPilot.Util.copyProps(d.header, i, ["html", "backColor", "toolTip", "areas", "cssClass", "verticalAlignment", "horizontalAlignment"])), i.toolTip && (s.title = i.toolTip), i.cssClass && DayPilot.Util.addClass(l, i.cssClass), i.backColor && (s.style.background = i.backColor), i.areas && DayPilot.Areas.attach(l, i); var c = i.verticalAlignment; if (c)
1045
+ } this.fasterDispose || DayPilot.pu(e); }, this.hb = function (e) { function t(t) { var i = a[t], r = e ? n.insertCell(-1) : n.cells[t]; r.data = i, r.style.overflow = "hidden", r.style.padding = "0px", r.style.border = "0px none", r.style.height = o.headerHeight + "px", r.onclick = o.ib; var s, l = e ? document.createElement("div") : r.firstChild; e ? (l.unselectable = "on", l.style.MozUserSelect = "none", l.style.cursor = "default", l.style.position = "relative", l.className = o.L("_colheader"), l.style.height = o.headerHeight + "px", o.headerTextWrappingEnabled || (l.style.whiteSpace = "nowrap"), s = document.createElement("div"), s.className = o.L("_colheader_inner"), s.unselectable = "on", l.appendChild(s), r.appendChild(l)) : s = l.firstChild; var d = {}; d.header = {}, d.header.cssClass = null, d.header.verticalAlignment = "center", d.header.horizontalAlignment = "center", d.column = o.jb(i, o), "function" == typeof o.onBeforeHeaderRender && (DayPilot.Util.copyProps(i, d.header, ["id", "start", "name", "html", "backColor", "toolTip", "areas"]), o.onBeforeHeaderRender(d), DayPilot.Util.copyProps(d.header, i, ["html", "backColor", "toolTip", "areas", "cssClass", "verticalAlignment", "horizontalAlignment"])), i.toolTip && (s.title = i.toolTip), i.cssClass && DayPilot.Util.addClass(l, i.cssClass), i.backColor && (s.style.background = i.backColor), i.areas && DayPilot.Areas.attach(l, i); var c = i.verticalAlignment; if (c)
1042
1046
  switch (s.style.display = "flex", c) {
1043
1047
  case "center":
1044
1048
  s.style.alignItems = "center";
@@ -1056,12 +1060,12 @@ var DayPilot = { Global: {} };
1056
1060
  s.style.justifyContent = "flex-start";
1057
1061
  break;
1058
1062
  case "right": s.style.justifyContent = "flex-end";
1059
- } l.firstChild.innerHTML = o._a(i.name, i.html); } for (var n = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], a = this.Ba, i = a.length, r = 0; r < i; r++)
1060
- t(r); }, this.jb = function (e) { if ("Disabled" !== o.headerClickHandling) {
1061
- var t = this.data, n = o.kb(t), a = {};
1063
+ } l.firstChild.innerHTML = o.$a(i.name, i.html); } for (var n = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], a = this.Ba, i = a.length, r = 0; r < i; r++)
1064
+ t(r); }, this.ib = function (e) { if ("Disabled" !== o.headerClickHandling) {
1065
+ var t = this.data, n = o.jb(t), a = {};
1062
1066
  a.header = {}, a.header.id = t.id, a.header.name = t.name, a.header.start = t.start, a.column = n, a.originalEvent = e, a.shift = e.shiftKey, a.ctrl = e.ctrlKey, a.meta = e.metaKey, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof o.onHeaderClick && (o.onHeaderClick(a), a.preventDefault.value) || "function" == typeof o.onHeaderClicked && o.onHeaderClicked(a);
1063
- } }, this.kb = function (e) { return new DayPilot.CalendarColumn(e, o); }, this.lb = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.ja = function () { for (var e = this.nav.header, t = !0; this.headerCreated && e && e.rows && e.rows.length > 0;)
1064
- this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0); this.headerCreated = !0; this.ib(t); }, 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 n = {}; n.command = e, this.V("Command", t, n); }, this.loadingStop = function () { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.mb = function () { var e = this.nav.scroll; e.root = this, o.nb(), e.onscroll || (e.onscroll = function () { o.ob(); }); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.pb = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.qb = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp)); }, this.events = {}, this.events.add = function (e) {
1067
+ } }, this.jb = function (e) { return new DayPilot.CalendarColumn(e, o); }, this.kb = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.ja = function () { for (var e = this.nav.header, t = !0; this.headerCreated && e && e.rows && e.rows.length > 0;)
1068
+ this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0); this.headerCreated = !0; this.hb(t); }, 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 n = {}; n.command = e, this.V("Command", t, n); }, this.loadingStop = function () { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.lb = function () { var e = this.nav.scroll; e.root = this, o.mb(), e.onscroll || (e.onscroll = function () { o.nb(); }); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.ob = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.pb = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp)); }, this.events = {}, this.events.add = function (e) {
1065
1069
  var t = null;
1066
1070
  if (e instanceof DayPilot.Event)
1067
1071
  t = e.data;
@@ -1070,7 +1074,7 @@ var DayPilot = { Global: {} };
1070
1074
  throw "DayPilot.Calendar.events.add() expects an object or DayPilot.Event instance.";
1071
1075
  t = e;
1072
1076
  }
1073
- o.events.list || (o.events.list = []), o.events.list.push(t), o.rb({ "eventsOnly": !0 }), o.wa.notify();
1077
+ o.events.list || (o.events.list = []), o.events.list.push(t), o.qb({ "eventsOnly": !0 }), o.wa.notify();
1074
1078
  }, this.events.find = function (e) { if (!o.events.list)
1075
1079
  return null; if ("function" == typeof e) {
1076
1080
  for (var t = e, n = 0; n < o.events.list.length; n++) {
@@ -1091,7 +1095,7 @@ var DayPilot = { Global: {} };
1091
1095
  var n = DayPilot.indexOf(o.events.list, t.data);
1092
1096
  o.events.list.splice(n, 1, e);
1093
1097
  }
1094
- } o.rb({ "eventsOnly": !0 }), o.wa.notify(); }, this.events.remove = function (e) { var t; if (e instanceof DayPilot.Event)
1098
+ } o.qb({ "eventsOnly": !0 }), o.wa.notify(); }, this.events.remove = function (e) { var t; if (e instanceof DayPilot.Event)
1095
1099
  t = e.data;
1096
1100
  else if ("object" == typeof e) {
1097
1101
  var n = o.events.find(e.id);
@@ -1100,7 +1104,7 @@ var DayPilot = { Global: {} };
1100
1104
  else if ("string" == typeof e || "number" == typeof e) {
1101
1105
  var n = o.events.find(e);
1102
1106
  n && (t = n.data);
1103
- } var a = DayPilot.indexOf(o.events.list, t); o.events.list.splice(a, 1), o.rb({ "eventsOnly": !0 }), o.wa.notify(); }, this.events.load = function (e, t, n) { var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof n && n(t); }, i = function (e) { var n, i = e.request; try {
1107
+ } var a = DayPilot.indexOf(o.events.list, t); o.events.list.splice(a, 1), o.qb({ "eventsOnly": !0 }), o.wa.notify(); }, this.events.load = function (e, t, n) { var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof n && n(t); }, i = function (e) { var n, i = e.request; try {
1104
1108
  n = JSON.parse(i.responseText);
1105
1109
  }
1106
1110
  catch (e) {
@@ -1110,26 +1114,26 @@ var DayPilot = { Global: {} };
1110
1114
  var s = {};
1111
1115
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = n, "function" == typeof t && t(s), s.preventDefault.value)
1112
1116
  return;
1113
- o.events.list = n, o.Ma && o.rb({ "eventsOnly": !0 });
1117
+ o.events.list = n, o.La && o.qb({ "eventsOnly": !0 });
1114
1118
  } }; if (o.eventsLoadMethod && "POST" === o.eventsLoadMethod.toUpperCase())
1115
1119
  DayPilot.Http.ajax({ "method": "POST", "data": { "start": o.visibleStart().toString(), "end": o.visibleEnd().toString() }, "url": e, "success": i, "error": a });
1116
1120
  else {
1117
1121
  var r = e, s = "start=" + o.visibleStart().toString() + "&end=" + o.visibleEnd().toString();
1118
1122
  r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": i, "error": a });
1119
- } }, this.sb = function () { if (o.nav.top.className !== o.L("_main")) {
1120
- o.nav.top.className = o.L("_main");
1121
- var e = o.nav.corner;
1122
- e.className = o.L("_corner"), e.firstChild.className = o.L("_corner_inner");
1123
- var t = o.nav.cornerRight;
1124
- t && (t.className = o.L("_cornerright"), t.firstChild.className = o.L("_cornerright_inner"));
1123
+ } }, this.rb = function () { var e = o.L("_main"); if (o.cssClass && (e += " " + o.cssClass), o.rtl && (e += " " + o.L("_direction_rtl")), o.nav.top.className !== e) {
1124
+ o.nav.top.className = e;
1125
+ var t = o.nav.corner;
1126
+ t.className = o.L("_corner"), t.firstChild.className = o.L("_corner_inner");
1127
+ var n = o.nav.cornerRight;
1128
+ n && (n.className = o.L("_cornerright"), n.firstChild.className = o.L("_cornerright_inner"));
1125
1129
  } }, this.update = function (e) { if (o.Q)
1126
- throw new DayPilot.Exception("You are trying to update a DayPilot.Calendar instance that has been disposed."); o.tb(e), o.rb(); }, this.rb = function (e) { if (this.Ma) {
1130
+ throw new DayPilot.Exception("You are trying to update a DayPilot.Calendar instance that has been disposed."); o.sb(e), o.qb(); }, this.qb = function (e) { if (this.La) {
1127
1131
  e = e || {};
1128
1132
  var t = !e.eventsOnly;
1129
- o.ub(), o.Z(), o.nav.top.style.cursor = "auto", t && (o.ga(), o.ja(), o.ka(), o.la(), o.ma(), o.eb(), o.pb(), o.sb(), o.nb()), o.ha(), o.ia(), o.na(), o.clearSelection(), this.visible ? this.show() : this.hide();
1130
- } }, this.vb = null, this.tb = function (e) { if (e) {
1133
+ o.tb(), o.Z(), o.nav.top.style.cursor = "auto", t && (o.ga(), o.ja(), o.ka(), o.la(), o.ma(), o.db(), o.ob(), o.rb(), o.mb()), o.ha(), o.ia(), o.na(), o.clearSelection(), this.visible ? this.show() : this.hide();
1134
+ } }, this.ub = null, this.sb = function (e) { if (e) {
1131
1135
  var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? o.events.list = e.list : o.events.list = e; } }, "columns": { "preInit": function () { o.columns.list = this.data; } } };
1132
- this.vb = t;
1136
+ this.ub = t;
1133
1137
  for (var n in e)
1134
1138
  if (t[n]) {
1135
1139
  var a = t[n];
@@ -1137,21 +1141,21 @@ var DayPilot = { Global: {} };
1137
1141
  }
1138
1142
  else
1139
1143
  o[n] = e[n];
1140
- } }, this.wb = function () { var e = this.vb; for (var t in e) {
1144
+ } }, this.vb = function () { var e = this.ub; for (var t in e) {
1141
1145
  var n = e[t];
1142
1146
  n.postInit && n.postInit();
1143
- } }, this.xb = function () { if (this.id && this.id.tagName)
1147
+ } }, this.wb = function () { if (this.id && this.id.tagName)
1144
1148
  this.nav.top = this.id;
1145
1149
  else {
1146
1150
  if ("string" != typeof this.id)
1147
1151
  throw "DayPilot.Calendar() constructor requires the target element or its ID as a parameter";
1148
1152
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
1149
1153
  throw "DayPilot.Calendar: The placeholder element not found: '" + e + "'.";
1150
- } }, this.yb = {}, this.yb.events = [], this.zb = function (e) { var t = this.yb.events, n = this.events.list[e], a = {}; for (var i in n)
1154
+ } }, this.xb = {}, this.xb.events = [], this.yb = function (e) { var t = this.xb.events, n = this.events.list[e], a = {}; for (var i in n)
1151
1155
  a[i] = n[i]; if (a.start = new DayPilot.Date(n.start), a.end = new DayPilot.Date(n.end), "function" == typeof this.onBeforeEventRender) {
1152
1156
  var r = {};
1153
1157
  r.control = o, r.data = a, this.onBeforeEventRender(r);
1154
- } t[e] = a; }, this.ha = function () { var e = this.events.list; if (o.yb.events = [], e) {
1158
+ } t[e] = a; }, this.ha = function () { var e = this.events.list; if (o.xb.events = [], e) {
1155
1159
  if (!DayPilot.isArray(e))
1156
1160
  throw new DayPilot.Exception("DayPilot.Calendar.events.list expects an array object. You supplied: " + typeof e);
1157
1161
  var t = e.length, n = 864e5;
@@ -1171,7 +1175,7 @@ var DayPilot = { Global: {} };
1171
1175
  }
1172
1176
  if ("function" == typeof this.onBeforeEventRender)
1173
1177
  for (var i = 0; i < t; i++)
1174
- this.zb(i);
1178
+ this.yb(i);
1175
1179
  for (var i = 0; i < this.Ba.length; i++) {
1176
1180
  var l = {};
1177
1181
  l.minEnd = 1e6, l.maxStart = -1, this.scrollLabels.push(l);
@@ -1191,49 +1195,49 @@ var DayPilot = { Global: {} };
1191
1195
  var D = _.boxBottom, S = "Always" === o.useEventBoxes;
1192
1196
  S ? (w.part.top = Math.floor(C / this.cellHeight) * this.cellHeight + 1, w.part.height = Math.max(Math.ceil(D / this.cellHeight) * this.cellHeight - w.part.top, this.cellHeight - 1) + 1) : (w.part.top = C + 1, w.part.height = k - C), w.part.barTop = Math.max(C - w.part.top - 1, 0), w.part.barHeight = Math.max(k - C - 2, 1);
1193
1197
  var M = w.part.top, T = w.part.top + w.part.height;
1194
- M > l.maxStart && (l.maxStart = M), T < l.minEnd && (l.minEnd = T), M < this.minStart && (this.minStart = M), T > this.maxEnd && (this.maxEnd = T), d.events.push(w), "function" == typeof this.onBeforeEventRender && (w.cache = this.yb.events[v]), w.part.start.getTime() === g && w.part.end.getTime() === y && (a[v] = !0);
1198
+ M > l.maxStart && (l.maxStart = M), T < l.minEnd && (l.minEnd = T), M < this.minStart && (this.minStart = M), T > this.maxEnd && (this.maxEnd = T), d.events.push(w), "function" == typeof this.onBeforeEventRender && (w.cache = this.xb.events[v]), w.part.start.getTime() === g && w.part.end.getTime() === y && (a[v] = !0);
1195
1199
  }
1196
1200
  }
1197
1201
  }
1198
1202
  }
1199
1203
  for (var i = 0; i < this.Ba.length; i++) {
1200
1204
  var d = this.Ba[i];
1201
- d.events.sort(this.Ab);
1205
+ d.events.sort(this.zb);
1202
1206
  for (var v = 0; v < d.events.length; v++) {
1203
1207
  var r = d.events[v];
1204
1208
  d.putIntoBlock(r);
1205
1209
  }
1206
1210
  for (var v = 0; v < d.blocks.length; v++) {
1207
1211
  var A = d.blocks[v];
1208
- A.events.sort(this.Ab);
1212
+ A.events.sort(this.zb);
1209
1213
  for (var E = 0; E < A.events.length; E++) {
1210
1214
  var r = A.events[E];
1211
1215
  A.putIntoLine(r);
1212
1216
  }
1213
1217
  }
1214
1218
  }
1215
- } }, this.Ab = function (e, t) { if (!(e && t && e.start && t.start))
1219
+ } }, this.zb = function (e, t) { if (!(e && t && e.start && t.start))
1216
1220
  return 0; var n = e.start().getTime() - t.start().getTime(); return 0 !== n ? n : t.end().getTime() - e.end().getTime(); }, this.debug = function (e) { this.debuggingEnabled && (o.debugMessages || (o.debugMessages = []), o.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.getPixels = function (e, t) { t || (t = this.startDate); var n = t.getTime(), a = e.getTime(), i = s.fa(), r = this.cache.pixels[a + "_" + n]; if (r)
1217
- return r; n = t.getTime(); var o = 60 * i * 1e3, l = a - n, d = l % o, c = l - d, u = c + o; 0 === d && (u = c); var h = {}; return h.cut = !1, h.top = this.Bb(l), h.boxTop = this.Bb(c), h.boxBottom = this.Bb(u), this.cache.pixels[a + "_" + n] = h, h; }, this.Bb = function (e) { return Math.floor(this.cellHeight * e / (6e4 * s.fa())); }, this.ub = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.ia = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.ma = function () { var e = this.Ya(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.wa = {}, this.wa.scope = null, this.wa.notify = function () { o.wa.scope && o.wa.scope["$apply"](); }, this.wa.apply = function (e) { e(); }, this.ob = function () { if (o.nav.scroll && o.Cb()) {
1221
+ return r; n = t.getTime(); var o = 60 * i * 1e3, l = a - n, d = l % o, c = l - d, u = c + o; 0 === d && (u = c); var h = {}; return h.cut = !1, h.top = this.Ab(l), h.boxTop = this.Ab(c), h.boxBottom = this.Ab(u), this.cache.pixels[a + "_" + n] = h, h; }, this.Ab = function (e) { return Math.floor(this.cellHeight * e / (6e4 * s.fa())); }, this.tb = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.ia = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.ma = function () { var e = this.Xa(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.wa = {}, this.wa.scope = null, this.wa.notify = function () { o.wa.scope && o.wa.scope["$apply"](); }, this.wa.apply = function (e) { e(); }, this.nb = function () { if (o.nav.scroll && o.Bb()) {
1218
1222
  var e = o.nav.scroll.scrollTop, t = s.fa(), n = 60 / t, a = e / (n * o.cellHeight);
1219
- o.Db.scrollHour = a;
1220
- } }, this.nb = function () { var e = 0, t = 60 / s.fa(); e = "number" == typeof o.Db.scrollHour ? t * o.cellHeight * o.Db.scrollHour : "Auto" === o.initScrollPos ? "BusinessHours" === this.heightSpec ? t * this.cellHeight * this.businessBeginsHour : 0 : this.initScrollPos; var n = o.nav.top; "none" === n.style.display ? (n.style.display = "", o.nav.scroll.scrollTop = e, n.style.display = "none") : o.nav.scroll.scrollTop = e; }, this.getScrollY = function () { return o.nav.scroll.scrollTop; }, this.setScrollY = function (e) { o.nav.scroll.scrollTop = e, o.ob(); }, this.Eb = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof o.events.list || !o.events.list); }, this.u = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { o.visible = !0, o.nav.top.style.display = "", this.pb(); }, this.hide = function () { o.visible = !1, o.nav.top.style.display = "none"; }, this.Fb = function () { this.ub(), this.ga(), this.Xa(), this.ja(), this.ka(), this.pb(), this.mb(), this.qb(), t.register(this), this.Gb(), this.V("Init"); }, this.Db = {}, this.Hb = function () { this.Db.themes = [], this.Db.themes.push(this.theme || this.cssClassPrefix); }, this.Ib = function () { for (var e = this.Db.themes, t = 0; t < e.length; t++) {
1223
+ o.Cb.scrollHour = a;
1224
+ } }, this.mb = function () { var e = 0, t = 60 / s.fa(); e = "number" == typeof o.Cb.scrollHour ? t * o.cellHeight * o.Cb.scrollHour : "Auto" === o.initScrollPos ? "BusinessHours" === this.heightSpec ? t * this.cellHeight * this.businessBeginsHour : 0 : this.initScrollPos; var n = o.nav.top; "none" === n.style.display ? (n.style.display = "", o.nav.scroll.scrollTop = e, n.style.display = "none") : o.nav.scroll.scrollTop = e; }, this.getScrollY = function () { return o.nav.scroll.scrollTop; }, this.setScrollY = function (e) { o.nav.scroll.scrollTop = e, o.nb(); }, this.Db = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof o.events.list || !o.events.list); }, this.u = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { o.visible = !0, o.nav.top.style.display = "", this.ob(); }, this.hide = function () { o.visible = !1, o.nav.top.style.display = "none"; }, this.Eb = function () { this.tb(), this.ga(), this.Wa(), this.ja(), this.ka(), this.ob(), this.lb(), this.pb(), t.register(this), this.Fb(), this.V("Init"); }, this.Cb = {}, this.Gb = function () { this.Cb.themes = [], this.Cb.themes.push(this.theme || this.cssClassPrefix); }, this.Hb = function () { for (var e = this.Cb.themes, t = 0; t < e.length; t++) {
1221
1225
  var n = e[t];
1222
1226
  DayPilot.Util.removeClass(this.nav.top, n + "_main");
1223
- } this.Db.themes = []; }, this.Jb = function () { if (this.afterRender(null, !1), "function" == typeof this.onAfterRender) {
1227
+ } this.Cb.themes = []; }, this.Ib = function () { if (this.afterRender(null, !1), "function" == typeof this.onAfterRender) {
1224
1228
  var e = {};
1225
1229
  e.isCallBack = !1, this.onAfterRender(e);
1226
- } }, this.Kb = function () { if ("function" == typeof this.onInit && !this.Lb) {
1227
- this.Lb = !0;
1230
+ } }, this.Jb = function () { if ("function" == typeof this.onInit && !this.Kb) {
1231
+ this.Kb = !0;
1228
1232
  var e = {};
1229
1233
  this.onInit(e);
1230
- } }, this.Cb = function () { var e = o.nav.top; return !!e && (e.offsetWidth > 0 && e.offsetHeight > 0); }, this.Gb = function () { var e = o.Cb; e() || (o.Y = setInterval(function () { e() && (o.mb(), o.pb(), clearInterval(o.Y)); }, 100)); }, this._a = function (e, t) { return o.R.da() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Sa = {}, this.Sa.Ra = null, this.Sa.Mb = function (e, t, n) { var a = o.Sa.Ra; if ("function" == typeof a.createVNode && "function" == typeof a.render) {
1234
+ } }, this.Bb = function () { var e = o.nav.top; return !!e && (e.offsetWidth > 0 && e.offsetHeight > 0); }, this.Fb = function () { var e = o.Bb; e() || (o.Y = setInterval(function () { e() && (o.lb(), o.ob(), clearInterval(o.Y)); }, 100)); }, this.$a = function (e, t) { return o.R.da() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Ra = {}, this.Ra.Qa = null, this.Ra.Lb = function (e, t, n) { var a = o.Ra.Qa; if ("function" == typeof a.createVNode && "function" == typeof a.render) {
1231
1235
  var i = a.createVNode(e, n);
1232
1236
  a.render(i, t);
1233
- } }, this.Sa.Wa = function (e, t) { var n = o.Sa.Ra; if ("function" == typeof n.render) {
1237
+ } }, this.Ra.Va = function (e, t) { var n = o.Ra.Qa; if ("function" == typeof n.render) {
1234
1238
  var a = e;
1235
1239
  DayPilot.isArray(e) && (a = n.h("div", null, e)), n.render(a, t);
1236
- } }, this.Sa.Ua = function (e) { var t = o.Sa.Ra; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = o.tb, this.internal.xssTextHtml = o._a, this.internal.enableVue = function (e) { o.Sa.Ra = e; }, this.internal.vueRef = function () { return o.Sa.Ra; }, this.internal.vueRendering = function () { return o.Sa.Ta; }, this.init = function () { this.xb(); var e = this.Eb(); return this.Hb(), e ? void this.Fb() : (this.ub(), this.ga(), this.ha(), this.Xa(), this.ja(), this.ka(), this.u(), this.pb(), this.mb(), this.qb(), t.register(this), this.events && (this.ia(), this.na()), this.Jb(), this.Kb(), this.Gb(), this.Ma = !0, this); }, this.Init = this.init, this.tb(i);
1240
+ } }, this.Ra.Ta = function (e) { var t = o.Ra.Qa; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = o.sb, this.internal.xssTextHtml = o.$a, this.internal.enableVue = function (e) { o.Ra.Qa = e; }, this.internal.vueRef = function () { return o.Ra.Qa; }, this.internal.vueRendering = function () { return o.Ra.Sa; }, this.init = function () { this.wb(); var e = this.Db(); return this.Gb(), e ? void this.Eb() : (this.tb(), this.ga(), this.ha(), this.Wa(), this.ja(), this.ka(), this.u(), this.ob(), this.lb(), this.pb(), t.register(this), this.events && (this.ia(), this.na()), this.Ib(), this.Jb(), this.Fb(), this.La = !0, this); }, this.Init = this.init, this.sb(i);
1237
1241
  }, DayPilot.CalendarColumn = function (e, t) { var n = this; n.id = e.id, n.name = e.name, n.data = e.data, n.start = new DayPilot.Date(e.start), n.calendar = t, n.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) { e.fn.daypilotCalendar = function (e) { var t = null, n = this.each(function () { if (!this.daypilot) {
1238
1242
  var n = new DayPilot.Calendar(this.id);
1239
1243
  this.daypilot = n;
@@ -1244,41 +1248,41 @@ var DayPilot = { Global: {} };
1244
1248
  (0, e(o).assign)(t, i);
1245
1249
  } for (var s in a)
1246
1250
  0 === s.indexOf("on") && !function (n) { i[n] = function (i) { var r = e(a[n]); t["$apply"](function () { r(t, { "args": i }); }); }; }(s); var l = t["$watch"], d = a["config"] || a["daypilotConfig"], c = a["events"] || a["daypilotEvents"]; l.call(t, d, function (e) { for (var t in e)
1247
- i[t] = e[t]; i.update(), i.Kb(); }, !0), l.call(t, c, function (e) { i.events.list = e, i.update(); }, !0); } }; }]); }();
1251
+ i[t] = e[t]; i.update(), i.Jb(); }, !0), l.call(t, c, function (e) { i.events.list = e, i.update(); }, !0); } }; }]); }();
1248
1252
  }
1249
1253
  }(DayPilot), function (DayPilot) { "undefined" == typeof DayPilot.DatePicker && (DayPilot.DatePicker = function (e) { this.v = "${v}"; var t = "navigator_" + (new Date).getTime(), n = this; this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () { if (this.locale = "en-us", this.target = null, this.targetAlignment = "left", this.resetTarget = !0, this.pattern = this.R.locale().datePattern, this.theme = "navigator_default", this.patterns = [], this.zIndex = null, this.showToday = !0, this.todayText = "Today", this.weekStarts = "Auto", e)
1250
1254
  for (var t in e)
1251
- this[t] = e[t]; }, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.Nb(); this.resetTarget && !e ? this.Ob(this.date) : !this.resetTarget && e && (n.date = e); var t = this.D(); return t && t.addEventListener("input", function () { n.date = n.Nb(), n.date && n.navigator.select(n.date, { dontNotify: !0 }); }), this; }, this.close = function () { document.removeEventListener("mousedown", n.close), document.removeEventListener("wheel", n.close), window.removeEventListener("resize", n.close), n.Cb && (n.Cb = !1, n.navigator && n.navigator.dispose(), n.div.innerHTML = "", n.div && n.div.parentNode === document.body && document.body.removeChild(n.div)); }, this.Pb = function (e) { this.date = new DayPilot.Date(e), this.Ob(this.date); }, this.select = function (e) { var t = {}; t.date = new DayPilot.Date(e), t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.onTimeRangeSelect(t), t.preventDefault.value) || (this.Pb(e), "function" == typeof n.onTimeRangeSelected && n.onTimeRangeSelected(t)); }, this.Nb = function () { var e = this.D(); if (!e)
1255
+ this[t] = e[t]; }, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.Mb(); this.resetTarget && !e ? this.Nb(this.date) : !this.resetTarget && e && (n.date = e); var t = this.D(); return t && t.addEventListener("input", function () { n.date = n.Mb(), n.date && n.navigator.select(n.date, { dontNotify: !0 }); }), this; }, this.close = function () { document.removeEventListener("mousedown", n.close), document.removeEventListener("wheel", n.close), window.removeEventListener("resize", n.close), n.Bb && (n.Bb = !1, n.navigator && n.navigator.dispose(), n.div.innerHTML = "", n.div && n.div.parentNode === document.body && document.body.removeChild(n.div)); }, this.Ob = function (e) { this.date = new DayPilot.Date(e), this.Nb(this.date); }, this.select = function (e) { var t = {}; t.date = new DayPilot.Date(e), t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.onTimeRangeSelect(t), t.preventDefault.value) || (this.Ob(e), "function" == typeof n.onTimeRangeSelected && n.onTimeRangeSelected(t)); }, this.Mb = function () { var e = this.D(); if (!e)
1252
1256
  return this.date; var t = null; if (t = "INPUT" === e.tagName ? e.value : e.innerText, !t)
1253
1257
  return null; for (var a = DayPilot.Date.parse(t, n.pattern), i = 0; i < n.patterns.length; i++) {
1254
1258
  if (a)
1255
1259
  return a;
1256
1260
  a = DayPilot.Date.parse(t, n.patterns[i]);
1257
- } return a; }, this.Ob = function (e) { var t = this.D(); if (t) {
1261
+ } return a; }, this.Nb = function (e) { var t = this.D(); if (t) {
1258
1262
  var a = e.toString(n.pattern, n.locale);
1259
1263
  "INPUT" === t.tagName ? t.value = a : t.innerHTML = a;
1260
- } }, this.R = {}, this.R.locale = function () { return DayPilot.Locale.find(n.locale); }, this.D = function () { var e = this.target; return e && e.nodeType && 1 === e.nodeType ? e : document.getElementById(e); }, Object.defineProperty(this, "visible", { get: function () { return n.Cb; } }), this.show = function () { if (!this.Cb) {
1264
+ } }, this.R = {}, this.R.locale = function () { return DayPilot.Locale.find(n.locale); }, this.D = function () { var e = this.target; return e && e.nodeType && 1 === e.nodeType ? e : document.getElementById(e); }, Object.defineProperty(this, "visible", { get: function () { return n.Bb; } }), this.show = function () { if (!this.Bb) {
1261
1265
  document.addEventListener("mousedown", n.close), document.addEventListener("wheel", n.close), window.addEventListener("resize", n.close);
1262
1266
  var e = this.D(), a = new DayPilot.Navigator(t);
1263
- a.api = 2, a.cssOnly = !0, a.theme = n.theme, a.weekStarts = "Auto", a.locale = n.locale, a.showToday = n.showToday, a.todayText = n.todayText, a.weekStarts = n.weekStarts, a.onTodayClick = function (e) { a.onTimeRangeSelected({ start: DayPilot.Date.today() }), e.preventDefault(); }, a.onTimeRangeSelected = function (e) { n.date = e.start; var t = e.start.addTime(a.Qb), i = t.toString(n.pattern, n.locale), r = {}; r.start = t, r.date = t, r.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.onTimeRangeSelect(r), r.preventDefault.value) || (n.Ob(i), n.close(), "function" == typeof n.onTimeRangeSelected && n.onTimeRangeSelected(r)); }, this.navigator = a;
1267
+ a.api = 2, a.cssOnly = !0, a.theme = n.theme, a.weekStarts = "Auto", a.locale = n.locale, a.showToday = n.showToday, a.todayText = n.todayText, a.weekStarts = n.weekStarts, a.onTodayClick = function (e) { a.onTimeRangeSelected({ start: DayPilot.Date.today() }), e.preventDefault(); }, a.onTimeRangeSelected = function (e) { n.date = e.start; var t = e.start.addTime(a.Pb), i = t.toString(n.pattern, n.locale), r = {}; r.start = t, r.date = t, r.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.onTimeRangeSelect(r), r.preventDefault.value) || (n.Nb(i), n.close(), "function" == typeof n.onTimeRangeSelected && n.onTimeRangeSelected(r)); }, this.navigator = a;
1264
1268
  var i = { x: 0, y: 0, w: 0, h: 0 };
1265
1269
  e && (i = DayPilot.abs(e));
1266
1270
  var r = i.h, o = n.targetAlignment, s = document.createElement("div");
1267
1271
  s.style.position = "absolute", "left" === o && (s.style.left = i.x + "px"), s.style.top = i.y + r + "px", n.zIndex && (s.style.zIndex = n.zIndex);
1268
1272
  var l = document.createElement("div");
1269
1273
  l.id = t, s.appendChild(l), s.addEventListener("mousedown", function (e) { e.stopPropagation(); }), document.body.appendChild(s), this.div = s;
1270
- var d = n.Nb() || n.date;
1271
- if (a.startDate = d, a.Qb = d.getTimePart(), a.selectionDay = d.getDatePart(), a.init(), "right" === o) {
1274
+ var d = n.Mb() || n.date;
1275
+ if (a.startDate = d, a.Pb = d.getTimePart(), a.selectionDay = d.getDatePart(), a.init(), "right" === o) {
1272
1276
  var c = i.x + i.w - a.nav.top.offsetWidth;
1273
1277
  s.style.left = c + "px";
1274
1278
  }
1275
- if (this.Cb = !0, this.onShow) {
1279
+ if (this.Bb = !0, this.onShow) {
1276
1280
  var u = {};
1277
1281
  this.onShow(u);
1278
1282
  }
1279
1283
  } }, this.prepare(), this.init(); }); }(DayPilot), function (DayPilot) { if ("undefined" == typeof DayPilot.Menu || !DayPilot.Menu.def) {
1280
1284
  var e = function () { }, t = {};
1281
- t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (n) { var a = this, i = null; this.v = "${v}", 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; var r = DayPilot.isArray(n) ? null : n; if (this.Rb = function () { }, n && DayPilot.isArray(n) && (this.items = n), this.toJSON = function () { return null; }, this.show = function (n, r) { r = r || {}; var o = null; if (n ? "string" == typeof n.id || "number" == typeof n.id ? o = n.id : "function" == typeof n.id ? o = n.id() : "function" == typeof n.value && (o = n.value()) : o = null, "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), r.submenu || t.menuClean(), this.Rb.submenu = null, null !== t.mouse) {
1285
+ t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (n) { var a = this, i = null; this.v = "${v}", 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; var r = DayPilot.isArray(n) ? null : n; if (this.Qb = function () { }, n && DayPilot.isArray(n) && (this.items = n), this.toJSON = function () { return null; }, this.show = function (n, r) { r = r || {}; var o = null; if (n ? "string" == typeof n.id || "number" == typeof n.id ? o = n.id : "function" == typeof n.id ? o = n.id() : "function" == typeof n.value && (o = n.value()) : o = null, "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), r.submenu || t.menuClean(), this.Qb.submenu = null, null !== t.mouse) {
1282
1286
  a.cssOnly || (a.cssOnly = !0);
1283
1287
  var s = null;
1284
1288
  if (n && n.isRow && n.$.row.task ? (s = new DayPilot.Task(n.$.row.task, n.calendar), s.menuType = "resource") : s = n && n.isEvent && n.data.task ? new DayPilot.Task(n, n.calendar) : n, "function" == typeof a.onShow) {
@@ -1287,15 +1291,15 @@ var DayPilot = { Global: {} };
1287
1291
  return;
1288
1292
  }
1289
1293
  var d = document.createElement("div");
1290
- if (d.style.position = "absolute", d.style.top = "0px", d.style.left = "0px", d.style.display = "none", d.style.overflow = "hidden", d.style.zIndex = this.zIndex + 1, d.className = this.Sb("main"), d.onclick = function (e) { e.cancelBubble = !0, this.parentNode.removeChild(this); }, this.hideOnMouseOut && (d.onmousemove = function () { clearTimeout(t.hideTimeout); }, d.onmouseleave = function () { a.delayedHide({ "hideParent": !0 }); }), !this.items || 0 === this.items.length)
1294
+ if (d.style.position = "absolute", d.style.top = "0px", d.style.left = "0px", d.style.display = "none", d.style.overflow = "hidden", d.style.zIndex = this.zIndex + 1, d.className = this.Rb("main"), d.onclick = function (e) { e.cancelBubble = !0, this.parentNode.removeChild(this); }, this.hideOnMouseOut && (d.onmousemove = function () { clearTimeout(t.hideTimeout); }, d.onmouseleave = function () { a.delayedHide({ "hideParent": !0 }); }), !this.items || 0 === this.items.length)
1291
1295
  throw "No menu items defined.";
1292
1296
  if (this.showMenuTitle) {
1293
1297
  var c = document.createElement("div");
1294
- c.innerHTML = this.menuTitle, c.className = this.Sb("title"), d.appendChild(c);
1298
+ c.innerHTML = this.menuTitle, c.className = this.Rb("title"), d.appendChild(c);
1295
1299
  }
1296
1300
  for (var u = 0; u < this.items.length; u++) {
1297
1301
  var h = this.items[u], f = document.createElement("div");
1298
- if (DayPilot.Util.addClass(f, this.Sb("item")), h.items && (DayPilot.Util.addClass(f, this.Sb("item_haschildren")), DayPilot.Util.addClass(d, this.Sb("withchildren"))), "undefined" != typeof h && !h.hidden) {
1302
+ if (DayPilot.Util.addClass(f, this.Rb("item")), h.items && (DayPilot.Util.addClass(f, this.Rb("item_haschildren")), DayPilot.Util.addClass(d, this.Rb("withchildren"))), "undefined" != typeof h && !h.hidden) {
1299
1303
  if ("-" === h.text) {
1300
1304
  var v = document.createElement("div");
1301
1305
  v.addEventListener("click", function (e) { e.stopPropagation(); }), f.appendChild(v);
@@ -1303,7 +1307,7 @@ var DayPilot = { Global: {} };
1303
1307
  else {
1304
1308
  var p = document.createElement("a");
1305
1309
  if (p.style.position = "relative", p.style.display = "block", h.cssClass && DayPilot.Util.addClass(p, h.cssClass), h.disabled)
1306
- DayPilot.Util.addClass(p, a.Sb("item_disabled"));
1310
+ DayPilot.Util.addClass(p, a.Rb("item_disabled"));
1307
1311
  else {
1308
1312
  if (h.onclick || h.onClick) {
1309
1313
  p.item = h, p.onclick = function (e, t) { return function (n) { if ("function" == typeof e.onClick) {
@@ -1319,7 +1323,7 @@ var DayPilot = { Global: {} };
1319
1323
  DayPilot.reNonPassive(p, "touchstart", m(h, p)), DayPilot.reNonPassive(p, "touchend", g(h, p));
1320
1324
  }
1321
1325
  if (h.items && !h.disabled) {
1322
- var y = function (e, t) { return function (n) { n.preventDefault(), n.stopPropagation(), a.Tb(e, t); }; };
1326
+ var y = function (e, t) { return function (n) { n.preventDefault(), n.stopPropagation(), a.Sb(e, t); }; };
1323
1327
  p.ontouchend = y(h, p);
1324
1328
  }
1325
1329
  if (h.onclick)
@@ -1350,13 +1354,13 @@ var DayPilot = { Global: {} };
1350
1354
  }
1351
1355
  h.items && p.addEventListener("click", function (e) { e.stopPropagation(); }), p.source = s, p.menuSource = n;
1352
1356
  var b = document.createElement("span");
1353
- if (b.className = a.Sb("item_text"), b.innerHTML = DayPilot.Util.escapeTextHtml(h.text, h.html), p.appendChild(b), h.image) {
1357
+ if (b.className = a.Rb("item_text"), b.innerHTML = DayPilot.Util.escapeTextHtml(h.text, h.html), p.appendChild(b), h.image) {
1354
1358
  var w = document.createElement("img");
1355
1359
  w.src = h.image, w.style.position = "absolute", w.style.top = "0px", w.style.left = "0px", p.appendChild(w);
1356
1360
  }
1357
1361
  if (h.icon) {
1358
1362
  var x = document.createElement("span");
1359
- x.className = a.Sb("item_icon");
1363
+ x.className = a.Rb("item_icon");
1360
1364
  var _ = document.createElement("i");
1361
1365
  _.className = h.icon, x.appendChild(_), p.appendChild(x);
1362
1366
  }
@@ -1366,23 +1370,23 @@ var DayPilot = { Global: {} };
1366
1370
  var D = document.createElementNS(C, "use");
1367
1371
  D.setAttribute("href", h.symbol), k.appendChild(D);
1368
1372
  var S = document.createElement("span");
1369
- S.className = a.Sb("item_symbol"), S.style.position = "absolute", S.style.top = "0px", S.style.left = "0px", S.appendChild(k), p.appendChild(S);
1373
+ S.className = a.Rb("item_symbol"), S.style.position = "absolute", S.style.top = "0px", S.style.left = "0px", S.appendChild(k), p.appendChild(S);
1370
1374
  }
1371
1375
  var M = function (e, n) { return function () { var i = e, r = t.waitingSubmenu; if (r) {
1372
1376
  if (r.parent === i)
1373
1377
  return;
1374
1378
  clearTimeout(r.timeout), t.waitingSubmenu = null;
1375
- } e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = i, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, a.Tb(i, n); }, 300)); }; };
1379
+ } e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = i, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, a.Sb(i, n); }, 300)); }; };
1376
1380
  p.onmouseover = M(h, p), f.appendChild(p);
1377
1381
  }
1378
1382
  d.appendChild(f);
1379
1383
  }
1380
1384
  }
1381
1385
  var T = function () { window.setTimeout(function () { t.menuClean(), DayPilot.MenuBar.deactivate(); }, 100); };
1382
- d.onclick = T, d.ontouchend = T, d.onmousedown = function (e) { e.stopPropagation(); }, d.oncontextmenu = function () { return !1; }, document.body.appendChild(d), a.Rb.visible = !0, a.Rb.source = n, d.style.display = "";
1386
+ d.onclick = T, d.ontouchend = T, d.onmousedown = function (e) { e.stopPropagation(); }, d.oncontextmenu = function () { return !1; }, document.body.appendChild(d), a.Qb.visible = !0, a.Qb.source = n, d.style.display = "";
1383
1387
  var A = d.offsetHeight, E = d.offsetWidth;
1384
1388
  d.style.display = "none";
1385
- var H = document.documentElement.clientHeight, N = window.innerWidth, I = "number" == typeof r.windowMargin ? r.windowMargin : 5;
1389
+ var H = document.documentElement.clientHeight, R = window.innerWidth, N = "number" == typeof r.windowMargin ? r.windowMargin : 5;
1386
1390
  if (function () { var e = r.initiator; if (e) {
1387
1391
  var t = e.div, n = e.e, a = e.area, o = a.visibility || a.v || "Visible", s = e.a;
1388
1392
  if ("Visible" !== o && (s = DayPilot.Areas.createArea(t, n, a), t.appendChild(s), i = s), s) {
@@ -1390,43 +1394,43 @@ var DayPilot = { Global: {} };
1390
1394
  r.x = l.x, r.y = l.y + l.h + 2;
1391
1395
  }
1392
1396
  } }(), function () { var e = "number" == typeof r.x ? r.x : t.mouse.x + 1, n = "number" == typeof r.y ? r.y : t.mouse.y + 1, i = document.body.scrollTop || document.documentElement.scrollTop, o = document.body.scrollLeft || document.documentElement.scrollLeft, s = 0, l = 0; if (n - i > H - A && 0 !== H) {
1393
- s = n - (n - i - (H - A) + I);
1397
+ s = n - (n - i - (H - A) + N);
1394
1398
  }
1395
1399
  else
1396
- s = n; if (a.Rb.y = s, d.style.top = s + "px", "right" === r.align && (e -= E), e - o > N - E && 0 !== N) {
1397
- l = e - (e - o - (N - E) + I);
1400
+ s = n; if (a.Qb.y = s, d.style.top = s + "px", "right" === r.align && (e -= E), e - o > R - E && 0 !== R) {
1401
+ l = e - (e - o - (R - E) + N);
1398
1402
  }
1399
1403
  else
1400
- l = e; a.Rb.x = l, d.style.left = l + "px"; }(), r.parentLink) {
1401
- var R = r.parentLink, P = parseInt(new DayPilot.StyleReader(d).get("border-top-width")), L = DayPilot.abs(r.parentLink.parentNode), z = L.x + R.offsetWidth, B = L.y - P;
1402
- z + E > N && (z = Math.max(0, L.x - E));
1404
+ l = e; a.Qb.x = l, d.style.left = l + "px"; }(), r.parentLink) {
1405
+ var I = r.parentLink, L = parseInt(new DayPilot.StyleReader(d).get("border-top-width")), P = DayPilot.abs(r.parentLink.parentNode), B = P.x + I.offsetWidth, z = P.y - L;
1406
+ B + E > R && (B = Math.max(0, P.x - E));
1403
1407
  var U = document.body.scrollTop + document.documentElement.scrollTop;
1404
- B + A - U > H && (B = Math.max(0, H - A + U)), d.style.left = z + "px", d.style.top = B + "px";
1408
+ z + A - U > H && (z = Math.max(0, H - A + U)), d.style.left = B + "px", d.style.top = z + "px";
1405
1409
  }
1406
- d.style.display = "", this.addShadow(d), this.Rb.div = d, r.submenu || (DayPilot.Menu.active = this);
1407
- } }, this.update = function () { if (a.Rb.visible) {
1408
- var e = a.Rb.source;
1409
- a.hide(), a.show(e, { "x": a.Rb.x, "y": a.Rb.y });
1410
- } }, this.Tb = function (e, t) { var n = e, i = t.source; if ((!a.Rb.submenu || a.Rb.submenu.item !== e) && (a.Rb.submenu && a.Rb.submenu.item !== e && (DayPilot.Util.removeClass(a.Rb.submenu.link.parentNode, a.Sb("item_haschildren_active")), a.Rb.submenu.menu.hide(), a.Rb.submenu = null), e.items)) {
1410
+ d.style.display = "", this.addShadow(d), this.Qb.div = d, r.submenu || (DayPilot.Menu.active = this);
1411
+ } }, this.update = function () { if (a.Qb.visible) {
1412
+ var e = a.Qb.source;
1413
+ a.hide(), a.show(e, { "x": a.Qb.x, "y": a.Qb.y });
1414
+ } }, this.Sb = function (e, t) { var n = e, i = t.source; if ((!a.Qb.submenu || a.Qb.submenu.item !== e) && (a.Qb.submenu && a.Qb.submenu.item !== e && (DayPilot.Util.removeClass(a.Qb.submenu.link.parentNode, a.Rb("item_haschildren_active")), a.Qb.submenu.menu.hide(), a.Qb.submenu = null), e.items)) {
1411
1415
  var r = a.cloneOptions();
1412
- r.items = e.items, a.Rb.submenu = {}, a.Rb.submenu.menu = new DayPilot.Menu(r), a.Rb.submenu.menu.Ub = a, a.Rb.submenu.menu.show(i, { "submenu": !0, "parentLink": t, "parentItem": n }), a.Rb.submenu.item = e, a.Rb.submenu.link = t, DayPilot.Util.addClass(t.parentNode, a.Sb("item_haschildren_active"));
1413
- } }, this.Sb = function (e) { var t = this.theme || this.cssClassPrefix, n = this.cssOnly ? "_" : ""; return t ? t + n + e : ""; }, this.cloneOptions = function () { return DayPilot.Util.copyProps(r, {}, ["cssClassPrefix", "theme", "hideAfter", "hideOnMouseOut", "zIndex"]); }, this.hide = function (e) { e = e || {}, this.Rb.submenu && this.Rb.submenu.menu.hide(); var n = t.waitingSubmenu; if (n && (t.waitingSubmenu = null, clearTimeout(n.timeout)), this.removeShadow(), this.Rb.div && this.Rb.div.parentNode === document.body && document.body.removeChild(this.Rb.div), i && (DayPilot.de(i), i = null), a.Rb.visible = !1, a.Rb.source = null, a.Ub && e.hideParent && a.Ub.hide(e), DayPilot.Menu.active === a && (DayPilot.Menu.active = null), "function" == typeof this.onHide) {
1416
+ r.items = e.items, a.Qb.submenu = {}, a.Qb.submenu.menu = new DayPilot.Menu(r), a.Qb.submenu.menu.Tb = a, a.Qb.submenu.menu.show(i, { "submenu": !0, "parentLink": t, "parentItem": n }), a.Qb.submenu.item = e, a.Qb.submenu.link = t, DayPilot.Util.addClass(t.parentNode, a.Rb("item_haschildren_active"));
1417
+ } }, this.Rb = function (e) { var t = this.theme || this.cssClassPrefix, n = this.cssOnly ? "_" : ""; return t ? t + n + e : ""; }, this.cloneOptions = function () { return DayPilot.Util.copyProps(r, {}, ["cssClassPrefix", "theme", "hideAfter", "hideOnMouseOut", "zIndex"]); }, this.hide = function (e) { e = e || {}, this.Qb.submenu && this.Qb.submenu.menu.hide(); var n = t.waitingSubmenu; if (n && (t.waitingSubmenu = null, clearTimeout(n.timeout)), this.removeShadow(), this.Qb.div && this.Qb.div.parentNode === document.body && document.body.removeChild(this.Qb.div), i && (DayPilot.de(i), i = null), a.Qb.visible = !1, a.Qb.source = null, a.Tb && e.hideParent && a.Tb.hide(e), DayPilot.Menu.active === a && (DayPilot.Menu.active = null), "function" == typeof this.onHide) {
1414
1418
  var r = {};
1415
1419
  this.onHide(r);
1416
1420
  } }, this.delayedHide = function (e) { t.hideTimeout = setTimeout(function () { a.hide(e); }, a.hideAfter); }, this.cancelHideTimeout = function () { clearTimeout(t.hideTimeout); }, this.init = function (e) { return t.mouseMove(e), this; }, this.addShadow = function () { }, this.removeShadow = function () { }, r)
1417
1421
  for (var o in r)
1418
- this[o] = r[o]; }, DayPilot.MenuBar = function (e, t) { var n = this; t = t || {}, this.items = [], this.theme = "menubar_default", this.windowMargin = 0, this.nav = {}, this.elements = {}, this.elements.items = DayPilot.list(), this.l = null, this.Ma = !1; for (var a in t)
1419
- this[a] = t[a]; this.Vb = function (e) { return this.theme + "_" + e; }, this.u = function () { this.nav.top = document.getElementById(e); var t = this.nav.top; t.className = this.Vb("main"), DayPilot.list(n.items).forEach(function (e) { var a = document.createElement("span"); a.innerHTML = DayPilot.Util.escapeTextHtml(e.text, e.html), a.className = n.Vb("item"), e.cssClass && a.classList.add(e.cssClass), a.data = e, a.onclick = function (t) { if (n.active && n.active.item === e)
1420
- n.Wb();
1422
+ this[o] = r[o]; }, DayPilot.MenuBar = function (e, t) { var n = this; t = t || {}, this.items = [], this.theme = "menubar_default", this.windowMargin = 0, this.nav = {}, this.elements = {}, this.elements.items = DayPilot.list(), this.l = null, this.La = !1; for (var a in t)
1423
+ this[a] = t[a]; this.Ub = function (e) { return this.theme + "_" + e; }, this.u = function () { this.nav.top = document.getElementById(e); var t = this.nav.top; t.className = this.Ub("main"), DayPilot.list(n.items).forEach(function (e) { var a = document.createElement("span"); a.innerHTML = DayPilot.Util.escapeTextHtml(e.text, e.html), a.className = n.Ub("item"), e.cssClass && a.classList.add(e.cssClass), a.data = e, a.onclick = function (t) { if (n.active && n.active.item === e)
1424
+ n.Vb();
1421
1425
  else if (e.children)
1422
- return void n.Xb(a); if ("function" == typeof e.onClick) {
1426
+ return void n.Wb(a); if ("function" == typeof e.onClick) {
1423
1427
  var i = {};
1424
1428
  i.item = e, i.originalEvent = t, e.onClick(i);
1425
- } }, a.onmousedown = function (e) { e.stopPropagation(); }, a.onmouseover = function () { n.active && n.active.item !== e && n.Xb(a); }, t.appendChild(a), n.elements.items.push(a); }); }, this.Wb = function () { var e = n.Vb("item_active"); n.elements.items.forEach(function (t) { DayPilot.Util.removeClass(t, e); }), n.active && n.active.menu && n.active.menu.hide(), n.active = null; }, this.Yb = function (e) { return !!n.active && n.active.item === e.data; }, this.Xb = function (e) { if (!n.Yb(e)) {
1426
- n.Wb();
1429
+ } }, a.onmousedown = function (e) { e.stopPropagation(); }, a.onmouseover = function () { n.active && n.active.item !== e && n.Wb(a); }, t.appendChild(a), n.elements.items.push(a); }); }, this.Vb = function () { var e = n.Ub("item_active"); n.elements.items.forEach(function (t) { DayPilot.Util.removeClass(t, e); }), n.active && n.active.menu && n.active.menu.hide(), n.active = null; }, this.Xb = function (e) { return !!n.active && n.active.item === e.data; }, this.Wb = function (e) { if (!n.Xb(e)) {
1430
+ n.Vb();
1427
1431
  var t = e.data, a = n.active = {};
1428
1432
  a.item = t, a.div = e;
1429
- var i = n.Vb("item_active");
1433
+ var i = n.Ub("item_active");
1430
1434
  DayPilot.Util.addClass(e, i);
1431
1435
  var r = DayPilot.abs(e);
1432
1436
  if (t.children) {
@@ -1435,11 +1439,11 @@ var DayPilot = { Global: {} };
1435
1439
  "right" === t.align && (o += r.w), a.menu.show(null, { "x": o, "y": r.y + r.h, "align": t.align, "windowMargin": n.windowMargin });
1436
1440
  }
1437
1441
  DayPilot.MenuBar.active = n;
1438
- } }, this.init = function () { return this.u(), this.Ma = !0, this; }, this.dispose = function () { this.Ma && (this.nav.top.innerHTML = "", this.elements.items = []); }; }, DayPilot.MenuBar.deactivate = function () { DayPilot.MenuBar.active && (DayPilot.MenuBar.active.Wb(), DayPilot.MenuBar.active = null); }, t.menuClean = function () { "undefined" != typeof DayPilot.Menu.active && DayPilot.Menu.active && (DayPilot.Menu.active.hide(), DayPilot.Menu.active = null); }, t.mouseDown = function () { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.wheel = function () { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.resize = function () { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.mouseMove = function (e) { "undefined" != typeof t && (t.mouse = t.mousePosition(e)); }, t.touchMove = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchStart = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchEnd = function () { }, t.touchPosition = function (e) { if (!e || !e.touches)
1442
+ } }, this.init = function () { return this.u(), this.La = !0, this; }, this.dispose = function () { this.La && (this.nav.top.innerHTML = "", this.elements.items = []); }; }, DayPilot.MenuBar.deactivate = function () { DayPilot.MenuBar.active && (DayPilot.MenuBar.active.Vb(), DayPilot.MenuBar.active = null); }, t.menuClean = function () { "undefined" != typeof DayPilot.Menu.active && DayPilot.Menu.active && (DayPilot.Menu.active.hide(), DayPilot.Menu.active = null); }, t.mouseDown = function () { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.wheel = function () { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.resize = function () { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.mouseMove = function (e) { "undefined" != typeof t && (t.mouse = t.mousePosition(e)); }, t.touchMove = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchStart = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchEnd = function () { }, t.touchPosition = function (e) { if (!e || !e.touches)
1439
1443
  return null; var t = e.touches[0], n = {}; return n.x = t.pageX, n.y = t.pageY, n; }, t.mousePosition = function (e) { return DayPilot.mo3(null, e); }, DayPilot.Menu.touchPosition = function (e) { e.touches && (t.mouse = t.touchPosition(e)); }, DayPilot.Menu.mousePosition = function (e) { t.mouse = t.mousePosition(e); }, DayPilot.Menu.hide = function (e) { if (e = e || {}, e.calendar) {
1440
1444
  var n = DayPilot.Menu.active;
1441
1445
  if (n) {
1442
- var a = n.Rb.source;
1446
+ var a = n.Qb.source;
1443
1447
  a && a.calendar === e.calendar && t.menuClean();
1444
1448
  }
1445
1449
  }
@@ -1451,7 +1455,7 @@ var DayPilot = { Global: {} };
1451
1455
  var o = n.substring(i + 1), s = t[r];
1452
1456
  "object" == typeof s && null !== s || (t[r] = {}, s = t[r]), e(s, o, a);
1453
1457
  } }
1454
- function t(e) { this.form = [], this.data = {}, this.theme = "form_default", this.zIndex = 99999, this.locale = "en-us", this.plugins = {}, this.onKey = null, this.zc = [], this.Ac = null, this.canceling = !1, this.Bc = [], this.f = [], this.Cc = null, e = e || {}; for (var t in e)
1458
+ function t(e) { this.form = [], this.data = {}, this.theme = "form_default", this.zIndex = 99999, this.locale = "en-us", this.plugins = {}, this.onKey = null, this.yc = [], this.zc = null, this.canceling = !1, this.Ac = [], this.f = [], this.Bc = null, e = e || {}; for (var t in e)
1455
1459
  this[t] = e[t]; }
1456
1460
  function n() { this.id = this.guid(), this.field = null, this.data = null, this.type = null, this.level = 0, this.enabled = !0, this.value = null, this.text = null, this.interactive = !0, this.isValue = !1, this.checked = !1, this.resolved = null; }
1457
1461
  function a() { this.element = null, this.canFocus = function () { return !1; }, this.apply = function () { }, this.focus = function () { }, this.save = function () { return {}; }; }
@@ -1459,10 +1463,10 @@ var DayPilot = { Global: {} };
1459
1463
  var r = e[a];
1460
1464
  "object" == typeof r ? "[object Array]" === Object.prototype.toString.call(r) ? t[n + a] = r : r && r.toJSON ? t[n + a] = r.toJSON() : i(r, t, n + a + ".") : t[n + a] = r;
1461
1465
  } return t; }
1462
- function r(e) { this.data = [], this.name = null, this.theme = "searchable_default", this.Ic = !1, this.listZIndex = 1e5, this.onSelect = null, this.Jc = null, this.Kc = null, this.Lc = !1, this.Mc = null, this.Nc = null, this.q = [], this.Oc = null, e = e || {}; var t = this, n = { "selected": { post: function (e) { "object" == typeof e && e.id ? t.Jc = e : "string" != typeof e && "number" != typeof e || t.select(e); } } }; Object.defineProperty(this, "selected", { get: function () { return this.Jc; } }), Object.defineProperty(this, "disabled", { get: function () { return this.Ic; }, set: function (e) { this.Ic = e, this.Mc && (this.Mc.disabled = e, e && this.Pc()); } }); for (var a in e)
1466
+ function r(e) { this.data = [], this.name = null, this.theme = "searchable_default", this.Hc = !1, this.listZIndex = 1e5, this.onSelect = null, this.Ic = null, this.Jc = null, this.Kc = !1, this.Lc = null, this.Mc = null, this.q = [], this.Nc = null, e = e || {}; var t = this, n = { "selected": { post: function (e) { "object" == typeof e && e.id ? t.Ic = e : "string" != typeof e && "number" != typeof e || t.select(e); } } }; Object.defineProperty(this, "selected", { get: function () { return this.Ic; } }), Object.defineProperty(this, "disabled", { get: function () { return this.Hc; }, set: function (e) { this.Hc = e, this.Lc && (this.Lc.disabled = e, e && this.Oc()); } }); for (var a in e)
1463
1467
  n[a] || (this[a] = e[a]); for (var i in e)
1464
1468
  n[i] && n[i].post(e[i]); }
1465
- function o(e) { this.form = null, this.item = null, this.data = null, this.name = null, this.theme = "edit_table_default", this.onInput = null, this.nav = {}, this.Rc = null, this.zc = [], e = e || {}; for (var t in e)
1469
+ function o(e) { this.form = null, this.item = null, this.data = null, this.name = null, this.theme = "edit_table_default", this.onInput = null, this.nav = {}, this.Qc = null, this.yc = [], e = e || {}; for (var t in e)
1466
1470
  this[t] = e[t]; }
1467
1471
  if (!DayPilot.ModalStatic) {
1468
1472
  DayPilot.ModalStatic = {}, DayPilot.ModalStatic.list = [], DayPilot.ModalStatic.hide = function () { if (this.list.length > 0) {
@@ -1500,23 +1504,23 @@ var DayPilot = { Global: {} };
1500
1504
  n.sheet.addRule(e, t, i);
1501
1505
  } }, i.print = function () { for (var e = n.sheet.cssRules, t = [], a = 0; a < e.length; a++)
1502
1506
  t.push(e[a].cssText); return t.join("\n"); }, i; }, l = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxwYXRoCiAgICAgICBpZD0icGF0aDMxNzMiCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojOTk5OTk5O3N0cm9rZS13aWR0aDoxLjg1MTk2ODUzO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZSIKICAgICAgIGQ9Ik0gMC45NTQxNDgzOCwwLjY4MTYwMzEgNS4wMzkwNjI1LDUuNDExNTM4NiA5LjEyMzk3NjYsMC42ODE2MDMxIgogICAgICAgIC8+CiAgPC9nPgo8L3N2Zz4K", d = new s;
1503
- d.add(".modal_default_main", "border: 10px solid #ccc; max-width: 90%;"), d.add(".modal_default_main:focus", "outline: none;"), d.add(".modal_default_content", "padding: 10px 0px;"), d.add(".modal_default_inner", "padding: 20px;"), d.add(".modal_default_input", "padding: 10px 0px;"), d.add(".modal_default_buttons", "margin-top: 10px;"), d.add(".modal_default_buttons", "padding: 10px 0px;"), d.add(".modal_default_form_item", "padding: 10px 0px; position: relative;"), d.add(".modal_default_form_item_level1", "border-left: 2px solid #ccc; margin-left: 10px; padding-left: 20px;"), d.add(".modal_default_form_item.modal_default_form_title", "font-size: 1.5rem; font-weight: bold;"), d.add(".modal_default_form_item input[type=text]", "width: 100%; box-sizing: border-box;"), d.add(".modal_default_form_item textarea", "width: 100%; height: 200px; box-sizing: border-box;"), d.add(".modal_default_form_item input[type=select]", "width: 100%; box-sizing: border-box;"), d.add(".modal_default_form_item label", "display: block;"), d.add(".modal_default_form_item select", "width: 100%; box-sizing: border-box;"), d.add(".modal_default_form_item_label", "margin: 2px 0px;"), d.add(".modal_default_form_item_image img", "max-width: 100%; height: auto;"), d.add(".modal_default_form_item_invalid", ""), d.add(".modal_default_form_item_invalid_message", "position: absolute; right: 0px; top: 9px; background-color: red; color: #ffffff; padding: 2px; border-radius: 2px;"), d.add(".modal_default_background", "opacity: 0.5; background-color: #000;"), d.add(".modal_default_ok", "padding: 3px; width: 80px;"), d.add(".modal_default_cancel", "padding: 3px; width: 80px;"), d.add(".modal_default_form_item_date", "position: relative;"), d.add(".modal_default_form_item_date:after", "content: ''; position: absolute; right: 7px; top: 50%; margin-top: 3px; width: 10px; height: 15px; background-image:url(" + "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojY2NjY2NjO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjM4MDM3MzM2O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDE5MjgiCiAgICAgICB3aWR0aD0iOS45MTUzMDYxIgogICAgICAgaGVpZ2h0PSIxMS4zNjkzNyIKICAgICAgIHg9IjAuMTE3MTg3NSIKICAgICAgIHk9Ii0zLjAwOTk5NTciCiAgICAgICByeT0iMS4zMTE4NTA1IiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNjY2NjY2M7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNTk4MTQwMTI7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MTkzMCIKICAgICAgIHdpZHRoPSIxLjUzNDQxMzYiCiAgICAgICBoZWlnaHQ9IjIuMjE5ODI1IgogICAgICAgeD0iMi4xNTU4NDgzIgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHJ5PSIwLjY3MTc4OTE3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iMS41MjM5NTA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QxOTQ4IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjY3MTc4OTE3IgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHg9IjYuNDUyNzIzNSIKICAgICAgIGhlaWdodD0iMi4yMTk4MjUiCiAgICAgICB3aWR0aD0iMS41MzQ0MTM2IgogICAgICAgaWQ9InJlY3QyMDAzIgogICAgICAgc3R5bGU9ImZpbGw6I2NjY2NjYztmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS41OTgxNDAxMjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAwNSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIHk9Ii0xLjE2NTg0NjYiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iNi45OTI3MDA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDA3IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAxMyIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjEuNTIzOTUwNiIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHJ5PSIwLjI5NjAxNDciIC8+CiAgICA8cmVjdAogICAgICAgcnk9IjAuMjk2MDE0NyIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGlkPSJyZWN0MjAxNSIKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIgLz4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDIwMTciCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB4PSI2Ljk5MjcwMDYiCiAgICAgICB5PSIxLjgwMjkwMzQiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSI0LjczMjU5MDciCiAgICAgICB4PSIxLjU2MzAxMzEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBpZD0icmVjdDIwMTkiCiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiIC8+CiAgICA8cmVjdAogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgaWQ9InJlY3QyMDIxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgeD0iNC4yNTgzMjU2IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgcnk9IjAuMjk2MDE0NyIgLz4KICAgIDxyZWN0CiAgICAgICByeT0iMC4yOTYwMTQ3IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgeD0iNy4wMzE3NjMxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDIzIgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogIDwvZz4KPC9zdmc+Cg==" + ")"), "undefined" != typeof navigator && navigator.userAgent.indexOf("Edge") !== -1 && d.add(".modal_default_form_item_date input::-ms-clear", "display: none;"), d.add(".modal_default_form_item_scrollable_scroll", "width: 100%; height: 200px; box-sizing: border-box; border: 1px solid #ccc; overflow-y: auto;"), d.add(".modal_default_form_item_scrollable_scroll_content", "padding: 5px;"), d.add(".modal_default_form_item_searchable", "position: relative;"), d.add(".modal_default_form_item_searchable_icon", ""), d.add(".modal_default_form_item_searchable_icon:after", "content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url(" + l + ");"), d.add(".modal_default_form_item_searchable_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), d.add(".modal_default_form_item_searchable_list_item", "background: white; padding: 2px; cursor: default;"), d.add(".modal_default_form_item_searchable_list_item_highlight", "background: #ccc;"), d.add(".modal_default_form_item_time", "position: relative;"), d.add(".modal_default_form_item_time_icon", ""), d.add(".modal_default_form_item_time_icon:after", "content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url(" + l + ");"), d.add(".modal_default_form_item_time_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), d.add(".modal_default_form_item_time_list_item", "background: white; padding: 2px; cursor: default;"), d.add(".modal_default_form_item_time_list_item_highlight", "background: #ccc;"), d.add(".modal_default_form_item_datetime_parent", "display: flex;"), d.add(".modal_default_form_item_datetime .modal_default_form_item_time_main", "margin-left: 5px;"), d.add(".modal_default_form_item_datetime input[type='text'].modal_default_input_date ", ""), d.add(".modal_default_form_item_tabular_main", "margin-top: 10px;"), d.add(".modal_default_form_item_tabular_table", "display: table; width: 100%; xbackground-color: #fff; border-collapse: collapse;"), d.add(".modal_default_form_item_tabular_tbody", "display: table-row-group;"), d.add(".modal_default_form_item_tabular_row", "display: table-row;"), d.add(".modal_default_form_item_tabular_row.modal_default_form_item_tabular_header", ""), d.add(".modal_default_form_item_tabular_cell.modal_default_form_item_tabular_rowaction", "padding: 0px; width: 23px;"), d.add(".modal_default_form_item_tabular_cell", "display: table-cell; border: 0px; padding: 2px 2px 2px 0px; cursor: default; vertical-align: bottom;"), d.add(".modal_default_form_item_tabular_header .modal_default_form_item_tabular_cell", "padding-left: 0px; padding-bottom: 0px;"), d.add(".modal_default_form_item_tabular_table input[type=text], .modal_default_form_item_tabular_table input[type=number]", "width:100%; box-sizing: border-box;"), d.add(".modal_default_form_item_tabular_table select", "width:100%; height:100%; box-sizing: border-box;"), d.add(".modal_default_form_item_tabular_plus", "display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"), d.add(".modal_default_form_item_tabular_plus:after", "content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSA1LjAgMC41IEwgNS4wIDkuNSBNIDAuNSA1LjAgTCA5LjUgNS4wJyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"), d.add(".modal_default_form_item_tabular_delete", "display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"), d.add(".modal_default_form_item_tabular_delete:after", "content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgOS41IDkuNSBNIDAuNSA5LjUgTCA5LjUgMC41JyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"), d.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_plus", "display: none;"), d.add(".modal_default_form_item_tabular_plus_max.modal_default_form_item_tabular_plus", "display: none;"), d.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_delete", "visibility: hidden;"), d.add(".modal_default_form_item_tabular_empty", "height: 1px; margin: 5px 23px 5px 0px; background-color: #ccc;"), d.add(".modal_default_form_item_tabular_spacer .modal_default_form_item_tabular_cell", "padding: 0px;"), d.add(".modal_min_main", "border: 1px solid #ccc; max-width: 90%;"), d.add(".modal_min_background", "opacity: 0.5; background-color: #000;"), d.add(".modal_min_ok", "padding: 3px 10px;"), d.add(".modal_min_cancel", "padding: 3px 10px;"), d.add(".navigator_modal_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;"), d.add(".navigator_modal_main *, .navigator_modal_main *:before, .navigator_modal_main *:after", "box-sizing: content-box;"), d.add(".navigator_modal_month", "font-size: 11px;"), d.add(".navigator_modal_day", "color: black;"), d.add(".navigator_modal_weekend", "background-color: #f0f0f0;"), d.add(".navigator_modal_dayheader", "color: black;"), d.add(".navigator_modal_line", "border-bottom: 1px solid #c0c0c0;"), d.add(".navigator_modal_dayother", "color: gray;"), d.add(".navigator_modal_todaybox", "border: 1px solid red;"), d.add(".navigator_modal_title, .navigator_modal_titleleft, .navigator_modal_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), d.add(".navigator_modal_busy", "font-weight: bold;"), d.add(".navigator_modal_cell", "text-align: center;"), d.add(".navigator_modal_select .navigator_modal_cell_box", "background-color: #FFE794; opacity: 0.5;"), d.add(".navigator_modal_title", "text-align: center;"), d.add(".navigator_modal_titleleft, .navigator_modal_titleright", "text-align: center;"), d.add(".navigator_modal_dayheader", "text-align: center;"), d.add(".navigator_modal_weeknumber", "text-align: center;"), d.add(".navigator_modal_cell_text", "cursor: pointer;"), d.add(".navigator_modal_todaysection", "box-sizing: border-box; display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--dp-nav-border-color);"), d.add(".navigator_modal_todaysection_button", "cursor: pointer; color: #333; background-color: #f0f0f0; border: 1px solid var(--dp-nav-border-color); padding: 5px 10px; border-radius: 0px; "), d.commit(), DayPilot.Modal = function (e) { this.autoFocus = !0, this.focus = null, this.autoStretch = !0, this.autoStretchFirstLoadOnly = !1, this.className = null, this.theme = "modal_default", this.disposeOnClose = !0, this.dragDrop = !0, this.loadingHtml = null, this.maxHeight = null, this.scrollWithPage = !0, this.useIframe = !0, this.zIndex = 99999, this.left = null, this.width = 600, this.top = 20, this.height = 200, this.locale = null, this.closed = null, this.onClose = null, this.onClosed = null, this.onShow = null; var t = this; this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.Zb = !1, this.$b = null, this._b = null, this.showHtml = function (e) { if (DayPilot.ModalStatic.displayed(this))
1504
- throw "This modal dialog is already displayed."; if (this.div || this.bc(), this.rb(), this.useIframe) {
1507
+ d.add(".modal_default_main", "border: 10px solid #ccc; max-width: 90%;"), d.add(".modal_default_main:focus", "outline: none;"), d.add(".modal_default_content", "padding: 10px 0px;"), d.add(".modal_default_inner", "padding: 20px;"), d.add(".modal_default_input", "padding: 10px 0px;"), d.add(".modal_default_buttons", "margin-top: 10px;"), d.add(".modal_default_buttons", "padding: 10px 0px;"), d.add(".modal_default_form_item", "padding: 10px 0px; position: relative;"), d.add(".modal_default_form_item_level1", "border-left: 2px solid #ccc; margin-left: 10px; padding-left: 20px;"), d.add(".modal_default_form_item.modal_default_form_title", "font-size: 1.5rem; font-weight: bold;"), d.add(".modal_default_form_item input[type=text]", "width: 100%; box-sizing: border-box;"), d.add(".modal_default_form_item textarea", "width: 100%; height: 200px; box-sizing: border-box;"), d.add(".modal_default_form_item input[type=select]", "width: 100%; box-sizing: border-box;"), d.add(".modal_default_form_item label", "display: block;"), d.add(".modal_default_form_item select", "width: 100%; box-sizing: border-box;"), d.add(".modal_default_form_item_label", "margin: 2px 0px;"), d.add(".modal_default_form_item_image img", "max-width: 100%; height: auto;"), d.add(".modal_default_form_item_invalid", ""), d.add(".modal_default_form_item_invalid_message", "position: absolute; right: 0px; top: 9px; background-color: red; color: #ffffff; padding: 2px; border-radius: 2px;"), d.add(".modal_default_background", "opacity: 0.5; background-color: #000;"), d.add(".modal_default_ok", "padding: 3px; width: 80px;"), d.add(".modal_default_cancel", "padding: 3px; width: 80px;"), d.add(".modal_default_form_item_date", "position: relative;"), d.add(".modal_default_form_item_date:after", "content: ''; position: absolute; right: 7px; top: 50%; margin-top: 3px; width: 10px; height: 15px; background-image:url(" + "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojY2NjY2NjO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjM4MDM3MzM2O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDE5MjgiCiAgICAgICB3aWR0aD0iOS45MTUzMDYxIgogICAgICAgaGVpZ2h0PSIxMS4zNjkzNyIKICAgICAgIHg9IjAuMTE3MTg3NSIKICAgICAgIHk9Ii0zLjAwOTk5NTciCiAgICAgICByeT0iMS4zMTE4NTA1IiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNjY2NjY2M7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNTk4MTQwMTI7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MTkzMCIKICAgICAgIHdpZHRoPSIxLjUzNDQxMzYiCiAgICAgICBoZWlnaHQ9IjIuMjE5ODI1IgogICAgICAgeD0iMi4xNTU4NDgzIgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHJ5PSIwLjY3MTc4OTE3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iMS41MjM5NTA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QxOTQ4IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjY3MTc4OTE3IgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHg9IjYuNDUyNzIzNSIKICAgICAgIGhlaWdodD0iMi4yMTk4MjUiCiAgICAgICB3aWR0aD0iMS41MzQ0MTM2IgogICAgICAgaWQ9InJlY3QyMDAzIgogICAgICAgc3R5bGU9ImZpbGw6I2NjY2NjYztmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS41OTgxNDAxMjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAwNSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIHk9Ii0xLjE2NTg0NjYiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iNi45OTI3MDA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDA3IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAxMyIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjEuNTIzOTUwNiIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHJ5PSIwLjI5NjAxNDciIC8+CiAgICA8cmVjdAogICAgICAgcnk9IjAuMjk2MDE0NyIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGlkPSJyZWN0MjAxNSIKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIgLz4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDIwMTciCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB4PSI2Ljk5MjcwMDYiCiAgICAgICB5PSIxLjgwMjkwMzQiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSI0LjczMjU5MDciCiAgICAgICB4PSIxLjU2MzAxMzEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBpZD0icmVjdDIwMTkiCiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiIC8+CiAgICA8cmVjdAogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgaWQ9InJlY3QyMDIxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgeD0iNC4yNTgzMjU2IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgcnk9IjAuMjk2MDE0NyIgLz4KICAgIDxyZWN0CiAgICAgICByeT0iMC4yOTYwMTQ3IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgeD0iNy4wMzE3NjMxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDIzIgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogIDwvZz4KPC9zdmc+Cg==" + ")"), "undefined" != typeof navigator && navigator.userAgent.indexOf("Edge") !== -1 && d.add(".modal_default_form_item_date input::-ms-clear", "display: none;"), d.add(".modal_default_form_item_scrollable_scroll", "width: 100%; height: 200px; box-sizing: border-box; border: 1px solid #ccc; overflow-y: auto;"), d.add(".modal_default_form_item_scrollable_scroll_content", "padding: 5px;"), d.add(".modal_default_form_item_searchable", "position: relative;"), d.add(".modal_default_form_item_searchable_icon", ""), d.add(".modal_default_form_item_searchable_icon:after", "content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url(" + l + ");"), d.add(".modal_default_form_item_searchable_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), d.add(".modal_default_form_item_searchable_list_item", "background: white; padding: 2px; cursor: default;"), d.add(".modal_default_form_item_searchable_list_item_highlight", "background: #ccc;"), d.add(".modal_default_form_item_time", "position: relative;"), d.add(".modal_default_form_item_time_icon", ""), d.add(".modal_default_form_item_time_icon:after", "content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url(" + l + ");"), d.add(".modal_default_form_item_time_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), d.add(".modal_default_form_item_time_list_item", "background: white; padding: 2px; cursor: default;"), d.add(".modal_default_form_item_time_list_item_highlight", "background: #ccc;"), d.add(".modal_default_form_item_datetime_parent", "display: flex;"), d.add(".modal_default_form_item_datetime .modal_default_form_item_time_main", "margin-left: 5px;"), d.add(".modal_default_form_item_datetime input[type='text'].modal_default_input_date ", ""), d.add(".modal_default_form_item_tabular_main", "margin-top: 10px;"), d.add(".modal_default_form_item_tabular_table", "display: table; width: 100%; xbackground-color: #fff; border-collapse: collapse;"), d.add(".modal_default_form_item_tabular_tbody", "display: table-row-group;"), d.add(".modal_default_form_item_tabular_row", "display: table-row;"), d.add(".modal_default_form_item_tabular_row.modal_default_form_item_tabular_header", ""), d.add(".modal_default_form_item_tabular_cell.modal_default_form_item_tabular_rowaction", "padding: 0px; width: 23px;"), d.add(".modal_default_form_item_tabular_cell", "display: table-cell; border: 0px; padding: 2px 2px 2px 0px; cursor: default; vertical-align: bottom;"), d.add(".modal_default_form_item_tabular_header .modal_default_form_item_tabular_cell", "padding-left: 0px; padding-bottom: 0px;"), d.add(".modal_default_form_item_tabular_table input[type=text], .modal_default_form_item_tabular_table input[type=number]", "width:100%; box-sizing: border-box;"), d.add(".modal_default_form_item_tabular_table select", "width:100%; height:100%; box-sizing: border-box;"), d.add(".modal_default_form_item_tabular_plus", "display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"), d.add(".modal_default_form_item_tabular_plus:after", "content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSA1LjAgMC41IEwgNS4wIDkuNSBNIDAuNSA1LjAgTCA5LjUgNS4wJyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"), d.add(".modal_default_form_item_tabular_delete", "display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"), d.add(".modal_default_form_item_tabular_delete:after", "content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgOS41IDkuNSBNIDAuNSA5LjUgTCA5LjUgMC41JyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"), d.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_plus", "display: none;"), d.add(".modal_default_form_item_tabular_plus_max.modal_default_form_item_tabular_plus", "display: none;"), d.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_delete", "visibility: hidden;"), d.add(".modal_default_form_item_tabular_empty", "height: 1px; margin: 5px 23px 5px 0px; background-color: #ccc;"), d.add(".modal_default_form_item_tabular_spacer .modal_default_form_item_tabular_cell", "padding: 0px;"), d.add(".modal_min_main", "border: 1px solid #ccc; max-width: 90%;"), d.add(".modal_min_background", "opacity: 0.5; background-color: #000;"), d.add(".modal_min_ok", "padding: 3px 10px;"), d.add(".modal_min_cancel", "padding: 3px 10px;"), d.add(".navigator_modal_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;"), d.add(".navigator_modal_main *, .navigator_modal_main *:before, .navigator_modal_main *:after", "box-sizing: content-box;"), d.add(".navigator_modal_month", "font-size: 11px;"), d.add(".navigator_modal_day", "color: black;"), d.add(".navigator_modal_weekend", "background-color: #f0f0f0;"), d.add(".navigator_modal_dayheader", "color: black;"), d.add(".navigator_modal_line", "border-bottom: 1px solid #c0c0c0;"), d.add(".navigator_modal_dayother", "color: gray;"), d.add(".navigator_modal_todaybox", "border: 1px solid red;"), d.add(".navigator_modal_title, .navigator_modal_titleleft, .navigator_modal_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), d.add(".navigator_modal_busy", "font-weight: bold;"), d.add(".navigator_modal_cell", "text-align: center;"), d.add(".navigator_modal_select .navigator_modal_cell_box", "background-color: #FFE794; opacity: 0.5;"), d.add(".navigator_modal_title", "text-align: center;"), d.add(".navigator_modal_titleleft, .navigator_modal_titleright", "text-align: center;"), d.add(".navigator_modal_dayheader", "text-align: center;"), d.add(".navigator_modal_weeknumber", "text-align: center;"), d.add(".navigator_modal_cell_text", "cursor: pointer;"), d.add(".navigator_modal_todaysection", "box-sizing: border-box; display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--dp-nav-border-color);"), d.add(".navigator_modal_todaysection_button", "cursor: pointer; color: #333; background-color: #f0f0f0; border: 1px solid var(--dp-nav-border-color); padding: 5px 10px; border-radius: 0px; "), d.commit(), DayPilot.Modal = function (e) { this.autoFocus = !0, this.focus = null, this.autoStretch = !0, this.autoStretchFirstLoadOnly = !1, this.className = null, this.theme = "modal_default", this.disposeOnClose = !0, this.dragDrop = !0, this.loadingHtml = null, this.maxHeight = null, this.scrollWithPage = !0, this.useIframe = !0, this.zIndex = 99999, this.left = null, this.width = 600, this.top = 20, this.height = 200, this.locale = null, this.closed = null, this.onClose = null, this.onClosed = null, this.onShow = null; var t = this; this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.Yb = !1, this.Zb = null, this.$b = null, this.showHtml = function (e) { if (DayPilot.ModalStatic.displayed(this))
1508
+ throw "This modal dialog is already displayed."; if (this.div || this._b(), this.qb(), this.useIframe) {
1505
1509
  var t = function (e, t) { return function () { e.setInnerHTML(e.id + "iframe", t); }; };
1506
1510
  window.setTimeout(t(this, e), 0);
1507
1511
  }
1508
1512
  else
1509
- e.nodeType ? this.div.appendChild(e) : this.div.innerHTML = e; this.rb(), this.cc(), this.dc(); }, this.showUrl = function (e) { if (DayPilot.ModalStatic.displayed(this))
1513
+ e.nodeType ? this.div.appendChild(e) : this.div.innerHTML = e; this.qb(), this.bc(), this.cc(); }, this.showUrl = function (e) { if (DayPilot.ModalStatic.displayed(this))
1510
1514
  throw "This modal dialog is already displayed."; if (this.useIframe) {
1511
- this.div || this.bc();
1515
+ this.div || this._b();
1512
1516
  var n = this.loadingHtml;
1513
- n && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", n)), this.re(this.iframe, "load", this.ec), this.iframe.src = e, this.rb(), this.cc(), this.dc();
1517
+ n && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", n)), this.re(this.iframe, "load", this.dc), this.iframe.src = e, this.qb(), this.bc(), this.cc();
1514
1518
  }
1515
1519
  else
1516
- t.fc({ "url": e, "success": function (e) { var n = e.request.responseText; t.showHtml(n); }, "error": function () { t.showHtml("Error loading the modal dialog"); } }); }, this.dc = function () { if ("function" == typeof t.onShow) {
1520
+ t.ec({ "url": e, "success": function (e) { var n = e.request.responseText; t.showHtml(n); }, "error": function () { t.showHtml("Error loading the modal dialog"); } }); }, this.cc = function () { if ("function" == typeof t.onShow) {
1517
1521
  var e = {};
1518
- e.root = t.gc(), e.modal = t, t.onShow(e);
1519
- } }, this.gc = function () { return t.iframe ? t.iframe.contentWindow.document : t.div; }, this.fc = function (e) { var t = new XMLHttpRequest; if (t) {
1522
+ e.root = t.fc(), e.modal = t, t.onShow(e);
1523
+ } }, this.fc = function () { return t.iframe ? t.iframe.contentWindow.document : t.div; }, this.ec = function (e) { var t = new XMLHttpRequest; if (t) {
1520
1524
  var n = e.method || "GET", a = e.success || function () { }, i = e.error || function () { }, r = e.data, o = e.url;
1521
1525
  t.open(n, o, !0), t.setRequestHeader("Content-type", "text/plain"), t.onreadystatechange = function () { if (4 === t.readyState)
1522
1526
  if (200 === t.status || 304 === t.status) {
@@ -1529,45 +1533,45 @@ var DayPilot = { Global: {} };
1529
1533
  }
1530
1534
  else
1531
1535
  window.console && console.log("HTTP error " + t.status); }, 4 !== t.readyState && ("object" == typeof r && (r = JSON.stringify(r)), t.send(r));
1532
- } }, this.rb = function () { delete this.result; var e = window, n = document, a = e.pageYOffset ? e.pageYOffset : n.documentElement && n.documentElement.scrollTop ? n.documentElement.scrollTop : n.body.scrollTop; this.theme && (this.hideDiv.className = this.theme + "_background"), this.zIndex && (this.hideDiv.style.zIndex = this.zIndex), this.hideDiv.style.display = "", window.setTimeout(function () { t.hideDiv && (t.hideDiv.onclick = function () { t.hide({ "backgroundClick": !0 }); }); }, 500), this.theme ? this.div.className = this.theme + "_main" : this.div.className = "", this.className && (this.div.className += " " + this.className), this.left ? this.div.style.left = this.left + "px" : this.div.style.marginLeft = "-" + Math.floor(this.width / 2) + "px", this.div.style.position = "absolute", this.div.style.boxSizing = "content-box", this.div.style.top = a + this.top + "px", this.div.style.width = this.width + "px", this.zIndex && (this.div.style.zIndex = this.zIndex), this.height && (this.useIframe || !this.autoStretch ? this.div.style.height = this.height + "px" : this.div.style.height = ""), this.useIframe && this.height && (this.iframe.style.height = this.height + "px"), this.div.style.display = "", this.hc(), DayPilot.ModalStatic.remove(this), DayPilot.ModalStatic.list.push(this); }, this.ec = function () { t.iframe.contentWindow.modal = t, t.autoStretch && t.stretch(); }, this.stretch = function () { var e = function () { return t.ic().y; }, n = function () { return t.ic().x; }; if (this.useIframe) {
1533
- for (var a = n() - 40, i = this.width; i < a && this.jc(); i += 10)
1536
+ } }, this.qb = function () { delete this.result; var e = window, n = document, a = e.pageYOffset ? e.pageYOffset : n.documentElement && n.documentElement.scrollTop ? n.documentElement.scrollTop : n.body.scrollTop; this.theme && (this.hideDiv.className = this.theme + "_background"), this.zIndex && (this.hideDiv.style.zIndex = this.zIndex), this.hideDiv.style.display = "", window.setTimeout(function () { t.hideDiv && (t.hideDiv.onclick = function () { t.hide({ "backgroundClick": !0 }); }); }, 500), this.theme ? this.div.className = this.theme + "_main" : this.div.className = "", this.className && (this.div.className += " " + this.className), this.left ? this.div.style.left = this.left + "px" : this.div.style.marginLeft = "-" + Math.floor(this.width / 2) + "px", this.div.style.position = "absolute", this.div.style.boxSizing = "content-box", this.div.style.top = a + this.top + "px", this.div.style.width = this.width + "px", this.zIndex && (this.div.style.zIndex = this.zIndex), this.height && (this.useIframe || !this.autoStretch ? this.div.style.height = this.height + "px" : this.div.style.height = ""), this.useIframe && this.height && (this.iframe.style.height = this.height + "px"), this.div.style.display = "", this.gc(), DayPilot.ModalStatic.remove(this), DayPilot.ModalStatic.list.push(this); }, this.dc = function () { t.iframe.contentWindow.modal = t, t.autoStretch && t.stretch(); }, this.stretch = function () { var e = function () { return t.hc().y; }, n = function () { return t.hc().x; }; if (this.useIframe) {
1537
+ for (var a = n() - 40, i = this.width; i < a && this.ic(); i += 10)
1534
1538
  this.div.style.width = i + "px", this.div.style.marginLeft = "-" + Math.floor(i / 2) + "px";
1535
- for (var r = this.maxHeight || e() - 2 * this.top, o = this.height; o < r && this.kc(); o += 10)
1539
+ for (var r = this.maxHeight || e() - 2 * this.top, o = this.height; o < r && this.jc(); o += 10)
1536
1540
  this.iframe.style.height = o + "px", this.div.style.height = o + "px";
1537
- this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.ec);
1541
+ this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.dc);
1538
1542
  }
1539
1543
  else
1540
- this.div.style.height = ""; }, this.jc = function () { for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement, n = t.scrollWidth, a = e.body.children, i = 0; i < a.length; i++) {
1544
+ this.div.style.height = ""; }, this.ic = function () { for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement, n = t.scrollWidth, a = e.body.children, i = 0; i < a.length; i++) {
1541
1545
  var r = a[i].offsetLeft + a[i].offsetWidth;
1542
1546
  n = Math.max(n, r);
1543
- } return n > t.clientWidth; }, this.kc = function () { for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement, n = t.scrollHeight, a = e.body.children, i = 0; i < a.length; i++) {
1547
+ } return n > t.clientWidth; }, this.jc = function () { for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement, n = t.scrollHeight, a = e.body.children, i = 0; i < a.length; i++) {
1544
1548
  var r = a[i].offsetTop + a[i].offsetHeight;
1545
1549
  n = Math.max(n, r);
1546
- } return n > t.clientHeight; }, this.ic = function () { var e = document; if ("CSS1Compat" === e.compatMode && e.documentElement && e.documentElement.clientWidth) {
1550
+ } return n > t.clientHeight; }, this.hc = function () { var e = document; if ("CSS1Compat" === e.compatMode && e.documentElement && e.documentElement.clientWidth) {
1547
1551
  var t = e.documentElement.clientWidth, n = e.documentElement.clientHeight;
1548
1552
  return { x: t, y: n };
1549
- } var t = e.body.clientWidth, n = e.body.clientHeight; return { x: t, y: n }; }, this.cc = function () { this.Zb || (this.re(window, "resize", this.lc), this.re(window, "scroll", this.nc), this.dragDrop && (this.re(document, "mousemove", this.oc), this.re(document, "mouseup", this.pc)), this.Zb = !0); }, this.qc = function () { this.ue(window, "resize", this.lc), this.ue(window, "scroll", this.nc), this.dragDrop && (this.ue(document, "mousemove", this.oc), this.ue(document, "mouseup", this.pc)), this.Zb = !1; }, this.rc = function (e) { e.target === t.div && (e.preventDefault(), t.div.style.cursor = "move", t.sc(), t._b = t.mc(e || window.event), t.$b = { x: t.div.offsetLeft, y: t.div.offsetTop }); }, this.oc = function (e) { if (t._b) {
1550
- var n = t.mc(e), a = n.x - t._b.x, i = n.y - t._b.y;
1551
- t.div.style.marginLeft = "0px", t.div.style.top = t.$b.y + i + "px", t.div.style.left = t.$b.x + a + "px";
1552
- } }, this.pc = function () { t._b && (t.tc(), t.div.style.cursor = null, t._b = null); }, this.sc = function () { if (this.useIframe) {
1553
+ } var t = e.body.clientWidth, n = e.body.clientHeight; return { x: t, y: n }; }, this.bc = function () { this.Yb || (this.re(window, "resize", this.kc), this.re(window, "scroll", this.lc), this.dragDrop && (this.re(document, "mousemove", this.nc), this.re(document, "mouseup", this.oc)), this.Yb = !0); }, this.pc = function () { this.ue(window, "resize", this.kc), this.ue(window, "scroll", this.lc), this.dragDrop && (this.ue(document, "mousemove", this.nc), this.ue(document, "mouseup", this.oc)), this.Yb = !1; }, this.qc = function (e) { e.target === t.div && (e.preventDefault(), t.div.style.cursor = "move", t.rc(), t.$b = t.mc(e || window.event), t.Zb = { x: t.div.offsetLeft, y: t.div.offsetTop }); }, this.nc = function (e) { if (t.$b) {
1554
+ var n = t.mc(e), a = n.x - t.$b.x, i = n.y - t.$b.y;
1555
+ t.div.style.marginLeft = "0px", t.div.style.top = t.Zb.y + i + "px", t.div.style.left = t.Zb.x + a + "px";
1556
+ } }, this.oc = function () { t.$b && (t.sc(), t.div.style.cursor = null, t.$b = null); }, this.rc = function () { if (this.useIframe) {
1553
1557
  var e = document.createElement("div");
1554
1558
  e.style.backgroundColor = "#ffffff", e.style.filter = "alpha(opacity=80)", e.style.opacity = "0.80", e.style.width = "100%", e.style.height = this.height + "px", e.style.position = "absolute", e.style.left = "0px", e.style.top = "0px", this.div.appendChild(e), this.mask = e;
1555
- } }, this.tc = function () { this.useIframe && (this.div.removeChild(this.mask), this.mask = null); }, this.lc = function () { t.uc(), t.hc(); }, this.nc = function () { t.uc(); }, this.hc = function () { if (!t.left && t.div) {
1559
+ } }, this.sc = function () { this.useIframe && (this.div.removeChild(this.mask), this.mask = null); }, this.kc = function () { t.tc(), t.gc(); }, this.lc = function () { t.tc(); }, this.gc = function () { if (!t.left && t.div) {
1556
1560
  var e = t.div.offsetWidth;
1557
1561
  t.div.style.marginLeft = "-" + Math.floor(e / 2) + "px";
1558
- } }, this.uc = function () { if (t.hideDiv && t.div && "none" !== t.hideDiv.style.display && "none" !== t.div.style.display) {
1559
- var e = t.vc.scrollY();
1562
+ } }, this.tc = function () { if (t.hideDiv && t.div && "none" !== t.hideDiv.style.display && "none" !== t.div.style.display) {
1563
+ var e = t.uc.scrollY();
1560
1564
  t.scrollWithPage || (t.div.style.top = e + t.top + "px");
1561
- } }, this.vc = {}, this.vc.container = function () { return t.container || document.body; }, this.vc.scrollY = function () { var e = t.vc.container(); return e === document.body ? window.pageYOffset ? window.pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop : e.scrollTop; }, this.re = function (e, t, n) { e.addEventListener ? e.addEventListener(t, n, !1) : e.attachEvent && e.attachEvent("on" + t, n); }, this.ue = function (e, t, n) { e.removeEventListener ? e.removeEventListener(t, n, !1) : e.detachEvent && e.detachEvent("on" + t, n); }, this.mc = function (e) { return e.pageX || e.pageY ? { x: e.pageX, y: e.pageY } : { x: e.clientX + document.documentElement.scrollLeft, y: e.clientY + document.documentElement.scrollTop }; }, this.abs = function (e) { for (var t = { x: e.offsetLeft, y: e.offsetTop }; e.offsetParent;)
1562
- e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop; return t; }, this.bc = function () { var e = t.vc.container(), n = e === document.body, a = n ? "fixed" : "absolute", i = document.createElement("div"); i.id = this.id + "hide", i.style.position = a, i.style.left = "0px", i.style.top = "0px", i.style.right = "0px", i.style.bottom = "0px", i.oncontextmenu = function () { return !1; }, i.onmousedown = function () { return !1; }, e.appendChild(i); var r = document.createElement("div"); r.id = this.id + "popup", r.style.position = a, r.style.left = "50%", r.style.top = "0px", r.style.backgroundColor = "white", r.style.width = "50px", r.style.height = "50px", this.dragDrop && (r.onmousedown = this.rc), r.addEventListener("keydown", function (e) { e.stopPropagation(); }); var o = null; this.useIframe && (o = document.createElement("iframe"), o.id = this.id + "iframe", o.name = this.id + "iframe", o.frameBorder = "0", o.style.width = "100%", o.style.height = "50px", r.appendChild(o)), e.appendChild(r), this.div = r, this.iframe = o, this.hideDiv = i; }, this.setInnerHTML = function (e, n) { var a = window.frames[e], i = a.contentWindow || a.document || a.contentDocument; i.document && (i = i.document), null == i.body && i.write("<body></body>"), n.nodeType ? i.body.appendChild(n) : i.body.innerHTML = n, t.autoStretch && (t.autoStretchFirstLoadOnly && t.wc || (t.stretch(), t.wc = !0)); }, this.close = function (e) { this.result = e, this.hide(); }, this.closeSerialized = function () { for (var e = t.gc(), n = e.querySelectorAll("input, textarea, select"), a = {}, i = 0; i < n.length; i++) {
1565
+ } }, this.uc = {}, this.uc.container = function () { return t.container || document.body; }, this.uc.scrollY = function () { var e = t.uc.container(); return e === document.body ? window.pageYOffset ? window.pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop : e.scrollTop; }, this.re = function (e, t, n) { e.addEventListener ? e.addEventListener(t, n, !1) : e.attachEvent && e.attachEvent("on" + t, n); }, this.ue = function (e, t, n) { e.removeEventListener ? e.removeEventListener(t, n, !1) : e.detachEvent && e.detachEvent("on" + t, n); }, this.mc = function (e) { return e.pageX || e.pageY ? { x: e.pageX, y: e.pageY } : { x: e.clientX + document.documentElement.scrollLeft, y: e.clientY + document.documentElement.scrollTop }; }, this.abs = function (e) { for (var t = { x: e.offsetLeft, y: e.offsetTop }; e.offsetParent;)
1566
+ e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop; return t; }, this._b = function () { var e = t.uc.container(), n = e === document.body, a = n ? "fixed" : "absolute", i = document.createElement("div"); i.id = this.id + "hide", i.style.position = a, i.style.left = "0px", i.style.top = "0px", i.style.right = "0px", i.style.bottom = "0px", i.oncontextmenu = function () { return !1; }, i.onmousedown = function () { return !1; }, e.appendChild(i); var r = document.createElement("div"); r.id = this.id + "popup", r.style.position = a, r.style.left = "50%", r.style.top = "0px", r.style.backgroundColor = "white", r.style.width = "50px", r.style.height = "50px", this.dragDrop && (r.onmousedown = this.qc), r.addEventListener("keydown", function (e) { e.stopPropagation(); }); var o = null; this.useIframe && (o = document.createElement("iframe"), o.id = this.id + "iframe", o.name = this.id + "iframe", o.frameBorder = "0", o.style.width = "100%", o.style.height = "50px", r.appendChild(o)), e.appendChild(r), this.div = r, this.iframe = o, this.hideDiv = i; }, this.setInnerHTML = function (e, n) { var a = window.frames[e], i = a.contentWindow || a.document || a.contentDocument; i.document && (i = i.document), null == i.body && i.write("<body></body>"), n.nodeType ? i.body.appendChild(n) : i.body.innerHTML = n, t.autoStretch && (t.autoStretchFirstLoadOnly && t.vc || (t.stretch(), t.vc = !0)); }, this.close = function (e) { this.result = e, this.hide(); }, this.closeSerialized = function () { for (var e = t.fc(), n = e.querySelectorAll("input, textarea, select"), a = {}, i = 0; i < n.length; i++) {
1563
1567
  var r = n[i], o = r.name;
1564
1568
  if (o) {
1565
1569
  var s = r.value;
1566
1570
  a[o] = s;
1567
1571
  }
1568
- } t.close(a); }, this.hide = function (e) { e = e || {}; var n = {}; n.backgroundClick = !!e.backgroundClick, n.result = this.result, n.canceled = "undefined" == typeof this.result, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof this.onClose && (this.onClose(n), n.preventDefault.value) || (this.div && (this.div.style.display = "none", this.hideDiv.style.display = "none", this.useIframe || (this.div.innerHTML = null)), window.focus(), DayPilot.ModalStatic.remove(this), "function" == typeof this.onClosed ? this.onClosed(n) : this.closed && this.closed(), delete this.result, this.disposeOnClose && (t.qc(), t.xc(t.div), t.xc(t.hideDiv), t.div = null, t.hideDiv = null, t.iframe = null)); }, this.xc = function (e) { var t; e && (null === (t = e.parentNode) || void 0 === t ? void 0 : t.removeChild(e)); }, this.yc = function () { if (e)
1572
+ } t.close(a); }, this.hide = function (e) { e = e || {}; var n = {}; n.backgroundClick = !!e.backgroundClick, n.result = this.result, n.canceled = "undefined" == typeof this.result, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof this.onClose && (this.onClose(n), n.preventDefault.value) || (this.div && (this.div.style.display = "none", this.hideDiv.style.display = "none", this.useIframe || (this.div.innerHTML = null)), window.focus(), DayPilot.ModalStatic.remove(this), "function" == typeof this.onClosed ? this.onClosed(n) : this.closed && this.closed(), delete this.result, this.disposeOnClose && (t.pc(), t.wc(t.div), t.wc(t.hideDiv), t.div = null, t.hideDiv = null, t.iframe = null)); }, this.wc = function (e) { var t; e && (null === (t = e.parentNode) || void 0 === t ? void 0 : t.removeChild(e)); }, this.xc = function () { if (e)
1569
1573
  for (var t in e)
1570
- this[t] = e[t]; }, this.yc(); }, DayPilot.Modal.alert = function (e, t) { t = t || {}, t.height = t.height || 40, t.useIframe = !1; var n = t.okText || "OK"; return DayPilot.getPromise(function (a) { t.onClosed = function (e) { a(e); }; var i = new DayPilot.Modal(t), r = document.createElement("div"); r.className = i.theme + "_inner"; var o = document.createElement("div"); o.className = i.theme + "_content", o.innerHTML = e; var s = document.createElement("div"); s.className = i.theme + "_buttons"; var l = document.createElement("button"); l.innerText = n, l.className = i.theme + "_ok", l.onclick = function () { DayPilot.ModalStatic.close("OK"); }, s.appendChild(l), r.appendChild(o), r.appendChild(s), i.showHtml(r), i.autoFocus && l.focus(); }); }, DayPilot.Modal.confirm = function (e, t) { t = t || {}, t.height = t.height || 40, t.useIframe = !1; var n = t.okText || "OK", a = t.cancelText || "Cancel"; return DayPilot.getPromise(function (i) { t.onClosed = function (e) { i(e); }; var r = new DayPilot.Modal(t), o = document.createElement("div"); o.className = r.theme + "_inner"; var s = document.createElement("div"); s.className = r.theme + "_content", s.innerHTML = e; var l = document.createElement("div"); l.className = r.theme + "_buttons"; var d = document.createElement("button"); d.innerText = n, d.className = r.theme + "_ok", d.onclick = function () { DayPilot.ModalStatic.close("OK"); }; var c = document.createTextNode(" "), u = document.createElement("button"); u.innerText = a, u.className = r.theme + "_cancel", u.onclick = function () { DayPilot.ModalStatic.close(); }, l.appendChild(d), l.appendChild(c), l.appendChild(u), o.appendChild(s), o.appendChild(l), r.showHtml(o), r.autoFocus && d.focus(); }); }, DayPilot.Modal.prompt = function (e, t, n) { "object" == typeof t && (n = t, t = ""), n = n || {}, n.height = n.height || 40, n.useIframe = !1; var a = n.okText || "OK", i = n.cancelText || "Cancel", r = t || ""; return DayPilot.getPromise(function (t) { n.onClosed = function (e) { t(e); }; var o = new DayPilot.Modal(n), s = document.createElement("div"); s.className = o.theme + "_inner"; var l = document.createElement("div"); l.className = o.theme + "_content", l.innerHTML = e; var d = document.createElement("div"); d.className = o.theme + "_input"; var c = document.createElement("input"); c.value = r, c.style.width = "100%", c.onkeydown = function (e) { var t = !1; switch (e.keyCode) {
1574
+ this[t] = e[t]; }, this.xc(); }, DayPilot.Modal.alert = function (e, t) { t = t || {}, t.height = t.height || 40, t.useIframe = !1; var n = t.okText || "OK"; return DayPilot.getPromise(function (a) { t.onClosed = function (e) { a(e); }; var i = new DayPilot.Modal(t), r = document.createElement("div"); r.className = i.theme + "_inner"; var o = document.createElement("div"); o.className = i.theme + "_content", o.innerHTML = e; var s = document.createElement("div"); s.className = i.theme + "_buttons"; var l = document.createElement("button"); l.innerText = n, l.className = i.theme + "_ok", l.onclick = function () { DayPilot.ModalStatic.close("OK"); }, s.appendChild(l), r.appendChild(o), r.appendChild(s), i.showHtml(r), i.autoFocus && l.focus(); }); }, DayPilot.Modal.confirm = function (e, t) { t = t || {}, t.height = t.height || 40, t.useIframe = !1; var n = t.okText || "OK", a = t.cancelText || "Cancel"; return DayPilot.getPromise(function (i) { t.onClosed = function (e) { i(e); }; var r = new DayPilot.Modal(t), o = document.createElement("div"); o.className = r.theme + "_inner"; var s = document.createElement("div"); s.className = r.theme + "_content", s.innerHTML = e; var l = document.createElement("div"); l.className = r.theme + "_buttons"; var d = document.createElement("button"); d.innerText = n, d.className = r.theme + "_ok", d.onclick = function () { DayPilot.ModalStatic.close("OK"); }; var c = document.createTextNode(" "), u = document.createElement("button"); u.innerText = a, u.className = r.theme + "_cancel", u.onclick = function () { DayPilot.ModalStatic.close(); }, l.appendChild(d), l.appendChild(c), l.appendChild(u), o.appendChild(s), o.appendChild(l), r.showHtml(o), r.autoFocus && d.focus(); }); }, DayPilot.Modal.prompt = function (e, t, n) { "object" == typeof t && (n = t, t = ""), n = n || {}, n.height = n.height || 40, n.useIframe = !1; var a = n.okText || "OK", i = n.cancelText || "Cancel", r = t || ""; return DayPilot.getPromise(function (t) { n.onClosed = function (e) { t(e); }; var o = new DayPilot.Modal(n), s = document.createElement("div"); s.className = o.theme + "_inner"; var l = document.createElement("div"); l.className = o.theme + "_content", l.innerHTML = e; var d = document.createElement("div"); d.className = o.theme + "_input"; var c = document.createElement("input"); c.value = r, c.style.width = "100%", c.onkeydown = function (e) { var t = !1; switch (e.keyCode) {
1571
1575
  case 13:
1572
1576
  o.close(this.value);
1573
1577
  break;
@@ -1620,22 +1624,22 @@ var DayPilot = { Global: {} };
1620
1624
  var w = d.firstFocusable();
1621
1625
  r.autoFocus && w ? w.focus() : r.div.focus();
1622
1626
  } }); }, DayPilot.Modal.close = function (e) { var t = DayPilot.Modal.opener(); t && t.close(e); }, DayPilot.Modal.stretch = function () { var e = DayPilot.Modal.opener(); if (!e)
1623
- throw "Unable to find the opener DayPilot.Modal instance."; e.stretch(); }, DayPilot.Modal.closeSerialized = function () { var e = DayPilot.Modal.opener() || DayPilot.ModalStatic.last(); e && e.closeSerialized(); }, DayPilot.Modal.opener = function () { return "undefined" != typeof DayPilot && "undefined" != typeof DayPilot.ModalStatic && DayPilot.ModalStatic.list.length > 0 ? DayPilot.ModalStatic.list[DayPilot.ModalStatic.list.length - 1] : parent && parent.DayPilot && parent.DayPilot.ModalStatic && parent.DayPilot.ModalStatic.list[parent.DayPilot.ModalStatic.list.length - 1]; }, "undefined" == typeof DayPilot.getPromise && (DayPilot.getPromise = function (e) { return "undefined" != typeof Promise ? new Promise(e) : (DayPilot.Promise = function (e) { var t = this; this.then = function (t, n) { return t = t || function () { }, n = n || function () { }, e(t, n), DayPilot.getPromise(e); }, this["catch"] = function (n) { return t.then(null, n), DayPilot.getPromise(e); }; }, new DayPilot.Promise(e)); }), t.prototype.create = function () { return this.load(), this.render(), this.Cc; }, t.prototype.render = function () { var e = this; this.Cc = document.createElement("div"), this.zc.forEach(function (t) { e.createView(t); }), this.applyState(); }, t.prototype.createView = function (e) { var t = this.theme, n = this, a = document.createElement("div"); if (a.className = t + "_form_item " + t + "_form_item_level" + e.level, e.interactive || "title" !== e.type ? a.className += " " + t + "_form_item_" + e.type : a.className += " " + t + "_form_title", e.data.cssClass && (a.className += " " + e.data.cssClass), !e.isValue) {
1627
+ throw "Unable to find the opener DayPilot.Modal instance."; e.stretch(); }, DayPilot.Modal.closeSerialized = function () { var e = DayPilot.Modal.opener() || DayPilot.ModalStatic.last(); e && e.closeSerialized(); }, DayPilot.Modal.opener = function () { return "undefined" != typeof DayPilot && "undefined" != typeof DayPilot.ModalStatic && DayPilot.ModalStatic.list.length > 0 ? DayPilot.ModalStatic.list[DayPilot.ModalStatic.list.length - 1] : parent && parent.DayPilot && parent.DayPilot.ModalStatic && parent.DayPilot.ModalStatic.list[parent.DayPilot.ModalStatic.list.length - 1]; }, "undefined" == typeof DayPilot.getPromise && (DayPilot.getPromise = function (e) { return "undefined" != typeof Promise ? new Promise(e) : (DayPilot.Promise = function (e) { var t = this; this.then = function (t, n) { return t = t || function () { }, n = n || function () { }, e(t, n), DayPilot.getPromise(e); }, this["catch"] = function (n) { return t.then(null, n), DayPilot.getPromise(e); }; }, new DayPilot.Promise(e)); }), t.prototype.create = function () { return this.load(), this.render(), this.Bc; }, t.prototype.render = function () { var e = this; this.Bc = document.createElement("div"), this.yc.forEach(function (t) { e.createView(t); }), this.applyState(); }, t.prototype.createView = function (e) { var t = this.theme, n = this, a = document.createElement("div"); if (a.className = t + "_form_item " + t + "_form_item_level" + e.level, e.interactive || "title" !== e.type ? a.className += " " + t + "_form_item_" + e.type : a.className += " " + t + "_form_title", e.data.cssClass && (a.className += " " + e.data.cssClass), !e.isValue) {
1624
1628
  var i = document.createElement("div");
1625
1629
  i.className = t + "_form_item_label", i.innerText = e.text, a.appendChild(i);
1626
- } var r = this.createInteractive(e); r.onInput = function (e) { if (e = e || {}, n.Dc(r, { "debounce": !e.immediate }), "function" == typeof n.onChange) {
1630
+ } var r = this.createInteractive(e); r.onInput = function (e) { if (e = e || {}, n.Cc(r, { "debounce": !e.immediate }), "function" == typeof n.onChange) {
1627
1631
  var t = {};
1628
1632
  t.result = n.serialize(), n.onChange(t);
1629
- } }, r.onBlur = function () { n.canceling || n.Dc(r); }, r.apply(e), r.Cc = a, r.row = e, r.element && a.appendChild(r.element), this.f.push(r), this.Cc.appendChild(a); }, t.prototype.validate = function () { var e = this, t = !0; return this.f.forEach(function (n) { var a = e.Dc(n); t = t && a; }), t; }, t.prototype.Dc = function (e, t) { function n() { e.Ec && (e.Ec.remove(), e.Ec = null), e.Cc.classList.add(u); var t = document.createElement("div"); t.classList.add(h), t.innerText = c.message, e.Ec = t, e.Cc.appendChild(t); } t = t || {}; var a = t.debounce, i = t.silent, r = e.row, o = !0, s = "function" == typeof r.data.onValidate ? r.data.onValidate : null, l = "function" == typeof r.data.validate ? r.data.validate : null, d = s || l; if (d) {
1633
+ } }, r.onBlur = function () { n.canceling || n.Cc(r); }, r.apply(e), r.Bc = a, r.row = e, r.element && a.appendChild(r.element), this.f.push(r), this.Bc.appendChild(a); }, t.prototype.validate = function () { var e = this, t = !0; return this.f.forEach(function (n) { var a = e.Cc(n); t = t && a; }), t; }, t.prototype.Cc = function (e, t) { function n() { e.Dc && (e.Dc.remove(), e.Dc = null), e.Bc.classList.add(u); var t = document.createElement("div"); t.classList.add(h), t.innerText = c.message, e.Dc = t, e.Bc.appendChild(t); } t = t || {}; var a = t.debounce, i = t.silent, r = e.row, o = !0, s = "function" == typeof r.data.onValidate ? r.data.onValidate : null, l = "function" == typeof r.data.validate ? r.data.validate : null, d = s || l; if (d) {
1630
1634
  var c = {};
1631
1635
  c.valid = !0, c.value = e.save()[r.field], c.message = "Error", c.values = this.serialize(), c.result = this.serialize(), d(c);
1632
1636
  var u = this.theme + "_form_item_invalid", h = this.theme + "_form_item_invalid_message";
1633
1637
  if (c.valid)
1634
- clearTimeout(this.Bc[r.field]), e.Ec && (e.Ec.remove(), e.Ec = null), e.Cc.classList.remove(u);
1638
+ clearTimeout(this.Ac[r.field]), e.Dc && (e.Dc.remove(), e.Dc = null), e.Bc.classList.remove(u);
1635
1639
  else if (!i)
1636
1640
  if (a) {
1637
1641
  var f = 1e3;
1638
- clearTimeout(this.Bc[r.field]), this.Bc[r.field] = setTimeout(function () { n(); }, f);
1642
+ clearTimeout(this.Ac[r.field]), this.Ac[r.field] = setTimeout(function () { n(); }, f);
1639
1643
  }
1640
1644
  else
1641
1645
  n();
@@ -1647,38 +1651,38 @@ var DayPilot = { Global: {} };
1647
1651
  catch (e) {
1648
1652
  throw new Error("The 'data' object is not serializable (it may contain circular dependencies): " + e);
1649
1653
  } for (var a in t)
1650
- this.setValue(a, t[a]); }, t.prototype.setValue = function (e, t) { this.zc.forEach(function (n) { n.applyValue(e, t); }); }, t.prototype.updateDependentState = function () { var e = this, t = [!0]; (this.Ac ? this.Ac : this.zc).forEach(function (n) { var a = e.updateState(n, { enabled: t[n.level] && !n.data.disabled }); a.isValue && (t[a.level + 1] = a.enabled && a.checked); }); }, t.prototype.processFormItem = function (e, t) {
1654
+ this.setValue(a, t[a]); }, t.prototype.setValue = function (e, t) { this.yc.forEach(function (n) { n.applyValue(e, t); }); }, t.prototype.updateDependentState = function () { var e = this, t = [!0]; (this.zc ? this.zc : this.yc).forEach(function (n) { var a = e.updateState(n, { enabled: t[n.level] && !n.data.disabled }); a.isValue && (t[a.level + 1] = a.enabled && a.checked); }); }, t.prototype.processFormItem = function (e, t) {
1651
1655
  var a = this, i = this.getFieldType(e), r = [];
1652
1656
  if ("radio" === i) {
1653
1657
  if (e.name) {
1654
1658
  var o = new n;
1655
- o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, a.zc.push(o), r.push(o);
1659
+ o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, a.yc.push(o), r.push(o);
1656
1660
  }
1657
1661
  e.options.forEach(function (o) {
1658
1662
  var s = new n;
1659
1663
  s.field = e.id, s.data = o, s.level = t, s.type = i, s.isValue = !0, s.text = o.name, s.resolved = o.id,
1660
- a.zc.push(s), r.push(s), o.children && o.children.forEach(function (e) { var n = a.processFormItem(e, t + 1); r = r.concat(n); });
1664
+ a.yc.push(s), r.push(s), o.children && o.children.forEach(function (e) { var n = a.processFormItem(e, t + 1); r = r.concat(n); });
1661
1665
  });
1662
1666
  }
1663
1667
  else if ("title" === i) {
1664
1668
  var o = new n;
1665
- o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = e.name, a.zc.push(o), r.push(o);
1669
+ o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = e.name, a.yc.push(o), r.push(o);
1666
1670
  }
1667
1671
  else if ("image" === i) {
1668
1672
  var o = new n;
1669
- o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, a.zc.push(o), r.push(o);
1673
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, a.yc.push(o), r.push(o);
1670
1674
  }
1671
1675
  else if ("html" === i) {
1672
1676
  var o = new n;
1673
- o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, a.zc.push(o), r.push(o);
1677
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, a.yc.push(o), r.push(o);
1674
1678
  }
1675
1679
  else if ("scrollable" === i) {
1676
1680
  var o = new n;
1677
- o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, a.zc.push(o), r.push(o);
1681
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, a.yc.push(o), r.push(o);
1678
1682
  }
1679
1683
  else {
1680
1684
  var o = new n;
1681
- o.field = e.id, o.data = e, o.level = t, o.type = i, o.text = e.name, o.children = [], a.zc.push(o), r.push(o), "checkbox" === i && (o.isValue = !0, o.resolved = !0, e.children && e.children.forEach(function (e) { var n = a.processFormItem(e, t + 1); r = r.concat(n); }));
1685
+ o.field = e.id, o.data = e, o.level = t, o.type = i, o.text = e.name, o.children = [], a.yc.push(o), r.push(o), "checkbox" === i && (o.isValue = !0, o.resolved = !0, e.children && e.children.forEach(function (e) { var n = a.processFormItem(e, t + 1); r = r.concat(n); }));
1682
1686
  }
1683
1687
  return r;
1684
1688
  }, t.prototype.doOnKey = function (e) { if ("function" == typeof this.onKey) {
@@ -1711,11 +1715,11 @@ var DayPilot = { Global: {} };
1711
1715
  r.close(), n = !0;
1712
1716
  break;
1713
1717
  default: n = !0;
1714
- } n || (e.preventDefault(), e.stopPropagation()); }, i.onfocus = function () { r.show(); }, i.onclick = function () { r.show(); }, i.oninput = function () { n.onInput(); }, i.onblur = function () { n.onBlur(); }, n.element = i, n.picker = r, n.canFocus = function () { return !n.element.disabled; }, n.focus = function () { n.element.focus(); }, n.save = function () { var t = r.date ? r.date.toString() : null, n = {}; return n[e.field] = t, n; }, n; }, "time": function () { return t.Fc(e); }, "datetime": function () { return t.Gc(e); }, "select": function () { var t = new a; t.apply = function (e) { t.row = e; var n = t.element; n.value = e.value, n.disabled = !e.enabled; }; var n = document.createElement("select"); return n.name = e.field, e.data.options && e.data.options.forEach && e.data.options.forEach(function (e) { var t = document.createElement("option"); t.innerText = e.name || e.id, t.value = e.id, t.Hc = e.id, n.appendChild(t); }), n.onchange = function () { t.onInput({ "immediate": !0 }); }, n.onblur = function () { t.onBlur(); }, t.element = n, t.canFocus = function () { return !t.element.disabled; }, t.focus = function () { t.element.focus(); }, t.save = function () { var t = null, a = n.options[n.selectedIndex]; a && "undefined" != typeof a.Hc && (t = a.Hc); var i = {}; return i[e.field] = t, i; }, t; }, "searchable": function () { var n = new a; n.apply = function (e) { n.row = e; var t = n.searchable; t.disabled = !e.enabled, t.select(e.value); }; var i = new r({ data: e.data.options || [], name: e.field, theme: t.theme + "_form_item_searchable", listZIndex: t.zIndex + 1, onSelect: function (e) { e.ui && n.onInput({ "immediate": !0 }); } }), o = i.create(); return n.element = o, n.searchable = i, n.canFocus = function () { return !n.searchable.disabled; }, n.focus = function () { n.searchable.focus(); }, n.save = function () { var t = i.selected && i.selected.id, n = {}; return n[e.field] = t, n; }, n; }, "radio": function () { var n = new a; n.apply = function (e) { n.row = e; var t = n.radio; t.checked = e.checked, t.disabled = !e.enabled; }; var i = document.createElement("label"), r = document.createElement("input"); r.type = "radio", r.name = e.field, r.Hc = e.resolved, r.onchange = function () { var e = n.row; t.findRowsByField(e.field).forEach(function (e) { t.updateState(e, { checked: !1 }); }), t.updateState(e, { checked: !0 }), t.applyState(), n.onInput({ "immediate": !0 }); }, r.onblur = function () { n.onBlur(); }, i.appendChild(r); var o = document.createTextNode(e.text); return i.append(o), n.element = i, n.radio = r, n.canFocus = function () { return !1; }, n.focus = function () { n.radio.focus(); }, n.save = function () { if (!r.checked)
1715
- return {}; var t = r.Hc, n = {}; return n[e.field] = t, n; }, n; }, "checkbox": function () { var n = new a; n.apply = function (e) { n.row = e; var t = n.checkbox; t.checked = e.checked, t.disabled = !e.enabled; }; var i = document.createElement("label"), r = document.createElement("input"); r.type = "checkbox", r.name = e.field, r.Hc = e.resolved, r.onchange = function () { var e = n.row; t.updateState(e, { checked: this.checked }), t.applyState(), n.onInput({ "immediate": !0 }); }, r.onblur = function () { n.onBlur(); }, i.appendChild(r); var o = document.createTextNode(e.text); return i.append(o), n.element = i, n.checkbox = r, n.canFocus = function () { return !1; }, n.focus = function () { n.checkbox.focus(); }, n.save = function () { var t = r.checked, n = {}; return n[e.field] = t, n; }, n; }, "table": function () { var n = new a; n.apply = function (e) { n.row = e; var t = n.table; t.disabled = !e.enabled, t.load(e.value || []); }; var i = new o({ name: e.field, form: t, theme: t.theme + "_form_item_tabular", item: e.data, onInput: function () { n.onInput(); } }), r = i.create(); return n.element = r, n.table = i, n.canFocus = function () { return !1; }, n.focus = function () { n.table.focus(); }, n.save = function () { var t = i.save(), n = {}; return n[e.field] = t, n; }, n; } }; return t.plugins && t.plugins[e.type] ? t.plugins[e.type](e) : n[e.type](); }, t.prototype.Fc = function (e) { var t = this, n = new a; n.apply = function (e) { n.row = e; var t = n.searchable; t.disabled = !e.enabled, t.select(e.value); }; var i = [], o = e.data.timeInterval || 15; [1, 5, 10, 15, 20, 30, 60].includes(o) || (o = 15); for (var s = 60 / o, l = e.data.locale || t.locale, d = DayPilot.Locale.find(l) || DayPilot.Locale.US, c = DayPilot.Date.today(), u = 0; u < 24 * s; u++) {
1718
+ } n || (e.preventDefault(), e.stopPropagation()); }, i.onfocus = function () { r.show(); }, i.onclick = function () { r.show(); }, i.oninput = function () { n.onInput(); }, i.onblur = function () { n.onBlur(); }, n.element = i, n.picker = r, n.canFocus = function () { return !n.element.disabled; }, n.focus = function () { n.element.focus(); }, n.save = function () { var t = r.date ? r.date.toString() : null, n = {}; return n[e.field] = t, n; }, n; }, "time": function () { return t.Ec(e); }, "datetime": function () { return t.Fc(e); }, "select": function () { var t = new a; t.apply = function (e) { t.row = e; var n = t.element; n.value = e.value, n.disabled = !e.enabled; }; var n = document.createElement("select"); return n.name = e.field, e.data.options && e.data.options.forEach && e.data.options.forEach(function (e) { var t = document.createElement("option"); t.innerText = e.name || e.id, t.value = e.id, t.Gc = e.id, n.appendChild(t); }), n.onchange = function () { t.onInput({ "immediate": !0 }); }, n.onblur = function () { t.onBlur(); }, t.element = n, t.canFocus = function () { return !t.element.disabled; }, t.focus = function () { t.element.focus(); }, t.save = function () { var t = null, a = n.options[n.selectedIndex]; a && "undefined" != typeof a.Gc && (t = a.Gc); var i = {}; return i[e.field] = t, i; }, t; }, "searchable": function () { var n = new a; n.apply = function (e) { n.row = e; var t = n.searchable; t.disabled = !e.enabled, t.select(e.value); }; var i = new r({ data: e.data.options || [], name: e.field, theme: t.theme + "_form_item_searchable", listZIndex: t.zIndex + 1, onSelect: function (e) { e.ui && n.onInput({ "immediate": !0 }); } }), o = i.create(); return n.element = o, n.searchable = i, n.canFocus = function () { return !n.searchable.disabled; }, n.focus = function () { n.searchable.focus(); }, n.save = function () { var t = i.selected && i.selected.id, n = {}; return n[e.field] = t, n; }, n; }, "radio": function () { var n = new a; n.apply = function (e) { n.row = e; var t = n.radio; t.checked = e.checked, t.disabled = !e.enabled; }; var i = document.createElement("label"), r = document.createElement("input"); r.type = "radio", r.name = e.field, r.Gc = e.resolved, r.onchange = function () { var e = n.row; t.findRowsByField(e.field).forEach(function (e) { t.updateState(e, { checked: !1 }); }), t.updateState(e, { checked: !0 }), t.applyState(), n.onInput({ "immediate": !0 }); }, r.onblur = function () { n.onBlur(); }, i.appendChild(r); var o = document.createTextNode(e.text); return i.append(o), n.element = i, n.radio = r, n.canFocus = function () { return !1; }, n.focus = function () { n.radio.focus(); }, n.save = function () { if (!r.checked)
1719
+ return {}; var t = r.Gc, n = {}; return n[e.field] = t, n; }, n; }, "checkbox": function () { var n = new a; n.apply = function (e) { n.row = e; var t = n.checkbox; t.checked = e.checked, t.disabled = !e.enabled; }; var i = document.createElement("label"), r = document.createElement("input"); r.type = "checkbox", r.name = e.field, r.Gc = e.resolved, r.onchange = function () { var e = n.row; t.updateState(e, { checked: this.checked }), t.applyState(), n.onInput({ "immediate": !0 }); }, r.onblur = function () { n.onBlur(); }, i.appendChild(r); var o = document.createTextNode(e.text); return i.append(o), n.element = i, n.checkbox = r, n.canFocus = function () { return !1; }, n.focus = function () { n.checkbox.focus(); }, n.save = function () { var t = r.checked, n = {}; return n[e.field] = t, n; }, n; }, "table": function () { var n = new a; n.apply = function (e) { n.row = e; var t = n.table; t.disabled = !e.enabled, t.load(e.value || []); }; var i = new o({ name: e.field, form: t, theme: t.theme + "_form_item_tabular", item: e.data, onInput: function () { n.onInput(); } }), r = i.create(); return n.element = r, n.table = i, n.canFocus = function () { return !1; }, n.focus = function () { n.table.focus(); }, n.save = function () { var t = i.save(), n = {}; return n[e.field] = t, n; }, n; } }; return t.plugins && t.plugins[e.type] ? t.plugins[e.type](e) : n[e.type](); }, t.prototype.Ec = function (e) { var t = this, n = new a; n.apply = function (e) { n.row = e; var t = n.searchable; t.disabled = !e.enabled, t.select(e.value); }; var i = [], o = e.data.timeInterval || 15; [1, 5, 10, 15, 20, 30, 60].includes(o) || (o = 15); for (var s = 60 / o, l = e.data.locale || t.locale, d = DayPilot.Locale.find(l) || DayPilot.Locale.US, c = DayPilot.Date.today(), u = 0; u < 24 * s; u++) {
1716
1720
  var h = c.addMinutes(o * u), f = {};
1717
1721
  f.name = h.toString(e.data.timeFormat || d.timePattern, d), f.id = h.toString("HH:mm"), i.push(f);
1718
- } var v = new r({ data: i, name: e.field, theme: t.theme + "_form_item_time", listZIndex: t.zIndex + 1, strategy: "startsWith", onSelect: function (e) { e.ui && n.onInput({ "immediate": !0 }); } }), p = v.create(); return n.element = p, n.searchable = v, n.canFocus = function () { return !n.searchable.disabled; }, n.focus = function () { n.searchable.focus(); }, n.save = function () { var t = v.selected && v.selected.id, n = {}; return n[e.field] = t, n; }, n; }, t.prototype.Gc = function (e) { var t = this, n = new a; n.apply = function (e) { n.row = e; var a = n.searchable; a.disabled = !e.enabled; var i = new DayPilot.Date(e.value).toString("HH:mm"); a.select(i); var r = n.dateInput, o = n.picker; e.data.dateFormat && (o.pattern = e.data.dateFormat); var s = e.data.locale || t.locale; if (s) {
1722
+ } var v = new r({ data: i, name: e.field, theme: t.theme + "_form_item_time", listZIndex: t.zIndex + 1, strategy: "startsWith", onSelect: function (e) { e.ui && n.onInput({ "immediate": !0 }); } }), p = v.create(); return n.element = p, n.searchable = v, n.canFocus = function () { return !n.searchable.disabled; }, n.focus = function () { n.searchable.focus(); }, n.save = function () { var t = v.selected && v.selected.id, n = {}; return n[e.field] = t, n; }, n; }, t.prototype.Fc = function (e) { var t = this, n = new a; n.apply = function (e) { n.row = e; var a = n.searchable; a.disabled = !e.enabled; var i = new DayPilot.Date(e.value).toString("HH:mm"); a.select(i); var r = n.dateInput, o = n.picker; e.data.dateFormat && (o.pattern = e.data.dateFormat); var s = e.data.locale || t.locale; if (s) {
1719
1723
  var l = DayPilot.Locale.find(s) || DayPilot.Locale.US;
1720
1724
  o.locale = s, o.pattern = l.datePattern;
1721
1725
  } r.disabled = !e.enabled, o.date = new DayPilot.Date(e.value); var d = new DayPilot.Date(e.value).toString(e.data.dateFormat || o.pattern, o.locale); r.value = d; }; var i = function () { var a = document.createElement("input"); a.name = e.field; var i = new DayPilot.DatePicker({ target: a, theme: "navigator_modal", zIndex: t.zIndex + 1, resetTarget: !1, targetAlignment: "left", onTimeRangeSelect: function () { n.onInput({ "immediate": !0 }); } }); return a.picker = i, a.className = t.theme + "_input_date", a.type = "text", a.onkeydown = function (e) { var n = !1; switch (e.keyCode) {
@@ -1732,48 +1736,48 @@ var DayPilot = { Global: {} };
1732
1736
  } n || (e.preventDefault(), e.stopPropagation()); }, a.onfocus = function () { i.show(); }, a.onclick = function () { i.show(); }, a.oninput = function () { n.onInput(); }, a.onblur = function () { n.onBlur(); }, n.dateInput = a, n.picker = i, a; }(), o = function () { var a = [], i = e.data.timeInterval || 15; [1, 5, 10, 15, 20, 30, 60].includes(i) || (i = 15); for (var o = 60 / i, s = e.data.locale || t.locale, l = DayPilot.Locale.find(s) || DayPilot.Locale.US, d = DayPilot.Date.today(), c = 0; c < 24 * o; c++) {
1733
1737
  var u = d.addMinutes(i * c), h = {};
1734
1738
  h.name = u.toString(e.data.timeFormat || l.timePattern, l), h.id = u.toString("HH:mm"), a.push(h);
1735
- } var f = new r({ data: a, name: e.field, theme: t.theme + "_form_item_time", listZIndex: t.zIndex + 1, strategy: "startsWith", onSelect: function (e) { e.ui && n.onInput({ "immediate": !0 }); } }); return n.searchable = f, f.create(); }(), s = document.createElement("div"); return s.className = t.theme + "_form_item_datetime_parent", s.appendChild(i), s.appendChild(o), n.element = s, n.canFocus = function () { return !n.searchable.disabled; }, n.focus = function () { n.dateInput.focus(); }, n.save = function () { var t = n.searchable.selected && n.searchable.selected.id, a = n.picker.date ? n.picker.date.toString() : null, i = new DayPilot.Date(a).getDatePart(), r = DayPilot.Date.parse(i.toString("yyyy-dd-MM ") + t, "yyyy-dd-MM HH:mm"), o = {}; return o[e.field] = r, o; }, n; }, t.prototype.findRowsByField = function (e) { return this.zc.filter(function (t) { return t.field === e; }); }, t.prototype.findViewById = function (e, t) { return this.f.find(function (n) { return n.row.field === e && ("radio" !== n.row.type || n.row.resolved === t); }); }, t.prototype.firstFocusable = function () { return this.f.find(function (e) { return e.canFocus && e.canFocus(); }); }, t.prototype.updateState = function (e, t) { var n = this.Ac ? this.Ac : this.zc, a = n.indexOf(e); return this.Ac = n.map(function (n) { if (n !== e)
1739
+ } var f = new r({ data: a, name: e.field, theme: t.theme + "_form_item_time", listZIndex: t.zIndex + 1, strategy: "startsWith", onSelect: function (e) { e.ui && n.onInput({ "immediate": !0 }); } }); return n.searchable = f, f.create(); }(), s = document.createElement("div"); return s.className = t.theme + "_form_item_datetime_parent", s.appendChild(i), s.appendChild(o), n.element = s, n.canFocus = function () { return !n.searchable.disabled; }, n.focus = function () { n.dateInput.focus(); }, n.save = function () { var t = n.searchable.selected && n.searchable.selected.id, a = n.picker.date ? n.picker.date.toString() : null, i = new DayPilot.Date(a).getDatePart(), r = DayPilot.Date.parse(i.toString("yyyy-dd-MM ") + t, "yyyy-dd-MM HH:mm"), o = {}; return o[e.field] = r, o; }, n; }, t.prototype.findRowsByField = function (e) { return this.yc.filter(function (t) { return t.field === e; }); }, t.prototype.findViewById = function (e, t) { return this.f.find(function (n) { return n.row.field === e && ("radio" !== n.row.type || n.row.resolved === t); }); }, t.prototype.firstFocusable = function () { return this.f.find(function (e) { return e.canFocus && e.canFocus(); }); }, t.prototype.updateState = function (e, t) { var n = this.zc ? this.zc : this.yc, a = n.indexOf(e); return this.zc = n.map(function (n) { if (n !== e)
1736
1740
  return n; if (e.propsEqual(t))
1737
1741
  return e; var a = e.clone(); for (var i in t)
1738
- a[i] = t[i]; return a; }), this.Ac[a]; }, t.prototype.updateInteractive = function (e) { var t = this.Ac.indexOf(e); this.f[t].apply(e); }, t.prototype.applyState = function () { var e = this; if (this.updateDependentState(), this.Ac) {
1739
- this.Ac.filter(function (t, n) { return e.zc[n] !== t; }).forEach(function (t) { e.updateInteractive(t); }), this.zc = this.Ac, this.Ac = null;
1742
+ a[i] = t[i]; return a; }), this.zc[a]; }, t.prototype.updateInteractive = function (e) { var t = this.zc.indexOf(e); this.f[t].apply(e); }, t.prototype.applyState = function () { var e = this; if (this.updateDependentState(), this.zc) {
1743
+ this.zc.filter(function (t, n) { return e.yc[n] !== t; }).forEach(function (t) { e.updateInteractive(t); }), this.yc = this.zc, this.zc = null;
1740
1744
  } }, t.prototype.getFieldType = function (e) { return ["text", "date", "select", "searchable", "radio", "checkbox", "table", "title", "image", "html", "textarea", "scrollable", "time", "datetime"].indexOf(e.type) !== -1 ? e.type : e.type && this.plugins && this.plugins[e.type] ? e.type : e.image ? "image" : e.html || e.text ? "html" : e.id ? e.options ? "searchable" : e.dateFormat ? "date" : e.columns ? "table" : "text" : "title"; }, t.prototype.serialize = function () { var e = {}; return this.f.forEach(function (t) { var n = t.save(); for (var a in n)
1741
1745
  e[a] = n[a]; }), e; }, n.prototype.clone = function () { var e = new n; for (var t in this)
1742
1746
  "id" !== t && (e[t] = this[t]); return e; }, n.prototype.propsEqual = function (e) { for (var t in e)
1743
1747
  if (this[t] !== e[t])
1744
- return !1; return !0; }, n.prototype.guid = function () { var e = function () { return (65536 * (1 + Math.random()) | 0).toString(16).substring(1); }; return "" + e() + e() + "-" + e() + "-" + e() + "-" + e() + "-" + e() + e() + e(); }, n.prototype.applyValue = function (e, t) { this.field === e && (this.value = t, this.isValue && t === this.resolved && (this.checked = !0)); }, DayPilot.Modal.Experimental = {}, DayPilot.Modal.Experimental.Form = t, r.prototype.select = function (e) { return this.Jc = this.data.find(function (t) { return t.id === e; }), this.Qc(!1), this; }, r.prototype.create = function () { function e(e) { var n = l.strategy; "includes" !== l.strategy && "startsWith" !== l.strategy && (n = "includes"), e = e || n || "includes", h.style.display = "", h.style.top = v.offsetHeight + "px", h.style.left = "0px", h.style.width = v.offsetWidth + "px", h.innerHTML = "", h.addEventListener("mousedown", function (e) { e.preventDefault(); }), l.Kc = null, l.q = []; var i = null; l.data.forEach(function (n) { var r = n.name || n.id; if ("includes" === e) {
1748
+ return !1; return !0; }, n.prototype.guid = function () { var e = function () { return (65536 * (1 + Math.random()) | 0).toString(16).substring(1); }; return "" + e() + e() + "-" + e() + "-" + e() + "-" + e() + "-" + e() + e() + e(); }, n.prototype.applyValue = function (e, t) { this.field === e && (this.value = t, this.isValue && t === this.resolved && (this.checked = !0)); }, DayPilot.Modal.Experimental = {}, DayPilot.Modal.Experimental.Form = t, r.prototype.select = function (e) { return this.Ic = this.data.find(function (t) { return t.id === e; }), this.Pc(!1), this; }, r.prototype.create = function () { function e(e) { var n = l.strategy; "includes" !== l.strategy && "startsWith" !== l.strategy && (n = "includes"), e = e || n || "includes", h.style.display = "", h.style.top = v.offsetHeight + "px", h.style.left = "0px", h.style.width = v.offsetWidth + "px", h.innerHTML = "", h.addEventListener("mousedown", function (e) { e.preventDefault(); }), l.Jc = null, l.q = []; var i = null; l.data.forEach(function (n) { var r = n.name || n.id; if ("includes" === e) {
1745
1749
  if (r.toLowerCase().indexOf(v.value.toLowerCase()) === -1)
1746
1750
  return;
1747
1751
  }
1748
1752
  else if ("startsWith" === e && 0 !== r.toLowerCase().indexOf(v.value.toLowerCase()))
1749
- return; var o = document.createElement("div"); o.className = l.theme + "_list_item", o.innerText = r, o.item = n, n === l.Jc && (l.Kc = o), i || (i = o), o.addEventListener("mousedown", function (e) { a(o), e.preventDefault(); }), o.addEventListener("mousemove", function () { l.Kc !== o && (l.Kc = o, t({ dontScroll: !0 })); }), h.appendChild(o), l.q.push(o); }), l.Kc || (l.Kc = i), t(); } function t(e) { e = e || {}; var t = !e.dontScroll; document.querySelectorAll("." + l.theme + "_list_item_highlight").forEach(function (e) { e.className = e.className.replace(l.theme + "_list_item_highlight", ""); }), l.Kc && (l.Kc.className += " " + l.theme + "_list_item_highlight", t && !n(l.Kc, h) && l.Kc.scrollIntoView()); } function n(e, t) { var n = e.getBoundingClientRect(), a = t.getBoundingClientRect(); return n.top >= a.top && n.bottom <= a.bottom; } function a(e) { var t = e.item; l.Jc = t, l.Qc(!0), r(), o(); } function i() { l.Pc(); } function r() { l.s(); } function o() { l.Lc = !0, v.setAttribute("readonly", "readonly"), v.focus(); } function s() { l.Lc = !1, v.removeAttribute("readonly"), v.select(), e("all"); } var l = this, d = this, c = document.createElement("div"); c.className = this.theme + "_main", c.style.position = "relative"; var u = document.createElement("div"); u.className = this.theme + "_icon", u.style.position = "absolute", u.style.right = "0", u.style.top = "0", u.style.bottom = "0", u.style.width = "20px", u.addEventListener("mousedown", function (e) { e.preventDefault(), l.Lc ? (l.focus(), s()) : (i(), o()); }); var h = document.createElement("div"); h.className = this.theme + "_list", h.style.display = "none", h.style.position = "absolute", h.style.zIndex = this.listZIndex; var f = document.createElement("input"); f.type = "hidden", f.name = this.name, f.searchable = d, this.Oc = f; var v = document.createElement("input"); return v.type = "text", v.className = this.theme + "_input", v.disabled = this.Ic, v.addEventListener("click", function () { s(); }), v.addEventListener("focus", function () { e("all"); }), v.addEventListener("input", function () { e(); }), v.addEventListener("blur", function () { v.removeAttribute("readonly"), i(); }), v.addEventListener("keydown", function (e) { if (l.Lc) {
1753
+ return; var o = document.createElement("div"); o.className = l.theme + "_list_item", o.innerText = r, o.item = n, n === l.Ic && (l.Jc = o), i || (i = o), o.addEventListener("mousedown", function (e) { a(o), e.preventDefault(); }), o.addEventListener("mousemove", function () { l.Jc !== o && (l.Jc = o, t({ dontScroll: !0 })); }), h.appendChild(o), l.q.push(o); }), l.Jc || (l.Jc = i), t(); } function t(e) { e = e || {}; var t = !e.dontScroll; document.querySelectorAll("." + l.theme + "_list_item_highlight").forEach(function (e) { e.className = e.className.replace(l.theme + "_list_item_highlight", ""); }), l.Jc && (l.Jc.className += " " + l.theme + "_list_item_highlight", t && !n(l.Jc, h) && l.Jc.scrollIntoView()); } function n(e, t) { var n = e.getBoundingClientRect(), a = t.getBoundingClientRect(); return n.top >= a.top && n.bottom <= a.bottom; } function a(e) { var t = e.item; l.Ic = t, l.Pc(!0), r(), o(); } function i() { l.Oc(); } function r() { l.s(); } function o() { l.Kc = !0, v.setAttribute("readonly", "readonly"), v.focus(); } function s() { l.Kc = !1, v.removeAttribute("readonly"), v.select(), e("all"); } var l = this, d = this, c = document.createElement("div"); c.className = this.theme + "_main", c.style.position = "relative"; var u = document.createElement("div"); u.className = this.theme + "_icon", u.style.position = "absolute", u.style.right = "0", u.style.top = "0", u.style.bottom = "0", u.style.width = "20px", u.addEventListener("mousedown", function (e) { e.preventDefault(), l.Kc ? (l.focus(), s()) : (i(), o()); }); var h = document.createElement("div"); h.className = this.theme + "_list", h.style.display = "none", h.style.position = "absolute", h.style.zIndex = this.listZIndex; var f = document.createElement("input"); f.type = "hidden", f.name = this.name, f.searchable = d, this.Nc = f; var v = document.createElement("input"); return v.type = "text", v.className = this.theme + "_input", v.disabled = this.Hc, v.addEventListener("click", function () { s(); }), v.addEventListener("focus", function () { e("all"); }), v.addEventListener("input", function () { e(); }), v.addEventListener("blur", function () { v.removeAttribute("readonly"), i(); }), v.addEventListener("keydown", function (e) { if (l.Kc) {
1750
1754
  if ("Enter" === e.key)
1751
1755
  return;
1752
1756
  if ("Esc" === e.key || "Escape" === e.key)
1753
1757
  return;
1754
1758
  s();
1755
1759
  } if ("ArrowDown" === e.key) {
1756
- var n = d.q.indexOf(d.Kc);
1757
- n + 1 < d.q.length && (d.Kc = d.q[n + 1]), t();
1760
+ var n = d.q.indexOf(d.Jc);
1761
+ n + 1 < d.q.length && (d.Jc = d.q[n + 1]), t();
1758
1762
  }
1759
1763
  else if ("ArrowUp" === e.key) {
1760
- var n = d.q.indexOf(d.Kc);
1761
- n - 1 >= 0 && (d.Kc = d.q[n - 1]), t();
1764
+ var n = d.q.indexOf(d.Jc);
1765
+ n - 1 >= 0 && (d.Jc = d.q[n - 1]), t();
1762
1766
  }
1763
1767
  else
1764
- "Enter" === e.key ? l.Kc ? (e.stopPropagation(), a(l.Kc)) : (e.stopPropagation(), i(), o()) : "Esc" !== e.key && "Escape" !== e.key || (e.stopPropagation(), i(), o()); }), this.Mc = v, this.Nc = h, this.Jc || (this.Jc = this.data[0], this.Jc && (v.value = this.Jc.name)), c.appendChild(v), c.appendChild(u), c.appendChild(f), c.appendChild(h), c; }, r.prototype.Pc = function () { this.s(), this.Jc ? this.Mc.value = this.Jc.name : (this.Mc.value = "", this.Qc(!0)); }, r.prototype.focus = function () { this.Lc = !0, this.Mc.setAttribute("readonly", "readonly"), this.Mc.focus(), this.Pc(); }, r.prototype.s = function () { this.Nc.style.display = "none"; }, r.prototype.Qc = function (e) { if (this.Oc.value = this.selected ? this.selected.id : null, this.Jc ? this.Mc.value = this.Jc.name : this.Mc.value = "", "function" == typeof this.onSelect) {
1768
+ "Enter" === e.key ? l.Jc ? (e.stopPropagation(), a(l.Jc)) : (e.stopPropagation(), i(), o()) : "Esc" !== e.key && "Escape" !== e.key || (e.stopPropagation(), i(), o()); }), this.Lc = v, this.Mc = h, this.Ic || (this.Ic = this.data[0], this.Ic && (v.value = this.Ic.name)), c.appendChild(v), c.appendChild(u), c.appendChild(f), c.appendChild(h), c; }, r.prototype.Oc = function () { this.s(), this.Ic ? this.Lc.value = this.Ic.name : (this.Lc.value = "", this.Pc(!0)); }, r.prototype.focus = function () { this.Kc = !0, this.Lc.setAttribute("readonly", "readonly"), this.Lc.focus(), this.Oc(); }, r.prototype.s = function () { this.Mc.style.display = "none"; }, r.prototype.Pc = function (e) { if (this.Nc.value = this.selected ? this.selected.id : null, this.Ic ? this.Lc.value = this.Ic.name : this.Lc.value = "", "function" == typeof this.onSelect) {
1765
1769
  var t = { control: this, ui: e };
1766
1770
  this.onSelect(t);
1767
- } }, o.prototype.create = function () { var e = this, t = document.createElement("div"); t.className = this.theme + "_main", t.style.position = "relative"; var n = document.createElement("input"); n.type = "hidden", n.name = e.name, n.table = this, t.appendChild(n); var a = document.createElement("div"); a.className = this.theme + "_table"; var i = this.Sc(); a.appendChild(i); var r = e.Tc({}); r.spacer = !0; var o = this.Uc(r); o.classList.add(e.theme + "_spacer"), a.appendChild(o); var s = document.createElement("div"); s.className = e.theme + "_tbody", a.appendChild(s), t.appendChild(a); var l = document.createElement("div"); t.appendChild(l), this.nav.body = s, this.nav.table = a, this.nav.main = t, this.nav.after = l; var d = document.createElement("div"), c = document.createElement("span"); return c.className = this.theme + "_plus", c.addEventListener("click", function () { if (!e.disabled) {
1771
+ } }, o.prototype.create = function () { var e = this, t = document.createElement("div"); t.className = this.theme + "_main", t.style.position = "relative"; var n = document.createElement("input"); n.type = "hidden", n.name = e.name, n.table = this, t.appendChild(n); var a = document.createElement("div"); a.className = this.theme + "_table"; var i = this.Rc(); a.appendChild(i); var r = e.Sc({}); r.spacer = !0; var o = this.Tc(r); o.classList.add(e.theme + "_spacer"), a.appendChild(o); var s = document.createElement("div"); s.className = e.theme + "_tbody", a.appendChild(s), t.appendChild(a); var l = document.createElement("div"); t.appendChild(l), this.nav.body = s, this.nav.table = a, this.nav.main = t, this.nav.after = l; var d = document.createElement("div"), c = document.createElement("span"); return c.className = this.theme + "_plus", c.addEventListener("click", function () { if (!e.disabled) {
1768
1772
  var t = e.item.onNewRow, n = {};
1769
1773
  if ("function" == typeof t) {
1770
1774
  var a = {};
1771
1775
  a.result = e.form.serialize(), a.value = {}, t(a), n = a.value;
1772
1776
  }
1773
- var i = e.Tc(n);
1774
- e.zc.push(i), e.Vc(), e.Wc();
1775
- } }), this.nav.plus = c, d.appendChild(c), t.appendChild(d), t; }, o.prototype.Sc = function () { var e = this, t = document.createElement("div"); return t.classList.add(this.theme + "_row"), t.classList.add(this.theme + "_header"), this.item.columns.forEach(function (n) { var a = document.createElement("div"); a.classList.add(e.theme + "_cell"), a.innerText = n.name, t.appendChild(a); }), t; }, o.prototype.Xc = function () { var e = this.item.max || 0; return !!(e && this.zc.length >= e); }, o.prototype.save = function () { var e = this, t = []; return e.zc.forEach(function (e) { var n = {}; e.cells.forEach(function (e) { n[e.id] = e.value; }), t.push(n); }), t; }, o.prototype.load = function (e) { if ("[object Array]" !== Object.prototype.toString.call(e))
1776
- throw new Error("Array expected"); this.data = e, this.Yc(), this.Vc(); }, o.prototype.Zc = function () { this.disabled ? this.nav.main.classList.add(this.theme + "_disabled") : this.nav.main.classList.remove(this.theme + "_disabled"), this.Xc() ? this.nav.plus.classList.add(this.theme + "_plus_max") : this.nav.plus.classList.remove(this.theme + "_plus_max"); }, o.prototype.Yc = function () { var e = this; this.zc = [], this.data.forEach(function (t) { var n = e.Tc(t); e.zc.push(n); }); }, o.prototype.$c = function (e) { var t = this, n = t.zc.indexOf(e); t.zc.splice(n, 1); }, o.prototype.Tc = function (e) { var t = this, n = {}; return n.data = e, n.cells = [], t.item.columns.forEach(function (a) { var i = a.id, r = e[i], o = t._c(a); if ("undefined" == typeof r)
1777
+ var i = e.Sc(n);
1778
+ e.yc.push(i), e.Uc(), e.Vc();
1779
+ } }), this.nav.plus = c, d.appendChild(c), t.appendChild(d), t; }, o.prototype.Rc = function () { var e = this, t = document.createElement("div"); return t.classList.add(this.theme + "_row"), t.classList.add(this.theme + "_header"), this.item.columns.forEach(function (n) { var a = document.createElement("div"); a.classList.add(e.theme + "_cell"), a.innerText = n.name, t.appendChild(a); }), t; }, o.prototype.Wc = function () { var e = this.item.max || 0; return !!(e && this.yc.length >= e); }, o.prototype.save = function () { var e = this, t = []; return e.yc.forEach(function (e) { var n = {}; e.cells.forEach(function (e) { n[e.id] = e.value; }), t.push(n); }), t; }, o.prototype.load = function (e) { if ("[object Array]" !== Object.prototype.toString.call(e))
1780
+ throw new Error("Array expected"); this.data = e, this.Xc(), this.Uc(); }, o.prototype.Yc = function () { this.disabled ? this.nav.main.classList.add(this.theme + "_disabled") : this.nav.main.classList.remove(this.theme + "_disabled"), this.Wc() ? this.nav.plus.classList.add(this.theme + "_plus_max") : this.nav.plus.classList.remove(this.theme + "_plus_max"); }, o.prototype.Xc = function () { var e = this; this.yc = [], this.data.forEach(function (t) { var n = e.Sc(t); e.yc.push(n); }); }, o.prototype.Zc = function (e) { var t = this, n = t.yc.indexOf(e); t.yc.splice(n, 1); }, o.prototype.Sc = function (e) { var t = this, n = {}; return n.data = e, n.cells = [], t.item.columns.forEach(function (a) { var i = a.id, r = e[i], o = t.$c(a); if ("undefined" == typeof r)
1777
1781
  if ("text" === o)
1778
1782
  r = "";
1779
1783
  else if ("number" === o)
@@ -1781,23 +1785,23 @@ var DayPilot = { Global: {} };
1781
1785
  else if ("select" === o) {
1782
1786
  var s = a.options;
1783
1787
  r = s && s[0].id;
1784
- } var l = {}; l.id = i, l.value = r, l.type = o, l.data = a, n.cells.push(l); }), n; }, o.prototype._c = function (e) { var t = e.type; return t || (t = e.options ? "select" : "text"), t; }, o.prototype.Vc = function () { var e = this; if (this.nav.body.innerHTML = "", this.nav.after.innerHTML = "", this.zc.forEach(function (t) { var n = e.Uc(t); e.nav.body.appendChild(n); }), 0 === this.zc.length) {
1785
- var t = e.ad();
1788
+ } var l = {}; l.id = i, l.value = r, l.type = o, l.data = a, n.cells.push(l); }), n; }, o.prototype.$c = function (e) { var t = e.type; return t || (t = e.options ? "select" : "text"), t; }, o.prototype.Uc = function () { var e = this; if (this.nav.body.innerHTML = "", this.nav.after.innerHTML = "", this.yc.forEach(function (t) { var n = e.Tc(t); e.nav.body.appendChild(n); }), 0 === this.yc.length) {
1789
+ var t = e._c();
1786
1790
  e.nav.after.appendChild(t);
1787
- } this.Zc(); }, o.prototype.ad = function () { var e = document.createElement("div"); return e.className = this.theme + "_empty", e; }, o.prototype.Uc = function (e) { var t = this, n = document.createElement("div"); n.className = t.theme + "_row", e.cells.forEach(function (a) { var i = document.createElement("div"); i.className = t.theme + "_cell"; var r = t.bd(a); if (e.spacer) {
1791
+ } this.Yc(); }, o.prototype._c = function () { var e = document.createElement("div"); return e.className = this.theme + "_empty", e; }, o.prototype.Tc = function (e) { var t = this, n = document.createElement("div"); n.className = t.theme + "_row", e.cells.forEach(function (a) { var i = document.createElement("div"); i.className = t.theme + "_cell"; var r = t.ad(a); if (e.spacer) {
1788
1792
  var o = document.createElement("div");
1789
1793
  o.style.height = "0px", o.style.overflow = "hidden", o.appendChild(r), i.appendChild(o);
1790
1794
  }
1791
1795
  else
1792
- i.appendChild(r); n.appendChild(i); }); var a = document.createElement("div"); a.classList.add(t.theme + "_cell"), a.classList.add(t.theme + "_rowaction"); var i = document.createElement("span"); return i.className = this.theme + "_delete", i.addEventListener("click", function () { t.disabled || (t.$c(e), t.Vc(), t.Wc()); }), e.spacer || a.appendChild(i), n.appendChild(a), n; }, o.prototype.Wc = function () { var e = this; if ("function" == typeof e.onInput) {
1796
+ i.appendChild(r); n.appendChild(i); }); var a = document.createElement("div"); a.classList.add(t.theme + "_cell"), a.classList.add(t.theme + "_rowaction"); var i = document.createElement("span"); return i.className = this.theme + "_delete", i.addEventListener("click", function () { t.disabled || (t.Zc(e), t.Uc(), t.Vc()); }), e.spacer || a.appendChild(i), n.appendChild(a), n; }, o.prototype.Vc = function () { var e = this; if ("function" == typeof e.onInput) {
1793
1797
  var t = {};
1794
1798
  e.onInput(t);
1795
- } }, o.prototype.bd = function (e) { var t = this, n = e.type; if ("text" === n || "number" === n) {
1799
+ } }, o.prototype.ad = function (e) { var t = this, n = e.type; if ("text" === n || "number" === n) {
1796
1800
  var a = document.createElement("input");
1797
- return a.type = n, t.disabled && (a.disabled = !0), e.value && (a.value = e.value), a.addEventListener("keyup", function () { "number" === n ? e.value = Number(this.value) : e.value = this.value, t.Wc(); }), a;
1801
+ return a.type = n, t.disabled && (a.disabled = !0), e.value && (a.value = e.value), a.addEventListener("keyup", function () { "number" === n ? e.value = Number(this.value) : e.value = this.value, t.Vc(); }), a;
1798
1802
  } if ("select" === n) {
1799
1803
  var i = document.createElement("select");
1800
- return t.disabled && (i.disabled = !0), e.data.options.forEach(function (t) { var n = document.createElement("option"); n.innerText = t.name, n.value = t.id, n.Hc = t.id, i.appendChild(n), e.value === t.id && n.setAttribute("selected", !0); }), i.addEventListener("change", function () { var n = i.options[i.selectedIndex]; n && "undefined" != typeof n.Hc && (e.value = n.Hc), t.Wc(); }), i;
1804
+ return t.disabled && (i.disabled = !0), e.data.options.forEach(function (t) { var n = document.createElement("option"); n.innerText = t.name, n.value = t.id, n.Gc = t.id, i.appendChild(n), e.value === t.id && n.setAttribute("selected", !0); }), i.addEventListener("change", function () { var n = i.options[i.selectedIndex]; n && "undefined" != typeof n.Gc && (e.value = n.Gc), t.Vc(); }), i;
1801
1805
  } throw new Error("Unsupported item type: " + n); }, o.prototype.focus = function () { };
1802
1806
  }
1803
1807
  }(DayPilot), function (DayPilot) {
@@ -1808,7 +1812,7 @@ var DayPilot = { Global: {} };
1808
1812
  var i = this;
1809
1813
  this.id = n, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, this.cellMarginBottom = 0, this.contextMenu = null, this.cssClassPrefix = "month_default", this.eventBarVisible = !0, this.eventBorderRadius = null, this.eventHeight = 25, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.hideUntilInit = !0, this.lineSpace = 1, this.locale = "en-us", this.showToolTip = !0, this.startDate = new DayPilot.Date, this.theme = null, this.visible = !0, this.weekStarts = "Auto", this.width = "100%", this.xssProtection = "Enabled", this.afterRender = function () { }, this.cellHeaderClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.headerClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onCellHeaderClick = null, this.onCellHeaderClicked = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.onBeforeEventRender = null, this.onBeforeCellRender = null, this.cellEvents = [], this.elements = {}, this.elements.events = [], this.cache = {}, this.Q = !1, this.R = {};
1810
1814
  var r = this.R;
1811
- this.X = function (e) { var t = JSON.parse(e); return t.CallBackRedirect ? void (document.location.href = t.CallBackRedirect) : "None" === t.UpdateType ? void i.fireAfterRenderDetached(t.CallBackData, !0) : (i.events.list = t.Events, "Full" === t.UpdateType && (i.startDate = t.StartDate, i.timeFormat = t.TimeFormat ? t.TimeFormat : i.timeFormat, "undefined" != typeof t.WeekStarts && (i.weekStarts = t.WeekStarts), i.hashes = t.Hashes), i.Z(), i.cd(), i.ha(), "Full" === t.UpdateType && (i.dd(), i.ed()), i.ma(), i.show(), i.na(), void i.fireAfterRenderDetached(t.CallBackData, !0)); }, this.fireAfterRenderDetached = function (e, t) { var n = function (e, t) { return function () { i.afterRender && i.afterRender(e, t); }; }; window.setTimeout(n(e, t), 0); }, this.lineHeight = function () { return this.eventHeight + this.lineSpace; }, this.events = {}, this.events.add = function (e) { var t = null; if (e instanceof DayPilot.Event)
1815
+ this.X = function (e) { var t = JSON.parse(e); return t.CallBackRedirect ? void (document.location.href = t.CallBackRedirect) : "None" === t.UpdateType ? void i.fireAfterRenderDetached(t.CallBackData, !0) : (i.events.list = t.Events, "Full" === t.UpdateType && (i.startDate = t.StartDate, i.timeFormat = t.TimeFormat ? t.TimeFormat : i.timeFormat, "undefined" != typeof t.WeekStarts && (i.weekStarts = t.WeekStarts), i.hashes = t.Hashes), i.Z(), i.bd(), i.ha(), "Full" === t.UpdateType && (i.cd(), i.dd()), i.ma(), i.show(), i.na(), void i.fireAfterRenderDetached(t.CallBackData, !0)); }, this.fireAfterRenderDetached = function (e, t) { var n = function (e, t) { return function () { i.afterRender && i.afterRender(e, t); }; }; window.setTimeout(n(e, t), 0); }, this.lineHeight = function () { return this.eventHeight + this.lineSpace; }, this.events = {}, this.events.add = function (e) { var t = null; if (e instanceof DayPilot.Event)
1812
1816
  t = e.data;
1813
1817
  else {
1814
1818
  if ("object" != typeof e)
@@ -1853,21 +1857,21 @@ var DayPilot = { Global: {} };
1853
1857
  var s = {};
1854
1858
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = n, "function" == typeof t && t(s), s.preventDefault.value)
1855
1859
  return;
1856
- i.events.list = n, i.Ma && i.update();
1860
+ i.events.list = n, i.La && i.update();
1857
1861
  } }; if (i.eventsLoadMethod && "POST" === i.eventsLoadMethod.toUpperCase())
1858
1862
  DayPilot.Http.ajax({ "method": "POST", "data": { "start": i.visibleStart().toString(), "end": i.visibleEnd().toString() }, "url": e, "success": r, "error": a });
1859
1863
  else {
1860
1864
  var o = e, s = "start=" + i.visibleStart().toString() + "&end=" + i.visibleEnd().toString();
1861
1865
  o += o.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": o, "success": r, "error": a });
1862
- } }, this.events.forRange = function (e, t) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var n = (i.events.list || []).map(function (e) { return new DayPilot.Event(e); }); return n.sort(i.Ab), n.filter(function (n) { var a = n.start(), i = n.end(); return a === i && a === e || DayPilot.Util.overlaps(e, t, a, i); }); }, this.update = function (e) { if (i.tb(e), this.Ma) {
1866
+ } }, this.events.forRange = function (e, t) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var n = (i.events.list || []).map(function (e) { return new DayPilot.Event(e); }); return n.sort(i.zb), n.filter(function (n) { var a = n.start(), i = n.end(); return a === i && a === e || DayPilot.Util.overlaps(e, t, a, i); }); }, this.update = function (e) { if (i.sb(e), this.La) {
1863
1867
  if (i.Q)
1864
1868
  throw new DayPilot.Exception("You are trying to update a DayPilot.Month instance that has been disposed.");
1865
1869
  if (this.cells) {
1866
- i.Z(), i.cd(), i.ha(), i.dd(), i.ed(), i.ma(), i.u(), i.na(), this.visible ? this.show() : this.hide();
1870
+ i.Z(), i.bd(), i.ha(), i.cd(), i.dd(), i.ma(), i.u(), i.na(), this.visible ? this.show() : this.hide();
1867
1871
  }
1868
- } }, this.vb = null, this.tb = function (e) { if (e) {
1872
+ } }, this.ub = null, this.sb = function (e) { if (e) {
1869
1873
  var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? i.events.list = e.list : i.events.list = e; } } };
1870
- this.vb = t;
1874
+ this.ub = t;
1871
1875
  for (var n in e)
1872
1876
  if (t[n]) {
1873
1877
  var a = t[n];
@@ -1875,10 +1879,10 @@ var DayPilot = { Global: {} };
1875
1879
  }
1876
1880
  else
1877
1881
  i[n] = e[n];
1878
- } }, this.wb = function () { var e = this.vb; for (var t in e) {
1882
+ } }, this.vb = function () { var e = this.ub; for (var t in e) {
1879
1883
  var n = e[t];
1880
1884
  n.postInit && n.postInit();
1881
- } }, this.yb = {}, this.yb.events = [], this.zb = function (e) { var t = this.yb.events, n = this.events.list[e], a = {}; for (var r in n)
1885
+ } }, this.xb = {}, this.xb.events = [], this.yb = function (e) { var t = this.xb.events, n = this.events.list[e], a = {}; for (var r in n)
1882
1886
  a[r] = n[r]; if ("function" == typeof this.onBeforeEventRender) {
1883
1887
  var o = {};
1884
1888
  o.control = i, o.data = a, this.onBeforeEventRender(o);
@@ -1887,7 +1891,7 @@ var DayPilot = { Global: {} };
1887
1891
  throw new DayPilot.Exception("DayPilot.Month.events.list expects an array object. You supplied: " + typeof e);
1888
1892
  if ("function" == typeof this.onBeforeEventRender)
1889
1893
  for (var t = 0; t < e.length; t++)
1890
- this.zb(t);
1894
+ this.yb(t);
1891
1895
  for (var n = 0; n < e.length; n++) {
1892
1896
  var a = e[n];
1893
1897
  if ("object" != typeof a)
@@ -1900,12 +1904,12 @@ var DayPilot = { Global: {} };
1900
1904
  if (!(i.getTime() > r.getTime()))
1901
1905
  for (var t = 0; t < this.rows.length; t++) {
1902
1906
  var o = this.rows[t], s = new DayPilot.Event(a, this);
1903
- o.belongsHere(s) && (o.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.yb.events[n]));
1907
+ o.belongsHere(s) && (o.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.xb.events[n]));
1904
1908
  }
1905
1909
  }
1906
1910
  for (var l = 0; l < this.rows.length; l++) {
1907
1911
  var o = this.rows[l];
1908
- o.events.sort(this.Ab);
1912
+ o.events.sort(this.zb);
1909
1913
  for (var d = 0; d < this.rows[l].events.length; d++) {
1910
1914
  var c = o.events[d], u = o.getStartColumn(c), h = o.getWidth(c);
1911
1915
  o.putIntoLine(c, u, h, l);
@@ -1913,16 +1917,16 @@ var DayPilot = { Global: {} };
1913
1917
  }
1914
1918
  } }, this.Z = function () { for (var e = 0; e < this.elements.events.length; e++) {
1915
1919
  var t = this.elements.events[e];
1916
- i.Pa(t);
1917
- } this.elements.events = []; }, this.Pa = function (e) { !function () { var n = e.domArgs; if (e.domArgs = null, n && "function" == typeof i.onBeforeEventDomRemove && i.onBeforeEventDomRemove(n), n && "function" == typeof i.onBeforeEventDomAdd) {
1918
- var a = n && n.Qa;
1920
+ i.Oa(t);
1921
+ } this.elements.events = []; }, this.Oa = function (e) { !function () { var n = e.domArgs; if (e.domArgs = null, n && "function" == typeof i.onBeforeEventDomRemove && i.onBeforeEventDomRemove(n), n && "function" == typeof i.onBeforeEventDomAdd) {
1922
+ var a = n && n.Pa;
1919
1923
  if (a) {
1920
- i.Sa.Ra && t(n.element) && (i.Sa.Ta = !0, i.Sa.Ua(a), i.Sa.Ta = !1);
1924
+ i.Ra.Qa && t(n.element) && (i.Ra.Sa = !0, i.Ra.Ta(a), i.Ra.Sa = !1);
1921
1925
  }
1922
- } }(), e.event = null, e.click = null, e.parentNode.removeChild(e); }, this.na = function () { this.fd(); }, this.fd = function () { this.elements.events = []; for (var e = 0; e < this.rows.length; e++)
1926
+ } }(), e.event = null, e.click = null, e.parentNode.removeChild(e); }, this.na = function () { this.ed(); }, this.ed = function () { this.elements.events = []; for (var e = 0; e < this.rows.length; e++)
1923
1927
  for (var t = this.rows[e], n = 0; n < t.lines.length; n++)
1924
1928
  for (var a = t.lines[n], i = 0; i < a.length; i++)
1925
- this.Va(a[i]); }, this.Ab = function (e, t) { if (!(e && t && e.start && t.start))
1929
+ this.Ua(a[i]); }, this.zb = function (e, t) { if (!(e && t && e.start && t.start))
1926
1930
  return 0; var n = e.start().getTime() - t.start().getTime(); return 0 !== n ? n : t.end().getTime() - e.end().getTime(); }, this.drawShadow = function (t, n, a, r, o) { o || (o = 0); var s = r; this.shadow = {}, this.shadow.list = [], this.shadow.start = { x: t, y: n }, this.shadow.width = r; var l = 7 * n + t - o; l < 0 && (s += l, t = 0, n = 0); for (var d = o; d >= 7;)
1927
1931
  n--, d -= 7; if (d > t) {
1928
1932
  d > t + (7 - this.getColCount()) ? (n--, t = t + 7 - d) : (s = s - d + t, t = 0);
@@ -1938,11 +1942,11 @@ var DayPilot = { Global: {} };
1938
1942
  this.nav.top.removeChild(this.shadow.list[e]);
1939
1943
  this.shadow = null, this.nav.top.style.cursor = "";
1940
1944
  } }, this.getEventTop = function (e, t) { for (var n = this.headerHeight, a = 0; a < e; a++)
1941
- n += this.rows[a].getHeight(); return n += this.cellHeaderHeight, n += t * this.lineHeight(); }, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.Va = function (n) {
1945
+ n += this.rows[a].getHeight(); return n += this.cellHeaderHeight, n += t * this.lineHeight(); }, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.Ua = function (n) {
1942
1946
  var a = n.cache || n.data, r = a.borderRadius || i.eventBorderRadius;
1943
1947
  "number" == typeof r && (r += "px");
1944
1948
  var o = n.part.row, s = n.part.line, l = n.part.colStart, d = n.part.colWidth, c = this.getCellWidth() * l, u = this.getCellWidth() * d, h = this.getEventTop(o, s), f = document.createElement("div");
1945
- f.setAttribute("unselectable", "on"), f.style.height = this.eventHeight + "px", f.style.overflow = "hidden", f.className = this.L("_event"), a.cssClass && DayPilot.Util.addClass(f, a.cssClass), n.part.startsHere || DayPilot.Util.addClass(f, this.L("_event_continueleft")), n.part.endsHere || DayPilot.Util.addClass(f, this.L("_event_continueright")), f.event = n, f.style.width = u + "%", f.style.position = "absolute", f.style.left = c + "%", f.style.top = h + "px", this.showToolTip && n.client.toolTip() && (f.title = n.client.toolTip()), f.onclick = i.va, f.oncontextmenu = i.gd, f.onmousedown = function (t) { t = t || window.event; var a = t.which || t.button; if (t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), 1 === a)
1949
+ f.setAttribute("unselectable", "on"), f.style.height = this.eventHeight + "px", f.style.overflow = "hidden", f.className = this.L("_event"), a.cssClass && DayPilot.Util.addClass(f, a.cssClass), n.part.startsHere || DayPilot.Util.addClass(f, this.L("_event_continueleft")), n.part.endsHere || DayPilot.Util.addClass(f, this.L("_event_continueright")), f.event = n, f.style.width = u + "%", f.style.position = "absolute", f.style.left = c + "%", f.style.top = h + "px", this.showToolTip && n.client.toolTip() && (f.title = n.client.toolTip()), f.onclick = i.va, f.oncontextmenu = i.fd, f.onmousedown = function (t) { t = t || window.event; var a = t.which || t.button; if (t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), 1 === a)
1946
1950
  if (e.movingEvent = null, "w-resize" === this.style.cursor || "e-resize" === this.style.cursor) {
1947
1951
  var r = {};
1948
1952
  r.start = {}, r.start.x = l, r.start.y = o, r.event = f.event, r.width = DayPilot.DateUtil.daysSpan(r.event.start(), r.event.end()) + 1, r.direction = this.style.cursor, e.resizingEvent = r;
@@ -1984,11 +1988,11 @@ var DayPilot = { Global: {} };
1984
1988
  !function () { var e = {}; if (e.control = i, e.e = n, e.element = null, f.domArgs = e, "function" == typeof i.onBeforeEventDomAdd && i.onBeforeEventDomAdd(e), e.element) {
1985
1989
  var a = v;
1986
1990
  if (a) {
1987
- e.Qa = a;
1991
+ e.Pa = a;
1988
1992
  if (t(e.element)) {
1989
- if (!i.Sa.Ra)
1993
+ if (!i.Ra.Qa)
1990
1994
  throw new DayPilot.Exception("Can't reach Vue");
1991
- i.Sa.Ta = !0, i.Sa.Wa(e.element, a, { "style": { "flexGrow": 1 } }), i.Sa.Ta = !1;
1995
+ i.Ra.Sa = !0, i.Ra.Va(e.element, a, { "style": { "flexGrow": 1 } }), i.Ra.Sa = !1;
1992
1996
  }
1993
1997
  else
1994
1998
  a.appendChild(e.element);
@@ -1996,14 +2000,14 @@ var DayPilot = { Global: {} };
1996
2000
  }
1997
2001
  else
1998
2002
  v.innerHTML = n.client.innerHTML(); }(), this.elements.events.push(f), this.nav.events.appendChild(f);
1999
- }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.cd = function () { "string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart()); var e = this.lastVisibleDayOfMonth(), t = DayPilot.DateUtil.daysDiff(this.firstDate, e) + 1, n = Math.ceil(t / 7); this.days = 7 * n, this.rows = []; for (var a = function (e) { var t = {}; t.start = r.firstDate.addDays(7 * e), t.end = t.start.addDays(r.getColCount()), t.events = [], t.lines = [], t.index = e, t.minHeight = r.cellHeight, t.calendar = r, t.belongsHere = function (e) { return e.end().getTime() === e.start().getTime() && e.start().getTime() === this.start.getTime() || !(e.end().getTime() <= this.start.getTime() || e.start().getTime() >= this.end.getTime()); }, t.getPartStart = function (e) { return DayPilot.DateUtil.max(this.start, e.start()); }, t.getPartEnd = function (e) { return DayPilot.DateUtil.min(this.end, e.end()); }, t.getStartColumn = function (e) { var t = this.getPartStart(e); return DayPilot.DateUtil.daysDiff(this.start, t); }, t.getWidth = function (e) { return DayPilot.DateUtil.daysSpan(this.getPartStart(e), this.getPartEnd(e)) + 1; }, t.putIntoLine = function (e, n, a, i) { for (var r = t, o = 0; o < this.lines.length; o++) {
2003
+ }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.bd = function () { "string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart()); var e = this.lastVisibleDayOfMonth(), t = DayPilot.DateUtil.daysDiff(this.firstDate, e) + 1, n = Math.ceil(t / 7); this.days = 7 * n, this.rows = []; for (var a = function (e) { var t = {}; t.start = r.firstDate.addDays(7 * e), t.end = t.start.addDays(r.getColCount()), t.events = [], t.lines = [], t.index = e, t.minHeight = r.cellHeight, t.calendar = r, t.belongsHere = function (e) { return e.end().getTime() === e.start().getTime() && e.start().getTime() === this.start.getTime() || !(e.end().getTime() <= this.start.getTime() || e.start().getTime() >= this.end.getTime()); }, t.getPartStart = function (e) { return DayPilot.DateUtil.max(this.start, e.start()); }, t.getPartEnd = function (e) { return DayPilot.DateUtil.min(this.end, e.end()); }, t.getStartColumn = function (e) { var t = this.getPartStart(e); return DayPilot.DateUtil.daysDiff(this.start, t); }, t.getWidth = function (e) { return DayPilot.DateUtil.daysSpan(this.getPartStart(e), this.getPartEnd(e)) + 1; }, t.putIntoLine = function (e, n, a, i) { for (var r = t, o = 0; o < this.lines.length; o++) {
2000
2004
  var s = this.lines[o];
2001
2005
  if (s.isFree(n, a))
2002
2006
  return s.addEvent(e, n, a, i, o), o;
2003
2007
  } var l = []; return l.isFree = function (e, t) { for (var n = !0, a = 0; a < this.length; a++)
2004
2008
  e + t - 1 < this[a].part.colStart || e > this[a].part.colStart + this[a].part.colWidth - 1 || (n = !1); return n; }, l.addEvent = function (e, t, n, a, i) { e.part.colStart = t, e.part.colWidth = n, e.part.row = a, e.part.line = i, e.part.startsHere = r.start.getTime() <= e.start().getTime(), e.part.endsHere = r.end.getTime() >= e.end().getTime(), this.push(e); }, l.addEvent(e, n, a, i, this.lines.length), this.lines.push(l), this.lines.length - 1; }, t.getHeight = function () { return Math.max(this.lines.length * i.lineHeight() + i.cellHeaderHeight + i.cellMarginBottom, this.calendar.cellHeight); }, r.rows.push(t); }, r = this, o = 0; o < n; o++)
2005
2009
  a(o); this.endDate = this.firstDate.addDays(7 * n); }, this.visibleStart = function () { return i.firstDate; }, this.visibleEnd = function () { return i.endDate; }, this.getHeight = function () { for (var e = this.headerHeight, t = 0; t < this.rows.length; t++)
2006
- e += this.rows[t].getHeight(); return e; }, this.getWidth = function (e, t) { return 7 * t.y + t.x - (7 * e.y + e.x) + 1; }, this.getMinCoords = function (e, t) { return 7 * e.y + e.x < 7 * t.y + t.x ? e : t; }, this.L = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Xa = function () { var t = this.nav.top; t.setAttribute("unselectable", "on"), t.style.MozUserSelect = "none", t.style.KhtmlUserSelect = "none", t.style.WebkitUserSelect = "none", t.style.position = "relative", this.width && (t.style.width = this.width), t.style.height = this.getHeight() + "px", t.onselectstart = function () { return !1; }, this.hideUntilInit && (t.style.visibility = "hidden"), this.visible || (t.style.display = "none"), t.className = this.L("_main"); var n = document.createElement("div"); this.nav.cells = n, n.style.position = "absolute", n.style.left = "0px", n.style.right = "0px", n.setAttribute("unselectable", "on"), t.appendChild(n); var a = document.createElement("div"); this.nav.events = a, a.style.position = "absolute", a.style.left = "0px", a.style.right = "0px", a.setAttribute("unselectable", "on"), t.appendChild(a), t.onmousemove = function (t) { if (e.resizingEvent) {
2010
+ e += this.rows[t].getHeight(); return e; }, this.getWidth = function (e, t) { return 7 * t.y + t.x - (7 * e.y + e.x) + 1; }, this.getMinCoords = function (e, t) { return 7 * e.y + e.x < 7 * t.y + t.x ? e : t; }, this.L = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Wa = function () { var t = this.nav.top; t.setAttribute("unselectable", "on"), t.style.MozUserSelect = "none", t.style.KhtmlUserSelect = "none", t.style.WebkitUserSelect = "none", t.style.position = "relative", this.width && (t.style.width = this.width), t.style.height = this.getHeight() + "px", t.onselectstart = function () { return !1; }, this.hideUntilInit && (t.style.visibility = "hidden"), this.visible || (t.style.display = "none"), t.className = this.L("_main"); var n = document.createElement("div"); this.nav.cells = n, n.style.position = "absolute", n.style.left = "0px", n.style.right = "0px", n.setAttribute("unselectable", "on"), t.appendChild(n); var a = document.createElement("div"); this.nav.events = a, a.style.position = "absolute", a.style.left = "0px", a.style.right = "0px", a.setAttribute("unselectable", "on"), t.appendChild(a), t.onmousemove = function (t) { if (e.resizingEvent) {
2007
2011
  var n = DayPilot.mo3(i.nav.top, t);
2008
2012
  if (!n)
2009
2013
  return;
@@ -2054,7 +2058,7 @@ var DayPilot = { Global: {} };
2054
2058
  break;
2055
2059
  }
2056
2060
  } null === i && (i = this.rows.length - 1); var d = {}; return d.x = a, d.y = i, d.relativeY = o, d; }, this.getCellFromDate = function (e) { for (var t = DayPilot.DateUtil.daysDiff(this.firstDate, e), n = { x: 0, y: 0 }; t >= 7;)
2057
- n.y++, t -= 7; return n.x = t, n; }, this.ed = function () { var e = document.createElement("div"); e.oncontextmenu = function () { return !1; }, this.nav.cells.appendChild(e), this.cells = []; for (var t = 0; t < this.getColCount(); t++) {
2061
+ n.y++, t -= 7; return n.x = t, n; }, this.dd = function () { var e = document.createElement("div"); e.oncontextmenu = function () { return !1; }, this.nav.cells.appendChild(e), this.cells = []; for (var t = 0; t < this.getColCount(); t++) {
2058
2062
  this.cells[t] = [];
2059
2063
  var n = document.createElement("div");
2060
2064
  n.setAttribute("unselectable", "on"), n.style.position = "absolute", n.style.left = this.getCellWidth() * t + "%", n.style.width = this.getCellWidth() + "%", n.style.top = "0px", n.style.height = this.headerHeight + "px";
@@ -2063,17 +2067,17 @@ var DayPilot = { Global: {} };
2063
2067
  var i = document.createElement("div");
2064
2068
  i.setAttribute("unselectable", "on"), i.innerHTML = r.locale().dayNames[a], n.appendChild(i), i.style.position = "absolute", i.style.top = "0px", i.style.bottom = "0px", i.style.left = "0px", i.style.right = "0px", i.className = this.L("_header_inner"), i.innerHTML = r.locale().dayNames[a], e.appendChild(n);
2065
2069
  for (var o = 0; o < this.rows.length; o++)
2066
- this.hd(t, o, e);
2067
- } }, this.dd = function () { for (var e = 0; e < this.cells.length; e++)
2070
+ this.gd(t, o, e);
2071
+ } }, this.cd = function () { for (var e = 0; e < this.cells.length; e++)
2068
2072
  for (var t = 0; t < this.cells[e].length; t++) {
2069
2073
  var n = i.cells[e][t];
2070
- i.gb(n);
2071
- } this.nav.cells.innerHTML = ""; }, this.gb = function (e) { !function () { var n = e.domArgs; if (e.domArgs = null, n && "function" == typeof i.onBeforeCellDomRemove && i.onBeforeCellDomRemove(n), n && "function" == typeof i.onBeforeCellDomAdd) {
2072
- var a = n && n.Qa;
2074
+ i.fb(n);
2075
+ } this.nav.cells.innerHTML = ""; }, this.fb = function (e) { !function () { var n = e.domArgs; if (e.domArgs = null, n && "function" == typeof i.onBeforeCellDomRemove && i.onBeforeCellDomRemove(n), n && "function" == typeof i.onBeforeCellDomAdd) {
2076
+ var a = n && n.Pa;
2073
2077
  if (a) {
2074
- i.Sa.Ra && t(n.element) && (i.Sa.Ta = !0, i.Sa.Ua(a), i.Sa.Ta = !1);
2078
+ i.Ra.Qa && t(n.element) && (i.Ra.Sa = !0, i.Ra.Ta(a), i.Ra.Sa = !1);
2075
2079
  }
2076
- } }(), e.onclick = null; }, this.ta = function () { return 2 === i.api; }, this.hd = function (n, a, o) { var s = this.rows[a], l = this.firstDate.addDays(7 * a + n), d = l.getDay(), c = null; c = 1 === d ? r.locale().monthNames[l.getMonth()] + " " + d : "" + d; var u = !i.isWeekend(l), h = { "start": l, "end": l.addDays(1), "properties": { "headerHtml": c, "backColor": null, "business": u, "html": null } }, f = {}; f.control = i, f.cell = h, "function" == typeof i.onBeforeCellRender && i.onBeforeCellRender(f); var v = f.cell.properties, p = document.createElement("div"); if (p.setAttribute("unselectable", "on"), p.style.position = "absolute", p.style.cursor = "default", p.style.left = this.getCellWidth() * n + "%", p.style.width = this.getCellWidth() + "%", p.style.top = this.getRowTop(a) + "px", p.style.height = s.getHeight() + "px", p.className = this.L("_cell"), v.business) {
2080
+ } }(), e.onclick = null; }, this.ta = function () { return 2 === i.api; }, this.gd = function (n, a, o) { var s = this.rows[a], l = this.firstDate.addDays(7 * a + n), d = l.getDay(), c = null; c = 1 === d ? r.locale().monthNames[l.getMonth()] + " " + d : "" + d; var u = !i.isWeekend(l), h = { "start": l, "end": l.addDays(1), "properties": { "headerHtml": c, "backColor": null, "business": u, "html": null } }, f = {}; f.control = i, f.cell = h, "function" == typeof i.onBeforeCellRender && i.onBeforeCellRender(f); var v = f.cell.properties, p = document.createElement("div"); if (p.setAttribute("unselectable", "on"), p.style.position = "absolute", p.style.cursor = "default", p.style.left = this.getCellWidth() * n + "%", p.style.width = this.getCellWidth() + "%", p.style.top = this.getRowTop(a) + "px", p.style.height = s.getHeight() + "px", p.className = this.L("_cell"), v.business) {
2077
2081
  var m = this.L("_cell_business");
2078
2082
  DayPilot.Util.addClass(p, m);
2079
2083
  } var g = document.createElement("div"); g.setAttribute("unselectable", "on"), p.appendChild(g), g.style.position = "absolute", g.style.left = "0px", g.style.right = "0px", g.style.top = "0px", g.style.bottom = "0px", g.className = this.L("_cell_inner"), v.backColor && (g.style.backgroundColor = f.cell.properties.backColor), p.onmousedown = function () { "Disabled" !== i.timeRangeSelectedHandling && (i.clearShadow(), e.timeRangeSelecting = { "root": i, "x": n, "y": a, "from": { x: n, y: a }, "width": 1 }); }, p.onclick = function () { var e = function (e) { var t = new DayPilot.Date(e), n = t.addDays(1); i.O(t, n); }; if ("Disabled" !== i.timeRangeSelectedHandling)
@@ -2089,11 +2093,11 @@ var DayPilot = { Global: {} };
2089
2093
  if (e.control = i, e.cell = h, e.element = null, p.domArgs = e, "function" == typeof i.onBeforeCellDomAdd && i.onBeforeCellDomAdd(e), e.element) {
2090
2094
  var n = g;
2091
2095
  if (n) {
2092
- e.Qa = n;
2096
+ e.Pa = n;
2093
2097
  if (t(e.element)) {
2094
- if (!i.Sa.Ra)
2098
+ if (!i.Ra.Qa)
2095
2099
  throw new DayPilot.Exception("Can't reach Vue");
2096
- i.Sa.Ta = !0, i.Sa.Wa(e.element, n), i.Sa.Ta = !1;
2100
+ i.Ra.Sa = !0, i.Ra.Va(e.element, n), i.Ra.Sa = !1;
2097
2101
  }
2098
2102
  else
2099
2103
  n.appendChild(e.element);
@@ -2124,7 +2128,7 @@ var DayPilot = { Global: {} };
2124
2128
  i.eventClickCallBack(n);
2125
2129
  break;
2126
2130
  case "JavaScript": i.onEventClick(n);
2127
- } }, this.gd = function (e) { var t = e.currentTarget; return i.xa(t.event), !1; }, this.xa = function (e) { if (this.event = e, !e.client.rightClickEnabled())
2131
+ } }, this.fd = function (e) { var t = e.currentTarget; return i.xa(t.event), !1; }, this.xa = function (e) { if (this.event = e, !e.client.rightClickEnabled())
2128
2132
  return !1; var t = {}; if (t.e = e, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" != typeof i.onEventRightClick || (i.onEventRightClick(t), !t.preventDefault.value)) {
2129
2133
  switch (i.eventRightClickHandling) {
2130
2134
  case "ContextMenu":
@@ -2211,20 +2215,20 @@ var DayPilot = { Global: {} };
2211
2215
  i.timeRangeSelectedCallBack(e, t);
2212
2216
  break;
2213
2217
  case "JavaScript": i.onTimeRangeSelected(e, t);
2214
- } }, this.wa = {}, this.wa.scope = null, this.wa.notify = function () { i.wa.scope && i.wa.scope["$apply"](); }, this.wa.apply = function (e) { e(); }, this.clearSelection = function () { i.clearShadow(); }, this.commandCallBack = function (e, t) { var n = {}; n.command = e, this.V("Command", t, n); }, this.isWeekend = function (e) { return e = new DayPilot.Date(e), 0 === e.dayOfWeek() || 6 === e.dayOfWeek(); }, this.R.locale = function () { var e = DayPilot.Locale.find(i.locale); return e ? e : DayPilot.Locale.US; }, this.R.da = function () { return "Disabled" !== i.xssProtection; }, this.debug = function (e) { this.debuggingEnabled && (i.debugMessages || (i.debugMessages = []), i.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.dispose = function () { var e = i; e.Q || (e.Q = !0, e.dd(), e.Z(), e.nav.top.removeAttribute("style"), e.nav.top.removeAttribute("class"), e.nav.top.innerHTML = "", e.nav.top.dp = null, e.nav.top.onmousemove = null, e.nav.top = null); }, this.disposed = function () { return this.Q; }, this.qb = function () { e.globalHandlers || (e.globalHandlers = !0, DayPilot.re(document, "mouseup", e.gMouseUp)); }, this.loadFromServer = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof i.events.list || !i.events.list); }, this.u = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { i.visible = !0, i.nav.top.style.display = ""; }, this.hide = function () { i.visible = !1, i.nav.top.style.display = "none"; }, this.xb = function () { if (this.id && this.id.tagName)
2218
+ } }, this.wa = {}, this.wa.scope = null, this.wa.notify = function () { i.wa.scope && i.wa.scope["$apply"](); }, this.wa.apply = function (e) { e(); }, this.clearSelection = function () { i.clearShadow(); }, this.commandCallBack = function (e, t) { var n = {}; n.command = e, this.V("Command", t, n); }, this.isWeekend = function (e) { return e = new DayPilot.Date(e), 0 === e.dayOfWeek() || 6 === e.dayOfWeek(); }, this.R.locale = function () { var e = DayPilot.Locale.find(i.locale); return e ? e : DayPilot.Locale.US; }, this.R.da = function () { return "Disabled" !== i.xssProtection; }, this.debug = function (e) { this.debuggingEnabled && (i.debugMessages || (i.debugMessages = []), i.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.dispose = function () { var e = i; e.Q || (e.Q = !0, e.cd(), e.Z(), e.nav.top.removeAttribute("style"), e.nav.top.removeAttribute("class"), e.nav.top.innerHTML = "", e.nav.top.dp = null, e.nav.top.onmousemove = null, e.nav.top = null); }, this.disposed = function () { return this.Q; }, this.pb = function () { e.globalHandlers || (e.globalHandlers = !0, DayPilot.re(document, "mouseup", e.gMouseUp)); }, this.loadFromServer = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof i.events.list || !i.events.list); }, this.u = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { i.visible = !0, i.nav.top.style.display = ""; }, this.hide = function () { i.visible = !1, i.nav.top.style.display = "none"; }, this.wb = function () { if (this.id && this.id.tagName)
2215
2219
  this.nav.top = this.id;
2216
2220
  else {
2217
2221
  if ("string" != typeof this.id)
2218
2222
  throw "DayPilot.Month() constructor requires the target element or its ID as a parameter";
2219
2223
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
2220
2224
  throw "DayPilot.Month: The placeholder element not found: '" + this.id + "'.";
2221
- } }, this.Fb = function () { this.cd(), this.Xa(), this.ed(), this.qb(), this.V("Init"); }, this._a = function (e, t) { return i.R.da() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Sa = {}, this.Sa.Ra = null, this.Sa.Mb = function (e, t, n) { var a = i.Sa.Ra; if ("function" == typeof a.createVNode && "function" == typeof a.render) {
2225
+ } }, this.Eb = function () { this.bd(), this.Wa(), this.dd(), this.pb(), this.V("Init"); }, this.$a = function (e, t) { return i.R.da() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Ra = {}, this.Ra.Qa = null, this.Ra.Lb = function (e, t, n) { var a = i.Ra.Qa; if ("function" == typeof a.createVNode && "function" == typeof a.render) {
2222
2226
  var r = a.createVNode(e, n);
2223
2227
  a.render(r, t);
2224
- } }, this.Sa.Wa = function (e, t, n) { var a = i.Sa.Ra; if ("function" == typeof a.render) {
2228
+ } }, this.Ra.Va = function (e, t, n) { var a = i.Ra.Qa; if ("function" == typeof a.render) {
2225
2229
  var r = e;
2226
2230
  DayPilot.isArray(e) && (r = a.h("div", n, e)), a.render(r, t);
2227
- } }, this.Sa.Ua = function (e) { var t = i.Sa.Ra; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = this.tb, this.internal.xssTextHtml = i._a, this.internal.enableVue = function (e) { i.Sa.Ra = e; }, this.internal.vueRef = function () { return i.Sa.Ra; }, this.internal.vueRendering = function () { return i.Sa.Ta; }, this.init = function () { return this.xb(), this.loadFromServer() ? void this.Fb() : (this.cd(), this.ha(), this.Xa(), this.ed(), this.u(), this.na(), this.qb(), this.fireAfterRenderDetached(null, !1), this.Ma = !0, this); }, this.Init = this.init, Object.defineProperty(this, "durationBarVisible", { get: function () { return i.eventBarVisible; } }), this.tb(a);
2231
+ } }, this.Ra.Ta = function (e) { var t = i.Ra.Qa; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = this.sb, this.internal.xssTextHtml = i.$a, this.internal.enableVue = function (e) { i.Ra.Qa = e; }, this.internal.vueRef = function () { return i.Ra.Qa; }, this.internal.vueRendering = function () { return i.Ra.Sa; }, this.init = function () { return this.wb(), this.loadFromServer() ? void this.Eb() : (this.bd(), this.ha(), this.Wa(), this.dd(), this.u(), this.na(), this.pb(), this.fireAfterRenderDetached(null, !1), this.La = !0, this); }, this.Init = this.init, Object.defineProperty(this, "durationBarVisible", { get: function () { return i.eventBarVisible; } }), this.sb(a);
2228
2232
  }, e.gMouseUp = function (t) { if (e.movingEvent) {
2229
2233
  var n = e.movingEvent;
2230
2234
  if (!n.event)
@@ -2298,16 +2302,16 @@ var DayPilot = { Global: {} };
2298
2302
  var i = this;
2299
2303
  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.showToday = !1, this.showWeekNumbers = !1, this.todayHtml = null, this.todayHeight = 40, this.todayPosition = "Bottom", this.todayText = "Today", 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.onTodayClick = null, this.R = {};
2300
2304
  var r = this.R;
2301
- this.jd = {};
2302
- var o = this.jd;
2303
- this.nav = {}, this.yb = {}, this.kd = function () { this.root.dp = this, this.root.className = this.L("_main"), "Horizontal" === this.orientation ? (r.ld() || (this.root.style.width = this.showMonths * (7 * r.cellWidth() + this.md()) + "px"), this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : r.ld() || (this.root.style.width = 7 * r.cellWidth() + this.md() + "px"), this.rtl && (this.root.style.direction = "rtl"), this.root.style.position = "relative", this.visible || (this.root.style.display = "none"); var e = document.createElement("input"); e.type = "hidden", e.name = i.id + "_state", e.id = e.name, this.root.appendChild(e), this.state = e, this.startDate ? this.startDate = new DayPilot.Date(this.startDate).firstDayOfMonth() : this.selectionDay ? this.startDate = new DayPilot.Date(this.selectionDay).firstDayOfMonth() : this.startDate = DayPilot.Date.fromYearMonthDay(this.year, this.month), this.calendars = [], this.selected = [], this.months = []; }, this.ta = function () { return 2 === i.api; }, this.dd = function () { this.root.innerHTML = ""; }, this.L = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.nd = function (e, t) { var n = this.L("_" + t); DayPilot.Util.addClass(e, n); }, this.od = function (e, t) { var n = this.L("_" + t); DayPilot.Util.removeClass(e, n); }, this.pd = function () { if (!r.ld())
2304
- return null; var e = 7; return this.showWeekNumbers && e++, 100 / e; }, this.qd = function () { return r.ld() ? null : r.cellWidth(); }, this.rd = function (e) { return "number" != typeof e && (e = 1), r.ld() ? this.pd() * e : this.qd() * e; }, this.sd = function (e) { var t = r.ld() ? "%" : "px"; return this.rd(e) + t; }, this.ed = function (t, n) { var a = {}; a.cells = [], a.days = [], a.weeks = []; var o = this.startDate.addMonths(t), s = n.before, l = n.after, d = o.firstDayOfMonth(), c = d.firstDayOfWeek(r.weekStarts()), u = d.addMonths(1), h = DayPilot.DateUtil.daysDiff(c, u), f = "Auto" === this.rowsPerMonth ? Math.ceil(h / 7) : 6; a.rowCount = f; var v = (new DayPilot.Date).getDatePart(), p = 7 * r.cellWidth() + this.md(); a.width = p; var m = this.cellHeight * f + this.titleHeight + this.dayHeaderHeight; a.height = m; var g = document.createElement("div"); if (r.ld() ? "Horizontal" === this.orientation && (g.style.width = 100 / i.showMonths + "%") : g.style.width = p + "px", g.style.height = m + "px", "Horizontal" === this.orientation)
2305
- g.style.position = "absolute", r.ld() ? (g.style.left = 100 / i.showMonths * t + "%", a.leftPct = 100 / i.showMonths * t) : g.style.left = p * t + "px", g.style.top = "0px", a.top = 0, a.left = p * t;
2305
+ this.hd = {};
2306
+ var o = this.hd;
2307
+ this.nav = {}, this.xb = {}, this.jd = function () { this.root.dp = this, this.root.className = this.L("_main"), "Horizontal" === this.orientation ? (r.kd() || (this.root.style.width = this.showMonths * (7 * r.cellWidth() + this.ld()) + "px"), this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : r.kd() || (this.root.style.width = 7 * r.cellWidth() + this.ld() + "px"), this.rtl && (this.root.style.direction = "rtl"), this.root.style.position = "relative", this.visible || (this.root.style.display = "none"); var e = document.createElement("input"); e.type = "hidden", e.name = i.id + "_state", e.id = e.name, this.root.appendChild(e), this.state = e, this.startDate ? this.startDate = new DayPilot.Date(this.startDate).firstDayOfMonth() : this.selectionDay ? this.startDate = new DayPilot.Date(this.selectionDay).firstDayOfMonth() : this.startDate = DayPilot.Date.fromYearMonthDay(this.year, this.month), this.calendars = [], this.selected = [], this.months = []; }, this.ta = function () { return 2 === i.api; }, this.cd = function () { this.root.innerHTML = ""; }, this.L = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.md = function (e, t) { var n = this.L("_" + t); DayPilot.Util.addClass(e, n); }, this.nd = function (e, t) { var n = this.L("_" + t); DayPilot.Util.removeClass(e, n); }, this.od = function () { if (!r.kd())
2308
+ return null; var e = 7; return this.showWeekNumbers && e++, 100 / e; }, this.pd = function () { return r.kd() ? null : r.cellWidth(); }, this.qd = function (e) { return "number" != typeof e && (e = 1), r.kd() ? this.od() * e : this.pd() * e; }, this.rd = function (e) { var t = r.kd() ? "%" : "px"; return this.qd(e) + t; }, this.dd = function (t, n) { var a = {}; a.cells = [], a.days = [], a.weeks = []; var o = this.startDate.addMonths(t), s = n.before, l = n.after, d = o.firstDayOfMonth(), c = d.firstDayOfWeek(r.weekStarts()), u = d.addMonths(1), h = DayPilot.DateUtil.daysDiff(c, u), f = "Auto" === this.rowsPerMonth ? Math.ceil(h / 7) : 6; a.rowCount = f; var v = (new DayPilot.Date).getDatePart(), p = 7 * r.cellWidth() + this.ld(); a.width = p; var m = this.cellHeight * f + this.titleHeight + this.dayHeaderHeight; a.height = m; var g = document.createElement("div"); if (r.kd() ? "Horizontal" === this.orientation && (g.style.width = 100 / i.showMonths + "%") : g.style.width = p + "px", g.style.height = m + "px", "Horizontal" === this.orientation)
2309
+ g.style.position = "absolute", r.kd() ? (g.style.left = 100 / i.showMonths * t + "%", a.leftPct = 100 / i.showMonths * t) : g.style.left = p * t + "px", g.style.top = "0px", a.top = 0, a.left = p * t;
2306
2310
  else {
2307
2311
  g.style.position = "relative";
2308
2312
  var y = t > 0 ? i.months[t - 1].top + i.months[t - 1].height : 0;
2309
2313
  a.top = y, a.left = 0, a.leftPct = 0;
2310
- } g.className = this.L("_month"), g.style.cursor = "default", g.style.userSelect = "none", g.style.webkitUserSelect = "none", g.month = a, a.div = g, this.root.appendChild(g); var b = this.titleHeight + this.dayHeaderHeight, w = document.createElement("div"); w.style.position = "absolute", w.style.left = "0px", w.style.right = "0px", w.style.top = "0px", w.style.width = i.sd(), w.style.height = this.titleHeight + "px", w.style.lineHeight = this.titleHeight + "px", w.className = this.L("_titleleft"), n.left && (w.style.cursor = "pointer", w.innerHTML = "<span>&lt;</span>", w.onclick = this.td), g.appendChild(w); var x = document.createElement("div"); x.style.position = "absolute", x.style.left = i.sd(), x.style.top = "0px", x.style.width = i.sd(i.showWeekNumbers ? 6 : 5), x.style.height = this.titleHeight + "px", x.style.lineHeight = this.titleHeight + "px", x.className = this.L("_title"), x.innerHTML = r.locale().monthNames[o.getMonth()] + " " + o.getYear(), g.appendChild(x), this.ti = x; var _ = document.createElement("div"); _.style.position = "absolute", _.style.left = i.sd(i.showWeekNumbers ? 7 : 6), _.style.right = i.sd(i.showWeekNumbers ? 7 : 6), _.style.top = "0px", _.style.width = i.sd(), _.style.height = this.titleHeight + "px", _.style.lineHeight = this.titleHeight + "px", _.className = this.L("_titleright"), n.right && (_.style.cursor = "pointer", _.innerHTML = "<span>&gt;</span>", _.onclick = this.ud), g.appendChild(_), this.tr = _; var C = i.showWeekNumbers ? 1 : 0; if (this.showWeekNumbers)
2314
+ } g.className = this.L("_month"), g.style.cursor = "default", g.style.userSelect = "none", g.style.webkitUserSelect = "none", g.month = a, a.div = g, this.root.appendChild(g); var b = this.titleHeight + this.dayHeaderHeight, w = document.createElement("div"); w.style.position = "absolute", w.style.left = "0px", w.style.right = "0px", w.style.top = "0px", w.style.width = i.rd(), w.style.height = this.titleHeight + "px", w.style.lineHeight = this.titleHeight + "px", w.className = this.L("_titleleft"), n.left && (w.style.cursor = "pointer", w.innerHTML = "<span>&lt;</span>", w.onclick = this.sd), g.appendChild(w); var x = document.createElement("div"); x.style.position = "absolute", x.style.left = i.rd(), x.style.top = "0px", x.style.width = i.rd(i.showWeekNumbers ? 6 : 5), x.style.height = this.titleHeight + "px", x.style.lineHeight = this.titleHeight + "px", x.className = this.L("_title"), x.innerHTML = r.locale().monthNames[o.getMonth()] + " " + o.getYear(), g.appendChild(x), this.ti = x; var _ = document.createElement("div"); _.style.position = "absolute", _.style.left = i.rd(i.showWeekNumbers ? 7 : 6), _.style.right = i.rd(i.showWeekNumbers ? 7 : 6), _.style.top = "0px", _.style.width = i.rd(), _.style.height = this.titleHeight + "px", _.style.lineHeight = this.titleHeight + "px", _.className = this.L("_titleright"), n.right && (_.style.cursor = "pointer", _.innerHTML = "<span>&gt;</span>", _.onclick = this.td), g.appendChild(_), this.tr = _; var C = i.showWeekNumbers ? 1 : 0; if (this.showWeekNumbers)
2311
2315
  for (var k = 0; k < f; k++) {
2312
2316
  var D = c.addDays(7 * k), S = null;
2313
2317
  switch (this.weekNumberAlgorithm) {
@@ -2323,54 +2327,54 @@ var DayPilot = { Global: {} };
2323
2327
  default: throw "Unknown weekNumberAlgorithm value.";
2324
2328
  }
2325
2329
  var M = document.createElement("div");
2326
- M.style.position = "absolute", M.style.left = "0px", M.style.right = "0px", M.style.top = k * this.cellHeight + b + "px", M.style.width = i.sd(), M.style.height = this.cellHeight + "px", M.style.lineHeight = this.cellHeight + "px", M.className = this.L("_weeknumber"), M.innerHTML = "<span>" + S + "</span>", g.appendChild(M), a.weeks.push(M);
2330
+ M.style.position = "absolute", M.style.left = "0px", M.style.right = "0px", M.style.top = k * this.cellHeight + b + "px", M.style.width = i.rd(), M.style.height = this.cellHeight + "px", M.style.lineHeight = this.cellHeight + "px", M.className = this.L("_weeknumber"), M.innerHTML = "<span>" + S + "</span>", g.appendChild(M), a.weeks.push(M);
2327
2331
  } if (i.showWeekNumbers) {
2328
2332
  var M = document.createElement("div");
2329
- M.style.position = "absolute", M.style.left = "0px", M.style.right = "0px", M.style.top = this.titleHeight + "px", M.style.width = i.sd(), M.style.height = this.dayHeaderHeight + "px", M.className = this.L("_dayheader"), g.appendChild(M);
2333
+ M.style.position = "absolute", M.style.left = "0px", M.style.right = "0px", M.style.top = this.titleHeight + "px", M.style.width = i.rd(), M.style.height = this.dayHeaderHeight + "px", M.className = this.L("_dayheader"), g.appendChild(M);
2330
2334
  } for (var T = 0; T < 7; T++) {
2331
2335
  a.cells[T] = [];
2332
2336
  var M = document.createElement("div");
2333
- M.style.position = "absolute", M.style.left = i.sd(T + C), M.style.right = i.sd(T + C), M.style.top = this.titleHeight + "px", M.style.width = i.sd(), M.style.height = this.dayHeaderHeight + "px", M.style.lineHeight = this.dayHeaderHeight + "px", M.className = this.L("_dayheader"), M.innerHTML = "<span>" + this.vd(T) + "</span>", g.appendChild(M), a.days.push(M);
2334
- for (var A = function (t) { var n = c.addDays(7 * t + T), d = E.wd(n) && "none" !== E.xd(), u = n.firstDayOfMonth() === o, h = n < o, f = n >= o.addMonths(1); if ("month" === E.xd())
2337
+ M.style.position = "absolute", M.style.left = i.rd(T + C), M.style.right = i.rd(T + C), M.style.top = this.titleHeight + "px", M.style.width = i.rd(), M.style.height = this.dayHeaderHeight + "px", M.style.lineHeight = this.dayHeaderHeight + "px", M.className = this.L("_dayheader"), M.innerHTML = "<span>" + this.ud(T) + "</span>", g.appendChild(M), a.days.push(M);
2338
+ for (var A = function (t) { var n = c.addDays(7 * t + T), d = E.vd(n) && "none" !== E.wd(), u = n.firstDayOfMonth() === o, h = n < o, f = n >= o.addMonths(1); if ("month" === E.wd())
2335
2339
  d = d && u;
2336
- else if ("day" === E.xd())
2340
+ else if ("day" === E.wd())
2337
2341
  d = d && (u || s && h || l && f);
2338
- else if ("week" === E.xd()) {
2342
+ else if ("week" === E.wd()) {
2339
2343
  var p = n.firstDayOfMonth() === o;
2340
2344
  d = d && (p || s && h || l && f);
2341
- } var m = document.createElement("div"); a.cells[T][t] = m; var y = i.yd(T, t), b = y.x, w = y.y, x = r.ld() ? "%" : "px"; m.day = n, m.x = T, m.y = t, m.left = b, m.top = w, m.isCurrentMonth = u, m.isNextMonth = f, m.isPrevMonth = h, m.showBefore = s, m.showAfter = l, m.className = E.L(u ? "_day" : "_dayother"), i.nd(m, "cell"), n.getTime() === v.getTime() && u && E.nd(m, "today"), 0 !== n.dayOfWeek() && 6 !== n.dayOfWeek() || E.nd(m, "weekend"), m.style.position = "absolute", m.style.left = b + x, m.style.right = b + x, m.style.top = w + "px", m.style.width = i.sd(), m.style.height = E.cellHeight + "px", m.style.lineHeight = E.cellHeight + "px"; var _ = document.createElement("div"); _.style.position = "absolute", _.className = n.getTime() === v.getTime() && u ? E.L("_todaybox") : E.L("_daybox"), i.nd(_, "cell_box"), _.style.left = "0px", _.style.top = "0px", _.style.right = "0px", _.style.bottom = "0px", m.appendChild(_); var C = null; E.cells && E.cells[n.toStringSortable()] && (C = E.cells[n.toStringSortable()]); var k = C || {}; if (k.day = n, k.isCurrentMonth = u, k.isToday = n.getTime() === v.getTime() && u, k.isWeekend = 0 === n.dayOfWeek() || 6 === n.dayOfWeek(), C ? (k.html = C.html || n.getDay(), k.cssClass = C.css) : (k.html = n.getDay(), k.cssClass = null), "function" == typeof i.onBeforeCellRender) {
2345
+ } var m = document.createElement("div"); a.cells[T][t] = m; var y = i.xd(T, t), b = y.x, w = y.y, x = r.kd() ? "%" : "px"; m.day = n, m.x = T, m.y = t, m.left = b, m.top = w, m.isCurrentMonth = u, m.isNextMonth = f, m.isPrevMonth = h, m.showBefore = s, m.showAfter = l, m.className = E.L(u ? "_day" : "_dayother"), i.md(m, "cell"), n.getTime() === v.getTime() && u && E.md(m, "today"), 0 !== n.dayOfWeek() && 6 !== n.dayOfWeek() || E.md(m, "weekend"), m.style.position = "absolute", m.style.left = b + x, m.style.right = b + x, m.style.top = w + "px", m.style.width = i.rd(), m.style.height = E.cellHeight + "px", m.style.lineHeight = E.cellHeight + "px"; var _ = document.createElement("div"); _.style.position = "absolute", _.className = n.getTime() === v.getTime() && u ? E.L("_todaybox") : E.L("_daybox"), i.md(_, "cell_box"), _.style.left = "0px", _.style.top = "0px", _.style.right = "0px", _.style.bottom = "0px", m.appendChild(_); var C = null; E.cells && E.cells[n.toStringSortable()] && (C = E.cells[n.toStringSortable()]); var k = C || {}; if (k.day = n, k.isCurrentMonth = u, k.isToday = n.getTime() === v.getTime() && u, k.isWeekend = 0 === n.dayOfWeek() || 6 === n.dayOfWeek(), C ? (k.html = C.html || n.getDay(), k.cssClass = C.css) : (k.html = n.getDay(), k.cssClass = null), "function" == typeof i.onBeforeCellRender) {
2342
2346
  var D = {};
2343
2347
  D.cell = k, i.onBeforeCellRender(D), C = D.cell;
2344
2348
  } if (C && DayPilot.Util.addClass(m, C.cssClass || C.css), u || s && h || l && f) {
2345
2349
  var S = document.createElement("div");
2346
- S.innerHTML = n.getDay(), S.style.position = "absolute", S.style.left = "0px", S.style.top = "0px", S.style.right = "0px", S.style.bottom = "0px", i.nd(S, "cell_text"), m.isClickable = !0, C && C.html && (S.innerHTML = C.html), m.appendChild(S);
2347
- } m.onclick = E.zd, function () { if ("function" == typeof i.onBeforeCellDomAdd || "function" == typeof i.onBeforeCellDomRemove) {
2350
+ S.innerHTML = n.getDay(), S.style.position = "absolute", S.style.left = "0px", S.style.top = "0px", S.style.right = "0px", S.style.bottom = "0px", i.md(S, "cell_text"), m.isClickable = !0, C && C.html && (S.innerHTML = C.html), m.appendChild(S);
2351
+ } m.onclick = E.yd, function () { if ("function" == typeof i.onBeforeCellDomAdd || "function" == typeof i.onBeforeCellDomRemove) {
2348
2352
  var t = {};
2349
2353
  if (t.control = i, t.cell = k, t.element = null, m.domArgs = t, "function" == typeof i.onBeforeCellDomAdd && i.onBeforeCellDomAdd(t), t.element) {
2350
2354
  var n = _;
2351
2355
  if (n) {
2352
- t.Qa = n;
2356
+ t.Pa = n;
2353
2357
  if (e(t.element)) {
2354
- if (!i.Sa.Ra)
2358
+ if (!i.Ra.Qa)
2355
2359
  throw new DayPilot.Exception("Can't reach Vue");
2356
- i.Sa.Ta = !0, i.Sa.Wa(t.element, n), i.Sa.Ta = !1;
2360
+ i.Ra.Sa = !0, i.Ra.Va(t.element, n), i.Ra.Sa = !1;
2357
2361
  }
2358
2362
  else
2359
2363
  n.appendChild(t.element);
2360
2364
  }
2361
2365
  }
2362
- } }(), g.appendChild(m), d && (i.Ad(g, T, t), E.selected.push(m)); }, E = this, k = 0; k < f; k++)
2366
+ } }(), g.appendChild(m), d && (i.zd(g, T, t), E.selected.push(m)); }, E = this, k = 0; k < f; k++)
2363
2367
  A(k);
2364
- } var H = document.createElement("div"); H.style.position = "absolute", H.style.left = "0px", H.style.top = b - 2 + "px", H.style.width = i.sd(7 + C), H.style.height = "1px", H.style.fontSize = "1px", H.style.lineHeight = "1px", H.className = this.L("_line"), g.appendChild(H), this.months.push(a); }, this.yd = function (e, t) { var n = this.titleHeight + this.dayHeaderHeight, a = this.showWeekNumbers ? 1 : 0; return { "x": i.rd(e + a), "y": t * this.cellHeight + n }; }, this.Ad = function (e, t, n) { var a = e.month.cells[t][n]; i.nd(a, "select"); }, this.Bd = function (e, t, n) { var a = e.month.cells[t][n]; i.od(a, "select"); }, this.md = function () { return this.showWeekNumbers ? r.cellWidth() : 0; }, this.Cd = function () {
2368
+ } var H = document.createElement("div"); H.style.position = "absolute", H.style.left = "0px", H.style.top = b - 2 + "px", H.style.width = i.rd(7 + C), H.style.height = "1px", H.style.fontSize = "1px", H.style.lineHeight = "1px", H.className = this.L("_line"), g.appendChild(H), this.months.push(a); }, this.xd = function (e, t) { var n = this.titleHeight + this.dayHeaderHeight, a = this.showWeekNumbers ? 1 : 0; return { "x": i.qd(e + a), "y": t * this.cellHeight + n }; }, this.zd = function (e, t, n) { var a = e.month.cells[t][n]; i.md(a, "select"); }, this.Ad = function (e, t, n) { var a = e.month.cells[t][n]; i.nd(a, "select"); }, this.ld = function () { return this.showWeekNumbers ? r.cellWidth() : 0; }, this.Bd = function () {
2365
2369
  if (this.items)
2366
2370
  for (var e = 0; e < this.showMonths; e++)
2367
2371
  for (var t = 0; t < 7; t++)
2368
2372
  for (var n = 0; n < 6; n++) {
2369
2373
  var a = this.months[e].cells[t][n];
2370
- a && (1 === this.items[a.day.toStringSortable()] ? (this.nd(a, "busy"), this.od(a, "free")) : (this.od(a, "busy"),
2371
- this.nd(a, "free")));
2374
+ a && (1 === this.items[a.day.toStringSortable()] ? (this.md(a, "busy"), this.nd(a, "free")) : (this.nd(a, "busy"),
2375
+ this.md(a, "free")));
2372
2376
  }
2373
- }, this.Dd = function () { var e = {}; e.startDate = i.startDate, e.selectionStart = i.selectionStart, e.selectionEnd = i.selectionEnd.addDays(1), i.state.value = JSON.stringify(e); }, this.xd = function () { return (this.selectMode || "").toLowerCase(); }, this.Ed = function () { var e = this.selectionDay || this.selectionStart; switch (e || (e = DayPilot.Date.today()), e = new DayPilot.Date(e), this.xd()) {
2377
+ }, this.Cd = function () { var e = {}; e.startDate = i.startDate, e.selectionStart = i.selectionStart, e.selectionEnd = i.selectionEnd.addDays(1), i.state.value = JSON.stringify(e); }, this.wd = function () { return (this.selectMode || "").toLowerCase(); }, this.Dd = function () { var e = this.selectionDay || this.selectionStart; switch (e || (e = DayPilot.Date.today()), e = new DayPilot.Date(e), this.wd()) {
2374
2378
  case "day":
2375
2379
  this.selectionStart = e, this.selectionDay = e, this.selectionEnd = e;
2376
2380
  break;
@@ -2384,19 +2388,19 @@ var DayPilot = { Global: {} };
2384
2388
  this.selectionEnd = e;
2385
2389
  break;
2386
2390
  default: throw "Unknown selectMode value.";
2387
- } }, this.Fd = null, this.select = function (e, t, n) { var a = t && (t instanceof DayPilot.Date || "string" == typeof t), r = t && "object" == typeof t || "boolean" == typeof t, o = e, s = a ? t : null, l = r ? t : n; if (!this.Ma)
2388
- return void (this.Fd = { "date1": o, "date2": s, "options": l }); var d = !0, c = !0; l && "object" == typeof l ? (l.dontFocus && (d = !1), l.dontNotify && (c = !1)) : "boolean" == typeof l && (d = !l); var u = this.selectionStart, h = this.selectionEnd; this.selectionStart = new DayPilot.Date(o).getDatePart(), this.selectionDay = this.selectionStart; var f = !1; if (d) {
2391
+ } }, this.Ed = null, this.select = function (e, t, n) { var a = t && (t instanceof DayPilot.Date || "string" == typeof t), r = t && "object" == typeof t || "boolean" == typeof t, o = e, s = a ? t : null, l = r ? t : n; if (!this.La)
2392
+ return void (this.Ed = { "date1": o, "date2": s, "options": l }); var d = !0, c = !0; l && "object" == typeof l ? (l.dontFocus && (d = !1), l.dontNotify && (c = !1)) : "boolean" == typeof l && (d = !l); var u = this.selectionStart, h = this.selectionEnd; this.selectionStart = new DayPilot.Date(o).getDatePart(), this.selectionDay = this.selectionStart; var f = !1; if (d) {
2389
2393
  var v = this.startDate;
2390
- (this.selectionStart < this.Gd() || this.selectionStart >= this.Hd()) && (v = this.selectionStart.firstDayOfMonth()), v.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = v;
2391
- } s && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(s) : this.Ed(), this.dd(), this.kd(), this.Id(), this.Cd(), this.Dd(), !c || u.equals(this.selectionStart) && h.equals(this.selectionEnd) || this.O(), f && this.Jd(); }, this.update = function (e) { i.Kd(e); }, this.Kd = function (e) { if (i.tb(e), this.Ma) {
2394
+ (this.selectionStart < this.Fd() || this.selectionStart >= this.Gd()) && (v = this.selectionStart.firstDayOfMonth()), v.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = v;
2395
+ } s && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(s) : this.Dd(), this.cd(), this.jd(), this.Hd(), this.Bd(), this.Cd(), !c || u.equals(this.selectionStart) && h.equals(this.selectionEnd) || this.O(), f && this.Id(); }, this.update = function (e) { i.Jd(e); }, this.Jd = function (e) { if (i.sb(e), this.La) {
2392
2396
  if (i.Q)
2393
2397
  throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed.");
2394
- i.Ld();
2398
+ i.Kd();
2395
2399
  var t = { "day": i.selectionDay, "start": i.selectionStart, "end": i.selectionEnd };
2396
- i.rb(), t.start === i.selectionStart && t.end === i.selectionEnd && t.day === i.selectionDay || i.O();
2397
- } }, this.rb = function () { this.dd(), this.kd(), this.Ed(), this.Id(), this.ha(), this.Cd(), this.Dd(), this.visible ? this.show() : this.hide(); }, this.Ld = function () { i.yb = {}; }, this.vb = null, this.tb = function (e) { if (e) {
2400
+ i.qb(), t.start === i.selectionStart && t.end === i.selectionEnd && t.day === i.selectionDay || i.O();
2401
+ } }, this.qb = function () { this.cd(), this.jd(), this.Dd(), this.Hd(), this.ha(), this.Bd(), this.Cd(), this.visible ? this.show() : this.hide(); }, this.Kd = function () { i.xb = {}; }, this.ub = null, this.sb = function (e) { if (e) {
2398
2402
  var t = { "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? i.events.list = e.list : i.events.list = e); } } };
2399
- this.vb = t;
2403
+ this.ub = t;
2400
2404
  for (var n in e)
2401
2405
  if (t[n]) {
2402
2406
  var a = t[n];
@@ -2404,15 +2408,15 @@ var DayPilot = { Global: {} };
2404
2408
  }
2405
2409
  else
2406
2410
  i[n] = e[n];
2407
- } }, this.wb = function () { var e = this.vb; for (var t in e) {
2411
+ } }, this.vb = function () { var e = this.ub; for (var t in e) {
2408
2412
  var n = e[t];
2409
2413
  n.postInit && n.postInit();
2410
- } }, this.V = function (e, t, n) { var a = {}; a.action = e, a.parameters = n, a.data = t, a.header = this.U(); var i = "JSON" + JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.W, i, this.Md) : WebForm_DoCallback(this.uniqueID, i, this.X, null, this.callbackError, !0); }, this.Md = function (e) { if ("function" == typeof i.onAjaxError) {
2414
+ } }, this.V = function (e, t, n) { var a = {}; a.action = e, a.parameters = n, a.data = t, a.header = this.U(); var i = "JSON" + JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.W, i, this.Ld) : WebForm_DoCallback(this.uniqueID, i, this.X, null, this.callbackError, !0); }, this.Ld = function (e) { if ("function" == typeof i.onAjaxError) {
2411
2415
  var t = {};
2412
2416
  t.request = e, i.onAjaxError(t);
2413
2417
  }
2414
2418
  else
2415
- "function" == typeof i.ajaxError && i.ajaxError(e); }, this.W = function (e) { i.X(e.responseText); }, this.T = function (e, t, n) { var a = {}; a.action = e, a.parameters = n, a.data = t, a.header = this.U(); var r = "JSON" + JSON.stringify(a); __doPostBack(i.uniqueID, r); }, this.U = function () { var e = {}; return e.v = this.v, e.startDate = this.startDate, e.selectionStart = this.selectionStart, e.showMonths = this.showMonths, e; }, this.vd = function (e) { var t = e + r.weekStarts(); return t > 6 && (t -= 7), r.locale().dayNamesShort[t]; }, this.wd = function (e) { return null !== this.selectionStart && null !== this.selectionEnd && (this.selectionStart.getTime() <= e.getTime() && e.getTime() <= this.selectionEnd.getTime()); }, this.Nd = function (e) { for (var t = 0; t < i.months.length; t++) {
2419
+ "function" == typeof i.ajaxError && i.ajaxError(e); }, this.W = function (e) { i.X(e.responseText); }, this.T = function (e, t, n) { var a = {}; a.action = e, a.parameters = n, a.data = t, a.header = this.U(); var r = "JSON" + JSON.stringify(a); __doPostBack(i.uniqueID, r); }, this.U = function () { var e = {}; return e.v = this.v, e.startDate = this.startDate, e.selectionStart = this.selectionStart, e.showMonths = this.showMonths, e; }, this.ud = function (e) { var t = e + r.weekStarts(); return t > 6 && (t -= 7), r.locale().dayNamesShort[t]; }, this.vd = function (e) { return null !== this.selectionStart && null !== this.selectionEnd && (this.selectionStart.getTime() <= e.getTime() && e.getTime() <= this.selectionEnd.getTime()); }, this.Md = function (e) { for (var t = 0; t < i.months.length; t++) {
2416
2420
  var n = i.months[t];
2417
2421
  if (!n)
2418
2422
  return null;
@@ -2420,19 +2424,19 @@ var DayPilot = { Global: {} };
2420
2424
  return null;
2421
2425
  if (!(n.left + n.width < e.x) && n.top <= e.y && e.y < n.top + n.height)
2422
2426
  return t;
2423
- } return null; }, this.Od = function () { if (!r.ld())
2424
- return void (i.Pd = i.cellWidth); var e = i.months[0].cells[0][0], t = e.clientWidth; i.Pd = t, i.months.forEach(function (e) { e.width = e.div.clientWidth, "Horizontal" === i.orientation && (e.left = e.div.offsetLeft), e.cells.forEach(function (e, n) { e.forEach(function (e) { e.width = t, e.left = n * t; }); }); }); }, this.Qd = function (e) { i.Od(); var t = DayPilot.mo3(i.nav.top, e), n = i.Nd(t); if (null === n)
2427
+ } return null; }, this.Nd = function () { if (!r.kd())
2428
+ return void (i.Od = i.cellWidth); var e = i.months[0].cells[0][0], t = e.clientWidth; i.Od = t, i.months.forEach(function (e) { e.width = e.div.clientWidth, "Horizontal" === i.orientation && (e.left = e.div.offsetLeft), e.cells.forEach(function (e, n) { e.forEach(function (e) { e.width = t, e.left = n * t; }); }); }); }, this.Pd = function (e) { i.Nd(); var t = DayPilot.mo3(i.nav.top, e), n = i.Md(t); if (null === n)
2425
2429
  return null; var a = i.months[n], r = this.titleHeight + this.dayHeaderHeight; if (a.top <= t.y && t.y < a.top + r)
2426
2430
  return { "month": n, "x": 0, "y": 0, "coords": t, "header": !0 }; for (var o = 0; o < a.cells.length; o++)
2427
2431
  for (var s = 0; s < a.cells[o].length; s++) {
2428
2432
  var l = a.cells[o][s], d = l.top + a.top, c = l.left + a.left;
2429
- if (c <= t.x && t.x < c + i.Pd && d <= t.y && t.y < d + i.cellHeight)
2433
+ if (c <= t.x && t.x < c + i.Od && d <= t.y && t.y < d + i.cellHeight)
2430
2434
  return { "month": n, "x": o, "y": s, "coords": t };
2431
- } return null; }, this.Rd = function (e) { if (i.freeHandSelectionEnabled) {
2432
- var t = i.Qd(e);
2435
+ } return null; }, this.Qd = function (e) { if (i.freeHandSelectionEnabled) {
2436
+ var t = i.Pd(e);
2433
2437
  t && !t.header && (o.start = t), e.preventDefault();
2434
- } }, this.Sd = function (e) { if (o.start) {
2435
- var t = i.Qd(e);
2438
+ } }, this.Rd = function (e) { if (o.start) {
2439
+ var t = i.Pd(e);
2436
2440
  if (o.end)
2437
2441
  o.end = t;
2438
2442
  else if (t) {
@@ -2440,9 +2444,9 @@ var DayPilot = { Global: {} };
2440
2444
  a > n && (o.end = t);
2441
2445
  }
2442
2446
  o.end && (o.clear(), o.draw());
2443
- } }, o.start = null, o.drawCell = function (e) { var t = i.months[e.month], n = i.yd(e.x, e.y), a = t.top + n.y, s = t.left + n.x, l = "px", d = i.sd(); if (r.ld()) {
2447
+ } }, o.start = null, o.drawCell = function (e) { var t = i.months[e.month], n = i.xd(e.x, e.y), a = t.top + n.y, s = t.left + n.x, l = "px", d = i.rd(); if (r.kd()) {
2444
2448
  var c = "Horizontal" === i.orientation ? i.showMonths : 1;
2445
- s = t.leftPct + n.x / c, l = "%", d = i.sd(1 / c);
2449
+ s = t.leftPct + n.x / c, l = "%", d = i.rd(1 / c);
2446
2450
  } var u = document.createElement("div"); u.style.position = "absolute", u.style.left = s + l, u.style.top = a + "px", u.style.height = i.cellHeight + "px", u.style.width = d, u.style.backgroundColor = "#ccc", u.style.opacity = .5, u.style.cursor = "default", i.nav.preselection.appendChild(u), o.cells.push(u); }, o.clear = function () { if (o.cells) {
2447
2451
  for (var e = 0; e < o.cells.length; e++)
2448
2452
  i.nav.preselection.removeChild(o.cells[e]);
@@ -2461,40 +2465,40 @@ var DayPilot = { Global: {} };
2461
2465
  t.month = s.month, t.x = s.x, t.y = s.y;
2462
2466
  }
2463
2467
  t.visible() && o.drawCell(t);
2464
- } }, o.ordered = function () { var e = o.start, t = o.end, n = {}; return !t || new a(e).before(t) ? (n.start = e, n.end = t) : (n.start = t, n.end = e), n; }, this.zd = function (e) { var t = e.currentTarget, n = t.parentNode, a = t.parentNode.month, r = t.x, o = t.y, s = a.cells[r][o].day; if (a.cells[r][o].isClickable) {
2465
- switch (i.clearSelection(), i.selectionDay = s, i.xd()) {
2468
+ } }, o.ordered = function () { var e = o.start, t = o.end, n = {}; return !t || new a(e).before(t) ? (n.start = e, n.end = t) : (n.start = t, n.end = e), n; }, this.yd = function (e) { var t = e.currentTarget, n = t.parentNode, a = t.parentNode.month, r = t.x, o = t.y, s = a.cells[r][o].day; if (a.cells[r][o].isClickable) {
2469
+ switch (i.clearSelection(), i.selectionDay = s, i.wd()) {
2466
2470
  case "none":
2467
2471
  i.selectionStart = s, i.selectionEnd = s;
2468
2472
  break;
2469
2473
  case "day":
2470
- if (i.autoFocusOnClick && (s < i.Gd() || s >= i.Hd()))
2474
+ if (i.autoFocusOnClick && (s < i.Fd() || s >= i.Gd()))
2471
2475
  return void i.select(s);
2472
2476
  var l = a.cells[r][o];
2473
- i.Ad(n, r, o), i.selected.push(l), i.selectionStart = l.day, i.selectionEnd = l.day;
2477
+ i.zd(n, r, o), i.selected.push(l), i.selectionStart = l.day, i.selectionEnd = l.day;
2474
2478
  break;
2475
2479
  case "week":
2476
2480
  if (i.autoFocusOnClick) {
2477
2481
  var d = a.cells[0][o].day, c = a.cells[6][o].day;
2478
- if (d.firstDayOfMonth() === c.firstDayOfMonth() && (d < i.Gd() || c >= i.Hd()))
2482
+ if (d.firstDayOfMonth() === c.firstDayOfMonth() && (d < i.Fd() || c >= i.Gd()))
2479
2483
  return void i.select(s);
2480
2484
  }
2481
2485
  for (var u = 0; u < 7; u++)
2482
- i.Ad(n, u, o), i.selected.push(a.cells[u][o]);
2486
+ i.zd(n, u, o), i.selected.push(a.cells[u][o]);
2483
2487
  i.selectionStart = a.cells[0][o].day, i.selectionEnd = a.cells[6][o].day;
2484
2488
  break;
2485
2489
  case "month":
2486
- if (i.autoFocusOnClick && (s < i.Gd() || s >= i.Hd()))
2490
+ if (i.autoFocusOnClick && (s < i.Fd() || s >= i.Gd()))
2487
2491
  return void i.select(s);
2488
2492
  for (var d = null, c = null, h = 0; h < 6; h++)
2489
2493
  for (var f = 0; f < 7; f++) {
2490
2494
  var l = a.cells[f][h];
2491
- l && l.day.getYear() === s.getYear() && l.day.getMonth() === s.getMonth() && (i.Ad(n, f, h), i.selected.push(l), null === d && (d = l.day), c = l.day);
2495
+ l && l.day.getYear() === s.getYear() && l.day.getMonth() === s.getMonth() && (i.zd(n, f, h), i.selected.push(l), null === d && (d = l.day), c = l.day);
2492
2496
  }
2493
2497
  i.selectionStart = d, i.selectionEnd = c;
2494
2498
  break;
2495
2499
  default: throw "unknown selectMode";
2496
2500
  }
2497
- i.Dd(), i.O();
2501
+ i.Cd(), i.O();
2498
2502
  } }, this.O = function (e) { var t = i.selectionStart, n = i.selectionEnd.addDays(1), a = DayPilot.DateUtil.daysDiff(t, n), r = i.selectionDay; if (e = e || {}, i.ta()) {
2499
2503
  var o = {};
2500
2504
  if (o.start = t, o.end = n, o.day = r, o.days = a, o.mode = e.mode || i.selectMode, o.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(o), o.preventDefault.value))
@@ -2526,7 +2530,7 @@ var DayPilot = { Global: {} };
2526
2530
  break;
2527
2531
  case "None": break;
2528
2532
  case "PostBack": i.timeRangeSelectedPostBack(t, n, r);
2529
- } }, this.timeRangeSelectedPostBack = function (e, t, n, a) { var i = {}; i.start = e, i.end = t, i.day = a, this.T("TimeRangeSelected", n, i); }, this.ud = function () { i.Td(i.skipMonths); }, this.td = function () { i.Td(-i.skipMonths); }, this.Td = function (e) { this.startDate = this.startDate.addMonths(e), this.dd(), this.kd(), this.Id(), this.Dd(), this.Jd(), this.Cd(); }, this.Gd = function () { return i.startDate.firstDayOfMonth(); }, this.Hd = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths); }, this.visibleStart = function () { return i.startDate.firstDayOfMonth().firstDayOfWeek(r.weekStarts()); }, this.visibleEnd = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths - 1).firstDayOfWeek(r.weekStarts()).addDays(42); }, this.Jd = function () { var e = this.visibleStart(), t = this.visibleEnd(); if (i.ta()) {
2533
+ } }, this.timeRangeSelectedPostBack = function (e, t, n, a) { var i = {}; i.start = e, i.end = t, i.day = a, this.T("TimeRangeSelected", n, i); }, this.td = function () { i.Sd(i.skipMonths); }, this.sd = function () { i.Sd(-i.skipMonths); }, this.Sd = function (e) { this.startDate = this.startDate.addMonths(e), this.cd(), this.jd(), this.Hd(), this.Cd(), this.Id(), this.Bd(); }, this.Fd = function () { return i.startDate.firstDayOfMonth(); }, this.Gd = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths); }, this.visibleStart = function () { return i.startDate.firstDayOfMonth().firstDayOfWeek(r.weekStarts()); }, this.visibleEnd = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths - 1).firstDayOfWeek(r.weekStarts()).addDays(42); }, this.Id = function () { var e = this.visibleStart(), t = this.visibleEnd(); if (i.ta()) {
2530
2534
  var n = {};
2531
2535
  if (n.start = e, n.end = t, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onVisibleRangeChange && (i.onVisibleRangeChange(n), n.preventDefault.value))
2532
2536
  return;
@@ -2553,10 +2557,10 @@ var DayPilot = { Global: {} };
2553
2557
  this.onVisibleRangeChanged(e, t);
2554
2558
  break;
2555
2559
  case "Disabled":
2556
- } }, this.visibleRangeChangedCallBack = function (e) { var t = {}; this.V("Visible", e, t); }, this.visibleRangeChangedPostBack = function (e) { var t = {}; this.T("Visible", e, t); }, this.X = function (e) { var t = JSON.parse(e); i.items = t.Items, i.cells = t.Cells, i.cells ? i.update() : i.Cd(); }, this.Id = function () { this.showToday && "Top" === this.todayPosition && this.Ud(); for (var e = 0; e < this.showMonths; e++) {
2557
- var t = this.Vd(e);
2558
- this.ed(e, t);
2559
- } this.showToday && "Bottom" === this.todayPosition && this.Ud(), this.root.style.height = this.Wd() + "px", this.nav.preselection = document.createElement("div"), this.nav.preselection.style.position = "absolute", this.nav.preselection.style.left = "0px", this.nav.preselection.style.right = "0px", this.nav.preselection.style.top = "0px", this.root.appendChild(this.nav.preselection); }, this.Ud = function () { if (this.showToday) {
2560
+ } }, this.visibleRangeChangedCallBack = function (e) { var t = {}; this.V("Visible", e, t); }, this.visibleRangeChangedPostBack = function (e) { var t = {}; this.T("Visible", e, t); }, this.X = function (e) { var t = JSON.parse(e); i.items = t.Items, i.cells = t.Cells, i.cells ? i.update() : i.Bd(); }, this.Hd = function () { this.showToday && "Top" === this.todayPosition && this.Td(); for (var e = 0; e < this.showMonths; e++) {
2561
+ var t = this.Ud(e);
2562
+ this.dd(e, t);
2563
+ } this.showToday && "Bottom" === this.todayPosition && this.Td(), this.root.style.height = this.Vd() + "px", this.nav.preselection = document.createElement("div"), this.nav.preselection.style.position = "absolute", this.nav.preselection.style.left = "0px", this.nav.preselection.style.right = "0px", this.nav.preselection.style.top = "0px", this.root.appendChild(this.nav.preselection); }, this.Td = function () { if (this.showToday) {
2560
2564
  var e = document.createElement("span");
2561
2565
  e.className = this.L("_todaysection_button"), this.todayHtml ? e.innerHTML = this.todayHtml : e.innerText = this.todayText, e.onclick = function () { if ("function" == typeof i.onTodayClick) {
2562
2566
  var e = {};
@@ -2565,7 +2569,7 @@ var DayPilot = { Global: {} };
2565
2569
  } i.select(DayPilot.Date.today()); };
2566
2570
  var t = document.createElement("div");
2567
2571
  t.style.height = this.todayHeight + "px", t.className = this.L("_todaysection"), t.appendChild(e), this.root.appendChild(t);
2568
- } }, this.Wd = function () { var e = 0; if (this.showToday && (e += this.todayHeight), "Horizontal" === this.orientation) {
2572
+ } }, this.Vd = function () { var e = 0; if (this.showToday && (e += this.todayHeight), "Horizontal" === this.orientation) {
2569
2573
  for (var t = 0; t < this.months.length; t++) {
2570
2574
  var n = this.months[t];
2571
2575
  n.height > e && (e = n.height);
@@ -2574,54 +2578,54 @@ var DayPilot = { Global: {} };
2574
2578
  } for (var t = 0; t < this.months.length; t++) {
2575
2579
  var n = this.months[t];
2576
2580
  e += n.height;
2577
- } return e; }, this.Vd = function (e) { if (this.internal.showLinks)
2578
- return this.internal.showLinks; var t = {}; return t.left = 0 === e, t.right = 0 === e, t.before = 0 === e, t.after = e === this.showMonths - 1, "Horizontal" === this.orientation && (t.right = e === this.showMonths - 1), t; }, this.wa = {}, this.wa.scope = null, this.wa.notify = function () { i.wa.scope && i.wa.scope["$apply"](); }, this.Sa = {}, this.Sa.Ra = null, this.Sa.Mb = function (e, t, n) { var a = i.Sa.Ra; if ("function" == typeof a.createVNode && "function" == typeof a.render) {
2581
+ } return e; }, this.Ud = function (e) { if (this.internal.showLinks)
2582
+ return this.internal.showLinks; var t = {}; return t.left = 0 === e, t.right = 0 === e, t.before = 0 === e, t.after = e === this.showMonths - 1, "Horizontal" === this.orientation && (t.right = e === this.showMonths - 1), t; }, this.wa = {}, this.wa.scope = null, this.wa.notify = function () { i.wa.scope && i.wa.scope["$apply"](); }, this.Ra = {}, this.Ra.Qa = null, this.Ra.Lb = function (e, t, n) { var a = i.Ra.Qa; if ("function" == typeof a.createVNode && "function" == typeof a.render) {
2579
2583
  var r = a.createVNode(e, n);
2580
2584
  a.render(r, t);
2581
- } }, this.Sa.Wa = function (e, t) { var n = i.Sa.Ra; if ("function" == typeof n.render) {
2585
+ } }, this.Ra.Va = function (e, t) { var n = i.Ra.Qa; if ("function" == typeof n.render) {
2582
2586
  var a = e;
2583
2587
  DayPilot.isArray(e) && (a = n.h("div", null, e)), n.render(a, t);
2584
- } }, this.Sa.Ua = function (e) { var t = i.Sa.Ra; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = i.tb, this.internal.initialized = function () { return i.Ma; }, this.internal.enableVue = function (e) { i.Sa.Ra = e; }, this.internal.vueRef = function () { return i.Sa.Ra; }, this.internal.vueRendering = function () { return i.Sa.Ta; }, this.internal.upd = function (e) { i.Kd(e); }, r.locale = function () { return DayPilot.Locale.find(i.locale); }, r.weekStarts = function () { if ("Auto" === i.weekStarts) {
2588
+ } }, this.Ra.Ta = function (e) { var t = i.Ra.Qa; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = i.sb, this.internal.initialized = function () { return i.La; }, this.internal.enableVue = function (e) { i.Ra.Qa = e; }, this.internal.vueRef = function () { return i.Ra.Qa; }, this.internal.vueRendering = function () { return i.Ra.Sa; }, this.internal.upd = function (e) { i.Jd(e); }, r.locale = function () { return DayPilot.Locale.find(i.locale); }, r.weekStarts = function () { if ("Auto" === i.weekStarts) {
2585
2589
  var e = r.locale();
2586
2590
  return e ? e.weekStarts : 0;
2587
- } return i.weekStarts; }, r.cellWidth = function () { if (i.yb.cellWidth)
2588
- return i.yb.cellWidth; var e = i.Xd("_cell_dimensions").width; return e || (e = i.cellWidth), i.yb.cellWidth = e, e; }, r.ld = function () { return "Auto" === i.R.cellWidth(); }, this.clearSelection = function () { for (var e = 0; e < this.selected.length; e++) {
2591
+ } return i.weekStarts; }, r.cellWidth = function () { if (i.xb.cellWidth)
2592
+ return i.xb.cellWidth; var e = i.Wd("_cell_dimensions").width; return e || (e = i.cellWidth), i.xb.cellWidth = e, e; }, r.kd = function () { return "Auto" === i.R.cellWidth(); }, this.clearSelection = function () { for (var e = 0; e < this.selected.length; e++) {
2589
2593
  var t = this.selected[e];
2590
- i.Bd(t.parentNode, t.x, t.y);
2591
- } this.selected = []; }, this.Yd = function () { return !!this.backendUrl && ("undefined" == typeof i.items || !i.items); }, this.events = {}, this.ha = function () { if (DayPilot.isArray(this.events.list)) {
2594
+ i.Ad(t.parentNode, t.x, t.y);
2595
+ } this.selected = []; }, this.Xd = function () { return !!this.backendUrl && ("undefined" == typeof i.items || !i.items); }, this.events = {}, this.ha = function () { if (DayPilot.isArray(this.events.list)) {
2592
2596
  this.items = {};
2593
2597
  for (var e = 0; e < this.events.list.length; e++) {
2594
2598
  var t = this.events.list[e];
2595
2599
  if (!t.hidden) {
2596
- var n = this.Zd(t);
2600
+ var n = this.Yd(t);
2597
2601
  for (var a in n)
2598
2602
  this.items[a] = 1;
2599
2603
  }
2600
2604
  }
2601
- } }, this.Xd = function (e) { var t = document.createElement("div"); t.style.position = "absolute", t.style.top = "-2000px", t.style.left = "-2000px", t.className = this.L(e); var n = i.root || document.body; n.appendChild(t); var a = t.offsetHeight, r = t.offsetWidth; n.removeChild(t); var o = {}; return o.height = a, o.width = r, o; }, this.Zd = function (e) { for (var t = new DayPilot.Date(e.start), n = new DayPilot.Date(e.end), a = {}, i = t.getDatePart(); i.getTime() <= n.getTime();)
2602
- a[i.toStringSortable()] = 1, i = i.addDays(1); return a; }, this.show = function () { i.visible = !0, i.root.style.display = ""; }, this.hide = function () { i.visible = !1, i.root.style.display = "none"; }, this.xb = function () { if (this.id && this.id.tagName)
2605
+ } }, this.Wd = function (e) { var t = document.createElement("div"); t.style.position = "absolute", t.style.top = "-2000px", t.style.left = "-2000px", t.className = this.L(e); var n = i.root || document.body; n.appendChild(t); var a = t.offsetHeight, r = t.offsetWidth; n.removeChild(t); var o = {}; return o.height = a, o.width = r, o; }, this.Yd = function (e) { for (var t = new DayPilot.Date(e.start), n = new DayPilot.Date(e.end), a = {}, i = t.getDatePart(); i.getTime() <= n.getTime();)
2606
+ a[i.toStringSortable()] = 1, i = i.addDays(1); return a; }, this.show = function () { i.visible = !0, i.root.style.display = ""; }, this.hide = function () { i.visible = !1, i.root.style.display = "none"; }, this.wb = function () { if (this.id && this.id.tagName)
2603
2607
  this.nav.top = this.id;
2604
2608
  else {
2605
2609
  if ("string" != typeof this.id)
2606
2610
  throw "DayPilot.Navigator() constructor requires the target element or its ID as a parameter";
2607
2611
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
2608
2612
  throw "DayPilot.Navigator: The placeholder element not found: '" + t + "'.";
2609
- } this.root = this.nav.top; }, this.init = function () { if (this.xb(), !this.root.dp) {
2610
- this.Ed(), this.kd(), this.Id(), this.ha(), this.Cd(), this.ba(), this.$d(), this.qb();
2611
- if (this.Yd() && this.Jd(), this.Ma = !0, this.wb(), this.Fd) {
2612
- var e = this.Fd;
2613
- this.select(e.date1, e.date2, e.options), this.Fd = null;
2613
+ } this.root = this.nav.top; }, this.init = function () { if (this.wb(), !this.root.dp) {
2614
+ this.Dd(), this.jd(), this.Hd(), this.ha(), this.Bd(), this.ba(), this.Zd(), this.pb();
2615
+ if (this.Xd() && this.Id(), this.La = !0, this.vb(), this.Ed) {
2616
+ var e = this.Ed;
2617
+ this.select(e.date1, e.date2, e.options), this.Ed = null;
2614
2618
  }
2615
2619
  return this;
2616
- } }, this.$d = function () { i.nav.top.onmousedown = this.Rd, i.nav.top.onmousemove = this.Sd; }, this.qb = function () { DayPilot.re(document, "mouseup", i._d); }, this._d = function (e) { if (o.start && o.end) {
2620
+ } }, this.Zd = function () { i.nav.top.onmousedown = this.Qd, i.nav.top.onmousemove = this.Rd; }, this.pb = function () { DayPilot.re(document, "mouseup", i.$d); }, this.$d = function (e) { if (o.start && o.end) {
2617
2621
  var t = DayPilot.mo3(i.nav.top, e);
2618
2622
  if (t.x === o.start.coords.x && t.y === o.start.coords.y)
2619
2623
  return o.start = null, void o.clear();
2620
2624
  o.clear();
2621
2625
  var n = o.ordered();
2622
- n.start = new a(n.start).nextVisible(), n.end = new a(n.end).previousVisible(), i.selectionDay = new a(n.start).date(), i.selectionStart = i.selectionDay, i.selectionEnd = new a(n.end).date(), o.start = null, o.end = null, i.dd(), i.kd(), i.Id(), i.Cd(), i.Dd();
2626
+ n.start = new a(n.start).nextVisible(), n.end = new a(n.end).previousVisible(), i.selectionDay = new a(n.start).date(), i.selectionStart = i.selectionDay, i.selectionEnd = new a(n.end).date(), o.start = null, o.end = null, i.cd(), i.jd(), i.Hd(), i.Bd(), i.Cd();
2623
2627
  i.O({ "mode": "FreeHand" });
2624
- } o.start = null, o.end = null; }, this.dispose = function () { var e = i; e.root && (e.root.removeAttribute("style"), e.root.removeAttribute("class"), e.root.dp = null, e.root.innerHTML = null, e.root = null, e.Q = !0); }, this.disposed = function () { return this.Q; }, this.ba = function () { this.root.dispose = this.dispose; }, this.Init = this.init, this.tb(n);
2628
+ } o.start = null, o.end = null; }, this.dispose = function () { var e = i; e.root && (e.root.removeAttribute("style"), e.root.removeAttribute("class"), e.root.dp = null, e.root.innerHTML = null, e.root = null, e.Q = !0); }, this.disposed = function () { return this.Q; }, this.ba = function () { this.root.dispose = this.dispose; }, this.Init = this.init, this.sb(n);
2625
2629
  }, "undefined" != typeof jQuery && !function (e) { e.fn.daypilotNavigator = function (e) { var t = null, n = this.each(function () { if (!this.daypilot) {
2626
2630
  var n = new DayPilot.Navigator(this.id);
2627
2631
  this.daypilot = n;
@@ -2635,24 +2639,24 @@ var DayPilot = { Global: {} };
2635
2639
  var l = DayPilot.Util.shouldApply(s);
2636
2640
  l ? !function (n) { i[n] = function (i) { var r = e(a[n]); t["$apply"](function () { r(t, { "args": i }); }); }; }(s) : !function (n) { i[n] = function (i) { e(a[n])(t, { "args": i }); }; }(s);
2637
2641
  } var d = t["$watch"], c = a["config"] || a["daypilotConfig"], u = a["events"] || a["daypilotEvents"]; d.call(t, c, function (e) { for (var t in e)
2638
- i[t] = e[t]; i.update(); }, !0), d.call(t, u, function (e) { i.events.list = e, i.ha(), i.Cd(); }, !0); }; } }; }]); }(), DayPilot.Navigator.def = {}, "undefined" != typeof Sys && Sys.Application && Sys.Application.notifyScriptLoaded && Sys.Application.notifyScriptLoaded();
2642
+ i[t] = e[t]; i.update(); }, !0), d.call(t, u, function (e) { i.events.list = e, i.ha(), i.Bd(); }, !0); }; } }; }]); }(), DayPilot.Navigator.def = {}, "undefined" != typeof Sys && Sys.Application && Sys.Application.notifyScriptLoaded && Sys.Application.notifyScriptLoaded();
2639
2643
  }
2640
2644
  }(DayPilot), function (DayPilot) {
2641
2645
  function e(e) { var t = e.touches[0].pageX, n = e.touches[0].pageY, a = {}; return a.x = t, a.y = n, a; }
2642
2646
  if ("undefined" == typeof DayPilot.Scheduler) {
2643
- var t = navigator.userAgent.indexOf("iPad") > -1 || navigator.userAgent.indexOf("iPhone") > -1, n = {}, a = function () { }, i = !1, r = function () { return document.body; }, o = function () { return document.createElement("div"); };
2644
- DayPilot.Scheduler = function (i, s) {
2647
+ var t = {}, n = function () { }, a = !1, i = function () { return document.body; }, r = function () { return document.createElement("div"); };
2648
+ DayPilot.Scheduler = function (a, o) {
2645
2649
  this.v = "${v}";
2646
- var l = this;
2647
- this.isScheduler = !0, this.id = i, this.beforeCellRenderCaching = !0, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.businessWeekends = !1, this.cellDuration = 60, this.cellGroupBy = "Day", this.cellSweeping = !0, this.cellSweepingCacheSize = 1e3, this.cellWidth = 40, this.cellsMarkBusiness = !0, this.cssClassPrefix = "scheduler_default", this.days = 1, this.durationBarHeight = 3, this.durationBarVisible = !0, this.dynamicEventRendering = "Progressive", this.dynamicEventRenderingMargin = 50, this.dynamicEventRenderingMarginX = null, this.dynamicEventRenderingMarginY = null, this.dynamicEventRenderingCacheSweeping = !1, this.dynamicEventRenderingCacheSize = 200, this.eventBorderRadius = null, this.eventEndSpec = "DateTime", this.eventHeight = 35, this.eventMinWidth = 1, this.eventPadding = null, this.eventResizeMargin = 5, this.eventTapAndHoldHandling = "Move", this.eventTextWrappingEnabled = !1, this.eventsLoadMethod = "GET", this.floatingEvents = !t, this.floatingTimeHeaders = !0, this.headerHeight = 30, this.heightSpec = "Max", this.height = 600, this.locale = "en-us", this.progressiveRowRendering = !0, this.progressiveRowRenderingPreload = 25, this.rowHeaderWidth = 80, this.rowMarginTop = 0, this.rowMarginBottom = 0, this.rowsLoadMethod = "GET", this.scale = "CellDuration", this.scrollDelayEvents = 200, this.scrollDelayCells = t ? 100 : 0, this.scrollDelayFloats = 0, this.scrollDelayRows = 0, this.showToolTip = !0, this.snapToGrid = !0, this.startDate = DayPilot.Date.today(), this.tapAndHoldTimeout = 300, this.timeHeaders = [{ "groupBy": "Default" }, { "groupBy": "Cell" }], this.timeHeaderTextWrappingEnabled = !1, this.timeFormat = "Auto", this.useEventBoxes = "Always", this.visible = !0, this.weekStarts = "Auto", this.width = null, this.xssProtection = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.timeHeaderClickHandling = "Enabled", this.timeHeaderRightClickHandling = "Enabled", this.timeRangeClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onEventClick = null, this.onEventClicked = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onRowClick = null, this.onRowClicked = null, this.onTimeHeaderClick = null, this.onTimeHeaderClicked = null, this.onTimeHeaderRightClick = null, this.onTimeHeaderRightClicked = null, this.onTimeRangeClick = null, this.onTimeRangeClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.onBeforeCellRender = null, this.onBeforeEventRender = null, this.onBeforeRowHeaderRender = null, this.onBeforeTimeHeaderRender = null, this.onAfterUpdate = null, this.Q = !1, this.ae = -1, this.be = !0, this.rowlist = [], this.events = {}, this.cells = {}, this.elements = {}, this.elements.events = [], this.elements.bars = [], this.elements.text = [], this.elements.cells = [], this.elements.linesVertical = [], this.elements.range = [], this.elements.timeHeader = [], this.yb = {}, this.yb.cells = [], this.yb.linesVertical = {}, this.yb.linesHorizontal = {}, this.yb.timeHeaderGroups = [], this.yb.timeHeader = {}, this.yb.events = [], this.nav = {}, this.R = {};
2648
- var d = this.R;
2650
+ var s = this;
2651
+ this.isScheduler = !0, this.id = a, this.beforeCellRenderCaching = !0, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.businessWeekends = !1, this.cellDuration = 60, this.cellGroupBy = "Day", this.cellSweeping = !0, this.cellSweepingCacheSize = 1e3, this.cellWidth = 40, this.cellsMarkBusiness = !0, this.cssClassPrefix = "scheduler_default", this.days = 1, this.durationBarHeight = 3, this.durationBarVisible = !0, this.dynamicEventRendering = "Progressive", this.dynamicEventRenderingMargin = 50, this.dynamicEventRenderingMarginX = null, this.dynamicEventRenderingMarginY = null, this.dynamicEventRenderingCacheSweeping = !1, this.dynamicEventRenderingCacheSize = 200, this.eventBorderRadius = null, this.eventEndSpec = "DateTime", this.eventHeight = 35, this.eventMinWidth = 1, this.eventPadding = null, this.eventResizeMargin = 5, this.eventTapAndHoldHandling = "Move", this.eventTextWrappingEnabled = !1, this.eventsLoadMethod = "GET", this.floatingEvents = !DayPilot.browser.ios, this.floatingTimeHeaders = !0, this.headerHeight = 30, this.heightSpec = "Max", this.height = 600, this.locale = "en-us", this.progressiveRowRendering = !0, this.progressiveRowRenderingPreload = 25, this.rowHeaderWidth = 80, this.rowMarginTop = 0, this.rowMarginBottom = 0, this.rowsLoadMethod = "GET", this.scale = "CellDuration", this.scrollDelayEvents = 200, this.scrollDelayCells = DayPilot.browser.ios ? 100 : 0, this.scrollDelayFloats = 0, this.scrollDelayRows = 0, this.showToolTip = !0, this.snapToGrid = !0, this.startDate = DayPilot.Date.today(), this.tapAndHoldTimeout = 300, this.timeHeaders = [{ "groupBy": "Default" }, { "groupBy": "Cell" }], this.timeHeaderTextWrappingEnabled = !1, this.timeFormat = "Auto", this.useEventBoxes = "Always", this.visible = !0, this.weekStarts = "Auto", this.width = null, this.xssProtection = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.timeHeaderClickHandling = "Enabled", this.timeHeaderRightClickHandling = "Enabled", this.timeRangeClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onEventClick = null, this.onEventClicked = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onRowClick = null, this.onRowClicked = null, this.onTimeHeaderClick = null, this.onTimeHeaderClicked = null, this.onTimeHeaderRightClick = null, this.onTimeHeaderRightClicked = null, this.onTimeRangeClick = null, this.onTimeRangeClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.onBeforeCellRender = null, this.onBeforeEventRender = null, this.onBeforeRowHeaderRender = null, this.onBeforeTimeHeaderRender = null, this.onAfterUpdate = null, this.Q = !1, this._d = -1, this.ae = !0, this.rowlist = [], this.events = {}, this.cells = {}, this.elements = {}, this.elements.events = [], this.elements.bars = [], this.elements.text = [], this.elements.cells = [], this.elements.linesVertical = [], this.elements.range = [], this.elements.timeHeader = [], this.xb = {}, this.xb.cells = [], this.xb.linesVertical = {}, this.xb.linesHorizontal = {}, this.xb.timeHeaderGroups = [], this.xb.timeHeader = {}, this.xb.events = [], this.nav = {}, this.R = {};
2652
+ var l = this.R;
2653
+ this.be = {};
2654
+ var d = s.be;
2649
2655
  this.ce = {};
2650
- var c = l.ce;
2651
- this.ee = {};
2652
- var u = this.ee, h = {};
2653
- this.scrollTo = function (e) { l.fe(e); }, this.fe = function (e) { if (e) {
2654
- if (!l.Ma)
2655
- return void (l.ge = e);
2656
+ var c = this.ce, u = {};
2657
+ this.scrollTo = function (e) { s.ee(e); }, this.ee = function (e) { if (e) {
2658
+ if (!s.La)
2659
+ return void (s.fe = e);
2656
2660
  var t;
2657
2661
  if (e instanceof DayPilot.Date)
2658
2662
  t = this.getPixels(e).left;
@@ -2663,215 +2667,212 @@ var DayPilot = { Global: {} };
2663
2667
  throw new DayPilot.Exception("Invalid scrollTo() parameter. Accepted parameters: string (ISO date), number (pixels), DayPilot.Date object");
2664
2668
  t = e;
2665
2669
  }
2666
- var n = l.he.clientWidth, a = l.nav.scroll.clientWidth;
2667
- t < 0 && (t = 0), t > n - a && (t = n - a), l.ie(t);
2670
+ var n = s.ge.clientWidth, a = s.nav.scroll.clientWidth;
2671
+ t < 0 && (t = 0), t > n - a && (t = n - a), s.he(t);
2668
2672
  } }, this.scrollToResource = function (e) { DayPilot.complete(function () { var t; if ("string" == typeof e || "number" == typeof e)
2669
- t = l.je(e);
2673
+ t = s.ie(e);
2670
2674
  else {
2671
2675
  if (!(e instanceof DayPilot.Row))
2672
2676
  throw new DayPilot.Exception("Invalid scrollToResource() argument: id or DayPilot.Row expected");
2673
- t = l.je(e.id);
2674
- } t && setTimeout(function () { var e = t.top; l.nav.scroll.scrollTop = e; }, 100); }); }, this.ke = function () { if (this.floatingTimeHeaders && this.timeHeader) {
2675
- var e = l.le();
2677
+ t = s.ie(e.id);
2678
+ } t && setTimeout(function () { var e = t.top; s.nav.scroll.scrollTop = e; }, 100); }); }, this.je = function () { if (this.floatingTimeHeaders && this.timeHeader) {
2679
+ var e = s.ke();
2676
2680
  if (e) {
2677
- l.me();
2681
+ s.le();
2678
2682
  for (var t = e.pixels.left, n = e.pixels.right + e.sw, a = [], i = 0; i < this.timeHeader.length; i++)
2679
2683
  for (var r = 0; r < this.timeHeader[i].length; r++) {
2680
- var o = this.timeHeader[i][r], s = o.left, d = o.left + o.width, c = null;
2681
- if (s < t && t < d && (c = {}, c.x = r, c.y = i, c.marginLeft = t - s, c.marginRight = 0, c.div = l.yb.timeHeader[r + "_" + i], a.push(c)), s < n && n < d) {
2682
- c || (c = {}, c.x = r, c.y = i, c.marginLeft = 0, c.div = l.yb.timeHeader[r + "_" + i], a.push(c)), c.marginRight = d - n;
2684
+ var o = this.timeHeader[i][r], l = o.left, d = o.left + o.width, c = null;
2685
+ if (l < t && t < d && (c = {}, c.x = r, c.y = i, c.marginLeft = t - l, c.marginRight = 0, c.div = s.xb.timeHeader[r + "_" + i], a.push(c)), l < n && n < d) {
2686
+ c || (c = {}, c.x = r, c.y = i, c.marginLeft = 0, c.div = s.xb.timeHeader[r + "_" + i], a.push(c)), c.marginRight = d - n;
2683
2687
  break;
2684
2688
  }
2685
2689
  }
2686
2690
  for (var u = 0; u < a.length; u++) {
2687
2691
  var c = a[u];
2688
- l.ne(c.div, c.marginLeft, c.marginRight);
2692
+ s.me(c.div, c.marginLeft, c.marginRight);
2689
2693
  }
2690
2694
  }
2691
- } }, this.oe = function () { l.ke(), l.pe(); }, this.qe = {};
2692
- var f = l.qe;
2693
- f.se = function (e, t, n, a) { var i = e, r = e + n, o = t, s = t + a; return l.elements.events.filter(function (e) { var t = e.event, n = t.part.left, a = t.part.left + t.part.width, d = l.rowlist[t.part.dayIndex], c = d.top + t.part.top, u = c + l.eventHeight; if (DayPilot.Util.overlaps(n, a, i, r) && DayPilot.Util.overlaps(c, u, o, s))
2694
- return !0; }); }, f.te = function () { var e = [], t = l.le(); if (!t)
2695
- return e; for (var n = t.pixels.left, a = 0; a < l.elements.events.length; a++) {
2696
- var i = l.elements.events[a], r = i.event, o = r.part.left, s = r.part.left + r.part.width;
2697
- o < n && n < s && e.push(i);
2698
- } return e.area = t, e; }, this.pe = function () { if (this.floatingEvents) {
2699
- var e = f.te();
2700
- l.ve = performance.now(), e.forEach(function (t) { var n = t.event, a = e.area.pixels.left, i = n.part.left, r = a - i; l.we(t, r, 0); }), l.xe();
2701
- } }, this.elements.sections = [], this.elements.hsections = [], this.ne = function (e, t, n) { var a = o(); a.className = l.L("_timeheader_float"), a.style.position = "absolute", a.style.left = t + "px", a.style.right = n + "px", a.style.top = "0px", a.style.bottom = "0px", a.style.overflow = "hidden"; var i = o(); i.className = l.L("_timeheader_float_inner"); var r = e.cell.th; i.innerHTML = l._a(r.text, r.html), r.fontColor && (i.style.color = r.fontColor), a.appendChild(i), a.ye = { marginLeft: t, marginRight: n }, e.section = a, e.insertBefore(a, e.firstChild.nextSibling), e.firstChild.innerHTML = "", this.elements.hsections.push(e); }, this.me = function () { for (var e = 0; e < this.elements.hsections.length; e++) {
2695
+ } }, this.ne = function () { s.je(), s.oe(); }, this.pe = {};
2696
+ var h = s.pe;
2697
+ h.qe = function (e, t, n, a) { var i = e, r = e + n, o = t, l = t + a; return s.elements.events.filter(function (e) { var t = e.event, n = t.part.left, a = t.part.left + t.part.width, d = s.rowlist[t.part.dayIndex], c = d.top + t.part.top, u = c + s.eventHeight; if (DayPilot.Util.overlaps(n, a, i, r) && DayPilot.Util.overlaps(c, u, o, l))
2698
+ return !0; }); }, h.se = function () { var e = [], t = s.ke(); if (!t)
2699
+ return e; for (var n = t.pixels.left, a = 0; a < s.elements.events.length; a++) {
2700
+ var i = s.elements.events[a], r = i.event, o = r.part.left, l = r.part.left + r.part.width;
2701
+ o < n && n < l && e.push(i);
2702
+ } return e.area = t, e; }, this.oe = function () { if (this.floatingEvents) {
2703
+ var e = h.se();
2704
+ s.te = performance.now(), e.forEach(function (t) { var n = t.event, a = e.area.pixels.left, i = n.part.left, r = a - i; s.ve(t, r, 0); }), s.we();
2705
+ } }, this.elements.sections = [], this.elements.hsections = [], this.me = function (e, t, n) { var a = r(); a.className = s.L("_timeheader_float"), a.style.position = "absolute", a.style.left = t + "px", a.style.right = n + "px", a.style.top = "0px", a.style.bottom = "0px", a.style.overflow = "hidden"; var i = r(); i.className = s.L("_timeheader_float_inner"); var o = e.cell.th; i.innerHTML = s.$a(o.text, o.html), o.fontColor && (i.style.color = o.fontColor), a.appendChild(i), a.xe = { marginLeft: t, marginRight: n }, e.section = a, e.insertBefore(a, e.firstChild.nextSibling), e.firstChild.innerHTML = "", this.elements.hsections.push(e); }, this.le = function () { for (var e = 0; e < this.elements.hsections.length; e++) {
2702
2706
  var t = this.elements.hsections[e], n = t.cell;
2703
- n && t.firstChild && (t.firstChild.innerHTML = l._a(n.th.text, n.th.html)), DayPilot.de(t.section), t.section = null;
2704
- } this.elements.hsections = []; }, this.we = function (e, t, n) { var a = e.section; if (a)
2705
- return a.ye && a.ye.marginLeft === t && a.ye.marginRight === n ? void (a.ye.stamp = l.ve) : (e.section.style.left = t + "px", e.section.style.right = n + "px", void (a.ye = { marginLeft: t, marginRight: n, stamp: l.ve })); a = o(), a.className = l.L("_event_float"), a.style.position = "absolute", a.style.left = t + "px", a.style.right = n + "px", a.style.top = "0px", a.style.bottom = "0px", a.style.overflow = "hidden"; var i = o(); i.className = l.L("_event_float_inner"), i.innerHTML = e.event.client.html(), a.appendChild(i), a.ye = { marginLeft: t, marginRight: n, stamp: l.ve }, e.section = a, e.insertBefore(a, e.firstChild.nextSibling), e.firstChild.innerHTML = ""; var r = e.event, s = r.cache || r.data; s.fontColor && (i.style.color = s.fontColor), this.elements.sections.push(e); }, this.xe = function () { for (var e = [], t = 0; t < this.elements.sections.length; t++) {
2707
+ n && t.firstChild && (t.firstChild.innerHTML = s.$a(n.th.text, n.th.html)), DayPilot.de(t.section), t.section = null;
2708
+ } this.elements.hsections = []; }, this.ve = function (e, t, n) { var a = e.section; if (a)
2709
+ return a.xe && a.xe.marginLeft === t && a.xe.marginRight === n ? void (a.xe.stamp = s.te) : (e.section.style.left = t + "px", e.section.style.right = n + "px", void (a.xe = { marginLeft: t, marginRight: n, stamp: s.te })); a = r(), a.className = s.L("_event_float"), a.style.position = "absolute", a.style.left = t + "px", a.style.right = n + "px", a.style.top = "0px", a.style.bottom = "0px", a.style.overflow = "hidden"; var i = r(); i.className = s.L("_event_float_inner"), i.innerHTML = e.event.client.html(), a.appendChild(i), a.xe = { marginLeft: t, marginRight: n, stamp: s.te }, e.section = a, e.insertBefore(a, e.firstChild.nextSibling), e.firstChild.innerHTML = ""; var o = e.event, l = o.cache || o.data; l.fontColor && (i.style.color = l.fontColor), this.elements.sections.push(e); }, this.we = function () { for (var e = [], t = 0; t < this.elements.sections.length; t++) {
2706
2710
  var n = this.elements.sections[t];
2707
- if (n.section && n.section.ye && n.section.ye.stamp === l.ve)
2711
+ if (n.section && n.section.xe && n.section.xe.stamp === s.te)
2708
2712
  e.push(n);
2709
2713
  else {
2710
2714
  var a = n.event;
2711
2715
  a && (n.firstChild.innerHTML = a.client.html()), DayPilot.de(n.section), n.section = null;
2712
2716
  }
2713
- } this.elements.sections = e; }, this.setScrollX = function (e) { l.ze.enabled ? (l.ze.scrollXRequested = e, setTimeout(function () { var e = l.ze.scrollXRequested; "number" == typeof e && l.ie(e); }, 0)) : l.ie(e); }, this.ie = function (e) { var t = l.nav.scroll, n = l.Ae(); t.clientWidth + e > n && (e = n - t.clientWidth), l.divTimeScroll.scrollLeft = e, t.scrollLeft = e; }, this.setScrollY = function (e) { l.ze.enabled ? (l.ze.scrollYRequested = e, setTimeout(function () { var e = l.ze.scrollYRequested; "number" == typeof e && l.Be(e); }, 0)) : l.Be(e); }, this.Be = function (e) { var t = l.nav.scroll, n = l.ae; t.clientHeight + e > n && (e = n - t.clientHeight), l.divResScroll.scrollTop = e, t.scrollTop = e; }, this.setScroll = function (e, t) { l.setScrollX(e), l.setScrollY(t); }, this.ma = function () { if (this.nav.scroll) {
2714
- !function () { var e = l.Ae(); l.he.style.height = l.ae + "px", l.he.style.width = e + "px", e > l.nav.scroll.clientWidth ? l.nav.scroll.style.overflowX = "auto" : l.nav.scroll.style.overflowX = "hidden"; }();
2717
+ } this.elements.sections = e; }, this.setScrollX = function (e) { s.ye.enabled ? (s.ye.scrollXRequested = e, setTimeout(function () { var e = s.ye.scrollXRequested; "number" == typeof e && s.he(e); }, 0)) : s.he(e); }, this.he = function (e) { var t = s.nav.scroll, n = s.ze(); t.clientWidth + e > n && (e = n - t.clientWidth), s.divTimeScroll.scrollLeft = e, t.scrollLeft = e; }, this.setScrollY = function (e) { s.ye.enabled ? (s.ye.scrollYRequested = e, setTimeout(function () { var e = s.ye.scrollYRequested; "number" == typeof e && s.Ae(e); }, 0)) : s.Ae(e); }, this.Ae = function (e) { var t = s.nav.scroll, n = s._d; t.clientHeight + e > n && (e = n - t.clientHeight), s.divResScroll.scrollTop = e, t.scrollTop = e; }, this.setScroll = function (e, t) { s.setScrollX(e), s.setScrollY(t); }, this.ma = function () { if (this.nav.scroll) {
2718
+ !function () { var e = s.ze(); s.ge.style.height = s._d + "px", s.ge.style.width = e + "px", e > s.nav.scroll.clientWidth ? s.nav.scroll.style.overflowX = "auto" : s.nav.scroll.style.overflowX = "hidden"; }();
2715
2719
  var e = 1;
2716
2720
  this.nav.scroll.style.height = "30px";
2717
- var t = this.Ya(), n = t + this.Ce() + e;
2718
- if (t >= 0 && (this.nav.scroll.style.height = t + "px", this.De.style.height = t + "px"), this.nav.divider && ((!n || isNaN(n) || n < 0) && (n = 0), this.nav.divider.style.height = n + "px"), this.nav.top.style.height = n + "px", l.nav.resScrollSpace) {
2721
+ var t = this.Xa(), n = t + this.Be() + e;
2722
+ if (t >= 0 && (this.nav.scroll.style.height = t + "px", this.Ce.style.height = t + "px"), this.nav.divider && ((!n || isNaN(n) || n < 0) && (n = 0), this.nav.divider.style.height = n + "px"), this.nav.top.style.height = n + "px", s.nav.resScrollSpace) {
2719
2723
  var a = 30;
2720
- "Auto" === l.heightSpec && (a = DayPilot.sh(l.nav.scroll)), l.nav.resScrollSpace.style.height = a + "px";
2724
+ "Auto" === s.heightSpec && (a = DayPilot.sh(s.nav.scroll)), s.nav.resScrollSpace.style.height = a + "px";
2721
2725
  }
2722
2726
  for (var i = 0; i < this.elements.linesVertical.length; i++)
2723
- this.elements.linesVertical[i].style.height = this.ae + "px";
2724
- } }, this.Ee = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(), this.timeHeader = []; var e = this.timeHeaders; e || (e = [{ "groupBy": this.cellGroupBy }, { "groupBy": "Cell" }]); for (var t = l.startDate.addDays(l.days), n = 0; n < e.length; n++) {
2727
+ this.elements.linesVertical[i].style.height = this._d + "px";
2728
+ } }, this.De = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(), this.timeHeader = []; var e = this.timeHeaders; e || (e = [{ "groupBy": this.cellGroupBy }, { "groupBy": "Cell" }]); for (var t = s.startDate.addDays(s.days), n = 0; n < e.length; n++) {
2725
2729
  var a = e[n].groupBy, i = e[n].format;
2726
2730
  "Default" === a && (a = this.cellGroupBy);
2727
- for (var r = [], o = l.startDate; o.ticks < t.ticks;) {
2728
- var s = {};
2729
- if (s.start = o, s.end = this.Fe(s.start, a), s.start.ticks === s.end.ticks)
2731
+ for (var r = [], o = s.startDate; o.ticks < t.ticks;) {
2732
+ var d = {};
2733
+ if (d.start = o, d.end = this.Ee(d.start, a), d.start.ticks === d.end.ticks)
2730
2734
  break;
2731
- s.left = this.getPixels(s.start).left;
2732
- var c = this.getPixels(s.end).left, u = c - s.left;
2733
- if (s.width = u, "string" == typeof i ? s.text = s.start.toString(i, d.Ge()) : s.text = this.He(s, a), u > 0) {
2735
+ d.left = this.getPixels(d.start).left;
2736
+ var c = this.getPixels(d.end).left, u = c - d.left;
2737
+ if (d.width = u, "string" == typeof i ? d.text = d.start.toString(i, l.Fe()) : d.text = this.Ge(d, a), u > 0) {
2734
2738
  if ("function" == typeof this.onBeforeTimeHeaderRender) {
2735
2739
  var h = {};
2736
- h.start = s.start, h.end = s.end, h.text = s.text, h.html = null, h.toolTip = l._a(s.text), h.backColor = null, h.fontColor = null, h.level = this.timeHeader.length, h.cssClass = null;
2740
+ h.start = d.start, h.end = d.end, h.text = d.text, h.html = null, h.toolTip = s.$a(d.text), h.backColor = null, h.fontColor = null, h.level = this.timeHeader.length, h.cssClass = null;
2737
2741
  var f = {};
2738
- f.header = h, f.control = l, this.onBeforeTimeHeaderRender(f), s.text = h.text, s.html = h.html, s.backColor = h.backColor, s.fontColor = h.fontColor, s.toolTip = h.toolTip, s.areas = h.areas, s.cssClass = h.cssClass;
2742
+ f.header = h, f.control = s, this.onBeforeTimeHeaderRender(f), d.text = h.text, d.html = h.html, d.backColor = h.backColor, d.fontColor = h.fontColor, d.toolTip = h.toolTip, d.areas = h.areas, d.cssClass = h.cssClass;
2739
2743
  }
2740
- r.push(s);
2744
+ r.push(d);
2741
2745
  }
2742
- o = s.end;
2746
+ o = d.end;
2743
2747
  }
2744
2748
  this.timeHeader.push(r);
2745
- } }, this.getPixels = function (e) { var t = e.ticks - this.startDate.ticks, n = l.Bb(t), a = l.cellWidth, i = Math.floor(n / a), r = i * a; r = r < 0 ? 0 : r; var o = r + a; n % a === 0 && (o = r); var s = l.Ae(); return o = o > s ? s : o, { left: n, boxLeft: r, boxRight: o, i: i }; }, this.getDate = function (e, t, n) { var a = this.Ie(e, n); if (!a)
2746
- return null; var i = a.x, r = l.Je(i); if (!r)
2747
- return null; var o = n && !t ? r.end : r.start; return t ? o.addTime(this.Ke(a.offset)) : o; }, this.Ie = function (e, t) { t && (e -= 1); var n = Math.floor(e / l.cellWidth), a = l.Je(n); if (!a)
2748
- return null; var i = {}; return i.x = n, i.offset = e % l.cellWidth, i.cell = a, i; }, this.Le = function (e) { var t = e.ticks - this.startDate.ticks, n = 60 * l.Me() * 1e3; if (t < 0)
2749
- return { past: !0 }; var a = Math.floor(t / n); return { i: a, current: l.Je(a) }; }, this.Bb = function (e) { var t = 60 * l.Me() * 1e3, n = l.cellWidth; return Math.floor(n * e / t); }, this.Ke = function (e) { var t = 60 * l.Me() * 1e3, n = l.cellWidth; return Math.floor(e / n * t); }, this.Ne = function (e) { DayPilot.Global.touch.start || n.Oe || (l.Pe = {}, l.va(this, e)); }, this.va = function (e, t) { e.event && l.Qe(e, t); }, this.xa = function (e) { if (!DayPilot.Global.touch.active && !DayPilot.Global.touch.start) {
2749
+ } }, this.getPixels = function (e) { var t = e.ticks - this.startDate.ticks, n = s.Ab(t), a = s.cellWidth, i = Math.floor(n / a), r = i * a; r = r < 0 ? 0 : r; var o = r + a; n % a === 0 && (o = r); var l = s.ze(); return o = o > l ? l : o, { left: n, boxLeft: r, boxRight: o, i: i }; }, this.getDate = function (e, t, n) { var a = this.He(e, n); if (!a)
2750
+ return null; var i = a.x, r = s.Ie(i); if (!r)
2751
+ return null; var o = n && !t ? r.end : r.start; return t ? o.addTime(this.Je(a.offset)) : o; }, this.He = function (e, t) { t && (e -= 1); var n = Math.floor(e / s.cellWidth), a = s.Ie(n); if (!a)
2752
+ return null; var i = {}; return i.x = n, i.offset = e % s.cellWidth, i.cell = a, i; }, this.Ke = function (e) { var t = e.ticks - this.startDate.ticks, n = 60 * s.Le() * 1e3; if (t < 0)
2753
+ return { past: !0 }; var a = Math.floor(t / n); return { i: a, current: s.Ie(a) }; }, this.Ab = function (e) { var t = 60 * s.Le() * 1e3, n = s.cellWidth; return Math.floor(n * e / t); }, this.Je = function (e) { var t = 60 * s.Le() * 1e3, n = s.cellWidth; return Math.floor(e / n * t); }, this.Me = function (e) { DayPilot.Global.touch.start || t.Ne || (s.Oe = {}, s.va(this, e)); }, this.va = function (e, t) { e.event && s.Pe(e, t); }, this.xa = function (e) { if (!DayPilot.Global.touch.active && !DayPilot.Global.touch.start) {
2750
2754
  var t = this.event;
2751
2755
  if (e.cancelBubble = !0, e.preventDefault(), !this.event.client.rightClickEnabled())
2752
2756
  return !1;
2753
- l.Re(e);
2757
+ s.Qe(e);
2754
2758
  var n = {};
2755
- if (n.e = t, n.div = this, n.originalEvent = e, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof l.onEventRightClick && (l.onEventRightClick(n), n.preventDefault.value))
2759
+ if (n.e = t, n.div = this, n.originalEvent = e, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onEventRightClick && (s.onEventRightClick(n), n.preventDefault.value))
2756
2760
  return !1;
2757
- switch (l.eventRightClickHandling) {
2761
+ switch (s.eventRightClickHandling) {
2758
2762
  case "ContextMenu":
2759
2763
  var a = t.client.contextMenu();
2760
- a ? a.show(t) : l.contextMenu && l.contextMenu.show(this.event);
2764
+ a ? a.show(t) : s.contextMenu && s.contextMenu.show(this.event);
2761
2765
  }
2762
- return "function" == typeof l.onEventRightClicked && l.onEventRightClicked(n), !1;
2763
- } }, this.Je = function (e) { var t = l.Me(), n = 60 * t * 1e3; return { start: l.startDate.addTime(e * n), end: l.startDate.addTime((e + 1) * n), left: e * l.cellWidth, width: l.cellWidth }; }, this.Qe = function (e, t) { if ("boolean" == typeof t)
2766
+ return "function" == typeof s.onEventRightClicked && s.onEventRightClicked(n), !1;
2767
+ } }, this.Ie = function (e) { var t = s.Le(), n = 60 * t * 1e3; return { start: s.startDate.addTime(e * n), end: s.startDate.addTime((e + 1) * n), left: e * s.cellWidth, width: s.cellWidth }; }, this.Pe = function (e, t) { if ("boolean" == typeof t)
2764
2768
  throw new DayPilot.Exception("Invalid _eventClickSingle parameters"); var n = e.event; if (n) {
2765
2769
  var a = t.ctrlKey, i = t.metaKey;
2766
2770
  if (n.client.clickEnabled()) {
2767
- l.Re(t);
2771
+ s.Qe(t);
2768
2772
  var r = {};
2769
- r.e = n, r.control = l, r.div = e, r.originalEvent = t, r.ctrl = a, r.meta = i, r.shift = t.shiftKey, r.preventDefault = function () { this.preventDefault.value = !0; }, r.toJSON = function () { return DayPilot.Util.copyProps(r, {}, ["e", "ctrl", "meta", "shift"]); }, "function" == typeof l.onEventClick && (l.onEventClick(r), r.preventDefault.value) || "function" == typeof l.onEventClicked && l.onEventClicked(r);
2773
+ r.e = n, r.control = s, r.div = e, r.originalEvent = t, r.ctrl = a, r.meta = i, r.shift = t.shiftKey, r.preventDefault = function () { this.preventDefault.value = !0; }, r.toJSON = function () { return DayPilot.Util.copyProps(r, {}, ["e", "ctrl", "meta", "shift"]); }, "function" == typeof s.onEventClick && (s.onEventClick(r), r.preventDefault.value) || "function" == typeof s.onEventClicked && s.onEventClicked(r);
2770
2774
  }
2771
- } }, this.ya = function (e) { var t = {}; if (t.e = e, t.preventDefault = function () { this.preventDefault.value = !0; }, t.control = l, t.toJSON = function () { return DayPilot.Util.copyProps(t, {}, ["e"]); }, "function" != typeof l.onEventDelete || (l.onEventDelete(t), !t.preventDefault.value)) {
2772
- switch (l.eventDeleteHandling) {
2773
- case "Update": l.events.remove(e);
2775
+ } }, this.ya = function (e) { var t = {}; if (t.e = e, t.preventDefault = function () { this.preventDefault.value = !0; }, t.control = s, t.toJSON = function () { return DayPilot.Util.copyProps(t, {}, ["e"]); }, "function" != typeof s.onEventDelete || (s.onEventDelete(t), !t.preventDefault.value)) {
2776
+ switch (s.eventDeleteHandling) {
2777
+ case "Update": s.events.remove(e);
2774
2778
  }
2775
- "function" == typeof l.onEventDeleted && l.onEventDeleted(t);
2779
+ "function" == typeof s.onEventDeleted && s.onEventDeleted(t);
2776
2780
  } }, this.getScrollX = function () { return this.nav.scroll.scrollLeft; }, this.getScrollY = function () { return this.nav.scroll.scrollTop; }, this.K = function (e, t, n, a) { function i() { if (!r.preventDefault.value) {
2777
- switch (r.loaded = {}, t = r.newStart, n = r.newEnd, l.eventResizeHandling) {
2778
- case "Update": l.Te(r);
2781
+ switch (r.loaded = {}, t = r.newStart, n = r.newEnd, s.eventResizeHandling) {
2782
+ case "Update": s.Se(r);
2779
2783
  }
2780
- "function" == typeof l.onEventResized && l.onEventResized(r);
2784
+ "function" == typeof s.onEventResized && s.onEventResized(r);
2781
2785
  } } if ("Disabled" !== this.eventResizeHandling) {
2782
- n = l.Se(n);
2786
+ n = s.Re(n);
2783
2787
  var r = {};
2784
- r.e = e, r.async = !1, r.loaded = function () { i(); }, r.newStart = t, r.newEnd = n, r.what = a, r.preventDefault = function () { this.preventDefault.value = !0; }, r.control = l, r.toJSON = function () { return DayPilot.Util.copyProps(r, {}, ["e", "async", "newStart", "newEnd"]); }, "function" == typeof l.onEventResize && l.onEventResize(r), r.async || i();
2785
- } }, this.rb = function (e) { e = e || {}, clearTimeout(l.Ue), l.timeHeader = null, l.cellProperties = {}, l.Ee(), l.Ve(), l.events.We(), l.R.Ld(), l.clearSelection(), l.ha(), l.Xe(), l.Ye(), l.sb(), l.Ze(), l.$e(), l._e(), l.ia(), l.Z(), l.af(), l.bf = {}, l.cf(), l.ma(), l.df(), e.immediateEvents ? l.na() : setTimeout(function () { l.na(); }, 100), this.visible ? l.be !== l.visible && this.show() : this.hide(), this.be = this.visible, this.oe(), l.ef(), this.ff(); }, this.ff = function () { if ("function" == typeof l.onAfterUpdate) {
2788
+ r.e = e, r.async = !1, r.loaded = function () { i(); }, r.newStart = t, r.newEnd = n, r.what = a, r.preventDefault = function () { this.preventDefault.value = !0; }, r.control = s, r.toJSON = function () { return DayPilot.Util.copyProps(r, {}, ["e", "async", "newStart", "newEnd"]); }, "function" == typeof s.onEventResize && s.onEventResize(r), r.async || i();
2789
+ } }, this.qb = function (e) { e = e || {}, clearTimeout(s.Te), s.timeHeader = null, s.cellProperties = {}, s.De(), s.Ue(), s.events.Ve(), s.R.Kd(), s.clearSelection(), s.ha(), s.We(), s.Xe(), s.rb(), s.Ye(), s.Ze(), s.$e(), s.ia(), s.Z(), s._e(), s.af = {}, s.bf(), s.ma(), s.cf(), e.immediateEvents ? s.na() : setTimeout(function () { s.na(); }, 100), this.visible ? s.ae !== s.visible && this.show() : this.hide(), this.ae = this.visible, this.ne(), s.df(), this.ef(); }, this.ef = function () { if ("function" == typeof s.onAfterUpdate) {
2786
2790
  var e = {};
2787
- l.onAfterUpdate(e);
2788
- } }, this.update = function (e) { if (!l.Ma)
2789
- throw new DayPilot.Exception("You are trying to update a DayPilot.Scheduler object that hasn't been initialized."); if (l.Q)
2790
- throw new DayPilot.Exception("You are trying to update a DayPilot.Scheduler object that has been disposed already. Calling .dispose() destroys the object and makes it unusable."); h.request(e); }, h.timeout = null, h.options = null, h.enabled = !1, h.request = function (e) { h.enabled ? (clearTimeout(h.timeout), h.gf(e), h.timeout = setTimeout(h.doit)) : (h.gf(e), h.doit()); }, h.gf = function (e) { if (e) {
2791
- h.options || (h.options = {});
2791
+ s.onAfterUpdate(e);
2792
+ } }, this.update = function (e) { if (!s.La)
2793
+ throw new DayPilot.Exception("You are trying to update a DayPilot.Scheduler object that hasn't been initialized."); if (s.Q)
2794
+ throw new DayPilot.Exception("You are trying to update a DayPilot.Scheduler object that has been disposed already. Calling .dispose() destroys the object and makes it unusable."); u.request(e); }, u.timeout = null, u.options = null, u.enabled = !1, u.request = function (e) { u.enabled ? (clearTimeout(u.timeout), u.ff(e), u.timeout = setTimeout(u.doit)) : (u.ff(e), u.doit()); }, u.ff = function (e) { if (e) {
2795
+ u.options || (u.options = {});
2792
2796
  for (var t in e)
2793
- h.options[t] = e[t];
2794
- } }, h.doit = function () { var e = h.options; return h.options = null, l.Ma ? (l.tb(e), l.rb({ "immediateEvents": !0 }), void l.wb()) : void l.tb(e); }, this.hf = function (e) { e.forEach(function (e) { l.if(e.index); }); }, this.jf = function (e) { return e && 0 !== e.length ? e[0].isRow ? e : e.map(function (e) { return l.rowlist[e]; }) : []; }, this.kf = function (e, t, n) { e = DayPilot.ua(e), e = l.jf(e), l.hf(e), this.lf ? (this.Xe(), this.$e(), this.af(), e.forEach(function (e) { l.mf(e.index); }), e.forEach(function (e) { l.nf(e.index); }), this.df(), this.of()) : (e.forEach(function (e) { t || l.mf(e.index), l.nf(e.index); }), e.forEach(function (e) { l.pf(e.index); }), l.df()), l.pe(), n && n(), this.cf(); }, this.Se = function (e) { return "DateTime" === l.eventEndSpec ? e : e.getDatePart().ticks === e.ticks ? e.addDays(-1) : e.getDatePart(); }, this.qf = function (e) { return "DateTime" === l.eventEndSpec ? e : e.getDatePart().addDays(1); }, this.rf = function (e) { return "DateTime" === l.eventEndSpec ? e : e.getDatePart(); }, this.M = function (e, t, n, a, i) {
2795
- if (l.sf = null, "Disabled" !== l.eventMoveHandling) {
2796
- n = l.Se(n);
2797
+ u.options[t] = e[t];
2798
+ } }, u.doit = function () { var e = u.options; return u.options = null, s.La ? (s.sb(e), s.qb({ "immediateEvents": !0 }), void s.vb()) : void s.sb(e); }, this.gf = function (e) { e.forEach(function (e) { s.hf(e.index); }); }, this.if = function (e) { return e && 0 !== e.length ? e[0].isRow ? e : e.map(function (e) { return s.rowlist[e]; }) : []; }, this.jf = function (e, t, n) { e = DayPilot.ua(e), e = s.if(e), s.gf(e), this.kf ? (this.We(), this.Ze(), this._e(), e.forEach(function (e) { s.lf(e.index); }), e.forEach(function (e) { s.mf(e.index); }), this.cf(), this.nf()) : (e.forEach(function (e) { t || s.lf(e.index), s.mf(e.index); }), e.forEach(function (e) { s.of(e.index); }), s.cf()), s.oe(), n && n(), this.bf(); }, this.Re = function (e) { return "DateTime" === s.eventEndSpec ? e : e.getDatePart().ticks === e.ticks ? e.addDays(-1) : e.getDatePart(); }, this.pf = function (e) { return "DateTime" === s.eventEndSpec ? e : e.getDatePart().addDays(1); }, this.qf = function (e) { return "DateTime" === s.eventEndSpec ? e : e.getDatePart(); }, this.M = function (e, t, n, a, i) {
2799
+ if (s.rf = null, "Disabled" !== s.eventMoveHandling) {
2800
+ n = s.Re(n);
2797
2801
  var r = {};
2798
- r.e = e, r.newStart = t, r.newEnd = n, r.newResource = a, r.ctrl = !1, r.meta = !1, r.shift = !1, i && (r.shift = i.shiftKey, r.ctrl = i.ctrlKey, r.meta = i.metaKey), r.control = l, r.areaData = DayPilot.Global.movingAreaData, r.toJSON = function () { return DayPilot.Util.copyProps(r, {}, ["e", "newStart", "newEnd", "newResource", "ctrl", "meta", "shift"]); }, r.preventDefault = function () { this.preventDefault.value = !0; };
2799
- var o = function () {
2800
- if (r.loaded = function () { }, r.preventDefault.value)
2801
- return void l.tf();
2802
- switch (t = r.newStart, n = r.newEnd, l.eventMoveHandling) {
2803
- case "Update": l.Te(r);
2804
- }
2805
- l.tf(), "function" == typeof l.onEventMoved && l.onEventMoved(r);
2806
- };
2807
- r.async = !1, r.loaded = function () { o(); }, "function" == typeof l.onEventMove && l.onEventMove(r), r.async || o();
2802
+ r.e = e, r.newStart = t, r.newEnd = n, r.newResource = a, r.ctrl = !1, r.meta = !1, r.shift = !1, i && (r.shift = i.shiftKey, r.ctrl = i.ctrlKey, r.meta = i.metaKey), r.control = s, r.areaData = DayPilot.Global.movingAreaData, r.toJSON = function () { return DayPilot.Util.copyProps(r, {}, ["e", "newStart", "newEnd", "newResource", "ctrl", "meta", "shift"]); }, r.preventDefault = function () { this.preventDefault.value = !0; };
2803
+ var o = function () { if (r.loaded = function () { }, r.preventDefault.value)
2804
+ return void s.sf(); switch (t = r.newStart, n = r.newEnd, s.eventMoveHandling) {
2805
+ case "Update": s.Se(r);
2806
+ } s.sf(), "function" == typeof s.onEventMoved && s.onEventMoved(r); };
2807
+ r.async = !1, r.loaded = function () { o(); }, "function" == typeof s.onEventMove && s.onEventMove(r),
2808
+ r.async || o();
2808
2809
  }
2809
- }, this.Te = function (e) { var t = e.e, n = e.newStart, a = e.newEnd, i = e.newResource; t.start(n), t.end(a), t.resource(i), l.events.update(t), l.events.uf(); }, this.vf = function (e) { if (e)
2810
+ }, this.Se = function (e) { var t = e.e, n = e.newStart, a = e.newEnd, i = e.newResource; t.start(n), t.end(a), t.resource(i), s.events.update(t), s.events.tf(); }, this.uf = function (e) { if (e)
2810
2811
  if (e.args)
2811
- l.O(e.args.start, e.args.end, e.args.resource);
2812
+ s.O(e.args.start, e.args.end, e.args.resource);
2812
2813
  else {
2813
- var t = l.wf(e);
2814
+ var t = s.vf(e);
2814
2815
  if (!t)
2815
2816
  return;
2816
- l.O(t.start, t.end, t.resource);
2817
- } }, this.O = function (e, t, n) { if ("Disabled" !== l.timeRangeSelectedHandling) {
2817
+ s.O(t.start, t.end, t.resource);
2818
+ } }, this.O = function (e, t, n) { if ("Disabled" !== s.timeRangeSelectedHandling) {
2818
2819
  var a = t;
2819
- t = l.Se(a);
2820
+ t = s.Re(a);
2820
2821
  var i = {};
2821
- if (i.control = l, i.start = e, i.end = t, i.resource = n, i.preventDefault = function () { this.preventDefault.value = !0; }, i.toJSON = function () { return DayPilot.Util.copyProps(i, {}, ["start", "end", "resource"]); }, "function" == typeof l.onTimeRangeSelect) {
2822
- if (l.onTimeRangeSelect(i), i.preventDefault.value)
2822
+ if (i.control = s, i.start = e, i.end = t, i.resource = n, i.preventDefault = function () { this.preventDefault.value = !0; }, i.toJSON = function () { return DayPilot.Util.copyProps(i, {}, ["start", "end", "resource"]); }, "function" == typeof s.onTimeRangeSelect) {
2823
+ if (s.onTimeRangeSelect(i), i.preventDefault.value)
2823
2824
  return;
2824
2825
  e = i.start, t = i.end;
2825
2826
  }
2826
- t = l.qf(t), l.xf(l.yf, e, t), l.zf(l.yf), "function" == typeof l.onTimeRangeSelected && l.onTimeRangeSelected(i);
2827
- } }, this.xf = function (e, t, n) { if (e) {
2827
+ t = s.pf(t), s.wf(s.xf, e, t), s.yf(s.xf), "function" == typeof s.onTimeRangeSelected && s.onTimeRangeSelected(i);
2828
+ } }, this.wf = function (e, t, n) { if (e) {
2828
2829
  var a, i = n;
2829
- t.getTime() < l.startDate.getTime() ? (e.start.x = 0, e.start.time = l.startDate.getTime()) : (a = l.Le(t), e.start.x = a.i, e.start.time = t);
2830
- var r = l.startDate.addDays(l.days);
2831
- i.getTime() > r.getTime() ? (e.end.x = l.Af(), e.end.time = r.getTime()) : (a = l.Le(i.addMilliseconds(-1)), e.end.x = a.i, e.end.time = n);
2832
- } }, this.Bf = function (e, t) { l.Cf(e, t); }, this.Cf = function (e, t) { var n = {}; n.resource = e, n.row = e, n.ctrl = t.ctrlKey, n.shift = t.shiftKey, n.meta = t.metaKey, n.originalEvent = t, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof l.onRowClick && (l.onRowClick(n), n.preventDefault.value) || "function" == typeof l.onRowClicked && l.onRowClicked(n); }, this.Df = function (e) { var t = {}; t.header = e, t.control = l, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof l.onTimeHeaderClick && (l.onTimeHeaderClick(t), t.preventDefault.value) || "function" == typeof l.onTimeHeaderClicked && l.onTimeHeaderClicked(t); }, this.getViewport = function () { var e = this.nav.scroll.scrollLeft, t = this.nav.scroll.scrollTop, n = {}, a = l.Ef(e, t), i = l.Ff(a), r = l.Je(a.start.x), o = l.Je(a.end.x); return n.start = l.getDate(e, !0), n.end = l.getDate(e + l.nav.scroll.clientWidth, !0, !0), n.resources = i, r && (n.topLeft = { "start": r.start, "end": r.end, x: a.start.x, y: a.start.y, "resource": i[0] }), o && (n.bottomRight = { "start": o.start, "end": o.end, x: a.end.x, y: a.end.y, "resource": i[i.length - 1] }), n.rows = function () { return n.resources.map(function (e) { return l.rows.find(e); }); }, n.events = function () { var e = []; return n.rows().forEach(function (t) { e = e.concat(t.events.forRange(n.start, n.end)); }), e; }, n; }, this.Ef = function (e, t) { var n = {}; n.start = {}, n.end = {}; var a = l.Ie(e), i = l.Ie(e + l.nav.scroll.clientWidth); a && (n.start.x = a.x), i && (n.end.x = i.x); var r = t, o = t + l.nav.scroll.clientHeight; n.start.y = l.Gf(r).i, n.end.y = l.Gf(o).i, n.start.x = DayPilot.Util.atLeast(n.start.x, 0); var s = l.Af(); return n.end.x >= s && (n.end.x = s - 1), n; }, this.Ff = function (e) { e || (e = this.Ef(this.nav.scroll.scrollLeft, this.nav.scroll.scrollTop)); var t = []; t.ignoreToJSON = !0; for (var n = e.start.y; n <= e.end.y; n++) {
2833
- var a = l.rowlist[n];
2830
+ t.getTime() < s.startDate.getTime() ? (e.start.x = 0, e.start.time = s.startDate.getTime()) : (a = s.Ke(t), e.start.x = a.i, e.start.time = t);
2831
+ var r = s.startDate.addDays(s.days);
2832
+ i.getTime() > r.getTime() ? (e.end.x = s.zf(), e.end.time = r.getTime()) : (a = s.Ke(i.addMilliseconds(-1)), e.end.x = a.i, e.end.time = n);
2833
+ } }, this.Af = function (e, t) { s.Bf(e, t); }, this.Bf = function (e, t) { var n = {}; n.resource = e, n.row = e, n.ctrl = t.ctrlKey, n.shift = t.shiftKey, n.meta = t.metaKey, n.originalEvent = t, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onRowClick && (s.onRowClick(n), n.preventDefault.value) || "function" == typeof s.onRowClicked && s.onRowClicked(n); }, this.Cf = function (e) { var t = {}; t.header = e, t.control = s, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onTimeHeaderClick && (s.onTimeHeaderClick(t), t.preventDefault.value) || "function" == typeof s.onTimeHeaderClicked && s.onTimeHeaderClicked(t); }, this.getViewport = function () { var e = this.nav.scroll.scrollLeft, t = this.nav.scroll.scrollTop, n = {}, a = s.Df(e, t), i = s.Ef(a), r = s.Ie(a.start.x), o = s.Ie(a.end.x); return n.start = s.getDate(e, !0), n.end = s.getDate(e + s.nav.scroll.clientWidth, !0, !0), n.resources = i, r && (n.topLeft = { "start": r.start, "end": r.end, x: a.start.x, y: a.start.y, "resource": i[0] }), o && (n.bottomRight = { "start": o.start, "end": o.end, x: a.end.x, y: a.end.y, "resource": i[i.length - 1] }), n.rows = function () { return n.resources.map(function (e) { return s.rows.find(e); }); }, n.events = function () { var e = []; return n.rows().forEach(function (t) { e = e.concat(t.events.forRange(n.start, n.end)); }), e; }, n; }, this.Df = function (e, t) { var n = {}; n.start = {}, n.end = {}; var a = s.He(e), i = s.He(e + s.nav.scroll.clientWidth); a && (n.start.x = a.x), i && (n.end.x = i.x); var r = t, o = t + s.nav.scroll.clientHeight; n.start.y = s.Ff(r).i, n.end.y = s.Ff(o).i, n.start.x = DayPilot.Util.atLeast(n.start.x, 0); var l = s.zf(); return n.end.x >= l && (n.end.x = l - 1), n; }, this.Ef = function (e) { e || (e = this.Df(this.nav.scroll.scrollLeft, this.nav.scroll.scrollTop)); var t = []; t.ignoreToJSON = !0; for (var n = e.start.y; n <= e.end.y; n++) {
2834
+ var a = s.rowlist[n];
2834
2835
  a && t.push(a.id);
2835
- } return t; }, this.L = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.sb = function () { l.nav.top.className !== l.L("_main") && (l.nav.top.className = l.L("_main"), l.nav.dh1.className = l.L("_divider_horizontal"), l.nav.dh2.className = l.L("_divider_horizontal"), l.divResScroll.className = l.L("_rowheader_scroll"), l.nav.divider.className = l.L("_divider") + " " + l.L("_splitter"), l.nav.scroll.className = l.L("_scrollable"), l.he.className = l.L("_matrix") + " " + l.L("_grid_main")); }, this.ba = function () { this.nav.top.dispose = this.dispose; }, this.dispose = function () { var e = l; if (e.Ma && !e.Q) {
2836
+ } return t; }, this.L = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.rb = function () { s.nav.top.className !== s.L("_main") && (s.nav.top.className = s.L("_main"), s.nav.dh1.className = s.L("_divider_horizontal"), s.nav.dh2.className = s.L("_divider_horizontal"), s.divResScroll.className = s.L("_rowheader_scroll"), s.nav.divider.className = s.L("_divider") + " " + s.L("_splitter"), s.nav.scroll.className = s.L("_scrollable"), s.ge.className = s.L("_matrix") + " " + s.L("_grid_main")); }, this.ba = function () { this.nav.top.dispose = this.dispose; }, this.dispose = function () { var e = s; if (e.La && !e.Q) {
2836
2837
  e.Q = !0;
2837
- for (var t in e.Hf) {
2838
- var a = e.Hf[t];
2838
+ for (var n in e.Gf) {
2839
+ var a = e.Gf[n];
2839
2840
  DayPilot.isArray(a) ? a.forEach(function (e) { clearTimeout(e); }) : clearTimeout(a);
2840
2841
  }
2841
- e.Z(), e.divCells = null, e.divCorner = null, e.divEvents = null, e.divHeader && (e.divHeader.rows = null), e.divHeader = null, e.divLines = null, e.divNorth = null, e.divRange = null, e.divResScroll = null, e.divStretch = null, e.divTimeScroll = null, e.De = null, e.he.calendar = null, e.he = null, e.nav.top.onmousemove = null, e.nav.top.onmouseout = null, e.nav.top.dispose = null, e.nav.top.ontouchstart = null, e.nav.top.ontouchmove = null, e.nav.top.ontouchend = null, e.nav.top.removeAttribute("style"), e.nav.top.removeAttribute("class"), e.nav.top.innerHTML = "", e.nav.top.dp = null, e.nav.top = null, e.nav.scroll.onscroll = null, e.nav.scroll.root = null, e.nav.scroll = null, n.qc(e), u = null;
2842
- } }, this.disposed = function () { return l.Q; }, this.ca = function (e) { var t = null; t = e.nodeType ? e.event : e; var n = l.eventBorderRadius; "number" == typeof n && (n += "px"); var a = l.If(t), i = l.rowlist, r = l.eventHeight, s = t.part && t.part.top && i[t.part.dayIndex] ? t.part.top + i[t.part.dayIndex].top : a.top, d = a.left, c = a.width, u = document.createElement("div"); u.style.position = "absolute", u.style.width = c + "px", u.style.height = r + "px", u.style.left = d + "px", u.style.top = s + "px", u.style.overflow = "hidden"; var h = o(); return u.appendChild(h), u.className = this.L("_shadow"), h.className = this.L("_shadow_inner"), n && (u.style.borderRadius = n, h.style.borderRadius = n), l.divShadow.appendChild(u), u.calendar = l, u; }, this.Gf = function (e) { for (var t, n = l.rowlist, a = {}, i = 0, r = 0, o = n.length, s = 0; s < o; s++) {
2843
- var d = n[s];
2844
- if (r += d.height, i = r - d.height, t = d, a.top = i, a.bottom = r, a.i = s, a.element = t, e < r)
2842
+ e.Z(), e.divCells = null, e.divCorner = null, e.divEvents = null, e.divHeader && (e.divHeader.rows = null), e.divHeader = null, e.divLines = null, e.divNorth = null, e.divRange = null, e.divResScroll = null, e.divStretch = null, e.divTimeScroll = null, e.Ce = null, e.ge.calendar = null, e.ge = null, e.nav.top.onmousemove = null, e.nav.top.onmouseout = null, e.nav.top.dispose = null, e.nav.top.ontouchstart = null, e.nav.top.ontouchmove = null, e.nav.top.ontouchend = null, e.nav.top.removeAttribute("style"), e.nav.top.removeAttribute("class"), e.nav.top.innerHTML = "", e.nav.top.dp = null, e.nav.top = null, e.nav.scroll.onscroll = null, e.nav.scroll.root = null, e.nav.scroll = null, t.pc(e), c = null;
2843
+ } }, this.disposed = function () { return s.Q; }, this.ca = function (e) { var t = null; t = e.nodeType ? e.event : e; var n = s.eventBorderRadius; "number" == typeof n && (n += "px"); var a = s.Hf(t), i = s.rowlist, o = s.eventHeight, l = t.part && t.part.top && i[t.part.dayIndex] ? t.part.top + i[t.part.dayIndex].top : a.top, d = a.left, c = a.width, u = document.createElement("div"); u.style.position = "absolute", u.style.width = c + "px", u.style.height = o + "px", u.style.left = d + "px", u.style.top = l + "px", u.style.overflow = "hidden"; var h = r(); return u.appendChild(h), u.className = this.L("_shadow"), h.className = this.L("_shadow_inner"), n && (u.style.borderRadius = n, h.style.borderRadius = n), s.divShadow.appendChild(u), u.calendar = s, u; }, this.Ff = function (e) { for (var t, n = s.rowlist, a = {}, i = 0, r = 0, o = n.length, l = 0; l < o; l++) {
2844
+ var d = n[l];
2845
+ if (r += d.height, i = r - d.height, t = d, a.top = i, a.bottom = r, a.i = l, a.element = t, e < r)
2845
2846
  break;
2846
- } return a; }, this.Jf = function (e) { if (e > this.rowlist.length - 1)
2847
+ } return a; }, this.If = function (e) { if (e > this.rowlist.length - 1)
2847
2848
  throw new DayPilot.Exception("Row index too high"); for (var t = 0, n = 0; n <= e; n++)
2848
- t += this.rowlist[n].height; var a = this.rowlist[e]; return { top: t - a.height, height: a.height, bottom: t, i: e, data: a }; }, this.events.find = function (e) { if (!l.events.list || "undefined" == typeof l.events.list.length)
2849
+ t += this.rowlist[n].height; var a = this.rowlist[e]; return { top: t - a.height, height: a.height, bottom: t, i: e, data: a }; }, this.events.find = function (e) { if (!s.events.list || "undefined" == typeof s.events.list.length)
2849
2850
  return null; if ("function" == typeof e)
2850
- return l.Kf(e); for (var t = l.events.list.length, n = 0; n < t; n++)
2851
- if (l.events.list[n].id === e)
2852
- return new DayPilot.Event(l.events.list[n], l); return null; }, this.events.findAll = function (e) { if ("function" == typeof e) {
2853
- for (var t = l.events.list.length, n = [], a = 0; a < t; a++) {
2854
- var i = new DayPilot.Event(l.events.list[a], l);
2851
+ return s.Jf(e); for (var t = s.events.list.length, n = 0; n < t; n++)
2852
+ if (s.events.list[n].id === e)
2853
+ return new DayPilot.Event(s.events.list[n], s); return null; }, this.events.findAll = function (e) { if ("function" == typeof e) {
2854
+ for (var t = s.events.list.length, n = [], a = 0; a < t; a++) {
2855
+ var i = new DayPilot.Event(s.events.list[a], s);
2855
2856
  e(i) && n.push(i);
2856
2857
  }
2857
2858
  return n;
2858
2859
  } if ("object" == typeof e)
2859
- return l.events.findAll(function (t) { for (var n in e)
2860
+ return s.events.findAll(function (t) { for (var n in e)
2860
2861
  if (e[n] !== t.data[n])
2861
- return !1; return !0; }); throw new DayPilot.Exception("function or object argument expected"); }, this.Kf = function (e) { for (var t = l.events.list.length, n = 0; n < t; n++) {
2862
- var a = new DayPilot.Event(l.events.list[n], l);
2862
+ return !1; return !0; }); throw new DayPilot.Exception("function or object argument expected"); }, this.Jf = function (e) { for (var t = s.events.list.length, n = 0; n < t; n++) {
2863
+ var a = new DayPilot.Event(s.events.list[n], s);
2863
2864
  if (e(a))
2864
2865
  return a;
2865
- } return null; }, this.events.focus = function (e) { var t = l.Lf(e); null === t || void 0 === t ? void 0 : t.focus(); }, this.events.scrollIntoView = function (e) { if (l.Lf(e)) {
2866
- var t = e.start(), n = l.getViewport();
2867
- !DayPilot.Util.overlaps(n.start, n.end, e.start(), e.end()) && DayPilot.Util.overlaps(l.sa(), l.Mf(), e.start(), e.end()) && l.scrollTo(t, "fast", "middle");
2866
+ } return null; }, this.events.focus = function (e) { var t = s.Kf(e); null === t || void 0 === t ? void 0 : t.focus(); }, this.events.scrollIntoView = function (e) { if (s.Kf(e)) {
2867
+ var t = e.start(), n = s.getViewport();
2868
+ !DayPilot.Util.overlaps(n.start, n.end, e.start(), e.end()) && DayPilot.Util.overlaps(s.sa(), s.Lf(), e.start(), e.end()) && s.scrollTo(t, "fast", "middle");
2868
2869
  var a = e.resource();
2869
- l.getViewport().resources.indexOf(a) === -1 && l.scrollToResource(a);
2870
- } }, this.events.all = function () { for (var e = [], t = 0; t < l.events.list.length; t++) {
2871
- var n = new DayPilot.Event(l.events.list[t], l);
2870
+ s.getViewport().resources.indexOf(a) === -1 && s.scrollToResource(a);
2871
+ } }, this.events.all = function () { for (var e = [], t = 0; t < s.events.list.length; t++) {
2872
+ var n = new DayPilot.Event(s.events.list[t], s);
2872
2873
  e.push(n);
2873
- } return e; }, this.events.forRange = function (e, t) { e = e ? new DayPilot.Date(e) : l.visibleStart(), t = t ? new DayPilot.Date(t) : l.visibleEnd(); for (var n = [], a = 0; a < l.events.list.length; a++) {
2874
- var i = new DayPilot.Event(l.events.list[a], l);
2874
+ } return e; }, this.events.forRange = function (e, t) { e = e ? new DayPilot.Date(e) : s.visibleStart(), t = t ? new DayPilot.Date(t) : s.visibleEnd(); for (var n = [], a = 0; a < s.events.list.length; a++) {
2875
+ var i = new DayPilot.Event(s.events.list[a], s);
2875
2876
  DayPilot.Util.overlaps(i.start(), i.end(), e, t) && n.push(i);
2876
2877
  } return n; }, this.events.load = function (e, t, n) { if (!e)
2877
2878
  throw new DayPilot.Exception("events.load(): 'url' parameter required"); var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof n && n(t); }, i = function (e) { var n, i = e.request; try {
@@ -2884,128 +2885,128 @@ var DayPilot = { Global: {} };
2884
2885
  var o = {};
2885
2886
  if (o.preventDefault = function () { this.preventDefault.value = !0; }, o.data = n, "function" == typeof t && t(o), o.preventDefault.value)
2886
2887
  return;
2887
- l.events.list = o.data, l.Ma && l.update();
2888
- } }; if (l.eventsLoadMethod && "POST" === l.eventsLoadMethod.toUpperCase())
2889
- DayPilot.ajax({ "method": "POST", "contentType": "application/json", "data": { "start": l.visibleStart().toString(), "end": l.visibleEnd().toString() }, "url": e, "success": i, "error": a });
2888
+ s.events.list = o.data, s.La && s.update();
2889
+ } }; if (s.eventsLoadMethod && "POST" === s.eventsLoadMethod.toUpperCase())
2890
+ DayPilot.ajax({ "method": "POST", "contentType": "application/json", "data": { "start": s.visibleStart().toString(), "end": s.visibleEnd().toString() }, "url": e, "success": i, "error": a });
2890
2891
  else {
2891
- var r = e, o = "start=" + l.visibleStart().toString() + "&end=" + l.visibleEnd().toString();
2892
+ var r = e, o = "start=" + s.visibleStart().toString() + "&end=" + s.visibleEnd().toString();
2892
2893
  r += r.indexOf("?") > -1 ? "&" + o : "?" + o, DayPilot.ajax({ "method": "GET", "url": r, "success": i, "error": a });
2893
- } }, this.events.Nf = function (e) { var t = []; return l.rowlist.forEach(function (n) { l.Of(n.index); for (var a = 0; a < n.events.length; a++) {
2894
+ } }, this.events.Mf = function (e) { var t = []; return s.rowlist.forEach(function (n) { s.Nf(n.index); for (var a = 0; a < n.events.length; a++) {
2894
2895
  var i = n.events[a].data;
2895
- if (l.Pf(i, e)) {
2896
+ if (s.Of(i, e)) {
2896
2897
  t.push(n), n.events.splice(a, 1);
2897
2898
  break;
2898
2899
  }
2899
- } }), t; }, this.events.Qf = function (e) { if (!e)
2900
- return null; for (var t = l.rowlist, n = 0; n < t.length; n++) {
2900
+ } }), t; }, this.events.Pf = function (e) { if (!e)
2901
+ return null; for (var t = s.rowlist, n = 0; n < t.length; n++) {
2901
2902
  var a = t[n];
2902
- l.Of(a.index);
2903
+ s.Nf(a.index);
2903
2904
  for (var i = 0; i < a.events.length; i++) {
2904
2905
  var r = a.events[i];
2905
- if (l.Pf(r.data, e))
2906
+ if (s.Of(r.data, e))
2906
2907
  return a.events[i];
2907
2908
  }
2908
- } return null; }, this.events.Rf = function (e) { var t = [], n = l.Sf(), a = DayPilot.indexOf(l.events.list, e); l.zb(a); var i = l.rowlist, r = !1; return i.forEach(function (i) { if (!r) {
2909
- l.Of(i.index);
2910
- var o = l.Tf(e, i);
2911
- o && ("function" == typeof l.onBeforeEventRender && (o.cache = l.yb.events[a]), t.push(i), n || (r = !0));
2912
- } }), t; }, this.Pf = function (e, t) { return DayPilot.Util.isSameEvent(e, t); }, this.events.update = function (e) { if ("object" == typeof e && !(e instanceof DayPilot.Event)) {
2913
- var t = l.events.find(e.id);
2914
- return l.events.remove(t), void l.events.add(e);
2915
- } if (l.events.list.find(function (t) { return l.Pf(t, e.data); })) {
2916
- l.ze.Uf && (l.ze.skip = !0);
2917
- var n = l.events.Nf(e.data);
2918
- e.commit(), n = n.concat(l.events.Rf(e.data)), l.events.Vf(n);
2909
+ } return null; }, this.events.Qf = function (e) { var t = [], n = s.Rf(), a = DayPilot.indexOf(s.events.list, e); s.yb(a); var i = s.rowlist, r = !1; return i.forEach(function (i) { if (!r) {
2910
+ s.Nf(i.index);
2911
+ var o = s.Sf(e, i);
2912
+ o && ("function" == typeof s.onBeforeEventRender && (o.cache = s.xb.events[a]), t.push(i), n || (r = !0));
2913
+ } }), t; }, this.Of = function (e, t) { return DayPilot.Util.isSameEvent(e, t); }, this.events.update = function (e) { if ("object" == typeof e && !(e instanceof DayPilot.Event)) {
2914
+ var t = s.events.find(e.id);
2915
+ return s.events.remove(t), void s.events.add(e);
2916
+ } if (s.events.list.find(function (t) { return s.Of(t, e.data); })) {
2917
+ s.ye.Tf && (s.ye.skip = !0);
2918
+ var n = s.events.Mf(e.data);
2919
+ e.commit(), n = n.concat(s.events.Qf(e.data)), s.events.Uf(n);
2919
2920
  } }, this.events.remove = function (e) { if (e) {
2920
2921
  if ("string" == typeof e || "number" == typeof e) {
2921
- var t = l.events.find(e);
2922
- return void l.events.remove(t);
2922
+ var t = s.events.find(e);
2923
+ return void s.events.remove(t);
2923
2924
  }
2924
- var n = l.Wf(e.data);
2925
- n && l.events.list.splice(n.index, 1), l.ze.Uf && (l.ze.skip = !0);
2926
- var a = l.events.Nf(e.data);
2927
- l.events.Vf(a);
2928
- } }, this.events.add = function (e, t, n) { n = n || {}; var a = n.renderOnly; e instanceof DayPilot.Event || (e = new DayPilot.Event(e)), e.calendar = l, l.events.list || (l.events.list = []); var i = l.Wf(e); if (a) {
2925
+ var n = s.Vf(e.data);
2926
+ n && s.events.list.splice(n.index, 1), s.ye.Tf && (s.ye.skip = !0);
2927
+ var a = s.events.Mf(e.data);
2928
+ s.events.Uf(a);
2929
+ } }, this.events.add = function (e, t, n) { n = n || {}; var a = n.renderOnly; e instanceof DayPilot.Event || (e = new DayPilot.Event(e)), e.calendar = s, s.events.list || (s.events.list = []); var i = s.Vf(e); if (a) {
2929
2930
  if (!i)
2930
2931
  throw new DayPilot.Exception("Unexpected: event not found in list");
2931
2932
  }
2932
2933
  else {
2933
2934
  if (i)
2934
2935
  throw new DayPilot.Exception("The event you are trying to add using DayPilot.Scheduler.events.add() is already loaded. A unique ID is required.");
2935
- i || l.events.list.push(e.data);
2936
- } if (l.Ma) {
2937
- l.ze.Uf && (l.ze.skip = !0);
2938
- var r = l.events.Rf(e.data);
2939
- l.events.Vf(r);
2940
- } }, this.events.Xf = function (e) { var t = e instanceof DayPilot.Event ? e.data : e, n = new DayPilot.Date(t.start), a = new DayPilot.Date(t.end); return !!l.events.list.find(function (e) { if (l.Pf(t, e))
2936
+ i || s.events.list.push(e.data);
2937
+ } if (s.La) {
2938
+ s.ye.Tf && (s.ye.skip = !0);
2939
+ var r = s.events.Qf(e.data);
2940
+ s.events.Uf(r);
2941
+ } }, this.events.Wf = function (e) { var t = e instanceof DayPilot.Event ? e.data : e, n = new DayPilot.Date(t.start), a = new DayPilot.Date(t.end); return !!s.events.list.find(function (e) { if (s.Of(t, e))
2941
2942
  return !1; if (t.resource !== e.resource)
2942
- return !1; var i = new DayPilot.Date(e.start), r = new DayPilot.Date(e.end); return DayPilot.Util.overlaps(n, a, i, r); }); }, this.events.Yf = { "rows": [] }, this.events.Zf = null, this.events.We = function () { clearTimeout(l.events.Zf), l.events.Zf = null, l.events.Yf.rows = []; }, this.events.$f = 0, this.events.Vf = function (e) { var t = l.events.Yf.rows; e.forEach(function (e) { t.push(e); }), l.events.Yf.rows = DayPilot.ua(t); var n = l.events.uf; l.events.Zf || (l.events.Zf = setTimeout(n, l.events.$f)); }, this.events.uf = function () { clearTimeout(l.events.Zf), l.events.Zf = null; var e = l.events.Yf.rows; l.events.Yf.rows = [], l._f(e), l.ag(), l.Ma && (l.lf && l.Xe(), l.ma(), l.kf(e)); }, this.ze = {}, this.ze.enabled = !1, this.ze.skip = !1, this.ze.skipUpdate = function () { return l.ze.skip; }, this.ze.skipped = function () { l.ze.skip = !1; }, this.ze.bg = !1, this.ze.Uf = !1, this.cg = {}, this.cg.reactDOM = null, this.cg.react = null, this.dg = function (e) { var t = l.startDate; if (e.ticks === t.ticks)
2943
+ return !1; var i = new DayPilot.Date(e.start), r = new DayPilot.Date(e.end); return DayPilot.Util.overlaps(n, a, i, r); }); }, this.events.Xf = { "rows": [] }, this.events.Yf = null, this.events.Ve = function () { clearTimeout(s.events.Yf), s.events.Yf = null, s.events.Xf.rows = []; }, this.events.Zf = 0, this.events.Uf = function (e) { var t = s.events.Xf.rows; e.forEach(function (e) { t.push(e); }), s.events.Xf.rows = DayPilot.ua(t); var n = s.events.tf; s.events.Yf || (s.events.Yf = setTimeout(n, s.events.Zf)); }, this.events.tf = function () { clearTimeout(s.events.Yf), s.events.Yf = null; var e = s.events.Xf.rows; s.events.Xf.rows = [], s.$f(e), s._f(), s.La && (s.kf && s.We(), s.ma(), s.jf(e)); }, this.ye = {}, this.ye.enabled = !1, this.ye.skip = !1, this.ye.skipUpdate = function () { return s.ye.skip; }, this.ye.skipped = function () { s.ye.skip = !1; }, this.ye.ag = !1, this.ye.Tf = !1, this.bg = {}, this.bg.reactDOM = null, this.bg.react = null, this.cg = function (e) { var t = s.startDate; if (e.ticks === t.ticks)
2943
2944
  return e; var n = t; if (e.ticks < t.ticks) {
2944
2945
  for (; n.ticks > e.ticks;)
2945
- n = n.addTime(60 * -l.Me() * 1e3);
2946
+ n = n.addTime(60 * -s.Le() * 1e3);
2946
2947
  return n;
2947
- } var a = this.Le(e); if (a.current)
2948
- return a.current.start; throw new DayPilot.Exception("getBoxStart(): time not found"); }, this.If = function (e) { var t = this.Gf(l.coords.y); if ("function" != typeof e.end)
2948
+ } var a = this.Ke(e); if (a.current)
2949
+ return a.current.start; throw new DayPilot.Exception("getBoxStart(): time not found"); }, this.Hf = function (e) { var n = this.Ff(s.coords.y); if ("function" != typeof e.end)
2949
2950
  throw new DayPilot.Exception("e.end function is not defined"); if (!e.end())
2950
- throw new DayPilot.Exception("e.end() returns null"); var a = DayPilot.DateUtil.diff(e.rawend(), e.start()); a = DayPilot.Util.atLeast(a, 1); var i = d.eg(a), r = 0, o = l.coords.x; i && (r = e.start().getTime() - this.dg(e.start()).getTime()); var s = 0; if (n.fg)
2951
+ throw new DayPilot.Exception("e.end() returns null"); var a = DayPilot.DateUtil.diff(e.rawend(), e.start()); a = DayPilot.Util.atLeast(a, 1); var i = l.dg(a), r = 0, o = s.coords.x; i && (r = e.start().getTime() - this.cg(e.start()).getTime()); var d = 0; if (t.eg)
2951
2952
  if (i) {
2952
- var c = e.start(), u = this.dg(c);
2953
- s = n.fg.getTime() - u.getTime();
2954
- var h = 60 * l.Me() * 1e3;
2955
- s = Math.floor(s / h) * h;
2953
+ var c = e.start(), u = this.cg(c);
2954
+ d = t.eg.getTime() - u.getTime();
2955
+ var h = 60 * s.Le() * 1e3;
2956
+ d = Math.floor(d / h) * h;
2956
2957
  }
2957
2958
  else
2958
- s = n.fg.getTime() - e.start().getTime(); var f = this.getDate(o, !0).addTime(-s); n.gg && (f = e.start()); var v = l.snapToGrid; v && (f = this.dg(f)), f = f.addTime(r); var p = f.addTime(a), m = f, g = p, y = this.getPixels(m), b = this.getPixels(g), w = v ? y.boxLeft : y.left, x = v && i ? b.boxRight - w : b.left - w, _ = {}; return _.top = t.top, _.left = w, _.row = t.element, _.rowIndex = t.i, _.width = x, _.start = f, _.end = p, _.relativeY = l.coords.y - t.top, _; }, this.Me = function () { switch (this.scale) {
2959
+ d = t.eg.getTime() - e.start().getTime(); var f = this.getDate(o, !0).addTime(-d); t.fg && (f = e.start()); var v = s.snapToGrid; v && (f = this.cg(f)), f = f.addTime(r); var p = f.addTime(a), m = f, g = p, y = this.getPixels(m), b = this.getPixels(g), w = v ? y.boxLeft : y.left, x = v && i ? b.boxRight - w : b.left - w, _ = {}; return _.top = n.top, _.left = w, _.row = n.element, _.rowIndex = n.i, _.width = x, _.start = f, _.end = p, _.relativeY = s.coords.y - n.top, _; }, this.Le = function () { switch (this.scale) {
2959
2960
  case "CellDuration": return this.cellDuration;
2960
2961
  case "Minute": return 1;
2961
2962
  case "Hour": return 60;
2962
2963
  case "Day": return 1440;
2963
2964
  case "Week": return 10080;
2964
- } throw new DayPilot.Exception("can't guess cellDuration value"); }, this.hg = function (e) { return e.end.ticks - e.start.ticks; }, this.ig = function () { var e = n.jg.width, t = n.jg.left, a = n.kg, i = n.gg.dpBorder, r = null, o = null, s = l.snapToGrid, d = !s; "left" === i ? (r = l.getDate(t, d), o = a.rawend()) : "right" === i && (r = a.start(), o = l.getDate(t + e, d, !0)), n.jg.start = r, n.jg.end = o; }, this.lg = function () { var e = l.coords, t = n.gg.dpBorder, a = n.gg.event, i = a.part.left; "right" === t && (i += a.part.width); var r, o, s = n.gg.event.calendar.cellWidth, d = a.part.width, c = a.part.left, u = 0, h = e.x - i, f = l.snapToGrid; if ("right" === t) {
2965
+ } throw new DayPilot.Exception("can't guess cellDuration value"); }, this.gg = function (e) { return e.end.ticks - e.start.ticks; }, this.hg = function () { var e = t.ig.width, n = t.ig.left, a = t.jg, i = t.fg.dpBorder, r = null, o = null, l = s.snapToGrid, d = !l; "left" === i ? (r = s.getDate(n, d), o = a.rawend()) : "right" === i && (r = a.start(), o = s.getDate(n + e, d, !0)), t.ig.start = r, t.ig.end = o; }, this.kg = function () { var e = s.coords, n = t.fg.dpBorder, a = t.fg.event, i = a.part.left; "right" === n && (i += a.part.width); var r, o, l = t.fg.event.calendar.cellWidth, d = a.part.width, c = a.part.left, u = 0, h = e.x - i, f = s.snapToGrid; if ("right" === n) {
2965
2966
  if (r = c, f) {
2966
- var v = l.Ie(d + c + h).cell, p = l.Ie(c).cell, m = p.left + p.width - c;
2967
+ var v = s.He(d + c + h).cell, p = s.He(c).cell, m = p.left + p.width - c;
2967
2968
  o = v.left + v.width - c, o < m && (o = m);
2968
2969
  }
2969
2970
  else
2970
2971
  o = d + h;
2971
- var g = l.Ae();
2972
- c + o > g && (o = g - c), n.jg.left = c, n.jg.width = o, n.jg.style.left = c + "px", n.jg.style.width = o + "px";
2972
+ var g = s.ze();
2973
+ c + o > g && (o = g - c), t.ig.left = c, t.ig.width = o, t.ig.style.left = c + "px", t.ig.style.width = o + "px";
2973
2974
  }
2974
2975
  else {
2975
- if ("left" !== t)
2976
+ if ("left" !== n)
2976
2977
  throw new DayPilot.Exception("Invalid dpBorder.");
2977
- f ? (h >= d && (h = d), r = Math.floor((c + h + 0) / s) * s, r < u && (r = u)) : r = c + h, o = d - (r - c);
2978
- var y = c + d, b = s;
2979
- f ? "Never" === l.useEventBoxes && (b = d < s ? d : 1) : b = 1, o < b && (o = b, r = y - o), n.jg.left = r, n.jg.width = o, n.jg.style.left = r + "px", n.jg.style.width = o + "px";
2980
- } l.ig(); }, this.mg = function () { if (l.coords && n.ng) {
2981
- var e = n.og, t = this.If(n.ng);
2982
- e.row = t.row, e.style.height = DayPilot.Util.atLeast(t.row.height, 0) + "px", e.style.top = t.top + "px", e.style.left = t.left + "px", e.style.width = t.width + "px", e.start = t.start, e.end = t.end;
2983
- } }, this.pg = function () { return this.rowHeaderWidth; }, this.qg = function () { return this.rg(l.progressiveRowRenderingPreload); }, this.rg = function (e) { e = e || 0; var t = 0, n = l.rowlist.length; if (l.progressiveRowRendering) {
2984
- var a = l.le();
2985
- t = a.yStart, n = a.yEnd + 1, t = DayPilot.Util.atLeast(0, t - e), n = Math.min(l.rowlist.length, n + e);
2986
- } return { "start": t, "end": n }; }, this.Ye = function () { function e() { var e = l.divHeader; e && (e.rows = []); var t = e; t && (t.innerHTML = ""); } this.sg = !0; var t = this.pg(); e(); var n = this.divHeader; if (n.style.width = t + "px", n.style.height = l.ae + "px", l.divHeader = n, l.progressiveRowRendering)
2987
- a();
2978
+ f ? (h >= d && (h = d), r = Math.floor((c + h + 0) / l) * l, r < u && (r = u)) : r = c + h, o = d - (r - c);
2979
+ var y = c + d, b = l;
2980
+ f ? "Never" === s.useEventBoxes && (b = d < l ? d : 1) : b = 1, o < b && (o = b, r = y - o), t.ig.left = r, t.ig.width = o, t.ig.style.left = r + "px", t.ig.style.width = o + "px";
2981
+ } s.hg(); }, this.lg = function () { if (s.coords && t.mg) {
2982
+ var e = t.ng, n = this.Hf(t.mg);
2983
+ e.row = n.row, e.style.height = DayPilot.Util.atLeast(n.row.height, 0) + "px", e.style.top = n.top + "px", e.style.left = n.left + "px", e.style.width = n.width + "px", e.start = n.start, e.end = n.end;
2984
+ } }, this.og = function () { return this.rowHeaderWidth; }, this.pg = function () { return this.qg(s.progressiveRowRenderingPreload); }, this.qg = function (e) { e = e || 0; var t = 0, n = s.rowlist.length; if (s.progressiveRowRendering) {
2985
+ var a = s.ke();
2986
+ t = a.yStart, n = a.yEnd + 1, t = DayPilot.Util.atLeast(0, t - e), n = Math.min(s.rowlist.length, n + e);
2987
+ } return { "start": t, "end": n }; }, this.Xe = function () { function e() { var e = s.divHeader; e && (e.rows = []); var t = e; t && (t.innerHTML = ""); } this.rg = !0; var t = this.og(); e(); var a = this.divHeader; if (a.style.width = t + "px", a.style.height = s._d + "px", s.divHeader = a, s.progressiveRowRendering)
2988
+ n();
2988
2989
  else
2989
2990
  for (var i = this.rowlist.length, r = 0; r < i; r++)
2990
- l.tg(r); l.ug(), this.divResScroll.appendChild(n); }, this.vg = function () { if (l.progressiveRowRendering)
2991
- for (var e = this.qg(), t = 0; t < l.rowlist.length; t++)
2992
- e.start <= t && t < e.end ? l.tg(t) : l.wg(t); }, this.ug = function () { if (!l.R.xg()) {
2993
- var e = l.divHeader, t = o();
2994
- t.style.position = "absolute", e.appendChild(t), l.nav.resScrollSpace = t;
2995
- var n = o();
2991
+ s.sg(r); s.tg(), this.divResScroll.appendChild(a); }, this.ug = function () { if (s.progressiveRowRendering)
2992
+ for (var e = this.pg(), t = 0; t < s.rowlist.length; t++)
2993
+ e.start <= t && t < e.end ? s.sg(t) : s.vg(t); }, this.tg = function () { if (!s.R.wg()) {
2994
+ var e = s.divHeader, t = r();
2995
+ t.style.position = "absolute", e.appendChild(t), s.nav.resScrollSpace = t;
2996
+ var n = r();
2996
2997
  n.style.position = "relative", n.style.height = "100%", n.className = this.L("_rowheader"), t.appendChild(n);
2997
- var a = this.pg();
2998
- t.style.width = a + "px", t.style.top = this.ae + "px";
2999
- } }, this.wg = function (e) { var t = l.divHeader.rows[e]; t && (DayPilot.de(t), l.divHeader.rows[e] = null); }, this.if = function (e) { this.wg(e), this.tg(e); }, this.tg = function (e) { var t = l.rowlist, n = l.divHeader; if (n && !n.rows[e]) {
3000
- var a = this.pg(), i = t[e];
2998
+ var a = this.og();
2999
+ t.style.width = a + "px", t.style.top = this._d + "px";
3000
+ } }, this.vg = function (e) { var t = s.divHeader.rows[e]; t && (DayPilot.de(t), s.divHeader.rows[e] = null); }, this.hf = function (e) { this.vg(e), this.sg(e); }, this.sg = function (e) { var t = s.rowlist, n = s.divHeader; if (n && !n.rows[e]) {
3001
+ var a = this.og(), i = t[e];
3001
3002
  if (i) {
3002
- var r = this.yg(i), s = o();
3003
- s.style.position = "absolute", s.style.top = i.top + "px", n.rows[e] = s, s.row = i, s.index = e;
3004
- var d = r.row, c = this.rowHeaderWidth;
3005
- s.style.width = c + "px", s.style.border = "0px none";
3003
+ var o = this.xg(i), l = r();
3004
+ l.style.position = "absolute", l.style.top = i.top + "px", n.rows[e] = l, l.row = i, l.index = e;
3005
+ var d = o.row, c = this.rowHeaderWidth;
3006
+ l.style.width = c + "px", l.style.border = "0px none";
3006
3007
  var u = d.toolTip || d.toolTip;
3007
- u && (s.title = u), "undefined" != typeof d.ariaLabel ? s.setAttribute("aria-label", d.ariaLabel) : s.setAttribute("aria-label", d.text || ""), s.onclick = l.zg;
3008
- var h = o();
3008
+ u && (l.title = u), "undefined" != typeof d.ariaLabel ? l.setAttribute("aria-label", d.ariaLabel) : l.setAttribute("aria-label", d.text || ""), l.onclick = s.yg;
3009
+ var h = r();
3009
3010
  h.style.width = c + "px", h.className = this.L("_rowheader"), d.cssClass && DayPilot.Util.addClass(h, d.cssClass), d.cssClass && DayPilot.Util.addClass(h, d.cssClass);
3010
3011
  var f = d.backColor || d.backColor;
3011
3012
  f && (h.style.background = f);
@@ -3013,7 +3014,7 @@ var DayPilot = { Global: {} };
3013
3014
  v && (h.style.color = v);
3014
3015
  var p = d.horizontalAlignment || d.horizontalAlignment;
3015
3016
  p && (h.style.textAlign = p), h.style.height = i.height + "px", h.style.overflow = "hidden", h.style.position = "relative";
3016
- var m = o();
3017
+ var m = r();
3017
3018
  switch (m.className = this.L("_rowheader_inner"), p) {
3018
3019
  case "right":
3019
3020
  m.style.justifyContent = "flex-end";
@@ -3024,12 +3025,12 @@ var DayPilot = { Global: {} };
3024
3025
  case "center": m.style.justifyContent = "center";
3025
3026
  }
3026
3027
  h.appendChild(m);
3027
- var g = d.areas || [], y = l.Ag(i);
3028
+ var g = d.areas || [], y = s.zg(i);
3028
3029
  DayPilot.Areas.attach(h, y, { areas: g });
3029
- var b = o();
3030
+ var b = r();
3030
3031
  b.style.position = "absolute", b.style.bottom = "0px", b.style.width = "100%", b.style.height = "0px", b.style.boxSizing = "content-box", b.style.borderBottom = "1px solid transparent", b.className = this.L("_resourcedivider"), h.appendChild(b);
3031
- var w = o(), x = o();
3032
- x.innerHTML = l._a(d.text, d.html), x.className = l.L("_rowheader_inner_text"), s.textDiv = x, s.cellDiv = h, w.appendChild(x), m.appendChild(w);
3032
+ var w = r(), x = r();
3033
+ x.innerHTML = s.$a(d.text, d.html), x.className = s.L("_rowheader_inner_text"), l.textDiv = x, l.cellDiv = h, w.appendChild(x), m.appendChild(w);
3033
3034
  var _ = d.verticalAlignment || d.verticalAlignment;
3034
3035
  if (_)
3035
3036
  switch (m.style.display = "flex", _) {
@@ -3041,19 +3042,19 @@ var DayPilot = { Global: {} };
3041
3042
  break;
3042
3043
  case "bottom": m.style.alignItems = "flex-end";
3043
3044
  }
3044
- s.appendChild(h), n.appendChild(s), h.style.width = a + "px";
3045
+ l.appendChild(h), n.appendChild(l), h.style.width = a + "px";
3045
3046
  }
3046
- } }, this.zg = function (e) { var t = this.row, n = l.Ag(t, this.index); l.Bf(n, e); }, this.Bg = function () { if ("Disabled" !== l.timeHeaderClickHandling) {
3047
+ } }, this.yg = function (e) { var t = this.row, n = s.zg(t, this.index); s.Af(n, e); }, this.Ag = function () { if ("Disabled" !== s.timeHeaderClickHandling) {
3047
3048
  var e = {};
3048
- e.start = this.cell.start, e.level = this.cell.level, e.end = this.cell.end, e.end || (e.end = new DayPilot.Date(e.start).addMinutes(l.Me())), l.Df(e);
3049
- } }, this.Cg = function (e) { if ("Disabled" !== l.timeHeaderRightClickHandling) {
3049
+ e.start = this.cell.start, e.level = this.cell.level, e.end = this.cell.end, e.end || (e.end = new DayPilot.Date(e.start).addMinutes(s.Le())), s.Cf(e);
3050
+ } }, this.Bg = function (e) { if ("Disabled" !== s.timeHeaderRightClickHandling) {
3050
3051
  e.cancelBubble = !0, e.preventDefault();
3051
3052
  var t = {};
3052
- t.start = this.cell.start, t.level = this.cell.level, t.end = this.cell.end, t.end || (t.end = new DayPilot.Date(t.start).addMinutes(l.Me()));
3053
+ t.start = this.cell.start, t.level = this.cell.level, t.end = this.cell.end, t.end || (t.end = new DayPilot.Date(t.start).addMinutes(s.Le()));
3053
3054
  var n = {};
3054
- n.header = t, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof l.onTimeHeaderRightClick && (l.onTimeHeaderRightClick(n), n.preventDefault.value) || "function" == typeof l.onTimeHeaderRightClicked && l.onTimeHeaderRightClicked(n);
3055
- } }, this.Ag = function (e) { return new DayPilot.Row(e, l); }, this.Of = function (e) { var t = l.rowlist, n = t[e]; n.events || n.resetEvents(); }, this.Dg = {}, this.ha = function (e) { if (e ? this.events.list = e : this.events.list || (this.events.list = []), null != this.events.list && !DayPilot.isArray(this.events.list))
3056
- throw new DayPilot.Exception("DayPilot.Scheduler.events.list expects an array object"); u.prepareRows(!0); var t, n = this.events.list, a = "function" == typeof this.onBeforeEventRender; l.Dg = {}; for (var i = 0; i < n.length; i++) {
3055
+ n.header = t, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onTimeHeaderRightClick && (s.onTimeHeaderRightClick(n), n.preventDefault.value) || "function" == typeof s.onTimeHeaderRightClicked && s.onTimeHeaderRightClicked(n);
3056
+ } }, this.zg = function (e) { return new DayPilot.Row(e, s); }, this.Nf = function (e) { var t = s.rowlist, n = t[e]; n.events || n.resetEvents(); }, this.Cg = {}, this.ha = function (e) { if (e ? this.events.list = e : this.events.list || (this.events.list = []), null != this.events.list && !DayPilot.isArray(this.events.list))
3057
+ throw new DayPilot.Exception("DayPilot.Scheduler.events.list expects an array object"); c.prepareRows(!0); var t, n = this.events.list, a = "function" == typeof this.onBeforeEventRender; s.Cg = {}; for (var i = 0; i < n.length; i++) {
3057
3058
  var r = n[i];
3058
3059
  if (r) {
3059
3060
  if ("object" != typeof r)
@@ -3065,54 +3066,54 @@ var DayPilot = { Global: {} };
3065
3066
  if (!("string" == typeof r.id || "number" == typeof r.id))
3066
3067
  throw new DayPilot.Exception("All events must have an id property (string or number)");
3067
3068
  var o = "_" + r.id;
3068
- if (l.Dg[o])
3069
+ if (s.Cg[o])
3069
3070
  throw new DayPilot.Exception("Duplicate event IDs are not allowed: " + o);
3070
- l.Dg[o] = !0, a && this.zb(i), t = l.Eg(r.resource);
3071
- for (var s = 0; t && s < t.length; s++) {
3072
- var d = t[s], c = this.Tf(r, d);
3073
- c && a && (c.cache = this.yb.events[i]);
3071
+ s.Cg[o] = !0, a && this.yb(i), t = s.Dg(r.resource);
3072
+ for (var l = 0; t && l < t.length; l++) {
3073
+ var d = t[l], u = this.Sf(r, d);
3074
+ u && a && (u.cache = this.xb.events[i]);
3074
3075
  }
3075
3076
  }
3076
- } l.rowlist.forEach(function (e) { l.Fg(e); }), l.ag(); }, u.rowcache = {}, u.prepareRows = function (e) { u.rowcache = {}; for (var t = l.rowlist, n = 0; n < t.length; n++) {
3077
+ } s.rowlist.forEach(function (e) { s.Eg(e); }), s._f(); }, c.rowcache = {}, c.prepareRows = function (e) { c.rowcache = {}; for (var t = s.rowlist, n = 0; n < t.length; n++) {
3077
3078
  var a = t[n];
3078
- if (e && a.resetEvents(), l.Of(a.index), a.id) {
3079
+ if (e && a.resetEvents(), s.Nf(a.index), a.id) {
3079
3080
  var i = typeof a.id + "_" + a.id;
3080
- u.rowcache[i] || (u.rowcache[i] = []), u.rowcache[i].push(a);
3081
+ c.rowcache[i] || (c.rowcache[i] = []), c.rowcache[i].push(a);
3081
3082
  }
3082
- } }, this.Eg = function (e) { var t = typeof e + "_" + e; return u.rowcache[t] || []; }, this.Sf = function () { for (var e = {}, t = 0; t < l.rowlist.length; t++) {
3083
- var n = l.rowlist[t], a = n.id;
3083
+ } }, this.Dg = function (e) { var t = typeof e + "_" + e; return c.rowcache[t] || []; }, this.Rf = function () { for (var e = {}, t = 0; t < s.rowlist.length; t++) {
3084
+ var n = s.rowlist[t], a = n.id;
3084
3085
  if (e[a])
3085
3086
  return !0;
3086
3087
  e[a] = !0;
3087
- } return !1; }, this.zb = function (e) { var t = this.yb.events, n = this.events.list[e], a = {}; n instanceof DayPilot.Event && (n = n.data); for (var i in n)
3088
+ } return !1; }, this.yb = function (e) { var t = this.xb.events, n = this.events.list[e], a = {}; n instanceof DayPilot.Event && (n = n.data); for (var i in n)
3088
3089
  a[i] = n[i]; if ("string" == typeof a.start && (a.start = new DayPilot.Date(a.start)), "string" == typeof a.end && (a.end = new DayPilot.Date(a.end)), "function" == typeof this.onBeforeEventRender) {
3089
3090
  var r = {};
3090
3091
  r.e = a, r.data = a, this.onBeforeEventRender(r);
3091
- } t[e] = a; }, this.Fg = function (e) { e.lines = [], e.sections = null, e.events.sort(this.Ab); for (var t = 0; t < e.events.length; t++) {
3092
+ } t[e] = a; }, this.Eg = function (e) { e.lines = [], e.sections = null, e.events.sort(this.zb); for (var t = 0; t < e.events.length; t++) {
3092
3093
  var n = e.events[t];
3093
3094
  e.putIntoLine(n);
3094
- } }, this._f = function (e) { e = DayPilot.ua(e), e = l.jf(e), e.forEach(function (e) { l.Fg(e); }), e.forEach(function (e) { l.Gg(e); }); }, this.Tf = function (e, t) { var n = new DayPilot.Date(e.start), a = new DayPilot.Date(e.end); a = l.qf(a); var i = n.ticks, r = a.ticks, o = l.startDate.ticks, s = l.startDate.addDays(l.days).ticks; if (r < i)
3095
- return null; var c = null; if ("function" == typeof l.onBeforeEventRender) {
3096
- var u = DayPilot.indexOf(l.events.list, e);
3097
- c = l.yb.events[u];
3098
- } if (t.id !== e.resource || (r <= o || i >= s) && (i !== r || i !== o))
3099
- return null; var h = new DayPilot.Event(e, l); h.part.dayIndex = l.rowlist.indexOf(t), h.part.start = o < i ? n : l.startDate, h.part.end = s > r ? a : l.startDate.addDays(l.days); var f = this.getPixels(h.part.start), v = this.getPixels(h.part.end); h.part.start === h.part.end && (v = this.getPixels(h.part.end.addMilliseconds(1))); var p = f.left, m = v.left; if (d.eg(r - i)) {
3095
+ } }, this.$f = function (e) { e = DayPilot.ua(e), e = s.if(e), e.forEach(function (e) { s.Eg(e); }), e.forEach(function (e) { s.Fg(e); }); }, this.Sf = function (e, t) { var n = new DayPilot.Date(e.start), a = new DayPilot.Date(e.end); a = s.pf(a); var i = n.ticks, r = a.ticks, o = s.startDate.ticks, d = s.startDate.addDays(s.days).ticks; if (r < i)
3096
+ return null; var c = null; if ("function" == typeof s.onBeforeEventRender) {
3097
+ var u = DayPilot.indexOf(s.events.list, e);
3098
+ c = s.xb.events[u];
3099
+ } if (t.id !== e.resource || (r <= o || i >= d) && (i !== r || i !== o))
3100
+ return null; var h = new DayPilot.Event(e, s); h.part.dayIndex = s.rowlist.indexOf(t), h.part.start = o < i ? n : s.startDate, h.part.end = d > r ? a : s.startDate.addDays(s.days); var f = this.getPixels(h.part.start), v = this.getPixels(h.part.end); h.part.start === h.part.end && (v = this.getPixels(h.part.end.addMilliseconds(1))); var p = f.left, m = v.left; if (l.dg(r - i)) {
3100
3101
  var g = f.boxLeft, y = v.boxRight;
3101
3102
  h.part.left = g, h.part.width = y - g, h.part.barLeft = Math.max(p - h.part.left, 0), h.part.barWidth = Math.max(m - p, 1);
3102
3103
  }
3103
3104
  else
3104
- h.part.left = p, h.part.width = Math.max(m - p, 1), h.part.barLeft = 0, h.part.barWidth = Math.max(m - p, 1); var b = l.eventMinWidth; return h.part.width = Math.max(h.part.width, b), h.part.right = h.part.left + h.part.width, h.cache = c, t.events.push(h), h; }, this.Ab = function (e, t) { if (!(e && t && e.start && t.start))
3105
- return 0; var n = e.start().ticks - t.start().ticks; return 0 !== n ? n : t.end().ticks - e.end().ticks; }, this.rows = {}, this.rows.all = function () { for (var e = [], t = 0; t < l.rowlist.length; t++) {
3106
- var n = l.Ag(l.rowlist[t]);
3105
+ h.part.left = p, h.part.width = Math.max(m - p, 1), h.part.barLeft = 0, h.part.barWidth = Math.max(m - p, 1); var b = s.eventMinWidth; return h.part.width = Math.max(h.part.width, b), h.part.right = h.part.left + h.part.width, h.cache = c, t.events.push(h), h; }, this.zb = function (e, t) { if (!(e && t && e.start && t.start))
3106
+ return 0; var n = e.start().ticks - t.start().ticks; return 0 !== n ? n : t.end().ticks - e.end().ticks; }, this.rows = {}, this.rows.all = function () { for (var e = [], t = 0; t < s.rowlist.length; t++) {
3107
+ var n = s.zg(s.rowlist[t]);
3107
3108
  e.push(n);
3108
- } return e; }, this.rows.each = function (e) { l.rows.all().forEach(e); }, this.rows.forEach = function (e) { l.rows.all().forEach(e); }, this.rows.find = function (e, t) { if ("string" == typeof e || "number" == typeof e || !e && t) {
3109
- var n = l.Eg(e);
3110
- e || (n = l.rowlist);
3109
+ } return e; }, this.rows.each = function (e) { s.rows.all().forEach(e); }, this.rows.forEach = function (e) { s.rows.all().forEach(e); }, this.rows.find = function (e, t) { if ("string" == typeof e || "number" == typeof e || !e && t) {
3110
+ var n = s.Dg(e);
3111
+ e || (n = s.rowlist);
3111
3112
  var a = null;
3112
- return "string" == typeof t || t instanceof DayPilot.Date ? (t = new DayPilot.Date(t), a = n.find(function (e) { return t === e.start; })) : a = n[0], a ? new DayPilot.Row(a, l) : null;
3113
+ return "string" == typeof t || t instanceof DayPilot.Date ? (t = new DayPilot.Date(t), a = n.find(function (e) { return t === e.start; })) : a = n[0], a ? new DayPilot.Row(a, s) : null;
3113
3114
  } if ("function" != typeof e)
3114
- throw new DayPilot.Exception("Invalid rows.find() argument: id or function expected"); var i = t || 0, r = l.rowlist.find(function (t, n) { return !(n < i) && e(l.Ag(t)); }); if (r)
3115
- return l.Ag(r); }, this.rows.load = function (e, t, n) { if (!e)
3115
+ throw new DayPilot.Exception("Invalid rows.find() argument: id or function expected"); var i = t || 0, r = s.rowlist.find(function (t, n) { return !(n < i) && e(s.zg(t)); }); if (r)
3116
+ return s.zg(r); }, this.rows.load = function (e, t, n) { if (!e)
3116
3117
  throw new DayPilot.Exception("rows.load(): 'url' parameter required"); var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof n && n(t); }, i = function (e) { var n, i = e.request; try {
3117
3118
  n = JSON.parse(i.responseText);
3118
3119
  }
@@ -3123,34 +3124,34 @@ var DayPilot = { Global: {} };
3123
3124
  var o = {};
3124
3125
  if (o.preventDefault = function () { this.preventDefault.value = !0; }, o.data = n, "function" == typeof t && t(o), o.preventDefault.value)
3125
3126
  return;
3126
- l.resources = o.data, l.Ma && l.update();
3127
- } }; l.rowsLoadMethod && "POST" === l.rowsLoadMethod.toUpperCase() ? DayPilot.ajax({ "method": "POST", "url": e, "success": i, "error": a }) : DayPilot.ajax({ "method": "GET", "url": e, "success": i, "error": a }); }, this.rows.remove = function (e) { if ("number" == typeof e || "string" == typeof e) {
3128
- var t = l.rows.find(e);
3127
+ s.resources = o.data, s.La && s.update();
3128
+ } }; s.rowsLoadMethod && "POST" === s.rowsLoadMethod.toUpperCase() ? DayPilot.ajax({ "method": "POST", "url": e, "success": i, "error": a }) : DayPilot.ajax({ "method": "GET", "url": e, "success": i, "error": a }); }, this.rows.remove = function (e) { if ("number" == typeof e || "string" == typeof e) {
3129
+ var t = s.rows.find(e);
3129
3130
  if (!t)
3130
3131
  throw new DayPilot.Exception("The row to be removed was not found");
3131
- return void l.rows.remove(t);
3132
- } var n = e.$.row.resource, a = DayPilot.indexOf(l.resources, n); l.resources.splice(a, 1), l.update(); }, this.rows.add = function (e) { l.resources.push(e), l.rb(); }, this.rows.update = function (e) { if (!(e instanceof DayPilot.Row || "object" == typeof e))
3132
+ return void s.rows.remove(t);
3133
+ } var n = e.$.row.resource, a = DayPilot.indexOf(s.resources, n); s.resources.splice(a, 1), s.update(); }, this.rows.add = function (e) { s.resources.push(e), s.qb(); }, this.rows.update = function (e) { if (!(e instanceof DayPilot.Row || "object" == typeof e))
3133
3134
  throw new DayPilot.Exception("DayPilot.Scheduler.rows.update() expects a DayPilot.Row object or a data object."); if (!(e instanceof DayPilot.Row)) {
3134
3135
  var t = e;
3135
- if (e = l.rows.find(t.id), !e)
3136
+ if (e = s.rows.find(t.id), !e)
3136
3137
  return;
3137
3138
  e.data = t;
3138
- } var n = e.index, a = l.rowlist, i = a[n], r = e.data, o = l.Hg(r), s = l.Ig(o); s.level = i.level, s.index = n, s.top = i.top, s.height = i.height, a[n] = s, s.resetEvents(), l.Of(s.index), l.Jg(s), l.Fg(s), l.if(s.index), l.af(), l.df(); }, this.Jg = function (e) { for (var t = l.events.list, n = t.length, a = "function" == typeof l.onBeforeEventRender, i = 0; i < n; i++) {
3139
+ } var n = e.index, a = s.rowlist, i = a[n], r = e.data, o = s.Gg(r), l = s.Hg(o); l.level = i.level, l.index = n, l.top = i.top, l.height = i.height, a[n] = l, l.resetEvents(), s.Nf(l.index), s.Ig(l), s.Eg(l), s.hf(l.index), s._e(), s.cf(); }, this.Ig = function (e) { for (var t = s.events.list, n = t.length, a = "function" == typeof s.onBeforeEventRender, i = 0; i < n; i++) {
3139
3140
  var r = t[i];
3140
3141
  if (r) {
3141
3142
  if (r instanceof DayPilot.Event)
3142
3143
  throw new DayPilot.Exception("DayPilot.Scheduler: DayPilot.Event object detected in events.list array. Use raw event data instead.");
3143
3144
  if (r.resource === e.id) {
3144
- a && this.zb(i);
3145
- var o = this.Tf(r, e);
3146
- o && a && (o.cache = this.yb.events[i]);
3145
+ a && this.yb(i);
3146
+ var o = this.Sf(r, e);
3147
+ o && a && (o.cache = this.xb.events[i]);
3147
3148
  }
3148
3149
  }
3149
- } }, this.Ve = function () { var e = this.resources; if ({}.i = 0, null != e && !DayPilot.isArray(e))
3150
- throw new DayPilot.Exception("DayPilot.Scheduler.resources expects an array object"); e = e || [], l.rowlist = [], this.Kg(e); }, this.sa = function () { return new DayPilot.Date(this.startDate); }, this.Mf = function () { return new DayPilot.Date(l.startDate).addDays(l.days); }, this.visibleStart = function () { return this.sa(); }, this.visibleEnd = function () { return this.Mf(); }, this.Ig = function (e) { var t = {}; return t.backColor = e.backColor, t.fontColor = e.fontColor, t.cssClass = e.cssClass, t.name = e.name, t.html = l._a(e.name, e.html), t.id = e.id, t.toolTip = e.toolTip, t.areas = e.areas, t.tags = e.tags, t.height = l.eventHeight, t.level = 0, t.resource = e.ye, t.lines = [], t.isRow = !0, t.getHeight = function () { return Math.max(l.eventHeight, this.lines.length * l.eventHeight); }, t.resetEvents = function () { var e = t; e.events = [], e.events.forRange = function (t, n) { t = new DayPilot.Date(t), n = n ? new DayPilot.Date(n) : l.startDate.addDays(l.days); for (var a = [], i = 0; i < e.events.length; i++) {
3151
- var r = e.events[i], o = l.qf(r.end());
3150
+ } }, this.Ue = function () { var e = this.resources; if ({}.i = 0, null != e && !DayPilot.isArray(e))
3151
+ throw new DayPilot.Exception("DayPilot.Scheduler.resources expects an array object"); e = e || [], s.rowlist = [], this.Jg(e); }, this.sa = function () { return new DayPilot.Date(this.startDate); }, this.Lf = function () { return new DayPilot.Date(s.startDate).addDays(s.days); }, this.visibleStart = function () { return this.sa(); }, this.visibleEnd = function () { return this.Lf(); }, this.Hg = function (e) { var t = {}; return t.backColor = e.backColor, t.fontColor = e.fontColor, t.cssClass = e.cssClass, t.name = e.name, t.html = s.$a(e.name, e.html), t.id = e.id, t.toolTip = e.toolTip, t.areas = e.areas, t.tags = e.tags, t.height = s.eventHeight, t.level = 0, t.resource = e.xe, t.lines = [], t.isRow = !0, t.getHeight = function () { return Math.max(s.eventHeight, this.lines.length * s.eventHeight); }, t.resetEvents = function () { var e = t; e.events = [], e.events.forRange = function (t, n) { t = new DayPilot.Date(t), n = n ? new DayPilot.Date(n) : s.startDate.addDays(s.days); for (var a = [], i = 0; i < e.events.length; i++) {
3152
+ var r = e.events[i], o = s.pf(r.end());
3152
3153
  DayPilot.Util.overlaps(r.start(), o, t, n) && a.push(r);
3153
- } return a; }; }, t.Lg = function () { var e = []; return e.add = function (e) { this.push(e); }, e.isFree = function (e, t, n) { for (var a = e + t - 1, i = this.length, r = 0; r < i; r++) {
3154
+ } return a; }; }, t.Kg = function () { var e = []; return e.add = function (e) { this.push(e); }, e.isFree = function (e, t, n) { for (var a = e + t - 1, i = this.length, r = 0; r < i; r++) {
3154
3155
  var o = this[r];
3155
3156
  if (!(a < o.part.left || e > o.part.left + o.part.width - 1)) {
3156
3157
  if (DayPilot.contains(n, o.data))
@@ -3160,89 +3161,101 @@ var DayPilot = { Global: {} };
3160
3161
  } return !0; }, e; }, t.findFreeLine = function (e, n) { for (var a = 0; a < this.lines.length; a++) {
3161
3162
  if (this.lines[a].isFree(e, n))
3162
3163
  return a;
3163
- } var i = t.Lg(); return this.lines.push(i), this.lines.length - 1; }, t.putIntoLine = function (e) { var n = t.findFreeLine(e.part.left, e.part.width); return this.lines[n].add(e), n; }, t; }, this.Kg = function (e) { if (e)
3164
- for (var t = l.rowlist, n = 0; n < e.length; n++)
3164
+ } var i = t.Kg(); return this.lines.push(i), this.lines.length - 1; }, t.putIntoLine = function (e) { var n = t.findFreeLine(e.part.left, e.part.width); return this.lines[n].add(e), n; }, t; }, this.Jg = function (e) { if (e)
3165
+ for (var t = s.rowlist, n = 0; n < e.length; n++)
3165
3166
  if (e[n]) {
3166
3167
  var a = {};
3167
3168
  a.index = n;
3168
- var i = this.Hg(e[n], a), r = l.Ig(i, parent);
3169
+ var i = this.Gg(e[n], a), r = s.Hg(i, parent);
3169
3170
  r.index = n, t.push(r);
3170
- } }, this.yg = function (e) { var t = {}; return t.row = this.Ag(e), DayPilot.Util.copyProps(e, t.row, ["html", "backColor", "fontColor", "cssClass", "toolTip", "areas"]), "function" == typeof this.onBeforeRowHeaderRender && this.onBeforeRowHeaderRender(t), t; }, this.Hg = function (e, t) { var n = { get $data() { return this.ye; } }; for (var a in t)
3171
+ } }, this.xg = function (e) { var t = {}; return t.row = this.zg(e), DayPilot.Util.copyProps(e, t.row, ["html", "backColor", "fontColor", "cssClass", "toolTip", "areas"]), "function" == typeof this.onBeforeRowHeaderRender && this.onBeforeRowHeaderRender(t), t; }, this.Gg = function (e, t) { var n = { get $data() { return this.xe; } }; for (var a in t)
3171
3172
  n[a] = t[a]; for (var i in e)
3172
- n[i] = e[i]; return n.html = l._a(e.name, e.html), n.ye = e, n; }, this.Mg = function () { this.nav.top.dp = this, this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.L("_main")), this.nav.top.setAttribute("role", "region"), this.nav.top.setAttribute("aria-label", "scheduler"), this.nav.top.style.userSelect = "none", this.nav.top.style.webkitUserSelect = "none", this.nav.top.style.WebkitTapHighlightColor = "rgba(0,0,0,0)", this.nav.top.style.WebkitTouchCallout = "none", this.width && (this.nav.top.style.width = this.width), this.nav.top.style.lineHeight = "1.2", this.nav.top.style.position = "relative", this.visible || (this.nav.top.style.display = "none"), this.nav.top.ontouchstart = c.Ng, this.nav.top.ontouchmove = c.Og, this.nav.top.ontouchend = c.Pg; var e = this.rowHeaderWidth, t = o(); t.style.position = "absolute", t.style.left = "0px", t.style.width = e + "px"; var n = o(); n.style.height = "0px", n.style.boxSizing = "content-box", n.style.borderTop = "1px solid transparent", n.className = this.L("_divider_horizontal"), this.nav.dh1 = n, this.nav.left = t, t.appendChild(this.fb()), t.appendChild(n), t.appendChild(this.Qg()); var a = o(); a.style.position = "absolute", a.style.left = e + "px", a.style.width = "1px", a.style.height = this.Ce() + this.Ya() + "px", a.className = this.L("_splitter"), this.nav.divider = a; var i = o(); i.style.marginLeft = e + 1 + "px", i.style.position = "relative", this.nav.right = i; var r = o(); r.style.position = "absolute", r.style.top = this.Ce() + "px", r.style.width = "100%", r.style.height = "1px", r.style.boxSizing = "border-box", r.style.borderBottom = "1px solid transparent", r.setAttribute("data-dh2", "true"), r.className = this.L("_divider_horizontal"), this.nav.dh2 = r, i.appendChild(l.Rg()), i.appendChild(l.Sg()), i.appendChild(r); var s = o(); s.style.clear = "left"; var d = o(); d.style.height = "1px", d.style.position = "absolute", d.style.left = "0px", d.style.right = "0px", d.style.display = "none", d.className = this.L("_divider_horizontal"), this.nav.dividerTop = d; var u = o(); u.style.height = "1px", u.style.position = "absolute", u.style.left = "0px", u.style.right = "0px", u.style.display = "none", u.className = this.L("_divider_horizontal") + " " + this.L("_divider_horizontal_frozen_bottom"), this.nav.dividerBottom = u, this.nav.top.appendChild(t), this.nav.top.appendChild(a), this.nav.top.appendChild(i), this.nav.top.appendChild(s), this.nav.top.appendChild(d), this.nav.top.appendChild(u); }, this.ia = function () { var e = this.Ce(); this.nav.corner && (this.nav.corner.style.height = e + "px"), this.divTimeScroll && (this.divTimeScroll.style.height = e + "px"), this.divNorth && (this.divNorth.style.height = e + "px"), this.nav.dh1 && this.nav.dh2 && (this.nav.dh1.style.top = e + "px", this.nav.dh2.style.top = e + "px"), this.nav.scroll.style.top = e + 1 + "px"; }, this.Tg = function () { var e = this.rowHeaderWidth; this.nav.corner && (this.nav.corner.style.width = e + "px"), this.divResScroll.style.width = e + "px", this.nav.left.style.width = e + "px", this.nav.divider.style.left = e - 1 + "px", this.nav.right.style.marginLeft = e + "px"; }, this.Ug = function () { var e = this.rowHeaderWidth, t = this.divHeader; t.style.width = e + "px"; for (var n = l.qg(), a = n.start; a < n.end; a++) {
3173
+ n[i] = e[i]; return n.html = s.$a(e.name, e.html), n.xe = e, n; }, this.Lg = function () { this.nav.top.dp = this, this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.L("_main")), this.nav.top.setAttribute("role", "region"), this.nav.top.setAttribute("aria-label", "scheduler"), this.nav.top.style.userSelect = "none", this.nav.top.style.webkitUserSelect = "none", this.nav.top.style.WebkitTapHighlightColor = "rgba(0,0,0,0)", this.nav.top.style.WebkitTouchCallout = "none", this.width && (this.nav.top.style.width = this.width), this.nav.top.style.lineHeight = "1.2", this.nav.top.style.position = "relative", this.visible || (this.nav.top.style.display = "none"), this.nav.top.ontouchstart = d.Mg, this.nav.top.ontouchmove = d.Ng, this.nav.top.ontouchend = d.Og; var e = this.rowHeaderWidth, t = r(); t.style.position = "absolute", t.style.left = "0px", t.style.width = e + "px"; var n = r(); n.style.height = "0px", n.style.boxSizing = "content-box", n.style.borderTop = "1px solid transparent", n.className = this.L("_divider_horizontal"), this.nav.dh1 = n, this.nav.left = t, t.appendChild(this.eb()), t.appendChild(n), t.appendChild(this.Pg()); var a = r(); a.style.position = "absolute", a.style.left = e + "px", a.style.width = "1px", a.style.height = this.Be() + this.Xa() + "px", a.className = this.L("_splitter"), this.nav.divider = a; var i = r(); i.style.marginLeft = e + 1 + "px", i.style.position = "relative", this.nav.right = i; var o = r(); o.style.position = "absolute", o.style.top = this.Be() + "px", o.style.width = "100%", o.style.height = "1px", o.style.boxSizing = "border-box", o.style.borderBottom = "1px solid transparent", o.setAttribute("data-dh2", "true"), o.className = this.L("_divider_horizontal"), this.nav.dh2 = o, i.appendChild(s.Qg()), i.appendChild(s.Rg()), i.appendChild(o); var l = r(); l.style.clear = "left"; var c = r(); c.style.height = "1px", c.style.position = "absolute", c.style.left = "0px", c.style.right = "0px", c.style.display = "none", c.className = this.L("_divider_horizontal"), this.nav.dividerTop = c; var u = r(); u.style.height = "1px", u.style.position = "absolute", u.style.left = "0px", u.style.right = "0px", u.style.display = "none", u.className = this.L("_divider_horizontal") + " " + this.L("_divider_horizontal_frozen_bottom"), this.nav.dividerBottom = u, this.nav.top.appendChild(t), this.nav.top.appendChild(a), this.nav.top.appendChild(i), this.nav.top.appendChild(l), this.nav.top.appendChild(c), this.nav.top.appendChild(u); }, this.ia = function () { var e = this.Be(); this.nav.corner && (this.nav.corner.style.height = e + "px"), this.divTimeScroll && (this.divTimeScroll.style.height = e + "px"), this.divNorth && (this.divNorth.style.height = e + "px"), this.nav.dh1 && this.nav.dh2 && (this.nav.dh1.style.top = e + "px", this.nav.dh2.style.top = e + "px"), this.nav.scroll.style.top = e + 1 + "px"; }, this.Sg = function () { var e = this.rowHeaderWidth; this.nav.corner && (this.nav.corner.style.width = e + "px"), this.divResScroll.style.width = e + "px", this.nav.left.style.width = e + "px", this.nav.divider.style.left = e - 1 + "px", this.nav.right.style.marginLeft = e + "px"; }, this.Tg = function () { var e = this.rowHeaderWidth, t = this.divHeader; t.style.width = e + "px"; for (var n = s.pg(), a = n.start; a < n.end; a++) {
3173
3174
  var i = t.rows[a];
3174
3175
  if (i) {
3175
- var r = l.rowHeaderWidth;
3176
+ var r = s.rowHeaderWidth;
3176
3177
  i.style.width = r + "px";
3177
3178
  i.firstChild.style.width = r + "px";
3178
3179
  }
3179
- } l.nav.resScrollSpace && (l.nav.resScrollSpace.style.width = e + "px"); }, this._e = function () { this.Tg(), this.Ug(); }, this.fb = function () { var e = this.rowHeaderWidth, t = o(); l.nav.corner = t, t.style.width = e + "px", t.style.height = this.Ce() + "px", t.style.overflow = "hidden", t.style.position = "relative", t.oncontextmenu = function () { return !1; }, t.className = this.L("_corner"); var n = o(); return n.style.position = "absolute", n.style.top = "0px", n.style.left = "0px", n.style.right = "0px", n.style.bottom = "0px", n.className = this.L("_corner_inner"), n.innerHTML = "&nbsp;", this.divCorner = n, t.appendChild(n), t; }, this.Ce = function () { return l.timeHeaders ? l.timeHeaders.length * l.headerHeight : 0; }, this.Vg = null, this.Qg = function () { var e = o(); e.style.width = this.rowHeaderWidth + "px", e.style.height = this.Ya() + "px", e.style.overflow = "hidden", e.style.position = "relative", e.className = l.L("_rowheader_scroll"); var a = l.R.xg(); a && (e.style.overflowY = "auto"), e.ontouchstart = function () { n.Wg = !0; }, e.oncontextmenu = function () { return !1; }, e.onscroll = function () { if (l.Vg && clearTimeout(l.Vg), a) {
3180
- var i = function () { var t = l.Xg() - l.nav.scroll.offsetHeight; e.scrollTop = Math.min(e.scrollTop, t), l.nav.scroll.scrollTop = e.scrollTop; };
3181
- t ? n.Wg && (l.Vg = setTimeout(i, 10)) : l.Vg = setTimeout(i, 10);
3180
+ } s.nav.resScrollSpace && (s.nav.resScrollSpace.style.width = e + "px"); }, this.$e = function () { this.Sg(), this.Tg(); }, this.eb = function () { var e = this.rowHeaderWidth, t = r(); s.nav.corner = t, t.style.width = e + "px", t.style.height = this.Be() + "px", t.style.overflow = "hidden", t.style.position = "relative", t.oncontextmenu = function () { return !1; }, t.className = this.L("_corner"); var n = r(); return n.style.position = "absolute", n.style.top = "0px", n.style.left = "0px", n.style.right = "0px", n.style.bottom = "0px", n.className = this.L("_corner_inner"), n.innerHTML = "&nbsp;", this.divCorner = n, t.appendChild(n), t; }, this.Be = function () { return s.timeHeaders ? s.timeHeaders.length * s.headerHeight : 0; }, this.Ug = null, this.Pg = function () { var e = r(); e.style.width = this.rowHeaderWidth + "px", e.style.height = this.Xa() + "px", e.style.overflow = "hidden", e.style.position = "relative", e.className = s.L("_rowheader_scroll"); var n = s.R.wg(); n && (e.style.overflowY = "auto"), e.ontouchstart = function () { t.Vg = !0; }, e.oncontextmenu = function () { return !1; }, e.onscroll = function () { if (s.Ug && clearTimeout(s.Ug), n) {
3181
+ var a = function () { var t = s.Wg() - s.nav.scroll.offsetHeight; e.scrollTop = Math.min(e.scrollTop, t), s.nav.scroll.scrollTop = e.scrollTop; };
3182
+ DayPilot.browser.ios ? t.Vg && (s.Ug = setTimeout(a, 10)) : s.Ug = setTimeout(a, 10);
3182
3183
  }
3183
3184
  else
3184
- l.Vg = setTimeout(function () { l.nav.scroll.scrollTop = e.scrollTop; }, 500); }, e.setAttribute("role", "region"), e.setAttribute("aria-label", "scheduler rows"); var i = o(); return this.divHeader = i, e.appendChild(i), this.divResScroll = e, this.De = e, e; }, this.Yg = null, this.Zg = null, this.$g = function () { var e = function () { l._g(), l.ef(); }, t = function () { var t = l.nav.top; if (t) {
3185
- if (!l.Yg)
3186
- return l.Yg = {}, void (l.Yg.width = t.offsetWidth);
3187
- l.Yg.width !== t.offsetWidth && (l.Yg.width = t.offsetWidth, e());
3188
- } }; if (!l.Zg) {
3185
+ s.Ug = setTimeout(function () { s.nav.scroll.scrollTop = e.scrollTop; }, 500); }, e.setAttribute("role", "region"), e.setAttribute("aria-label", "scheduler rows"); var a = r(); return this.divHeader = a, e.appendChild(a), this.divResScroll = e, this.Ce = e, e; }, this.Xg = null, this.Yg = null, this.Zg = function () { var e = function () { s.$g(), s.df(); }, t = function () { var t = s.nav.top; if (t) {
3186
+ if (!s.Xg)
3187
+ return s.Xg = {}, void (s.Xg.width = t.offsetWidth);
3188
+ s.Xg.width !== t.offsetWidth && (s.Xg.width = t.offsetWidth, e());
3189
+ } }; if (!s.Yg) {
3189
3190
  var n = new ResizeObserver(DayPilot.debounce(t, 100));
3190
- n.observe(l.nav.top), l.Zg = n;
3191
- } }, this._g = function () { l.Q || (l.ma(), l.ah(), l.yb.drawArea = null); }, this.ah = function () { var e = l.yf; l.clearSelection(), l.yf = e, l.zf(e, { "justDraw": !0 }); }, this.Rg = function () { var e = o(); e.style.overflow = "hidden", e.style.display = "block", e.style.position = "absolute", e.style.top = "0px", e.style.width = "100%", e.style.height = this.Ce() + "px", e.style.overflow = "hidden", e.className = l.L("_timeheader_scroll"), this.divTimeScroll = e; var t = o(); return t.style.width = this.Ae() + 5e3 + "px", this.divNorth = t, e.appendChild(t), e; }, this.Ya = function () { var e = 0, t = l.heightSpec; return "Fixed" === t ? this.height ? this.height : 0 : (e = l.Xg(), "Max" === t && e > l.height ? l.height : e); }, this.Xg = function () { var e; return this.ae !== -1 ? (e = this.ae, this.ae > 0 && "auto" === l.nav.scroll.style.overflowX && (e += DayPilot.sh(l.nav.scroll) + 1)) : e = this.rowlist.length * l.eventHeight, e; }, this.Sg = function () {
3192
- var e = o();
3193
- e.style.overflow = "auto", e.style.overflowX = "auto", e.style.overflowY = "auto", e.style.height = this.Ya() + "px", e.style.top = this.Ce() + 1 + "px", e.style.position = "absolute", e.style.width = "100%", e.className = this.L("_scrollable"), e.oncontextmenu = function () { return !1; }, this.nav.scroll = e, this.he = o();
3194
- var t = this.he;
3191
+ n.observe(s.nav.top), s.Yg = n;
3192
+ } }, this.$g = function () { s.Q || (s.ma(), s._g(), s.xb.drawArea = null); }, this._g = function () { var e = s.xf; s.clearSelection(), s.xf = e, s.yf(e, { "justDraw": !0 }); }, this.Qg = function () { var e = r(); e.style.overflow = "hidden", e.style.display = "block", e.style.position = "absolute", e.style.top = "0px", e.style.width = "100%", e.style.height = this.Be() + "px", e.style.overflow = "hidden", e.className = s.L("_timeheader_scroll"), this.divTimeScroll = e; var t = r(); return t.style.width = this.ze() + 5e3 + "px", this.divNorth = t, e.appendChild(t), e; }, this.Xa = function () { var e = 0, t = s.heightSpec; return "Fixed" === t ? this.height ? this.height : 0 : (e = s.Wg(), "Max" === t && e > s.height ? s.height : e); }, this.Wg = function () { var e; return this._d !== -1 ? (e = this._d, this._d > 0 && "auto" === s.nav.scroll.style.overflowX && (e += DayPilot.sh(s.nav.scroll) + 1)) : e = this.rowlist.length * s.eventHeight, e; }, this.Rg = function () {
3193
+ var e = r();
3194
+ e.style.overflow = "auto", e.style.overflowX = "auto", e.style.overflowY = "auto", e.style.height = this.Xa() + "px", e.style.top = this.Be() + 1 + "px", e.style.position = "absolute", e.style.width = "100%", e.className = this.L("_scrollable"), e.oncontextmenu = function () { return !1; }, this.nav.scroll = e, this.ge = r();
3195
+ var t = this.ge;
3195
3196
  t.style.userSelect = "none", t.style.webkitUserSelect = "none", t.calendar = this, t.style.position = "absolute";
3196
- var n = this.Ae();
3197
- return n > 0 && (t.style.width = n + "px"), t.onmousedown = this.bh, t.onmousemove = this.ch, t.onmouseup = this.dh, t.oncontextmenu = this.eh, t.className = this.L("_matrix"), this.divStretch = o(), this.divStretch.style.position = "absolute", this.divStretch.style.height = "1px", t.appendChild(this.divStretch), this.divCells = o(), this.divCells.style.position = "absolute", this.divCells.oncontextmenu = this.eh, t.appendChild(this.divCells), this.divLines = o(), this.divLines.style.position = "absolute", this.divLines.oncontextmenu = this.eh, t.appendChild(this.divLines), this.divSeparators = o(),
3198
- this.divSeparators.style.position = "absolute", this.divSeparators.oncontextmenu = this.eh, t.appendChild(this.divSeparators), this.divRange = o(), this.divRange.style.position = "absolute", this.divRange.oncontextmenu = this.eh, t.appendChild(this.divRange), this.divEvents = o(), this.divEvents.style.position = "absolute", t.appendChild(this.divEvents), this.divShadow = o(), this.divShadow.style.position = "absolute", t.appendChild(this.divShadow), e.appendChild(t), e;
3199
- }, this.qb = function () { n.fh || (n.fh = !0, DayPilot.re(document, "mouseup", n._d), DayPilot.re(document, "touchmove", n.gh), DayPilot.re(document, "touchend", n.hh)); }, this.ih = function () { this.nav.scroll.root = this, this.nav.scroll.onscroll = this.ef, l.jh = this.nav.scroll.scrollLeft, l.kh = this.nav.scroll.scrollTop, this.divNorth && (l.lh = this.divNorth.clientWidth); }, this.mh = {}, this.mh.step = 300, this.mh.delay = 10, this.mh.mode = "display", this.mh.layers = !1, this.Gg = function (e) { for (var t = 0, n = 0; n < e.lines.length; n++) {
3197
+ var n = this.ze();
3198
+ return n > 0 && (t.style.width = n + "px"), t.onmousedown = this.ah, t.onmousemove = this.bh, t.onmouseup = this.ch, t.oncontextmenu = this.dh, t.className = this.L("_matrix"), this.divStretch = r(), this.divStretch.style.position = "absolute", this.divStretch.style.height = "1px", t.appendChild(this.divStretch), this.divCells = r(), this.divCells.style.position = "absolute", this.divCells.oncontextmenu = this.dh, t.appendChild(this.divCells), this.divLines = r(), this.divLines.style.position = "absolute", this.divLines.oncontextmenu = this.dh, t.appendChild(this.divLines), this.divSeparators = r(), this.divSeparators.style.position = "absolute", this.divSeparators.oncontextmenu = this.dh,
3199
+ t.appendChild(this.divSeparators), this.divRange = r(), this.divRange.style.position = "absolute", this.divRange.oncontextmenu = this.dh, t.appendChild(this.divRange), this.divEvents = r(), this.divEvents.style.position = "absolute", t.appendChild(this.divEvents), this.divShadow = r(), this.divShadow.style.position = "absolute", t.appendChild(this.divShadow), e.appendChild(t), e;
3200
+ }, this.pb = function () { t.eh || (t.eh = !0, DayPilot.re(document, "mouseup", t.$d), DayPilot.reNonPassive(document, "touchmove", t.fh), DayPilot.re(document, "touchend", t.gh)); }, this.hh = function () { this.nav.scroll.root = this, this.nav.scroll.onscroll = this.df, s.ih = this.nav.scroll.scrollLeft, s.jh = this.nav.scroll.scrollTop, this.divNorth && (s.kh = this.divNorth.clientWidth); }, this.lh = {}, this.lh.step = 300, this.lh.delay = 10, this.lh.mode = "display", this.lh.layers = !1, this.Fg = function (e) { for (var t = 0, n = 0; n < e.lines.length; n++) {
3200
3201
  for (var a = e.lines[n], i = 0; i < a.length; i++) {
3201
3202
  var r = a[i];
3202
- r.part.line = n, r.part.top = t + l.rowMarginTop, r.part.right = r.part.left + r.part.width;
3203
+ r.part.line = n, r.part.top = t + s.rowMarginTop, r.part.right = r.part.left + r.part.width;
3203
3204
  }
3204
- t += l.eventHeight;
3205
- } }, this.Ue = null, this.na = function (e) { if (!l.Q) {
3206
- var t = this.mh.step;
3207
- "display" === this.mh.mode ? this.divEvents.style.display = "none" : "visibility" === this.mh.mode && (this.divEvents.style.visibility = "hidden"), this.divEvents.setAttribute("role", "region"), this.divEvents.setAttribute("aria-label", "scheduler events");
3208
- var n = "Progressive" === this.dynamicEventRendering, a = this.le(), i = a.pixels.top, r = a.pixels.bottom;
3209
- l.rowlist.filter(function (e) { var t = e.top - l.dynamicEventRenderingMargin, a = t + e.height + 2 * l.dynamicEventRenderingMargin; return !n || !(r <= t || i >= a); }).forEach(function (n) { l.Gg(n); for (var a = 0; a < n.lines.length; a++)
3205
+ t += s.eventHeight;
3206
+ } }, this.Te = null, this.na = function (e) { if (!s.Q) {
3207
+ var t = this.lh.step;
3208
+ "display" === this.lh.mode ? this.divEvents.style.display = "none" : "visibility" === this.lh.mode && (this.divEvents.style.visibility = "hidden"), this.divEvents.setAttribute("role", "region"), this.divEvents.setAttribute("aria-label", "scheduler events");
3209
+ var n = "Progressive" === this.dynamicEventRendering, a = this.ke(), i = a.pixels.top, r = a.pixels.bottom;
3210
+ s.rowlist.filter(function (e) { var t = e.top - s.dynamicEventRenderingMargin, a = t + e.height + 2 * s.dynamicEventRenderingMargin; return !n || !(r <= t || i >= a); }).forEach(function (n) { s.Fg(n); for (var a = 0; a < n.lines.length; a++)
3210
3211
  for (var i = n.lines[a], r = 0; r < i.length; r++) {
3211
- var o = i[r], s = l.Va(o);
3212
- if (e && s && (t--, t <= 0))
3213
- return l.divEvents.style.visibility = "", l.divEvents.style.display = "", void (l.Ue = setTimeout(function () { l.na(e); }, l.mh.delay));
3214
- } }), this.divEvents.style.display = "", this.pe();
3215
- } }, this.nf = function (e) { var t = l.rowlist[e]; this.Gg(t); for (var n = 0; n < t.lines.length; n++)
3212
+ var o = i[r], l = s.Ua(o);
3213
+ if (e && l && (t--, t <= 0))
3214
+ return s.divEvents.style.visibility = "", s.divEvents.style.display = "", void (s.Te = setTimeout(function () { s.na(e); }, s.lh.delay));
3215
+ } }), this.divEvents.style.display = "", this.oe();
3216
+ } }, this.mf = function (e) { var t = s.rowlist[e]; this.Fg(t); for (var n = 0; n < t.lines.length; n++)
3216
3217
  for (var a = t.lines[n], i = 0; i < a.length; i++) {
3217
3218
  var r = a[i];
3218
- this.Va(r);
3219
+ this.Ua(r);
3219
3220
  } }, this.Z = function () { if (this.elements.events)
3220
3221
  for (var e = this.elements.events.length, t = 0; t < e; t++) {
3221
3222
  var n = this.elements.events[t];
3222
- this.Pa(n);
3223
- } this.elements.events = []; }, this.mf = function (e) { if (this.elements.events) {
3223
+ this.Oa(n);
3224
+ } this.elements.events = []; }, this.lf = function (e) { if (this.elements.events) {
3224
3225
  for (var t = this.elements.events.length, n = [], a = 0; a < t; a++) {
3225
3226
  var i = this.elements.events[a];
3226
- i.event.part.dayIndex === e && (this.Pa(i), n.push(a));
3227
+ i.event.part.dayIndex === e && (this.Oa(i), n.push(a));
3227
3228
  }
3228
3229
  for (var a = n.length - 1; a >= 0; a--)
3229
3230
  this.elements.events.splice(n[a], 1);
3230
- } }, this.Pa = function (e) { e.remove(), e.onclick = null, e.oncontextmenu = null, e.onmouseover = null, e.onmouseout = null, e.onmousemove = null, e.onmousedown = null, e.ondblclick = null, e.event && (e.event.rendered = null, e.event = null); }, this.nh = function () { if ("Progressive" === this.dynamicEventRendering) {
3231
- if (l.dynamicEventRenderingCacheSweeping) {
3232
- var e = l.dynamicEventRenderingCacheSize || 0;
3231
+ } }, this.Oa = function (e) { var t = e.domArgs; if (e.domArgs = null, t && "function" == typeof s.onBeforeEventDomRemove && s.onBeforeEventDomRemove(t), t && "function" == typeof s.onBeforeEventDomAdd) {
3232
+ var n = t && t.Pa;
3233
+ if (n) {
3234
+ var a = s.bg.reactDOM && DayPilot.Util.isReactComponent(t.element), i = s.Ra.Qa && DayPilot.Util.isVueVNode(t.element);
3235
+ a ? s.bg.mh(n) : i && (s.Ra.Sa = !0, s.Ra.Ta(n), s.Ra.Sa = !1);
3236
+ }
3237
+ } e.remove(), e.onclick = null, e.oncontextmenu = null, e.onmouseover = null, e.onmouseout = null, e.onmousemove = null, e.onmousedown = null, e.ondblclick = null, e.event && (e.event.rendered = null, e.event = null); }, this.nh = function () { if ("Progressive" === this.dynamicEventRendering) {
3238
+ if (s.dynamicEventRenderingCacheSweeping) {
3239
+ var e = s.dynamicEventRenderingCacheSize || 0;
3233
3240
  this.divEvents.style.display = "none";
3234
3241
  for (var t = [], n = this.elements.events.length, a = n - 1; a >= 0; a--) {
3235
3242
  var i = this.elements.events[a];
3236
- this.oh(i.event) ? e > 0 ? (e--, t.unshift(i)) : this.Pa(i) : t.unshift(i);
3243
+ this.oh(i.event) ? e > 0 ? (e--, t.unshift(i)) : this.Oa(i) : t.unshift(i);
3237
3244
  }
3238
3245
  this.elements.events = t, this.divEvents.style.display = "";
3239
3246
  }
3240
- } }, this.ph = function (e) { for (var t = this.le(), n = this.elements.cells.length, a = n - 1; a >= 0; a--) {
3247
+ } }, this.ph = function (e) { for (var t = this.ke(), n = this.elements.cells.length, a = n - 1; a >= 0; a--) {
3241
3248
  var i = this.elements.cells[a];
3242
- t.xStart < i.coords.x && i.coords.x <= t.xEnd && t.yStart < i.coords.y && i.coords.y <= t.yEnd || (e > 0 ? e-- : this.gb(i));
3243
- } }, this.gb = function (e) { if (e && e.coords) {
3249
+ t.xStart < i.coords.x && i.coords.x <= t.xEnd && t.yStart < i.coords.y && i.coords.y <= t.yEnd || (e > 0 ? e-- : this.fb(i));
3250
+ } }, this.fb = function (e) { if (e && e.coords) {
3244
3251
  var t = e.coords.x, n = e.coords.y;
3245
- DayPilot.rfa(l.elements.cells, e), DayPilot.de(e), l.yb.cells[t + "_" + n] = null;
3252
+ !function () { var t = e.domArgs; if (e.domArgs = null, t && "function" == typeof s.onBeforeCellDomRemove && s.onBeforeCellDomRemove(t), t && "function" == typeof s.onBeforeCellDomAdd) {
3253
+ var n = t && t.Pa;
3254
+ if (n) {
3255
+ var a = s.bg.reactDOM && DayPilot.Util.isReactComponent(t.element), i = s.Ra.Qa && DayPilot.Util.isVueVNode(t.element);
3256
+ a ? s.bg.mh(n) : i && (s.Ra.Sa = !0, s.Ra.Ta(n), s.Ra.Sa = !1);
3257
+ }
3258
+ } }(), DayPilot.rfa(s.elements.cells, e), DayPilot.de(e), s.xb.cells[t + "_" + n] = null;
3246
3259
  } }, this.qh = function () { var e = "Progressive" === this.dynamicEventRendering; if (!this.nav.scroll)
3247
3260
  return !1; for (var t = this.nav.scroll.scrollTop, n = t + this.nav.scroll.clientHeight, a = 0; a < this.rowlist.length; a++) {
3248
3261
  var i = this.rowlist[a], r = i.top, o = i.top + i.height;
@@ -3255,111 +3268,132 @@ var DayPilot = { Global: {} };
3255
3268
  }
3256
3269
  } return !1; }, this.rh = function (e) { if (e.rendered)
3257
3270
  return !1; var t = "Progressive" === this.dynamicEventRendering, n = this.nav.scroll.scrollLeft, a = n + this.nav.scroll.clientWidth, i = e.part.left, r = e.part.left + e.part.width; return !t || !(a <= i || n >= r); }, this.oh = function (e) { if (!e.rendered)
3258
- return !0; var t = this.le(), n = t.pixels.top, a = t.pixels.bottom, i = t.pixels.left - this.dynamicEventRenderingMargin, r = t.pixels.right + this.dynamicEventRenderingMargin, o = e.part.left, s = e.part.right, d = e.part.top, c = e.part.top + l.eventHeight; return r <= o || i >= s || (a <= d || n >= c); }, this.Va = function (e, t) { t = t || {}; var n = t.forced; if (e.rendered)
3259
- return !1; var a = "Progressive" === this.dynamicEventRendering, i = e.part.dayIndex, r = l.divEvents, s = l.rowlist, d = s[i], u = d.top, h = this.le(), f = h.pixels.left - this.dynamicEventRenderingMargin, v = h.pixels.right + this.dynamicEventRenderingMargin, p = h.pixels.top, m = h.pixels.bottom, g = e.part.left, y = e.part.left + e.part.width, b = e.part.top + u, w = b + l.eventHeight, x = v <= g || f >= y, _ = m <= b || p >= w; if (!n && a && (x || _))
3260
- return !1; var C = e.part.width, k = l.eventHeight, D = e.cache || e.data, S = D.borderRadius || l.eventBorderRadius; "number" == typeof S && (S += "px"); var M = D.padding || l.eventPadding; "number" == typeof M && (M += "px"), C = DayPilot.Util.atLeast(0, C), k = DayPilot.Util.atLeast(0, k); var T = o(); T.style.position = "absolute", T.style.left = e.part.left + "px", T.style.top = u + e.part.top + "px", T.style.width = C + "px", T.style.height = k + "px", l.eventTextWrappingEnabled || (T.style.whiteSpace = "nowrap"), T.style.overflow = "hidden", T.className = this.L("_event"), D.cssClass && DayPilot.Util.addClass(T, D.cssClass); "number" == typeof e.part.line && DayPilot.Util.addClass(T, this.L("_event_line" + e.part.line)), S && (T.style.borderRadius = S), this.showToolTip && (T.title = e.client.toolTip() || ""), T.onmousemove = this.uh, T.onmousedown = this.vh, T.onmouseup = this.wh, T.ontouchstart = c.xh, T.ontouchmove = c.yh, T.ontouchend = c.zh, e.client.clickEnabled() && (T.onclick = this.Ne), "undefined" != typeof D.ariaLabel ? T.setAttribute("aria-label", D.ariaLabel) : T.setAttribute("aria-label", D.text), T.setAttribute("tabindex", "-1"); var A = o(); A.className = l.L("_event_inner"), S && (A.style.borderRadius = S), M && (A.style.padding = M), D.backColor && (A.style.background = D.backColor), D.fontColor && (A.style.color = D.fontColor), "darker" === D.borderColor && D.backColor ? A.style.borderColor = DayPilot.ColorUtil.darker(D.backColor, 2) : A.style.borderColor = D.borderColor, D.backImage && (A.style.backgroundImage = "url(" + D.backImage + ")", D.backRepeat && (A.style.backgroundRepeat = D.backRepeat)), T.appendChild(A); var E = e.start().getTime() === e.part.start.getTime(), H = e.rawend().getTime() === e.part.end.getTime(); if (E || DayPilot.Util.addClass(T, this.L("_event_continueleft")), H || DayPilot.Util.addClass(T, this.L("_event_continueright")), e.client.barVisible() && C > 0) {
3261
- var N = 100 * e.part.barLeft / C, I = Math.ceil(100 * e.part.barWidth / C), R = o();
3262
- R.className = this.L("_event_bar"), R.style.position = "absolute", D.barBackColor && (R.style.backgroundColor = D.barBackColor);
3263
- var P = o();
3264
- P.className = this.L("_event_bar_inner"), P.style.left = N + "%", 0 < I && I <= 1 ? P.style.width = "1px" : P.style.width = I + "%", D.barColor && (P.style.backgroundColor = D.barColor), D.barImageUrl && (P.style.backgroundImage = "url(" + D.barImageUrl + ")"), R.appendChild(P), T.appendChild(R);
3265
- } T.row = i, T.event = e, A.innerHTML = e.client.innerHTML(); var L = []; return function () { if ("Disabled" !== l.eventDeleteHandling && !D.deleteDisabled) {
3266
- var e = l.durationBarVisible ? l.durationBarHeight : 0;
3267
- L.push({ v: "Hover", w: 17, h: 17, top: e + 2, right: 2, css: l.L("_event_delete"), onClick: function (e) { l.ya(e.source); } });
3268
- } }(), D.areas && (L = L.concat(D.areas)), DayPilot.Areas.attach(T, e, { areas: L }), this.elements.events.push(T), r.appendChild(T), e.rendered = !0, !0; }, this._a = function (e, t) { return l.R.da() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.of = function () { for (var e = 0; e < this.elements.events.length; e++) {
3269
- var t = this.elements.events[e], n = t.event, a = n.part.dayIndex, i = l.rowlist[a], r = i.top, o = r + n.part.top, s = i.height, d = l.eventHeight;
3270
- n.part.top + d > s && (d = Math.max(0, s - n.part.top)), t.style.top = o + "px", t.style.height = d + "px";
3271
- } }, this.Ah = function (e) { if (!e)
3272
- return null; for (var t = 0; t < l.elements.events.length; t++) {
3273
- var n = l.elements.events[t];
3271
+ return !0; var t = this.ke(), n = t.pixels.top, a = t.pixels.bottom, i = t.pixels.left - this.dynamicEventRenderingMargin, r = t.pixels.right + this.dynamicEventRenderingMargin, o = e.part.left, l = e.part.right, d = e.part.top, c = e.part.top + s.eventHeight; return r <= o || i >= l || (a <= d || n >= c); }, this.Ua = function (e, t) { t = t || {}; var n = t.forced; if (e.rendered)
3272
+ return !1; var a = "Progressive" === this.dynamicEventRendering, i = e.part.dayIndex, o = s.divEvents, l = s.rowlist, c = l[i], u = c.top, h = this.ke(), f = h.pixels.left - this.dynamicEventRenderingMargin, v = h.pixels.right + this.dynamicEventRenderingMargin, p = h.pixels.top, m = h.pixels.bottom, g = e.part.left, y = e.part.left + e.part.width, b = e.part.top + u, w = b + s.eventHeight, x = v <= g || f >= y, _ = m <= b || p >= w; if (!n && a && (x || _))
3273
+ return !1; var C = e.part.width, k = s.eventHeight, D = e.cache || e.data, S = D.borderRadius || s.eventBorderRadius; "number" == typeof S && (S += "px"); var M = D.padding || s.eventPadding; "number" == typeof M && (M += "px"), C = DayPilot.Util.atLeast(0, C), k = DayPilot.Util.atLeast(0, k); var T = r(); T.style.position = "absolute", T.style.left = e.part.left + "px", T.style.top = u + e.part.top + "px", T.style.width = C + "px", T.style.height = k + "px", s.eventTextWrappingEnabled || (T.style.whiteSpace = "nowrap"), T.style.overflow = "hidden", T.className = this.L("_event"), D.cssClass && DayPilot.Util.addClass(T, D.cssClass); "number" == typeof e.part.line && DayPilot.Util.addClass(T, this.L("_event_line" + e.part.line)), S && (T.style.borderRadius = S), this.showToolTip && (T.title = e.client.toolTip() || ""), T.onmousemove = this.uh, T.onmousedown = this.vh, T.onmouseup = this.wh, T.ontouchstart = d.xh, T.ontouchmove = d.yh, T.ontouchend = d.zh, e.client.clickEnabled() && (T.onclick = this.Me), "undefined" != typeof D.ariaLabel ? T.setAttribute("aria-label", D.ariaLabel) : T.setAttribute("aria-label", D.text), T.setAttribute("tabindex", "-1"); var A = r(); A.className = s.L("_event_inner"), S && (A.style.borderRadius = S), M && (A.style.padding = M), D.backColor && (A.style.background = D.backColor), D.fontColor && (A.style.color = D.fontColor), "darker" === D.borderColor && D.backColor ? A.style.borderColor = DayPilot.ColorUtil.darker(D.backColor, 2) : A.style.borderColor = D.borderColor, D.backImage && (A.style.backgroundImage = "url(" + D.backImage + ")", D.backRepeat && (A.style.backgroundRepeat = D.backRepeat)), T.appendChild(A); var E = e.start().getTime() === e.part.start.getTime(), H = e.rawend().getTime() === e.part.end.getTime(); if (E || DayPilot.Util.addClass(T, this.L("_event_continueleft")), H || DayPilot.Util.addClass(T, this.L("_event_continueright")), e.client.barVisible() && C > 0) {
3274
+ var R = 100 * e.part.barLeft / C, N = Math.ceil(100 * e.part.barWidth / C), I = r();
3275
+ I.className = this.L("_event_bar"), I.style.position = "absolute", D.barBackColor && (I.style.backgroundColor = D.barBackColor);
3276
+ var L = r();
3277
+ L.className = this.L("_event_bar_inner"), L.style.left = R + "%", 0 < N && N <= 1 ? L.style.width = "1px" : L.style.width = N + "%", D.barColor && (L.style.backgroundColor = D.barColor), D.barImageUrl && (L.style.backgroundImage = "url(" + D.barImageUrl + ")"), I.appendChild(L), T.appendChild(I);
3278
+ } T.row = i, T.event = e, function () { if ("function" != typeof s.onBeforeEventDomAdd && "function" != typeof s.onBeforeEventDomRemove)
3279
+ return void s.Ah(A, D.text, D.html); var t = {}; if (t.control = s, t.e = e, t.element = null, T.domArgs = t, "function" == typeof s.onBeforeEventDomAdd && s.onBeforeEventDomAdd(t), t.element) {
3280
+ var n = A;
3281
+ if (n) {
3282
+ t.Pa = n;
3283
+ var a = DayPilot.Util.isReactComponent(t.element), i = DayPilot.Util.isVueVNode(t.element);
3284
+ if (a) {
3285
+ if (!s.bg.reactDOM)
3286
+ throw new DayPilot.Exception("Can't reach ReactDOM");
3287
+ s.bg.Uc(t.element, n);
3288
+ }
3289
+ else if (i) {
3290
+ if (!s.Ra.Qa)
3291
+ throw new DayPilot.Exception("Can't reach Vue");
3292
+ s.Ra.Sa = !0, s.Ra.Va(t.element, n), s.Ra.Sa = !1;
3293
+ }
3294
+ else
3295
+ n.appendChild(t.element);
3296
+ }
3297
+ }
3298
+ else
3299
+ A.innerHTML = e.client.innerHTML(); }(); var P = []; return function () { if ("Disabled" !== s.eventDeleteHandling && !D.deleteDisabled) {
3300
+ var e = s.durationBarVisible ? s.durationBarHeight : 0;
3301
+ P.push({ v: "Hover", w: 17, h: 17, top: e + 2, right: 2, css: s.L("_event_delete"), onClick: function (e) { s.ya(e.source); } });
3302
+ } }(), D.areas && (P = P.concat(D.areas)), DayPilot.Areas.attach(T, e, { areas: P }), this.elements.events.push(T), o.appendChild(T), e.rendered = !0, !0; }, this.$a = function (e, t) { return s.R.da() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Ah = function (e, t, n) { DayPilot.Util.isNullOrUndefined(n) ? null !== t && void 0 !== t && (s.R.da() ? e.innerText = t : e.innerHTML = t) : e.innerHTML = n; }, this.nf = function () { for (var e = 0; e < this.elements.events.length; e++) {
3303
+ var t = this.elements.events[e], n = t.event, a = n.part.dayIndex, i = s.rowlist[a], r = i.top, o = r + n.part.top, l = i.height, d = s.eventHeight;
3304
+ n.part.top + d > l && (d = Math.max(0, l - n.part.top)), t.style.top = o + "px", t.style.height = d + "px";
3305
+ } }, this.Bh = function (e) { if (!e)
3306
+ return null; for (var t = 0; t < s.elements.events.length; t++) {
3307
+ var n = s.elements.events[t];
3274
3308
  if (n.event === e || n.event.data === e.data)
3275
3309
  return n;
3276
- } return null; }, this.Lf = function (e) { var t = l.events.Qf(e.data); if (!t)
3277
- return null; var n = l.rowlist[t.part.dayIndex]; return l.Gg(n), l.Va(t, { "forced": !0 }), l.Ah(t); }, this.uh = function (e) { for (var t = e.currentTarget; t && !t.event;)
3278
- t = t.parentNode; l.Bh(t, e), l.Re(e); }, this.Pe = {}, this.vh = function (e) { l.Re(e); var t = DayPilot.Util.mouseButton(e); e.preventDefault(), e.stopPropagation(), t.left && ("w-resize" === this.style.cursor || "e-resize" === this.style.cursor ? (n.Oe = !0, n.gg = this, n.kg = this.event, n.Ch = DayPilot.mc(e), r().style.cursor = this.style.cursor) : ("move" === this.style.cursor || this.event.client.moveEnabled()) && l.Dh(this, e)); }, this.wh = function (e) { DayPilot.Util.mouseButton(e).right && l.xa.call(this, e); }, this.Dh = function (e, t) { var n = l.Pe; l.Re(t), n.Eh = !0, n.Pe = e, n.ng = e.event, n.Ch = DayPilot.mc(t), n.Fh = DayPilot.mo3(e, t).x, n.fg = l.getDate(l.coords.x, !0); }, "undefined" == typeof DayPilot.Global.touch && (DayPilot.Global.touch = {}), DayPilot.Global.touch.active = !1, DayPilot.Global.touch.start = !1, c.Hf = [];
3279
- c.xh = function (t) { if (!DayPilot.Global.touch.active && !DayPilot.Global.touch.start) {
3280
- t.stopPropagation(), c.Gh(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
3310
+ } return null; }, this.Kf = function (e) { var t = s.events.Pf(e.data); if (!t)
3311
+ return null; var n = s.rowlist[t.part.dayIndex]; return s.Fg(n), s.Ua(t, { "forced": !0 }), s.Bh(t); }, this.uh = function (e) { for (var t = e.currentTarget; t && !t.event;)
3312
+ t = t.parentNode; s.Ch(t, e), s.Qe(e); }, this.Oe = {}, this.vh = function (e) { s.Qe(e); var n = DayPilot.Util.mouseButton(e); e.preventDefault(), e.stopPropagation(), n.left && ("w-resize" === this.style.cursor || "e-resize" === this.style.cursor ? (t.Ne = !0, t.fg = this, t.jg = this.event, t.Dh = DayPilot.mc(e), i().style.cursor = this.style.cursor) : ("move" === this.style.cursor || this.event.client.moveEnabled()) && s.Eh(this, e)); }, this.wh = function (e) { DayPilot.Util.mouseButton(e).right && s.xa.call(this, e); }, this.Eh = function (e, t) { var n = s.Oe; s.Qe(t), n.Fh = !0, n.Oe = e, n.mg = e.event, n.Dh = DayPilot.mc(t), n.Gh = DayPilot.mo3(e, t).x, n.eg = s.getDate(s.coords.x, !0); }, "undefined" == typeof DayPilot.Global.touch && (DayPilot.Global.touch = {}), DayPilot.Global.touch.active = !1, DayPilot.Global.touch.start = !1;
3313
+ d.Gf = [];
3314
+ d.relativeCoords = function (e) { return d.Hh(e); }, d.startResizing = function (e, t) { d.Ih(e, t); }, d.startMoving = function (e, t) { d.Eh(e, t); }, d.xh = function (t) { if (!DayPilot.Global.touch.active && !DayPilot.Global.touch.start) {
3315
+ t.stopPropagation(), d.Jh(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
3281
3316
  var n = t.currentTarget;
3282
- l.coords = c.Hh(t);
3283
- var a = l.tapAndHoldTimeout;
3284
- c.Hf.push(setTimeout(function () { DayPilot.Global.touch.active = !0, DayPilot.Global.touch.start = !1, t.preventDefault(); var a = n.event; switch (l.eventTapAndHoldHandling) {
3317
+ s.coords = d.Hh(t);
3318
+ var a = s.tapAndHoldTimeout;
3319
+ d.Gf.push(setTimeout(function () { DayPilot.Global.touch.active = !0, DayPilot.Global.touch.start = !1, t.preventDefault(); var a = n.event; switch (s.eventTapAndHoldHandling) {
3285
3320
  case "Move": if (a.client.moveEnabled()) {
3286
3321
  var i = e(t);
3287
- c.Dh(n, i);
3322
+ d.Eh(n, i);
3288
3323
  }
3289
3324
  } }, a));
3290
- } };
3291
- c.yh = function () { c.Gh(), DayPilot.Global.touch.start = !1; }, c.zh = function (e) { if (!DayPilot.Util.isMouseEvent(e)) {
3292
- if (c.Gh(), DayPilot.Global.touch.start) {
3325
+ } }, d.yh = function () { d.Jh(), DayPilot.Global.touch.start = !1; }, d.zh = function (e) { if (!DayPilot.Util.isMouseEvent(e)) {
3326
+ if (d.Jh(), DayPilot.Global.touch.start) {
3293
3327
  DayPilot.Global.touch.start = !1, e.preventDefault(), e.stopPropagation();
3294
3328
  var t = e.currentTarget;
3295
- setTimeout(function () { l.Qe(t, e); });
3329
+ setTimeout(function () { s.Pe(t, e); });
3296
3330
  }
3297
3331
  setTimeout(function () { DayPilot.Global.touch.start = !1, DayPilot.Global.touch.active = !1; }, 500);
3298
- } }, c.Ng = function (e) { if (!(DayPilot.Global.touch.active || DayPilot.Global.touch.start || e.touches.length > 1 || "Disabled" === l.timeRangeSelectedHandling)) {
3299
- c.Gh(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
3300
- var t = l.tapAndHoldTimeout;
3301
- c.Hf.push(setTimeout(function () { DayPilot.Global.touch.active = !0, DayPilot.Global.touch.start = !1, e.preventDefault(), l.coords = c.Hh(e), c.Ih = l.Jh(); }, t));
3302
- l.coords = c.Hh(e);
3303
- } }, c.Og = function (e) { if (c.Gh(), DayPilot.Global.touch.start = !1, n.gg)
3304
- return e.preventDefault(), void c.Kh(); if (DayPilot.Global.touch.active) {
3305
- if (e.preventDefault(), l.coords = c.Hh(e), n.Pe)
3306
- return void c.Lh();
3307
- if (c.Ih) {
3308
- var t = c.Ih;
3309
- t.end = { x: Math.floor(l.coords.x / l.cellWidth), "time": l.getDate(l.coords.x, !0) }, l.zf(t);
3332
+ } }, d.Mg = function (e) { if (!(DayPilot.Global.touch.active || DayPilot.Global.touch.start || e.touches.length > 1 || "Disabled" === s.timeRangeSelectedHandling)) {
3333
+ d.Jh(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
3334
+ var t = s.tapAndHoldTimeout;
3335
+ d.Gf.push(setTimeout(function () { DayPilot.Global.touch.active = !0, DayPilot.Global.touch.start = !1, e.preventDefault(), s.coords = d.Hh(e), d.Kh = s.Lh(); }, t));
3336
+ s.coords = d.Hh(e);
3337
+ } }, d.Ng = function (e) { if (d.Jh(), DayPilot.Global.touch.start = !1, t.fg)
3338
+ return e.preventDefault(), void d.Mh(); if (DayPilot.Global.touch.active) {
3339
+ if (e.preventDefault(), s.coords = d.Hh(e), t.Oe)
3340
+ return void d.Nh();
3341
+ if (d.Kh) {
3342
+ var n = d.Kh;
3343
+ n.end = { x: Math.floor(s.coords.x / s.cellWidth), "time": s.getDate(s.coords.x, !0) }, s.yf(n);
3310
3344
  }
3311
- } }, c.debug = function () { }, c.Pg = function (e) { c.Gh(); if (DayPilot.Global.touch.active) {
3312
- if (n.Pe) {
3345
+ } }, d.debug = function () { }, d.Og = function (e) { d.Jh(); if (DayPilot.Global.touch.active) {
3346
+ if (t.Oe) {
3313
3347
  e.preventDefault();
3314
- var t = n.ng;
3315
- if (l !== n.og.calendar)
3348
+ var n = t.mg;
3349
+ if (s !== t.ng.calendar)
3316
3350
  return;
3317
- var a = n.og.start, i = n.og.end, o = n.og.row.id;
3318
- DayPilot.Util.removeClass(n.Pe, l.L("_event_moving_source")), DayPilot.de(n.og), n.og.calendar = null, r().style.cursor = "", n.Pe = null, n.ng = null, n.og = null, l.M(t, a, i, o);
3351
+ var a = t.ng.start, r = t.ng.end, o = t.ng.row.id;
3352
+ DayPilot.Util.removeClass(t.Oe, s.L("_event_moving_source")), DayPilot.de(t.ng), t.ng.calendar = null, i().style.cursor = "", t.Oe = null, t.mg = null, t.ng = null, s.M(n, a, r, o);
3319
3353
  }
3320
- if (c.Ih) {
3321
- var s = c.Ih;
3322
- c.Ih = null;
3323
- var d = l.elements.range2;
3324
- d && d.overlapping ? l.clearSelection() : l.vf(s);
3354
+ if (d.Kh) {
3355
+ var l = d.Kh;
3356
+ d.Kh = null;
3357
+ var c = s.elements.range2;
3358
+ c && c.overlapping ? s.clearSelection() : s.uf(l);
3325
3359
  }
3326
3360
  }
3327
3361
  else if (DayPilot.Global.touch.start) {
3328
- if (l.coords.x < l.getScrollX())
3362
+ if (s.coords.x < s.getScrollX())
3329
3363
  return;
3330
- var s = l.Jh();
3331
- l.zf(s);
3332
- var d = l.elements.range2;
3333
- d && d.overlapping ? l.clearSelection() : l.vf(s);
3334
- } setTimeout(function () { DayPilot.Global.touch.start = !1, DayPilot.Global.touch.active = !1; }, 500); }, c.Gh = function () { for (var e = 0; e < c.Hf.length; e++)
3335
- clearTimeout(c.Hf[e]); c.Hf = []; }, c.Hh = function (e) { function t(e, t, n) { var a = DayPilot.abs(n); return { x: e - a.x, y: t - a.y, toString: function () { return "x: " + this.x + ", y:" + this.y; } }; } var n = l.he, a = e.touches ? e.touches[0] : e; return t(a.pageX, a.pageY, n); }, c.Dh = function (e, t) { n.Pe = e, n.ng = e.event, n.Ch = t; var a = DayPilot.abs(e); n.Fh = t.x - a.x, n.fg = l.getDate(l.coords.x, !0), n.og = l.ca(e), l.mg(); }, c.Kh = function () { if (!n.jg) {
3336
- var e = n.gg;
3337
- n.jg = l.ca(e);
3338
- } l.lg(); }, c.Lh = function () { if (!n.og) {
3339
- var e = n.Pe;
3340
- n.og = l.ca(e);
3341
- } n.og.calendar.mg(); }, this.Bh = function (e, t) { var a = this.eventResizeMargin, i = e; if ("undefined" != typeof n) {
3342
- var r = DayPilot.mo3(e, t);
3343
- if (r && (l.eventOffset = r, !n.gg && !n.Pe)) {
3344
- var o = i.event.part.start.toString() === i.event.start().toString(), s = i.event.part.end.toString() === i.event.rawend().toString();
3345
- r.x <= a && i.event.client.resizeEnabled() ? o ? (e.style.cursor = "w-resize", e.dpBorder = "left") : e.style.cursor = "not-allowed" : e.offsetWidth - r.x <= a && i.event.client.resizeEnabled() ? s ? (e.style.cursor = "e-resize", e.dpBorder = "right") : e.style.cursor = "not-allowed" : n.gg || n.Pe || (i.event.client.clickEnabled() ? e.style.cursor = "pointer" : e.style.cursor = "default");
3364
+ var l = s.Lh();
3365
+ s.yf(l);
3366
+ var c = s.elements.range2;
3367
+ c && c.overlapping ? s.clearSelection() : s.uf(l);
3368
+ } setTimeout(function () { DayPilot.Global.touch.start = !1, DayPilot.Global.touch.active = !1; }, 500); }, d.Jh = function () { for (var e = 0; e < d.Gf.length; e++)
3369
+ clearTimeout(d.Gf[e]); d.Gf = []; }, d.Hh = function (e) { function t(e, t, n) { var a = DayPilot.abs(n); return { x: e - a.x, y: t - a.y, toString: function () { return "x: " + this.x + ", y:" + this.y; } }; } var n = s.ge, a = e.touches ? e.touches[0] : e; return t(a.pageX, a.pageY, n); }, d.Eh = function (e, n) { t.Oe = e, t.mg = e.event, t.Dh = n; var a = DayPilot.abs(e); t.Gh = n.x - a.x, t.eg = s.getDate(s.coords.x, !0), t.ng = s.ca(e), s.lg(); }, d.Ih = function (e, n) { t.fg = e, t.jg = e.event, t.fg.dpBorder = n, t.ig || (t.ig = s.ca(e)), s.kg(); }, d.Mh = function () { if (!t.ig) {
3370
+ var e = t.fg;
3371
+ t.ig = s.ca(e);
3372
+ } s.kg(); }, d.Nh = function () { if (!t.ng) {
3373
+ var e = t.Oe;
3374
+ t.ng = s.ca(e);
3375
+ } t.ng.calendar.lg(); }, this.Ch = function (e, n) { var a = this.eventResizeMargin, i = e; if ("undefined" != typeof t) {
3376
+ var r = DayPilot.mo3(e, n);
3377
+ if (r && (s.eventOffset = r, !t.fg && !t.Oe)) {
3378
+ var o = i.event.part.start.toString() === i.event.start().toString(), l = i.event.part.end.toString() === i.event.rawend().toString();
3379
+ r.x <= a && i.event.client.resizeEnabled() ? o ? (e.style.cursor = "w-resize", e.dpBorder = "left") : e.style.cursor = "not-allowed" : e.offsetWidth - r.x <= a && i.event.client.resizeEnabled() ? l ? (e.style.cursor = "e-resize", e.dpBorder = "right") : e.style.cursor = "not-allowed" : t.fg || t.Oe || (i.event.client.clickEnabled() ? e.style.cursor = "pointer" : e.style.cursor = "default");
3346
3380
  }
3347
- } }, this.Af = function () { var e = l.Me(); return l.days * (1440 / e); }, this.wf = function (e) { if (e = e || n.Ih || l.yf, !e)
3348
- return null; var t = l.rowlist[e.start.y]; if (!t)
3349
- return null; var a, i, r = e, o = r.end.time > r.start.time, s = t.id, d = o ? r.start.x : r.end.x, c = o ? r.end.x : r.start.x, u = l.snapToGrid; u ? (a = l.Je(d).start, i = l.Je(c).end) : o ? (a = r.start.time, i = r.end.time) : (a = r.end.time, i = r.start.time); var h = new DayPilot.Selection(a, i, s, l); return h.allowed = !e.div || !e.div.overlapping, h; }, this.Ze = function () { this.yb.timeHeader = {}, l.elements.timeHeader.length > 0 && (l.elements.timeHeader = []); var e = o(); e.style.position = "relative", this.nav.timeHeader = e; for (var t = 0; t < this.timeHeader.length; t++)
3381
+ } }, this.zf = function () { var e = s.Le(); return s.days * (1440 / e); }, this.vf = function (e) { if (e = e || t.Kh || s.xf, !e)
3382
+ return null; var n = s.rowlist[e.start.y]; if (!n)
3383
+ return null; var a, i, r = e, o = r.end.time > r.start.time, l = n.id, d = o ? r.start.x : r.end.x, c = o ? r.end.x : r.start.x, u = s.snapToGrid; u ? (a = s.Ie(d).start, i = s.Ie(c).end) : o ? (a = r.start.time, i = r.end.time) : (a = r.end.time, i = r.start.time); var h = new DayPilot.Selection(a, i, l, s); return h.allowed = !e.div || !e.div.overlapping, h; }, this.Ye = function () { this.xb.timeHeader = {}, s.elements.timeHeader.length > 0 && (s.elements.timeHeader = []); var e = r(); e.style.position = "relative", this.nav.timeHeader = e; for (var t = 0; t < this.timeHeader.length; t++)
3350
3384
  for (var n = this.timeHeader[t], a = 0; a < n.length; a++)
3351
- this.Mh(a, t); var i = this.divNorth; 1 === i.childNodes.length ? i.replaceChild(e, i.childNodes[0]) : (i.innerHTML = "", i.appendChild(e)); var r = this.Ae(); i.style.width = r + 5e3 + "px", r > 0 && (this.divStretch.style.width = r + "px"); }, this.He = function (e, t) { var n = null, a = this.R.Ge(); t = t || this.cellGroupBy; var i = e.start; switch (t) {
3385
+ this.Oh(a, t); var i = this.divNorth; 1 === i.childNodes.length ? i.replaceChild(e, i.childNodes[0]) : (i.innerHTML = "", i.appendChild(e)); var o = this.ze(); i.style.width = o + 5e3 + "px", o > 0 && (this.divStretch.style.width = o + "px"); }, this.Ge = function (e, t) { var n = null, a = this.R.Fe(); t = t || this.cellGroupBy; var i = e.start; switch (t) {
3352
3386
  case "Minute":
3353
3387
  n = i.toString("m");
3354
3388
  break;
3355
3389
  case "Hour":
3356
- n = "Clock12Hours" === l.R.Nh() ? i.toString("h tt", a) : i.toString("H", a);
3390
+ n = "Clock12Hours" === s.R.Ph() ? i.toString("h tt", a) : i.toString("H", a);
3357
3391
  break;
3358
3392
  case "Day":
3359
3393
  n = i.toString(a.datePattern);
3360
3394
  break;
3361
3395
  case "Week":
3362
- n = 1 === d.ea() ? i.weekNumberISO() : i.weekNumber();
3396
+ n = 1 === l.ea() ? i.weekNumberISO() : i.weekNumber();
3363
3397
  break;
3364
3398
  case "Month":
3365
3399
  n = i.toString("MMMM yyyy", a);
@@ -3375,10 +3409,10 @@ var DayPilot = { Global: {} };
3375
3409
  break;
3376
3410
  case "Cell":
3377
3411
  var r = (e.end.ticks - e.start.ticks) / 6e4;
3378
- n = this.Oh(i, r);
3412
+ n = this.Qh(i, r);
3379
3413
  break;
3380
3414
  default: throw new DayPilot.Exception("Invalid groupBy value: " + t);
3381
- } return n; }, this.Oh = function (e, t) { var n = this.R.Ge(); return t = t || this.cellDuration, t < 1 ? e.toString("ss") : t < 60 ? e.toString("mm") : t < 1440 ? "Clock12Hours" === l.R.Nh() ? e.toString("h tt", n) : e.toString("H", n) : t < 10080 ? e.toString("d") : 10080 === t ? 1 === d.ea() ? e.weekNumberISO() : e.weekNumber() : e.toString("MMMM yyyy", n); }, this.Fe = function (e, t, n) { var a, i = l.startDate.addDays(l.days); t = t || this.cellGroupBy; var r = 60; switch (t) {
3415
+ } return n; }, this.Qh = function (e, t) { var n = this.R.Fe(); return t = t || this.cellDuration, t < 1 ? e.toString("ss") : t < 60 ? e.toString("mm") : t < 1440 ? "Clock12Hours" === s.R.Ph() ? e.toString("h tt", n) : e.toString("H", n) : t < 10080 ? e.toString("d") : 10080 === t ? 1 === l.ea() ? e.weekNumberISO() : e.weekNumber() : e.toString("MMMM yyyy", n); }, this.Ee = function (e, t, n) { var a, i = s.startDate.addDays(s.days); t = t || this.cellGroupBy; var r = 60; switch (t) {
3382
3416
  case "Minute":
3383
3417
  e.getMinutes() + e.getSeconds() + e.getMilliseconds() > 0 && (e = e.getDatePart().addHours(e.getHours()).addMinutes(e.getMinutes())), a = e.addMinutes(1);
3384
3418
  break;
@@ -3389,7 +3423,7 @@ var DayPilot = { Global: {} };
3389
3423
  a = e.getDatePart().addDays(1);
3390
3424
  break;
3391
3425
  case "Week":
3392
- for (a = e.getDatePart().addDays(1); a.dayOfWeek() !== d.ea();)
3426
+ for (a = e.getDatePart().addDays(1); a.dayOfWeek() !== l.ea();)
3393
3427
  a = a.addDays(1);
3394
3428
  break;
3395
3429
  case "Month":
@@ -3412,117 +3446,117 @@ var DayPilot = { Global: {} };
3412
3446
  a = i;
3413
3447
  break;
3414
3448
  case "Cell":
3415
- var s = this.Le(e);
3416
- s.current && (a = s.current.end);
3449
+ var d = this.Ke(e);
3450
+ d.current && (a = d.current.end);
3417
3451
  break;
3418
3452
  default: throw n ? new DayPilot.Exception("Invalid scale value: " + t) : new DayPilot.Exception("Invalid groupBy value: " + t);
3419
- } return a.getTime() > i.getTime() && (a = i), a; }, this.Mh = function (e, t) { var n = this.nav.timeHeader, a = this.timeHeader[t][e], i = t < this.timeHeader.length - 1, r = a.left, s = a.width, d = t * l.headerHeight, c = l.headerHeight, u = o(); u.style.position = "absolute", u.style.top = d + "px", u.style.left = r + "px", u.style.width = s + "px", u.style.height = c + "px", a.toolTip && (u.title = a.toolTip), u.setAttribute("aria-hidden", "true"), a.cssClass && DayPilot.Util.addClass(u, a.cssClass), u.style.userSelect = "none", u.style.webkitUserSelect = "none", u.oncontextmenu = function () { return !1; }, u.cell = {}, u.cell.start = a.start, u.cell.end = a.end, u.cell.level = t, u.cell.th = a, u.onclick = this.Bg, u.oncontextmenu = this.Cg, DayPilot.re(u, DayPilot.touch.start, function (e) { e.stopPropagation(); }), u.style.overflow = "hidden", l.timeHeaderTextWrappingEnabled || (u.style.whiteSpace = "nowrap"); var h = o(); h.innerHTML = l._a(a.text, a.html), a.backColor && (h.style.background = a.backColor), a.fontColor && (h.style.color = a.fontColor); var f = this.L("_timeheadercol"), v = this.L("_timeheadercol_inner"); i && (f = this.L("_timeheadergroup"), v = this.L("_timeheadergroup_inner")), DayPilot.Util.addClass(u, f), DayPilot.Util.addClass(h, v), DayPilot.Util.addClass(u, l.L("_timeheader_cell")), DayPilot.Util.addClass(h, l.L("_timeheader_cell_inner")), u.appendChild(h), DayPilot.Areas.attach(u, a, { areas: a.areas }), this.yb.timeHeader[e + "_" + t] = u, this.elements.timeHeader.push(u), n.appendChild(u); }, this.ag = function () { l.rowlist.forEach(function (e) { var t = e.getHeight() + l.rowMarginTop + l.rowMarginBottom; e.height !== t && (l.lf = !0), e.height = t; }), l.lf && (l.yb.drawArea = null); }, this.$e = function () { l.rowlist.forEach(function (e) { var t = l.divHeader; if (t) {
3453
+ } return a.getTime() > i.getTime() && (a = i), a; }, this.Oh = function (e, t) { var n = this.nav.timeHeader, a = this.timeHeader[t][e], i = t < this.timeHeader.length - 1, o = a.left, l = a.width, d = t * s.headerHeight, c = s.headerHeight, u = r(); u.style.position = "absolute", u.style.top = d + "px", u.style.left = o + "px", u.style.width = l + "px", u.style.height = c + "px", a.toolTip && (u.title = a.toolTip), u.setAttribute("aria-hidden", "true"), a.cssClass && DayPilot.Util.addClass(u, a.cssClass), u.style.userSelect = "none", u.style.webkitUserSelect = "none", u.oncontextmenu = function () { return !1; }, u.cell = {}, u.cell.start = a.start, u.cell.end = a.end, u.cell.level = t, u.cell.th = a, u.onclick = this.Ag, u.oncontextmenu = this.Bg, DayPilot.rePassive(u, DayPilot.touch.start, function (e) { e.stopPropagation(); }), u.style.overflow = "hidden", s.timeHeaderTextWrappingEnabled || (u.style.whiteSpace = "nowrap"); var h = r(); h.innerHTML = s.$a(a.text, a.html), a.backColor && (h.style.background = a.backColor), a.fontColor && (h.style.color = a.fontColor); var f = this.L("_timeheadercol"), v = this.L("_timeheadercol_inner"); i && (f = this.L("_timeheadergroup"), v = this.L("_timeheadergroup_inner")), DayPilot.Util.addClass(u, f), DayPilot.Util.addClass(h, v), DayPilot.Util.addClass(u, s.L("_timeheader_cell")), DayPilot.Util.addClass(h, s.L("_timeheader_cell_inner")), u.appendChild(h), DayPilot.Areas.attach(u, a, { areas: a.areas }), this.xb.timeHeader[e + "_" + t] = u, this.elements.timeHeader.push(u), n.appendChild(u); }, this._f = function () { s.rowlist.forEach(function (e) { var t = e.getHeight() + s.rowMarginTop + s.rowMarginBottom; e.height !== t && (s.kf = !0), e.height = t; }), s.kf && (s.xb.drawArea = null); }, this.Ze = function () { s.rowlist.forEach(function (e) { var t = s.divHeader; if (t) {
3420
3454
  var n = e.index;
3421
3455
  if (t.rows[n]) {
3422
3456
  var a = t.rows[n];
3423
- l.sg && (a.style.top = e.top + "px");
3457
+ s.rg && (a.style.top = e.top + "px");
3424
3458
  var i = e.height;
3425
3459
  a && a.firstChild && parseInt(a.firstChild.style.height, 10) !== i && (a.firstChild.style.height = i + "px");
3426
3460
  }
3427
- } }), l.sg && l.nav.resScrollSpace && (l.nav.resScrollSpace.style.top = l.ae + "px"); }, this.bh = function (e) { if (DayPilot.Global.touch.start || DayPilot.Global.touch.active)
3428
- return !1; if (l.Re(e), "Disabled" === l.timeRangeSelectedHandling)
3429
- return !1; var t = DayPilot.Util.mouseButton(e); if (l.Ph())
3430
- return !1; if (t.middle || t.right)
3431
- return !1; if (l.Qh(l.coords))
3432
- return !1; var a = t.left ? "left" : t.right ? "right" : t.middle ? "middle" : "unknown"; return l.Rh = a, n.Ih = l.Jh(), n.Ih && (n.Sh = l), !1; }, this.Jh = function () { var e = {}, t = l.Ie(l.coords.x).x, n = l.getDate(l.coords.x, !0); return e.start = { y: l.Gf(l.coords.y).i, x: t, "time": n }, e.end = { x: t, "time": n }, e.calendar = l, l.zf(e), e; }, this.dh = function (e) { if (l.Pe = {}, l.yf) {
3461
+ } }), s.rg && s.nav.resScrollSpace && (s.nav.resScrollSpace.style.top = s._d + "px"); }, this.ah = function (e) { if (DayPilot.Global.touch.start || DayPilot.Global.touch.active)
3462
+ return !1; if (s.Qe(e), "Disabled" === s.timeRangeSelectedHandling)
3463
+ return !1; var n = DayPilot.Util.mouseButton(e); if (s.Rh())
3464
+ return !1; if (n.middle || n.right)
3465
+ return !1; if (s.Sh(s.coords))
3466
+ return !1; var a = n.left ? "left" : n.right ? "right" : n.middle ? "middle" : "unknown"; return s.Th = a, t.Kh = s.Lh(), t.Kh && (t.Uh = s), !1; }, this.Lh = function () { var e = {}, t = s.He(s.coords.x).x, n = s.getDate(s.coords.x, !0); return e.start = { y: s.Ff(s.coords.y).i, x: t, "time": n }, e.end = { x: t, "time": n }, e.calendar = s, s.yf(e), e; }, this.ch = function (e) { if (s.Oe = {}, s.xf) {
3433
3467
  if (DayPilot.Util.mouseButton(e).left) {
3434
- var t = l.yf;
3435
- if (l.Qh(l.coords)) {
3436
- var a = function (e) { return function () { n.Th = null; var t = l.wf(e); if (t) {
3468
+ var n = s.xf;
3469
+ if (s.Sh(s.coords)) {
3470
+ var a = function (e) { return function () { t.Vh = null; var n = s.vf(e); if (n) {
3437
3471
  var a = {};
3438
- a.start = t.start, a.end = t.end, a.resource = t.resource, a.preventDefault = function () { a.preventDefault.value = !0; }, "function" == typeof l.onTimeRangeClick && l.onTimeRangeClick(a), a.preventDefault.value || "function" == typeof l.onTimeRangeClicked && l.onTimeRangeClicked(a);
3472
+ a.start = n.start, a.end = n.end, a.resource = n.resource, a.preventDefault = function () { a.preventDefault.value = !0; }, "function" == typeof s.onTimeRangeClick && s.onTimeRangeClick(a), a.preventDefault.value || "function" == typeof s.onTimeRangeClicked && s.onTimeRangeClicked(a);
3439
3473
  } }; };
3440
- "Disabled" !== l.timeRangeClickHandling && a(t)();
3474
+ "Disabled" !== s.timeRangeClickHandling && a(n)();
3441
3475
  }
3442
3476
  }
3443
- } }, this.Ph = function () { return !!(n.gg || n.Pe || n.Ih) || !!l.Pe.Eh; }, this.dragInProgress = function () { return l.Ph(); }, this.Re = function (e) { var t = DayPilot.mo3(l.he, e); t = t || {}, t.stamp = t.x + "_" + t.y, l.coords && l.coords.stamp === t.stamp || (l.coords = t); }, this.ch = function (e) { if (!DayPilot.Global.touch.active) {
3444
- var t = DayPilot.mc(e);
3445
- if (l.Re(e), l.Pe.Eh) {
3446
- DayPilot.distance(l.Pe.Ch, t) > 2 && (DayPilot.Util.copyProps(l.Pe, n), r().style.cursor = "move", l.Pe = {});
3477
+ } }, this.Rh = function () { return !!(t.fg || t.Oe || t.Kh) || !!s.Oe.Fh; }, this.dragInProgress = function () { return s.Rh(); }, this.Qe = function (e) { var t = DayPilot.mo3(s.ge, e); t = t || {}, t.stamp = t.x + "_" + t.y, s.coords && s.coords.stamp === t.stamp || (s.coords = t); }, this.bh = function (e) { if (!DayPilot.Global.touch.active) {
3478
+ var n = DayPilot.mc(e);
3479
+ if (s.Qe(e), s.Oe.Fh) {
3480
+ DayPilot.distance(s.Oe.Dh, n) > 2 && (DayPilot.Util.copyProps(s.Oe, t), i().style.cursor = "move", s.Oe = {});
3447
3481
  }
3448
- n.gg && n.kg.calendar === l ? (n.gg.event || (n.gg.event = n.kg), l.Uh()) : n.ng ? l.Vh() : n.Ih && n.Ih.calendar === l && (n.Ih.moved = !0, l.Wh());
3449
- } }, this.Wh = function () { var e = n.Ih, t = l.Ie(l.coords.x).x, a = l.getDate(l.coords.x, !0); e.end = { x: t, "time": a }, l.zf(e); }, this.Uh = function () { n.jg || (n.jg = l.ca(n.gg)), l.lg(); }, this.Vh = function () { if (!n.og) {
3450
- DayPilot.Util.addClass(n.Pe, l.L("_event_moving_source"));
3451
- var e = n.ng;
3452
- n.og = l.ca(e);
3453
- } l.mg(); }, this.eh = function (e) { return e.cancelBubble = !0, !1; }, this.Qh = function (e) { var t = l.yf; if (!t || !t.start || !t.end)
3454
- return !1; var n = this.Jf(t.start.y), a = t.start.x < t.end.x, i = (a ? t.start.x : t.end.x) * this.cellWidth, r = (a ? t.end.x : t.start.x) * this.cellWidth + this.cellWidth, o = n.top, s = n.bottom; return e.x >= i && e.x <= r && e.y >= o && e.y <= s; }, this.zf = function (e) { function t(e) { var t, n, s, d, c = e.end.time > e.start.time, u = e.start.y, h = e.start.time && e.end.time; if (i || !h) {
3455
- var f = c ? e.start.x : e.end.x, v = c ? e.end.x : e.start.x, p = l.Je(f), m = l.Je(v);
3482
+ t.fg && t.jg.calendar === s ? (t.fg.event || (t.fg.event = t.jg), s.Wh()) : t.mg ? s.Xh() : t.Kh && t.Kh.calendar === s && (t.Kh.moved = !0, s.Yh());
3483
+ } }, this.Yh = function () { var e = t.Kh, n = s.He(s.coords.x).x, a = s.getDate(s.coords.x, !0); e.end = { x: n, "time": a }, s.yf(e); }, this.Wh = function () { t.ig || (t.ig = s.ca(t.fg)), s.kg(); }, this.Xh = function () { if (!t.ng) {
3484
+ DayPilot.Util.addClass(t.Oe, s.L("_event_moving_source"));
3485
+ var e = t.mg;
3486
+ t.ng = s.ca(e);
3487
+ } s.lg(); }, this.dh = function (e) { return e.cancelBubble = !0, !1; }, this.Sh = function (e) { var t = s.xf; if (!t || !t.start || !t.end)
3488
+ return !1; var n = this.If(t.start.y), a = t.start.x < t.end.x, i = (a ? t.start.x : t.end.x) * this.cellWidth, r = (a ? t.end.x : t.start.x) * this.cellWidth + this.cellWidth, o = n.top, l = n.bottom; return e.x >= i && e.x <= r && e.y >= o && e.y <= l; }, this.yf = function (e) { function n(e) { var t, n, l, d, c = e.end.time > e.start.time, u = e.start.y, h = e.start.time && e.end.time; if (i || !h) {
3489
+ var f = c ? e.start.x : e.end.x, v = c ? e.end.x : e.start.x, p = s.Ie(f), m = s.Ie(v);
3456
3490
  t = p.left, n = m.left + m.width;
3457
3491
  }
3458
3492
  else
3459
- c ? (s = e.start.time, d = e.end.time) : (s = e.end.time, d = e.start.time), t = l.getPixels(s).left, n = l.getPixels(d).left; var g = n - t, y = l.elements.range2; if (!y) {
3460
- y = o(), y.style.position = "absolute";
3461
- var b = o();
3462
- b.className = l.L("_shadow_inner"), a && (y.style.borderRadius = a, b.style.borderRadius = a), y.appendChild(b), l.divShadow.appendChild(y);
3463
- } return y.className = l.L("_shadow"), y.firstChild.innerHTML = "", y.style.left = t + "px", y.style.top = r[u].top + "px", y.style.width = g + "px", y.style.height = r[u].height - 1 + "px", y.calendar = l, l.elements.range2 = y, y; } if (e = e || n.Ih) {
3464
- var a = l.eventBorderRadius;
3493
+ c ? (l = e.start.time, d = e.end.time) : (l = e.end.time, d = e.start.time), t = s.getPixels(l).left, n = s.getPixels(d).left; var g = n - t, y = s.elements.range2; if (!y) {
3494
+ y = r(), y.style.position = "absolute";
3495
+ var b = r();
3496
+ b.className = s.L("_shadow_inner"), a && (y.style.borderRadius = a, b.style.borderRadius = a), y.appendChild(b), s.divShadow.appendChild(y);
3497
+ } return y.className = s.L("_shadow"), y.firstChild.innerHTML = "", y.style.left = t + "px", y.style.top = o[u].top + "px", y.style.width = g + "px", y.style.height = o[u].height - 1 + "px", y.calendar = s, s.elements.range2 = y, y; } if (e = e || t.Kh) {
3498
+ var a = s.eventBorderRadius;
3465
3499
  "number" == typeof a && (a += "px");
3466
- var i = l.snapToGrid, r = l.rowlist;
3467
- t(e);
3468
- } }, this.Xh = function (e) { return { "start": { "x": e.start.x, "y": e.start.y, "time": e.start.time }, "end": { "x": e.end.x, "time": e.end.time }, "calendar": e.calendar, "args": e.args }; }, this.getCoords = function () { if (!l.coords)
3469
- return null; var e = {}; e.x = l.coords.x, e.y = l.coords.y; var t = l.Gf(e.y, e.grid).element; return e.row = l.Ag(t), e.time = l.getDate(e.x, !0), e; }, this.Hf = {}, this.Hf.na = null, this.Hf.drawCells = null, this.Hf.drawRows = null, this.Hf.click = null, this.Hf.resClick = [], this.Hf.updateFloats = null, this.ef = function () { if (!l.Q) {
3470
- l.cf();
3471
- var e = l.nav.scroll;
3472
- if (l.jh = e.scrollLeft, l.kh = e.scrollTop, l.lh = e.clientWidth, l.divTimeScroll && (l.divTimeScroll.scrollLeft = l.jh), t && n.Wg ? a() : l.divResScroll.scrollTop = l.kh, l.progressiveRowRendering && (l.Hf.drawRows && (clearTimeout(l.Hf.drawRows), l.Hf.drawRows = null), l.scrollDelayRows > 0 ? l.Hf.drawRows = setTimeout(function () { l.vg(); }, l.scrollDelayRows) : l.vg()), l.Hf.drawCells && (clearTimeout(l.Hf.drawCells), l.Hf.drawCells = null), l.scrollDelayCells > 0)
3473
- l.Hf.drawCells = setTimeout(l.Yh(), l.scrollDelayCells);
3500
+ var i = s.snapToGrid, o = s.rowlist;
3501
+ n(e);
3502
+ } }, this.Zh = function (e) { return { "start": { "x": e.start.x, "y": e.start.y, "time": e.start.time }, "end": { "x": e.end.x, "time": e.end.time }, "calendar": e.calendar, "args": e.args }; }, this.getCoords = function () { if (!s.coords)
3503
+ return null; var e = {}; e.x = s.coords.x, e.y = s.coords.y; var t = s.Ff(e.y, e.grid).element; return e.row = s.zg(t), e.time = s.getDate(e.x, !0), e; }, this.Gf = {}, this.Gf.na = null, this.Gf.drawCells = null, this.Gf.drawRows = null, this.Gf.click = null, this.Gf.resClick = [], this.Gf.updateFloats = null, this.df = function () { if (!s.Q) {
3504
+ s.bf();
3505
+ var e = s.nav.scroll;
3506
+ if (s.ih = e.scrollLeft, s.jh = e.scrollTop, s.kh = e.clientWidth, s.divTimeScroll && (s.divTimeScroll.scrollLeft = s.ih), DayPilot.browser.ios && t.Vg ? n() : s.divResScroll.scrollTop = s.jh, s.progressiveRowRendering && (s.Gf.drawRows && (clearTimeout(s.Gf.drawRows), s.Gf.drawRows = null), s.scrollDelayRows > 0 ? s.Gf.drawRows = setTimeout(function () { s.ug(); }, s.scrollDelayRows) : s.ug()), s.Gf.drawCells && (clearTimeout(s.Gf.drawCells), s.Gf.drawCells = null), s.scrollDelayCells > 0)
3507
+ s.Gf.drawCells = setTimeout(s.$h(), s.scrollDelayCells);
3474
3508
  else {
3475
- l.Yh()();
3509
+ s.$h()();
3476
3510
  }
3477
- l.Hf.na && (clearTimeout(l.Hf.na), l.Hf.na = null), l.scrollDelayEvents > 0 ? l.Hf.na = setTimeout(l.Zh(), l.scrollDelayEvents) : l.na(), l.Hf.updateFloats && (clearTimeout(l.Hf.updateFloats), l.Hf.updateFloats = null), l.scrollDelayFloats > 0 ? l.Hf.updateFloats = setTimeout(function () { l.oe(); }, l.scrollDelayFloats) : l.oe(), l.onScrollCalled = !0;
3478
- } }, this.Yh = function () { return function () { l && l.df(); }; }, this.Zh = function () { return function () { l && (l.qh() ? setTimeout(function () { l.nh(), setTimeout(function () { l.na(!0); }, 50); }, 50) : l.pe()); }; }, this.cf = function () { l.yb.drawArea = null; }, this.show = function () { l.visible = !0, l.be = !0, l.nav.top.style.display = "", l.u(), l._g(), l.ef(); }, this.hide = function () { l.visible = !1, l.be = !1, l.nav.top.style.display = "none"; }, this.Wf = function (e) { if (!l.events.list)
3511
+ s.Gf.na && (clearTimeout(s.Gf.na), s.Gf.na = null), s.scrollDelayEvents > 0 ? s.Gf.na = setTimeout(s._h(), s.scrollDelayEvents) : s.na(), s.Gf.updateFloats && (clearTimeout(s.Gf.updateFloats), s.Gf.updateFloats = null), s.scrollDelayFloats > 0 ? s.Gf.updateFloats = setTimeout(function () { s.ne(); }, s.scrollDelayFloats) : s.ne(), s.onScrollCalled = !0;
3512
+ } }, this.$h = function () { return function () { s && s.cf(); }; }, this._h = function () { return function () { s && (s.qh() ? setTimeout(function () { s.nh(), setTimeout(function () { s.na(!0); }, 50); }, 50) : s.oe()); }; }, this.bf = function () { s.xb.drawArea = null; }, this.show = function () { s.visible = !0, s.ae = !0, s.nav.top.style.display = "", s.u(), s.$g(), s.df(); }, this.hide = function () { s.visible = !1, s.ae = !1, s.nav.top.style.display = "none"; }, this.Vf = function (e) { if (!s.events.list)
3479
3513
  return null; for (var t = 0; t < this.events.list.length; t++) {
3480
3514
  var n = this.events.list[t];
3481
- if (l.Pf(n, e)) {
3515
+ if (s.Of(n, e)) {
3482
3516
  var a = {};
3483
3517
  return a.ex = n, a.index = t, a;
3484
3518
  }
3485
- } return null; }, this.$h = function () { var e = this.le(), t = e.xStart, n = e.xEnd - e.xStart, a = e.yStart, i = e.yEnd - e.yStart; this.cellProperties || (this.cellProperties = {}); for (var r = 0; r <= n; r++) {
3519
+ } return null; }, this.ai = function () { var e = this.ke(), t = e.xStart, n = e.xEnd - e.xStart, a = e.yStart, i = e.yEnd - e.yStart; this.cellProperties || (this.cellProperties = {}); for (var r = 0; r <= n; r++) {
3486
3520
  for (var o = t + r, s = 0; s < i; s++) {
3487
3521
  var l = a + s;
3488
- this.hd(o, l);
3522
+ this.gd(o, l);
3489
3523
  }
3490
- this._h(o);
3491
- } for (var d = this.qg(), l = d.start; l < d.end; l++)
3492
- this.ai(l); }, this.df = function () { if (!l.Q) {
3493
- var e = l.rowlist;
3524
+ this.bi(o);
3525
+ } for (var d = this.pg(), l = d.start; l < d.end; l++)
3526
+ this.ci(l); }, this.cf = function () { if (!s.Q) {
3527
+ var e = s.rowlist;
3494
3528
  if (e && e.length > 0) {
3495
3529
  if (this.cellSweeping) {
3496
3530
  var t = this.cellSweepingCacheSize;
3497
3531
  this.ph(t);
3498
3532
  }
3499
- this.$h();
3533
+ this.ai();
3500
3534
  }
3501
- this.lf = !1;
3502
- } }, this.le = function () { if (l.yb.drawArea)
3503
- return l.yb.drawArea; if (!this.nav.scroll)
3504
- return null; var e = l.kh, t = {}, n = null != this.dynamicEventRenderingMarginX ? this.dynamicEventRenderingMarginX : this.dynamicEventRenderingMargin, a = null != this.dynamicEventRenderingMarginY ? this.dynamicEventRenderingMarginY : this.dynamicEventRenderingMargin, i = l.jh - n, r = i + l.lh + 2 * n, o = 0, s = 0; o = l.Ie(i).x, s = l.Ie(r, !0).x; var d = this.Af(); s = Math.min(s, d - 1), o = DayPilot.Util.atLeast(o, 0); var c = e - a, u = e + this.nav.scroll.offsetHeight + 2 * a, h = this.Gf(c).i, f = this.Gf(u).i; f < this.rowlist.length && f++, t.xStart = o, t.xEnd = s, t.yStart = h, t.yEnd = f; var v = l.nav.scroll; return 0 === v.clientWidth && (v = l.divTimeScroll), t.pixels = {}, t.pixels.left = v.scrollLeft, t.pixels.right = v.scrollLeft + v.clientWidth, t.pixels.top = v.scrollTop, t.pixels.bottom = v.scrollTop + v.clientHeight, t.pixels.width = v.scrollWidth, t.sw = DayPilot.sw(l.nav.scroll), l.yb.drawArea = t, t; }, this.Ae = function () { return l.Af() * l.cellWidth; }, this.ai = function (e) { var t = l.rowlist, n = l.divLines, a = "y_" + e; if (!this.yb.linesHorizontal[a]) {
3505
- var i = t[e], r = i.height, s = i.top + r - 1, d = this.Ae(), c = o();
3506
- c.style.left = "0px", c.style.top = s + "px", c.style.width = d + "px", c.style.height = "1px", c.style.fontSize = "1px", c.style.lineHeight = "1px", c.style.overflow = "hidden", c.style.position = "absolute", c.className = this.L("_matrix_horizontal_line"), n.appendChild(c), this.yb.linesHorizontal[a] = c;
3507
- } }, this._h = function (e) { var t = l.Je(e); if (t) {
3508
- var n = l.divLines, a = l.ae, i = "x_" + e;
3509
- if (!this.yb.linesVertical[i]) {
3510
- var r = t.left + t.width - 1, s = o();
3511
- s.style.left = r + "px", s.style.top = "0px", s.style.width = "1px", s.style.height = a + "px", s.style.fontSize = "1px", s.style.lineHeight = "1px", s.style.overflow = "hidden", s.style.position = "absolute", s.className = this.L("_matrix_vertical_line"), n.appendChild(s), this.elements.linesVertical.push(s), this.yb.linesVertical[i] = s;
3535
+ this.kf = !1;
3536
+ } }, this.ke = function () { if (s.xb.drawArea)
3537
+ return s.xb.drawArea; if (!this.nav.scroll)
3538
+ return null; var e = s.jh, t = {}, n = null != this.dynamicEventRenderingMarginX ? this.dynamicEventRenderingMarginX : this.dynamicEventRenderingMargin, a = null != this.dynamicEventRenderingMarginY ? this.dynamicEventRenderingMarginY : this.dynamicEventRenderingMargin, i = s.ih - n, r = i + s.kh + 2 * n, o = 0, l = 0; o = s.He(i).x, l = s.He(r, !0).x; var d = this.zf(); l = Math.min(l, d - 1), o = DayPilot.Util.atLeast(o, 0); var c = e - a, u = e + this.nav.scroll.offsetHeight + 2 * a, h = this.Ff(c).i, f = this.Ff(u).i; f < this.rowlist.length && f++, t.xStart = o, t.xEnd = l, t.yStart = h, t.yEnd = f; var v = s.nav.scroll; return 0 === v.clientWidth && (v = s.divTimeScroll), t.pixels = {}, t.pixels.left = v.scrollLeft, t.pixels.right = v.scrollLeft + v.clientWidth, t.pixels.top = v.scrollTop, t.pixels.bottom = v.scrollTop + v.clientHeight, t.pixels.width = v.scrollWidth, t.sw = DayPilot.sw(s.nav.scroll), s.xb.drawArea = t, t; }, this.ze = function () { return s.zf() * s.cellWidth; }, this.ci = function (e) { var t = s.rowlist, n = s.divLines, a = "y_" + e; if (!this.xb.linesHorizontal[a]) {
3539
+ var i = t[e], o = i.height, l = i.top + o - 1, d = this.ze(), c = r();
3540
+ c.style.left = "0px", c.style.top = l + "px", c.style.width = d + "px", c.style.height = "1px", c.style.fontSize = "1px", c.style.lineHeight = "1px", c.style.overflow = "hidden", c.style.position = "absolute", c.className = this.L("_matrix_horizontal_line"), n.appendChild(c), this.xb.linesHorizontal[a] = c;
3541
+ } }, this.bi = function (e) { var t = s.Ie(e); if (t) {
3542
+ var n = s.divLines, a = s._d, i = "x_" + e;
3543
+ if (!this.xb.linesVertical[i]) {
3544
+ var o = t.left + t.width - 1, l = r();
3545
+ l.style.left = o + "px", l.style.top = "0px", l.style.width = "1px", l.style.height = a + "px", l.style.fontSize = "1px", l.style.lineHeight = "1px", l.style.overflow = "hidden", l.style.position = "absolute", l.className = this.L("_matrix_vertical_line"), n.appendChild(l), this.elements.linesVertical.push(l), this.xb.linesVertical[i] = l;
3512
3546
  }
3513
- } }, this.Xe = function () { l.ae = l.bi(l.rowlist); }, this.bi = function (e) { for (var t = 0, n = 0; n < e.length; n++) {
3547
+ } }, this.We = function () { s._d = s.di(s.rowlist); }, this.di = function (e) { for (var t = 0, n = 0; n < e.length; n++) {
3514
3548
  var a = e[n];
3515
3549
  a.top = t, t += a.height;
3516
- } return t; }, this.af = function () { l.elements.cells = [], l.yb.cells = [], l.divCells.innerHTML = "", l.ci(); }, this.ci = function () { l.divLines.innerHTML = "", l.yb.linesVertical = {}, l.yb.linesHorizontal = {}, l.elements.linesVertical = []; }, this.pf = function (e) { var t = []; for (var n in l.yb.cells)
3517
- t.push(l.yb.cells[n]); t.filter(function (t) { return t && t.coords && t.coords.y === e; }).forEach(function (e) { l.gb(e); }); }, this.hd = function (e, t) { if (this.Ma) {
3518
- var n = l.Je(e);
3550
+ } return t; }, this._e = function () { s.elements.cells = [], s.xb.cells = [], s.divCells.innerHTML = "", s.ei(); }, this.ei = function () { s.divLines.innerHTML = "", s.xb.linesVertical = {}, s.xb.linesHorizontal = {}, s.elements.linesVertical = []; }, this.of = function (e) { var t = []; for (var n in s.xb.cells)
3551
+ t.push(s.xb.cells[n]); t.filter(function (t) { return t && t.coords && t.coords.y === e; }).forEach(function (e) { s.fb(e); }); }, this.gd = function (e, t) { if (this.La) {
3552
+ var n = s.Ie(e);
3519
3553
  if (n) {
3520
- var a = l.rowlist, i = l.divCells, r = e + "_" + t;
3521
- if (!this.yb.cells[r]) {
3522
- var s = this.di(e, t), d = l.ei(e, t), c = o();
3523
- if (c.style.left = n.left + "px", c.style.top = a[t].top + "px", c.style.width = n.width + "px", c.style.height = a[t].height + "px", c.style.position = "absolute", s && s.backColor && (c.style.backgroundColor = s.backColor), c.className = this.L("_cell"), c.coords = {}, c.coords.x = e, c.coords.y = t, s) {
3524
- if (s.cssClass && DayPilot.Util.addClass(c, s.cssClass), c.innerHTML = l._a(s.text, s.html), s.backImage && (c.style.backgroundImage = 'url("' + s.backImage + '")'), s.backRepeat && (c.style.backgroundRepeat = s.backRepeat), s.business && l.cellsMarkBusiness && DayPilot.Util.addClass(c, l.L("_cell_business")), s.disabled && DayPilot.Util.addClass(c, l.L("_cell_disabled")), s.backColor && (c.style.backgroundColor = s.backColor), s.fontColor && (c.style.color = s.fontColor), s.horizontalAlignment || s.verticalAlignment) {
3525
- switch (c.style.display = "flex", s.horizontalAlignment) {
3554
+ var a = s.rowlist, i = s.divCells, o = e + "_" + t;
3555
+ if (!this.xb.cells[o]) {
3556
+ var l = this.fi(e, t), d = s.gi(e, t), c = r();
3557
+ if (c.style.left = n.left + "px", c.style.top = a[t].top + "px", c.style.width = n.width + "px", c.style.height = a[t].height + "px", c.style.position = "absolute", l && l.backColor && (c.style.backgroundColor = l.backColor), c.className = this.L("_cell"), c.coords = {}, c.coords.x = e, c.coords.y = t, l) {
3558
+ if (l.cssClass && DayPilot.Util.addClass(c, l.cssClass), c.innerHTML = s.$a(l.text, l.html), l.backImage && (c.style.backgroundImage = 'url("' + l.backImage + '")'), l.backRepeat && (c.style.backgroundRepeat = l.backRepeat), l.business && s.cellsMarkBusiness && DayPilot.Util.addClass(c, s.L("_cell_business")), l.disabled && DayPilot.Util.addClass(c, s.L("_cell_disabled")), l.backColor && (c.style.backgroundColor = l.backColor), l.fontColor && (c.style.color = l.fontColor), l.horizontalAlignment || l.verticalAlignment) {
3559
+ switch (c.style.display = "flex", l.horizontalAlignment) {
3526
3560
  case "right":
3527
3561
  c.style.justifyContent = "flex-end";
3528
3562
  break;
@@ -3531,7 +3565,7 @@ var DayPilot = { Global: {} };
3531
3565
  break;
3532
3566
  case "center": c.style.justifyContent = "center";
3533
3567
  }
3534
- switch (s.verticalAlignment) {
3568
+ switch (l.verticalAlignment) {
3535
3569
  case "center":
3536
3570
  c.style.alignItems = "center";
3537
3571
  break;
@@ -3541,114 +3575,148 @@ var DayPilot = { Global: {} };
3541
3575
  case "bottom": c.style.alignItems = "flex-end";
3542
3576
  }
3543
3577
  }
3544
- DayPilot.Areas.attach(c, d.cell, { "areas": s.areas || d.cell.areas });
3578
+ DayPilot.Areas.attach(c, d.cell, { "areas": l.areas });
3545
3579
  }
3546
- i.appendChild(c), this.elements.cells.push(c), this.yb.cells[r] = c;
3580
+ var u = { start: n.start, end: n.end, resource: a[t].id, div: c, properties: l, x: e, y: t };
3581
+ !function () { if ("function" == typeof s.onBeforeCellDomAdd || "function" == typeof s.onBeforeCellDomRemove) {
3582
+ var e = {};
3583
+ if (e.control = s, e.cell = u, e.element = null, c.domArgs = e, "function" == typeof s.onBeforeCellDomAdd && s.onBeforeCellDomAdd(e), e.element) {
3584
+ var t = c;
3585
+ if (t) {
3586
+ e.Pa = t;
3587
+ var n = DayPilot.Util.isReactComponent(e.element), a = DayPilot.Util.isVueVNode(e.element);
3588
+ if (n) {
3589
+ if (!s.bg.reactDOM)
3590
+ throw new DayPilot.Exception("Can't reach ReactDOM");
3591
+ s.bg.Uc(e.element, t);
3592
+ }
3593
+ else if (a) {
3594
+ if (!s.Ra.Qa)
3595
+ throw new DayPilot.Exception("Can't reach Vue");
3596
+ s.Ra.Sa = !0, s.Ra.Va(e.element, t), s.Ra.Sa = !1;
3597
+ }
3598
+ else
3599
+ t.appendChild(e.element);
3600
+ }
3601
+ }
3602
+ } }(), i.appendChild(c), this.elements.cells.push(c), this.xb.cells[o] = c;
3547
3603
  }
3548
3604
  }
3549
- } }, this.ei = function (e, t) { var n = l.Je(e); if (!n)
3550
- return null; var a = l.rowlist[t], i = a.id, r = n.start, o = n.end, s = {}; if (s.cell = { x: e, y: t, start: r, end: o, resource: i, row: l.Ag(a), properties: l.di(e, t) }, s.control = l, "function" == typeof this.onBeforeCellRender) {
3605
+ } }, this.gi = function (e, t) { var n = s.Ie(e); if (!n)
3606
+ return null; var a = s.rowlist[t], i = a.id, r = n.start, o = n.end, l = {}; if (l.cell = { x: e, y: t, start: r, end: o, resource: i, row: s.zg(a), properties: s.fi(e, t) }, l.control = s, "function" == typeof this.onBeforeCellRender) {
3551
3607
  var d = e + "_" + t;
3552
- if (l.beforeCellRenderCaching && l.bf[d])
3553
- return s;
3554
- l.bf[d] = !0, this.onBeforeCellRender(s);
3555
- } return s; }, this.clearSelection = function () { this.fi(); }, this.gi = function (e, t, n) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var a = l.je(n), i = l.Le(e); if (!i.current)
3556
- throw new DayPilot.Exception("Time range selection 'start' out of timeline"); var r = l.Le(new DayPilot.Date(t).addMilliseconds(-1)); if (!r.current)
3557
- throw new DayPilot.Exception("Time range selection 'end' out of timeline"); var o = {}; return o.start = { y: a.index, x: i.i, "time": e }, o.end = { x: r.i, "time": t }, o.calendar = this, o; }, this.selectTimeRange = function (e, t, n, a) { var i = l.gi(e, t, n); l.zf(i), a || setTimeout(function () { l.vf(i); }, 0); }, this.tf = function () { var e = n.og && n.og.source; e && DayPilot.Util.removeClass(e, l.L("_event_moving_source")), DayPilot.de(n.og), n.og = null, DayPilot.Global.movingLink && (DayPilot.Global.movingLink.clear(), DayPilot.Global.movingLink = null); }, this.fi = function () { l.divShadow && (l.divShadow.innerHTML = ""), l.elements.range = [], l.elements.range2 = null, l.yf = null, l.hi = null; }, d.Ld = function () { delete l.yb.headerHeight; }, d.da = function () { return "Disabled" !== l.xssProtection; }, d.Ge = function () { return DayPilot.Locale.find(l.locale); }, d.Nh = function () { return "Auto" !== l.timeFormat ? l.timeFormat : d.Ge().timeFormat; }, d.ea = function () { if ("Auto" === l.weekStarts) {
3558
- var e = d.Ge();
3608
+ if (s.beforeCellRenderCaching && s.af[d])
3609
+ return l;
3610
+ s.af[d] = !0, this.onBeforeCellRender(l);
3611
+ } return l; }, this.clearSelection = function () { this.hi(); }, this.ii = function (e, t, n) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var a = s.ie(n), i = s.Ke(e); if (!i.current)
3612
+ throw new DayPilot.Exception("Time range selection 'start' out of timeline"); var r = s.Ke(new DayPilot.Date(t).addMilliseconds(-1)); if (!r.current)
3613
+ throw new DayPilot.Exception("Time range selection 'end' out of timeline"); var o = {}; return o.start = { y: a.index, x: i.i, "time": e }, o.end = { x: r.i, "time": t }, o.calendar = this, o; }, this.selectTimeRange = function (e, t, n, a) { var i = s.ii(e, t, n); s.yf(i), a || setTimeout(function () { s.uf(i); }, 0); }, this.sf = function () { var e = t.ng && t.ng.source; e && DayPilot.Util.removeClass(e, s.L("_event_moving_source")), DayPilot.de(t.ng), t.ng = null, DayPilot.Global.movingLink && (DayPilot.Global.movingLink.clear(), DayPilot.Global.movingLink = null); }, this.hi = function () { s.divShadow && (s.divShadow.innerHTML = ""), s.elements.range = [], s.elements.range2 = null, s.xf = null, s.ji = null; }, l.Kd = function () { delete s.xb.headerHeight; }, l.da = function () { return "Disabled" !== s.xssProtection; }, l.Fe = function () { return DayPilot.Locale.find(s.locale); }, l.Ph = function () { return "Auto" !== s.timeFormat ? s.timeFormat : l.Fe().timeFormat; }, l.ea = function () { if ("Auto" === s.weekStarts) {
3614
+ var e = l.Fe();
3559
3615
  return e ? e.weekStarts : 0;
3560
- } return l.weekStarts || 0; }, d.xg = function () { var e = navigator.userAgent.toLowerCase(); return e.indexOf("mobile") !== -1 || e.indexOf("android") != -1; }, d.eg = function (e) { return "Always" === l.useEventBoxes || "Never" !== l.useEventBoxes && e < 60 * l.Me() * 1e3; }, this.di = function (e, t) { var n = e + "_" + t, a = l.rowlist; if (this.cellProperties || (this.cellProperties = {}), this.cellProperties[n])
3616
+ } return s.weekStarts || 0; }, l.wg = function () { var e = navigator.userAgent.toLowerCase(); return e.indexOf("mobile") !== -1 || e.indexOf("android") != -1; }, l.dg = function (e) { return "Always" === s.useEventBoxes || "Never" !== s.useEventBoxes && e < 60 * s.Le() * 1e3; }, this.fi = function (e, t) { var n = e + "_" + t, a = s.rowlist; if (this.cellProperties || (this.cellProperties = {}), this.cellProperties[n])
3561
3617
  return this.cellProperties[n]; if (!this.cellProperties[n]) {
3562
- var i = a[t], r = i.id, o = l.Je(e), s = o.start, d = o.end, c = {};
3563
- c.start = s, c.end = d, c.resource = r;
3618
+ var i = a[t], r = i.id, o = s.Ie(e), l = o.start, d = o.end, c = {};
3619
+ c.start = l, c.end = d, c.resource = r;
3564
3620
  var u = {};
3565
- u.business = l.isBusiness(c), this.cellProperties[n] = u;
3566
- } return this.cellProperties[n]; }, this.isBusiness = function (e, t) { var n = e.start, a = e.end, i = (a.getTime() - n.getTime()) / 6e4; if (i <= 1440 && !(l.businessWeekends || t || 0 !== e.start.dayOfWeek() && 6 !== e.start.dayOfWeek()))
3621
+ u.business = s.isBusiness(c), this.cellProperties[n] = u;
3622
+ } return this.cellProperties[n]; }, this.isBusiness = function (e, t) { var n = e.start, a = e.end, i = (a.getTime() - n.getTime()) / 6e4; if (i <= 1440 && !(s.businessWeekends || t || 0 !== e.start.dayOfWeek() && 6 !== e.start.dayOfWeek()))
3567
3623
  return !1; if (i < 720) {
3568
3624
  var r = n.getHours();
3569
3625
  r += n.getMinutes() / 60, r += n.getSeconds() / 3600, r += n.getMilliseconds() / 36e5;
3570
- var o = this.businessBeginsHour, s = this.businessEndsHour;
3571
- if (0 === s && (s = 24), o === s)
3626
+ var o = this.businessBeginsHour, l = this.businessEndsHour;
3627
+ if (0 === l && (l = 24), o === l)
3572
3628
  return !1;
3573
- if (!(o < s))
3574
- return r < s || r >= o;
3629
+ if (!(o < l))
3630
+ return r < l || r >= o;
3575
3631
  if (r < o)
3576
3632
  return !1;
3577
- if (s >= 24)
3633
+ if (l >= 24)
3578
3634
  return !0;
3579
- if (r >= s)
3635
+ if (r >= l)
3580
3636
  return !1;
3581
- } return !0; }, this.u = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.ii = function (e) { this.heightSpec = "Fixed", this.height = e - (this.Ce() + 2), this.ma(); }, this.setHeight = this.ii, this.je = function (e) { return l.Eg(e)[0]; }, this.xb = function () { if (this.id && this.id.tagName)
3637
+ } return !0; }, this.u = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.ki = function (e) { this.heightSpec = "Fixed", this.height = e - (this.Be() + 2), this.ma(); }, this.setHeight = this.ki, this.ie = function (e) { return s.Dg(e)[0]; }, this.wb = function () { if (this.id && this.id.tagName)
3582
3638
  this.nav.top = this.id;
3583
3639
  else {
3584
3640
  if ("string" != typeof this.id)
3585
3641
  throw new DayPilot.Exception("DayPilot.Scheduler() constructor requires the target element or its ID as a parameter");
3586
3642
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
3587
- throw new DayPilot.Exception("DayPilot.Scheduler: The placeholder element not found: '" + i + "'.");
3588
- } }, this.init = function () { if (this.Ma)
3589
- throw new DayPilot.Exception("This instance is already initialized. Use update() to change properties."); if (this.xb(), this.nav.top.dp) {
3590
- if (this.nav.top.dp === l)
3591
- return l;
3592
- throw new DayPilot.Exception("The target placeholder was already initialized by another DayPilot component instance.");
3593
- } return this.ji(), this.$g(), this; }, this.ji = function () { this.Mg(), this.qb(), this.ba(), this.ih(), this.rb(); var angular = l.ze.enabled; l.scrollToDate ? l.scrollTo(l.scrollToDate) : l.scrollX || l.scrollY ? l.setScroll(l.scrollX, l.scrollY) : angular || l.ef(), l.scrollToResourceId && (l.scrollToResource(l.scrollToResourceId), l.scrollToResourceId = null); var e = function () { l.scrollY && l.setScroll(l.scrollX, l.scrollY); }; setTimeout(e, 200), this.cf(), this.wb(), this.Ma = !0; var t = l.ge; t ? l.scrollTo(t) : l.ef(); }, this.vb = null, this.tb = function (e) { if (e) {
3594
- var t = { "resources": { "preInit": function () { var e = this.data; e && (l.resources = e); } }, "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? l.events.list = e.list : l.events.list = e); }, "postInit": function () { } }, "scrollTo": { "preInit": function () { }, "postInit": function () { this.data && l.fe(this.data); } }, "scrollX": { "postInit": function () { this.data && l.ie(this.data); } }, "scrollY": { "postInit": function () { this.data && l.Be(this.data); } } };
3595
- l.vb = t, l.ze.scrollToRequested && (t.scrollTo.data = l.ze.scrollToRequested, l.ze.scrollToRequested = null), l.ze.scrollXRequested && (t.scrollX.data = l.ze.scrollXRequested, l.ze.scrollXRequested = null), l.ze.scrollYRequested && (t.scrollY.data = l.ze.scrollYRequested, l.ze.scrollYRequested = null);
3643
+ throw new DayPilot.Exception("DayPilot.Scheduler: The placeholder element not found: '" + a + "'.");
3644
+ } }, this.init = function () {
3645
+ if (this.La)
3646
+ throw new DayPilot.Exception("This instance is already initialized. Use update() to change properties.");
3647
+ if (this.wb(), this.nav.top.dp) {
3648
+ if (this.nav.top.dp === s)
3649
+ return s;
3650
+ throw new DayPilot.Exception("The target placeholder was already initialized by another DayPilot component instance.");
3651
+ }
3652
+ return this.li(), this.Zg(), this;
3653
+ }, this.li = function () { this.Lg(), this.pb(), this.ba(), this.hh(), this.qb(); var angular = s.ye.enabled; s.scrollToDate ? s.scrollTo(s.scrollToDate) : s.scrollX || s.scrollY ? s.setScroll(s.scrollX, s.scrollY) : angular || s.df(), s.scrollToResourceId && (s.scrollToResource(s.scrollToResourceId), s.scrollToResourceId = null); var e = function () { s.scrollY && s.setScroll(s.scrollX, s.scrollY); }; setTimeout(e, 200), this.bf(), this.vb(), this.La = !0; var t = s.fe; t ? s.scrollTo(t) : s.df(); }, this.ub = null, this.sb = function (e) { if (e) {
3654
+ var t = { "resources": { "preInit": function () { var e = this.data; e && (s.resources = e); } }, "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? s.events.list = e.list : s.events.list = e); }, "postInit": function () { } }, "scrollTo": { "preInit": function () { }, "postInit": function () { this.data && s.ee(this.data); } }, "scrollX": { "postInit": function () { this.data && s.he(this.data); } }, "scrollY": { "postInit": function () { this.data && s.Ae(this.data); } } };
3655
+ s.ub = t, s.ye.scrollToRequested && (t.scrollTo.data = s.ye.scrollToRequested, s.ye.scrollToRequested = null), s.ye.scrollXRequested && (t.scrollX.data = s.ye.scrollXRequested, s.ye.scrollXRequested = null), s.ye.scrollYRequested && (t.scrollY.data = s.ye.scrollYRequested, s.ye.scrollYRequested = null);
3596
3656
  for (var n in e)
3597
- t[n] || (l[n] = e[n]);
3657
+ t[n] || (s[n] = e[n]);
3598
3658
  for (var a in e)
3599
3659
  if (t[a]) {
3600
3660
  var i = t[a];
3601
3661
  i.data = e[a], i.preInit && i.preInit();
3602
3662
  }
3603
- } }, this.wb = function () { var e = l.vb; for (var t in e) {
3663
+ } }, this.vb = function () { var e = s.ub; for (var t in e) {
3604
3664
  var n = e[t];
3605
3665
  n.postInit && n.postInit();
3606
- } l.vb = {}; }, this.Sa = {}, this.Sa.Ra = null, this.Sa.Mb = function (e, t, n) { var a = l.Sa.Ra; if ("function" == typeof a.createVNode && "function" == typeof a.render) {
3666
+ } s.ub = {}; }, this.bg = {}, this.bg.reactDOM = null, this.bg.react = null, this.bg.Uc = function (e, t) { var n = s.bg.reactDOM; if ("function" == typeof n.createRoot) {
3667
+ var a = t.mi;
3668
+ a || (a = n.createRoot(t), t.mi = a), a.render(e);
3669
+ }
3670
+ else
3671
+ n.render(e, t); }, this.bg.mh = function (e) { var t = s.bg.reactDOM; if ("function" == typeof t.createRoot) {
3672
+ var n = e.mi;
3673
+ setTimeout(function () { n.unmount(), e.mi = null; }, 0);
3674
+ }
3675
+ else
3676
+ t.unmountComponentAtNode(e); }, this.Ra = {}, this.Ra.Qa = null, this.Ra.Lb = function (e, t, n) { var a = s.Ra.Qa; if ("function" == typeof a.createVNode && "function" == typeof a.render) {
3607
3677
  var i = a.createVNode(e, n);
3608
3678
  a.render(i, t);
3609
- } }, this.Sa.Wa = function (e, t) { var n = l.Sa.Ra; if ("function" == typeof n.render) {
3679
+ } }, this.Ra.Va = function (e, t) { var n = s.Ra.Qa; if ("function" == typeof n.render) {
3610
3680
  var a = e;
3611
3681
  DayPilot.isArray(e) && (a = n.h("div", null, e)), n.render(a, t);
3612
- } }, this.Sa.Ua = function (e) { var t = l.Sa.Ra; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.adjustEndIn = l.qf, this.internal.adjustEndNormalize = l.rf, this.internal.xssTextHtml = l._a, this.internal.touch = l.ce, this.internal.skipUpdate = l.ze.skipUpdate, this.internal.skipped = l.ze.skipped, this.internal.loadOptions = l.tb, this.internal.postInit = l.wb, this.internal.enableAngular2 = function () {
3613
- l.ze.enabled = !0;
3614
- }, this.internal.eventsFromAttr = function () { l.ze.Uf = !0; }, this.internal.resourcesFromAttr = function () { l.ze.bg = !0; }, this.internal.evImmediateRefresh = function () { l.events.uf(); }, this.internal.enableReact = function (e, t) { l.cg.react = e, l.cg.reactDOM = t; }, this.internal.reactRefs = function () { return DayPilot.Util.copyProps(l.cg, {}, ["react", "reactDOM"]); }, this.internal.enableVue = function (e) { l.Sa.Ra = e; }, this.internal.vueRef = function () { return l.Sa.Ra; }, this.internal.vueRendering = function () { return l.Sa.Ta; }, this.tb(s);
3615
- }, i = "${v}" === (new DayPilot.Scheduler).v, DayPilot.Row = function (e, t) { if (!e)
3682
+ } }, this.Ra.Ta = function (e) { var t = s.Ra.Qa; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.adjustEndIn = s.pf, this.internal.adjustEndNormalize = s.qf, this.internal.xssTextHtml = s.$a, this.internal.touch = s.be, this.internal.skipUpdate = s.ye.skipUpdate, this.internal.skipped = s.ye.skipped, this.internal.loadOptions = s.sb, this.internal.postInit = s.vb, this.internal.enableAngular2 = function () { s.ye.enabled = !0; }, this.internal.eventsFromAttr = function () { s.ye.Tf = !0; }, this.internal.resourcesFromAttr = function () { s.ye.ag = !0; }, this.internal.evImmediateRefresh = function () { s.events.tf(); }, this.internal.enableReact = function (e, t) { s.bg.react = e, s.bg.reactDOM = t; }, this.internal.reactRefs = function () { return DayPilot.Util.copyProps(s.bg, {}, ["react", "reactDOM"]); }, this.internal.enableVue = function (e) { s.Ra.Qa = e; }, this.internal.vueRef = function () { return s.Ra.Qa; }, this.internal.vueRendering = function () { return s.Ra.Sa; }, this.sb(o);
3683
+ }, a = "${v}" === (new DayPilot.Scheduler).v, DayPilot.Row = function (e, t) { if (!e)
3616
3684
  throw new DayPilot.Exception("Now row object supplied when creating DayPilot.Row"); if (!t)
3617
- throw new DayPilot.Exception("No parent control supplied when creating DayPilot.Row"); this.ki = {}; var n = this.ki; n.id = e.id, n.name = e.name, n.data = e.resource, n.tags = e.tags; var a = this; a.isRow = !0, a.menuType = "resource", a.name = e.name, a.id = e.id, a.tags = e.tags, a.index = e.index, a.calendar = t, a.data = e.resource, a.li = e, a.$ = {}, a.$.row = e, a.toJSON = function () { var e = {}; return e.start = this.start, e.name = this.name, e.id = this.id, e.index = this.index, e; }, a.events = {}, a.events.all = function () { for (var e = [], t = 0; t < a.li.events.length; t++)
3618
- e.push(a.li.events[t]); return e; }, a.events.isEmpty = function () { return 0 === a.li.events.length; }, a.events.forRange = function (e, t) { return a.li.events.forRange(e, t); }, a.events.totalDuration = function () { var e = 0; return a.events.all().forEach(function (t) { e += t.part.end.getTime() - t.part.start.getTime(); }), new DayPilot.Duration(e); }, a.remove = function () { t.rows.remove(a); }, a.addClass = function (e) { var n = t.divHeader, i = n.rows[a.index]; DayPilot.Util.addClass(i, e), a.$.row.cssClass = DayPilot.Util.addClassToString(a.$.row.cssClass, e), a.data.cssClass = e; }, a.removeClass = function (e) { var n = t.divHeader, i = n.rows[a.index]; DayPilot.Util.removeClass(i, e), a.$.row.cssClass = DayPilot.Util.removeClassFromString(a.$.row.cssClass, e), a.data.cssClass = DayPilot.Util.removeClassFromString(a.data.cssClass, e); }; }, n.Pe = null, n.ng = null, n.Ch = null, n.gg = null, n.kg = null, n.Oe = !1, n.fh = !1, n.Th = null, n.mi = null, n.qc = function () { DayPilot.ue(document, "mouseup", n._d), DayPilot.ue(document, "touchmove", n.gh), DayPilot.ue(document, "touchend", n.hh), n.fh = !1; }, n.gh = function (e) { if (n.gg) {
3619
- var t = n.gg.event.calendar;
3620
- t.coords = t.ce.Hh(e), t.ce.Kh(), e.preventDefault();
3621
- } if (n.Pe) {
3685
+ throw new DayPilot.Exception("No parent control supplied when creating DayPilot.Row"); this.ni = {}; var n = this.ni; n.id = e.id, n.name = e.name, n.data = e.resource, n.tags = e.tags; var a = this; a.isRow = !0, a.menuType = "resource", a.name = e.name, a.id = e.id, a.tags = e.tags, a.index = e.index, a.calendar = t, a.data = e.resource, a.oi = e, a.$ = {}, a.$.row = e, a.toJSON = function () { var e = {}; return e.start = this.start, e.name = this.name, e.id = this.id, e.index = this.index, e; }, a.events = {}, a.events.all = function () { for (var e = [], t = 0; t < a.oi.events.length; t++)
3686
+ e.push(a.oi.events[t]); return e; }, a.events.isEmpty = function () { return 0 === a.oi.events.length; }, a.events.forRange = function (e, t) { return a.oi.events.forRange(e, t); }, a.events.totalDuration = function () { var e = 0; return a.events.all().forEach(function (t) { e += t.part.end.getTime() - t.part.start.getTime(); }), new DayPilot.Duration(e); }, a.remove = function () { t.rows.remove(a); }, a.addClass = function (e) { var n = t.divHeader, i = n.rows[a.index]; DayPilot.Util.addClass(i, e), a.$.row.cssClass = DayPilot.Util.addClassToString(a.$.row.cssClass, e), a.data.cssClass = e; }, a.removeClass = function (e) { var n = t.divHeader, i = n.rows[a.index]; DayPilot.Util.removeClass(i, e), a.$.row.cssClass = DayPilot.Util.removeClassFromString(a.$.row.cssClass, e), a.data.cssClass = DayPilot.Util.removeClassFromString(a.data.cssClass, e); }; }, t.Oe = null, t.mg = null, t.Dh = null, t.fg = null, t.jg = null, t.Ne = !1, t.eh = !1, t.Vh = null, t.pi = null, t.pc = function () { DayPilot.ue(document, "mouseup", t.$d), DayPilot.ue(document, "touchmove", t.fh), DayPilot.ue(document, "touchend", t.gh), t.eh = !1; }, t.fh = function (e) { if (t.fg) {
3687
+ var n = t.fg.event.calendar;
3688
+ n.coords = n.be.Hh(e), n.be.Mh(), e.preventDefault();
3689
+ } if (t.Oe) {
3622
3690
  e.preventDefault();
3623
- var t = n.ng.calendar;
3624
- t.coords = t.ce.Hh(e), t.ce.Lh();
3625
- } }, n.hh = function (e) { n.Wg = !1, n._d(e); }, n._d = function (e) { if (n.gg) {
3626
- var t = function () { var e = n.kg, t = e.calendar; r().style.cursor = "", n.gg = null, n.kg = null, DayPilot.de(n.jg), n.jg = null, t && (t.ni = null); };
3627
- if (setTimeout(function () { n.Oe = !1; }), !n.jg)
3628
- return void t();
3629
- var i = n.kg, o = i.calendar, s = n.jg.start, l = n.jg.end, d = "left" === n.gg.dpBorder ? "start" : "end";
3630
- t(), o.K(i, s, l, d);
3691
+ var n = t.mg.calendar;
3692
+ n.coords = n.be.Hh(e), n.be.Nh();
3693
+ } }, t.gh = function (e) { t.Vg = !1, t.$d(e); }, t.$d = function (e) { if (t.fg) {
3694
+ var a = function () { var e = t.jg, n = e.calendar; i().style.cursor = "", t.fg = null, t.jg = null, DayPilot.de(t.ig), t.ig = null, n && (n.qi = null); };
3695
+ if (setTimeout(function () { t.Ne = !1; }), !t.ig)
3696
+ return void a();
3697
+ var r = t.jg, o = r.calendar, s = t.ig.start, l = t.ig.end, d = "left" === t.fg.dpBorder ? "start" : "end";
3698
+ a(), o.K(r, s, l, d);
3631
3699
  }
3632
- else if (n.ng) {
3633
- var t = function () { DayPilot.Global.movingAreaData = null; var e = n.og && n.og.calendar; n.og && (DayPilot.de(n.og), n.og.calendar = null), r().style.cursor = "", n.Pe = null, n.ng = null, e && (e.sf = null); };
3634
- if (!n.og)
3635
- return void t();
3636
- var i = n.ng, o = n.og.calendar;
3700
+ else if (t.mg) {
3701
+ var a = function () { DayPilot.Global.movingAreaData = null; var e = t.ng && t.ng.calendar; t.ng && (DayPilot.de(t.ng), t.ng.calendar = null), i().style.cursor = "", t.Oe = null, t.mg = null, e && (e.rf = null); };
3702
+ if (!t.ng)
3703
+ return void a();
3704
+ var r = t.mg, o = t.ng.calendar;
3637
3705
  if (!o)
3638
- return void t();
3639
- if (n.og.source = n.Pe, !n.og.row)
3640
- return void t();
3641
- var s = n.og.start, l = n.og.end, c = n.og.row.id;
3642
- n.og.calendar = null, r().style.cursor = "", n.Pe = null, n.ng = null, o.M(i, s, l, c, e), DayPilot.Global.movingAreaData = null;
3706
+ return void a();
3707
+ if (t.ng.source = t.Oe, !t.ng.row)
3708
+ return void a();
3709
+ var s = t.ng.start, l = t.ng.end, c = t.ng.row.id;
3710
+ t.ng.calendar = null, i().style.cursor = "", t.Oe = null, t.mg = null, o.M(r, s, l, c, e), DayPilot.Global.movingAreaData = null;
3643
3711
  }
3644
- else if (n.Ih) {
3645
- var u = DayPilot.Util.mouseButton(e), h = n.Ih, f = h.calendar, t = function () { };
3646
- if (f.hi = null, n.Th)
3647
- return clearTimeout(n.Th), n.Th = null, void t();
3648
- f.yf = h, n.Ih = null;
3649
- var v = function (e) { return function () { n.Th = null, f.vf(e), "Hold" !== f.timeRangeSelectedHandling && "HoldForever" !== f.timeRangeSelectedHandling ? a() : f.yf = e; }; }, p = f.Xh(h);
3650
- return t(), u.left ? (v(p)(), e.cancelBubble = !0, !1) : void (n.Th = null);
3651
- } n.Fh = null, n.fg = null; };
3712
+ else if (t.Kh) {
3713
+ var u = DayPilot.Util.mouseButton(e), h = t.Kh, f = h.calendar, a = function () { };
3714
+ if (f.ji = null, t.Vh)
3715
+ return clearTimeout(t.Vh), t.Vh = null, void a();
3716
+ f.xf = h, t.Kh = null;
3717
+ var v = function (e) { return function () { t.Vh = null, f.uf(e), "Hold" !== f.timeRangeSelectedHandling && "HoldForever" !== f.timeRangeSelectedHandling ? n() : f.xf = e; }; }, p = f.Zh(h);
3718
+ return a(), u.left ? (v(p)(), e.cancelBubble = !0, !1) : void (t.Vh = null);
3719
+ } t.Gh = null, t.eg = null; };
3652
3720
  }
3653
3721
  }(DayPilot);
3654
3722