@daypilot/daypilot-lite-angular 4.6.1 → 4.7.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.743-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";
@@ -1382,7 +1385,7 @@ var DayPilot = { Global: {} };
1382
1385
  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 = "";
1383
1386
  var A = d.offsetHeight, E = d.offsetWidth;
1384
1387
  d.style.display = "none";
1385
- var H = document.documentElement.clientHeight, N = window.innerWidth, I = "number" == typeof r.windowMargin ? r.windowMargin : 5;
1388
+ var H = document.documentElement.clientHeight, N = window.innerWidth, R = "number" == typeof r.windowMargin ? r.windowMargin : 5;
1386
1389
  if (function () { var e = r.initiator; if (e) {
1387
1390
  var t = e.div, n = e.e, a = e.area, o = a.visibility || a.v || "Visible", s = e.a;
1388
1391
  if ("Visible" !== o && (s = DayPilot.Areas.createArea(t, n, a), t.appendChild(s), i = s), s) {
@@ -1390,16 +1393,16 @@ var DayPilot = { Global: {} };
1390
1393
  r.x = l.x, r.y = l.y + l.h + 2;
1391
1394
  }
1392
1395
  } }(), 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);
1396
+ s = n - (n - i - (H - A) + R);
1394
1397
  }
1395
1398
  else
1396
1399
  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
+ l = e - (e - o - (N - E) + R);
1398
1401
  }
1399
1402
  else
1400
1403
  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
+ var I = r.parentLink, L = parseInt(new DayPilot.StyleReader(d).get("border-top-width")), P = DayPilot.abs(r.parentLink.parentNode), z = P.x + I.offsetWidth, B = P.y - L;
1405
+ z + E > N && (z = Math.max(0, P.x - E));
1403
1406
  var U = document.body.scrollTop + document.documentElement.scrollTop;
1404
1407
  B + A - U > H && (B = Math.max(0, H - A + U)), d.style.left = z + "px", d.style.top = B + "px";
1405
1408
  }
@@ -2640,19 +2643,19 @@ var DayPilot = { Global: {} };
2640
2643
  }(DayPilot), function (DayPilot) {
2641
2644
  function e(e) { var t = e.touches[0].pageX, n = e.touches[0].pageY, a = {}; return a.x = t, a.y = n, a; }
2642
2645
  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) {
2646
+ var t = {}, n = function () { }, a = !1, i = function () { return document.body; }, r = function () { return document.createElement("div"); };
2647
+ DayPilot.Scheduler = function (a, o) {
2645
2648
  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;
2649
+ var s = this;
2650
+ 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.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 = {};
2651
+ var l = this.R;
2649
2652
  this.ce = {};
2650
- var c = l.ce;
2653
+ var d = s.ce;
2651
2654
  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);
2655
+ var c = this.ee, u = {};
2656
+ this.scrollTo = function (e) { s.fe(e); }, this.fe = function (e) { if (e) {
2657
+ if (!s.Ma)
2658
+ return void (s.ge = e);
2656
2659
  var t;
2657
2660
  if (e instanceof DayPilot.Date)
2658
2661
  t = this.getPixels(e).left;
@@ -2663,215 +2666,212 @@ var DayPilot = { Global: {} };
2663
2666
  throw new DayPilot.Exception("Invalid scrollTo() parameter. Accepted parameters: string (ISO date), number (pixels), DayPilot.Date object");
2664
2667
  t = e;
2665
2668
  }
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);
2669
+ var n = s.he.clientWidth, a = s.nav.scroll.clientWidth;
2670
+ t < 0 && (t = 0), t > n - a && (t = n - a), s.ie(t);
2668
2671
  } }, this.scrollToResource = function (e) { DayPilot.complete(function () { var t; if ("string" == typeof e || "number" == typeof e)
2669
- t = l.je(e);
2672
+ t = s.je(e);
2670
2673
  else {
2671
2674
  if (!(e instanceof DayPilot.Row))
2672
2675
  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();
2676
+ t = s.je(e.id);
2677
+ } t && setTimeout(function () { var e = t.top; s.nav.scroll.scrollTop = e; }, 100); }); }, this.ke = function () { if (this.floatingTimeHeaders && this.timeHeader) {
2678
+ var e = s.le();
2676
2679
  if (e) {
2677
- l.me();
2680
+ s.me();
2678
2681
  for (var t = e.pixels.left, n = e.pixels.right + e.sw, a = [], i = 0; i < this.timeHeader.length; i++)
2679
2682
  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;
2683
+ var o = this.timeHeader[i][r], l = o.left, d = o.left + o.width, c = null;
2684
+ if (l < t && t < d && (c = {}, c.x = r, c.y = i, c.marginLeft = t - l, c.marginRight = 0, c.div = s.yb.timeHeader[r + "_" + i], a.push(c)), l < n && n < d) {
2685
+ c || (c = {}, c.x = r, c.y = i, c.marginLeft = 0, c.div = s.yb.timeHeader[r + "_" + i], a.push(c)), c.marginRight = d - n;
2683
2686
  break;
2684
2687
  }
2685
2688
  }
2686
2689
  for (var u = 0; u < a.length; u++) {
2687
2690
  var c = a[u];
2688
- l.ne(c.div, c.marginLeft, c.marginRight);
2691
+ s.ne(c.div, c.marginLeft, c.marginRight);
2689
2692
  }
2690
2693
  }
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);
2694
+ } }, this.oe = function () { s.ke(), s.pe(); }, this.qe = {};
2695
+ var h = s.qe;
2696
+ h.se = 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))
2697
+ return !0; }); }, h.te = function () { var e = [], t = s.le(); if (!t)
2698
+ return e; for (var n = t.pixels.left, a = 0; a < s.elements.events.length; a++) {
2699
+ var i = s.elements.events[a], r = i.event, o = r.part.left, l = r.part.left + r.part.width;
2700
+ o < n && n < l && e.push(i);
2698
2701
  } 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++) {
2702
+ var e = h.te();
2703
+ s.ve = performance.now(), e.forEach(function (t) { var n = t.event, a = e.area.pixels.left, i = n.part.left, r = a - i; s.we(t, r, 0); }), s.xe();
2704
+ } }, this.elements.sections = [], this.elements.hsections = [], this.ne = 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.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++) {
2702
2705
  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;
2706
+ n && t.firstChild && (t.firstChild.innerHTML = s._a(n.th.text, n.th.html)), DayPilot.de(t.section), t.section = null;
2704
2707
  } 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++) {
2708
+ return a.ye && a.ye.marginLeft === t && a.ye.marginRight === n ? void (a.ye.stamp = s.ve) : (e.section.style.left = t + "px", e.section.style.right = n + "px", void (a.ye = { marginLeft: t, marginRight: n, stamp: s.ve })); 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.ye = { marginLeft: t, marginRight: n, stamp: s.ve }, 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.xe = function () { for (var e = [], t = 0; t < this.elements.sections.length; t++) {
2706
2709
  var n = this.elements.sections[t];
2707
- if (n.section && n.section.ye && n.section.ye.stamp === l.ve)
2710
+ if (n.section && n.section.ye && n.section.ye.stamp === s.ve)
2708
2711
  e.push(n);
2709
2712
  else {
2710
2713
  var a = n.event;
2711
2714
  a && (n.firstChild.innerHTML = a.client.html()), DayPilot.de(n.section), n.section = null;
2712
2715
  }
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"; }();
2716
+ } this.elements.sections = e; }, this.setScrollX = function (e) { s.ze.enabled ? (s.ze.scrollXRequested = e, setTimeout(function () { var e = s.ze.scrollXRequested; "number" == typeof e && s.ie(e); }, 0)) : s.ie(e); }, this.ie = function (e) { var t = s.nav.scroll, n = s.Ae(); t.clientWidth + e > n && (e = n - t.clientWidth), s.divTimeScroll.scrollLeft = e, t.scrollLeft = e; }, this.setScrollY = function (e) { s.ze.enabled ? (s.ze.scrollYRequested = e, setTimeout(function () { var e = s.ze.scrollYRequested; "number" == typeof e && s.Be(e); }, 0)) : s.Be(e); }, this.Be = function (e) { var t = s.nav.scroll, n = s.ae; 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) {
2717
+ !function () { var e = s.Ae(); s.he.style.height = s.ae + "px", s.he.style.width = e + "px", e > s.nav.scroll.clientWidth ? s.nav.scroll.style.overflowX = "auto" : s.nav.scroll.style.overflowX = "hidden"; }();
2715
2718
  var e = 1;
2716
2719
  this.nav.scroll.style.height = "30px";
2717
2720
  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
+ 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", s.nav.resScrollSpace) {
2719
2722
  var a = 30;
2720
- "Auto" === l.heightSpec && (a = DayPilot.sh(l.nav.scroll)), l.nav.resScrollSpace.style.height = a + "px";
2723
+ "Auto" === s.heightSpec && (a = DayPilot.sh(s.nav.scroll)), s.nav.resScrollSpace.style.height = a + "px";
2721
2724
  }
2722
2725
  for (var i = 0; i < this.elements.linesVertical.length; i++)
2723
2726
  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.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 = s.startDate.addDays(s.days), n = 0; n < e.length; n++) {
2725
2728
  var a = e[n].groupBy, i = e[n].format;
2726
2729
  "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)
2730
+ for (var r = [], o = s.startDate; o.ticks < t.ticks;) {
2731
+ var d = {};
2732
+ if (d.start = o, d.end = this.Fe(d.start, a), d.start.ticks === d.end.ticks)
2730
2733
  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) {
2734
+ d.left = this.getPixels(d.start).left;
2735
+ var c = this.getPixels(d.end).left, u = c - d.left;
2736
+ if (d.width = u, "string" == typeof i ? d.text = d.start.toString(i, l.Ge()) : d.text = this.He(d, a), u > 0) {
2734
2737
  if ("function" == typeof this.onBeforeTimeHeaderRender) {
2735
2738
  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;
2739
+ 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
2740
  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;
2741
+ 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
2742
  }
2740
- r.push(s);
2743
+ r.push(d);
2741
2744
  }
2742
- o = s.end;
2745
+ o = d.end;
2743
2746
  }
2744
2747
  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) {
2748
+ } }, this.getPixels = function (e) { var t = e.ticks - this.startDate.ticks, n = s.Bb(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.Ae(); return o = o > l ? l : o, { left: n, boxLeft: r, boxRight: o, i: i }; }, this.getDate = function (e, t, n) { var a = this.Ie(e, n); if (!a)
2749
+ return null; var i = a.x, r = s.Je(i); if (!r)
2750
+ 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 / s.cellWidth), a = s.Je(n); if (!a)
2751
+ return null; var i = {}; return i.x = n, i.offset = e % s.cellWidth, i.cell = a, i; }, this.Le = function (e) { var t = e.ticks - this.startDate.ticks, n = 60 * s.Me() * 1e3; if (t < 0)
2752
+ return { past: !0 }; var a = Math.floor(t / n); return { i: a, current: s.Je(a) }; }, this.Bb = function (e) { var t = 60 * s.Me() * 1e3, n = s.cellWidth; return Math.floor(n * e / t); }, this.Ke = function (e) { var t = 60 * s.Me() * 1e3, n = s.cellWidth; return Math.floor(e / n * t); }, this.Ne = function (e) { DayPilot.Global.touch.start || t.Oe || (s.Pe = {}, s.va(this, e)); }, this.va = function (e, t) { e.event && s.Qe(e, t); }, this.xa = function (e) { if (!DayPilot.Global.touch.active && !DayPilot.Global.touch.start) {
2750
2753
  var t = this.event;
2751
2754
  if (e.cancelBubble = !0, e.preventDefault(), !this.event.client.rightClickEnabled())
2752
2755
  return !1;
2753
- l.Re(e);
2756
+ s.Re(e);
2754
2757
  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))
2758
+ 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
2759
  return !1;
2757
- switch (l.eventRightClickHandling) {
2760
+ switch (s.eventRightClickHandling) {
2758
2761
  case "ContextMenu":
2759
2762
  var a = t.client.contextMenu();
2760
- a ? a.show(t) : l.contextMenu && l.contextMenu.show(this.event);
2763
+ a ? a.show(t) : s.contextMenu && s.contextMenu.show(this.event);
2761
2764
  }
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)
2765
+ return "function" == typeof s.onEventRightClicked && s.onEventRightClicked(n), !1;
2766
+ } }, this.Je = function (e) { var t = s.Me(), 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.Qe = function (e, t) { if ("boolean" == typeof t)
2764
2767
  throw new DayPilot.Exception("Invalid _eventClickSingle parameters"); var n = e.event; if (n) {
2765
2768
  var a = t.ctrlKey, i = t.metaKey;
2766
2769
  if (n.client.clickEnabled()) {
2767
- l.Re(t);
2770
+ s.Re(t);
2768
2771
  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);
2772
+ 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
2773
  }
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);
2774
+ } }, 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)) {
2775
+ switch (s.eventDeleteHandling) {
2776
+ case "Update": s.events.remove(e);
2774
2777
  }
2775
- "function" == typeof l.onEventDeleted && l.onEventDeleted(t);
2778
+ "function" == typeof s.onEventDeleted && s.onEventDeleted(t);
2776
2779
  } }, 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);
2780
+ switch (r.loaded = {}, t = r.newStart, n = r.newEnd, s.eventResizeHandling) {
2781
+ case "Update": s.Te(r);
2779
2782
  }
2780
- "function" == typeof l.onEventResized && l.onEventResized(r);
2783
+ "function" == typeof s.onEventResized && s.onEventResized(r);
2781
2784
  } } if ("Disabled" !== this.eventResizeHandling) {
2782
- n = l.Se(n);
2785
+ n = s.Se(n);
2783
2786
  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) {
2787
+ 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();
2788
+ } }, this.rb = function (e) { e = e || {}, clearTimeout(s.Ue), s.timeHeader = null, s.cellProperties = {}, s.Ee(), s.Ve(), s.events.We(), s.R.Ld(), s.clearSelection(), s.ha(), s.Xe(), s.Ye(), s.sb(), s.Ze(), s.$e(), s._e(), s.ia(), s.Z(), s.af(), s.bf = {}, s.cf(), s.ma(), s.df(), e.immediateEvents ? s.na() : setTimeout(function () { s.na(); }, 100), this.visible ? s.be !== s.visible && this.show() : this.hide(), this.be = this.visible, this.oe(), s.ef(), this.ff(); }, this.ff = function () { if ("function" == typeof s.onAfterUpdate) {
2786
2789
  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 = {});
2790
+ s.onAfterUpdate(e);
2791
+ } }, this.update = function (e) { if (!s.Ma)
2792
+ throw new DayPilot.Exception("You are trying to update a DayPilot.Scheduler object that hasn't been initialized."); if (s.Q)
2793
+ 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.gf(e), u.timeout = setTimeout(u.doit)) : (u.gf(e), u.doit()); }, u.gf = function (e) { if (e) {
2794
+ u.options || (u.options = {});
2792
2795
  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);
2796
+ u.options[t] = e[t];
2797
+ } }, u.doit = function () { var e = u.options; return u.options = null, s.Ma ? (s.tb(e), s.rb({ "immediateEvents": !0 }), void s.wb()) : void s.tb(e); }, this.hf = function (e) { e.forEach(function (e) { s.if(e.index); }); }, this.jf = function (e) { return e && 0 !== e.length ? e[0].isRow ? e : e.map(function (e) { return s.rowlist[e]; }) : []; }, this.kf = function (e, t, n) { e = DayPilot.ua(e), e = s.jf(e), s.hf(e), this.lf ? (this.Xe(), this.$e(), this.af(), e.forEach(function (e) { s.mf(e.index); }), e.forEach(function (e) { s.nf(e.index); }), this.df(), this.of()) : (e.forEach(function (e) { t || s.mf(e.index), s.nf(e.index); }), e.forEach(function (e) { s.pf(e.index); }), s.df()), s.pe(), n && n(), this.cf(); }, this.Se = function (e) { return "DateTime" === s.eventEndSpec ? e : e.getDatePart().ticks === e.ticks ? e.addDays(-1) : e.getDatePart(); }, this.qf = function (e) { return "DateTime" === s.eventEndSpec ? e : e.getDatePart().addDays(1); }, this.rf = function (e) { return "DateTime" === s.eventEndSpec ? e : e.getDatePart(); }, this.M = function (e, t, n, a, i) {
2798
+ if (s.sf = null, "Disabled" !== s.eventMoveHandling) {
2799
+ n = s.Se(n);
2797
2800
  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();
2801
+ 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; };
2802
+ var o = function () { if (r.loaded = function () { }, r.preventDefault.value)
2803
+ return void s.tf(); switch (t = r.newStart, n = r.newEnd, s.eventMoveHandling) {
2804
+ case "Update": s.Te(r);
2805
+ } s.tf(), "function" == typeof s.onEventMoved && s.onEventMoved(r); };
2806
+ r.async = !1, r.loaded = function () { o(); }, "function" == typeof s.onEventMove && s.onEventMove(r),
2807
+ r.async || o();
2808
2808
  }
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)
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), s.events.update(t), s.events.uf(); }, this.vf = function (e) { if (e)
2810
2810
  if (e.args)
2811
- l.O(e.args.start, e.args.end, e.args.resource);
2811
+ s.O(e.args.start, e.args.end, e.args.resource);
2812
2812
  else {
2813
- var t = l.wf(e);
2813
+ var t = s.wf(e);
2814
2814
  if (!t)
2815
2815
  return;
2816
- l.O(t.start, t.end, t.resource);
2817
- } }, this.O = function (e, t, n) { if ("Disabled" !== l.timeRangeSelectedHandling) {
2816
+ s.O(t.start, t.end, t.resource);
2817
+ } }, this.O = function (e, t, n) { if ("Disabled" !== s.timeRangeSelectedHandling) {
2818
2818
  var a = t;
2819
- t = l.Se(a);
2819
+ t = s.Se(a);
2820
2820
  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)
2821
+ 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) {
2822
+ if (s.onTimeRangeSelect(i), i.preventDefault.value)
2823
2823
  return;
2824
2824
  e = i.start, t = i.end;
2825
2825
  }
2826
- t = l.qf(t), l.xf(l.yf, e, t), l.zf(l.yf), "function" == typeof l.onTimeRangeSelected && l.onTimeRangeSelected(i);
2826
+ t = s.qf(t), s.xf(s.yf, e, t), s.zf(s.yf), "function" == typeof s.onTimeRangeSelected && s.onTimeRangeSelected(i);
2827
2827
  } }, this.xf = function (e, t, n) { if (e) {
2828
2828
  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];
2829
+ t.getTime() < s.startDate.getTime() ? (e.start.x = 0, e.start.time = s.startDate.getTime()) : (a = s.Le(t), e.start.x = a.i, e.start.time = t);
2830
+ var r = s.startDate.addDays(s.days);
2831
+ i.getTime() > r.getTime() ? (e.end.x = s.Af(), e.end.time = r.getTime()) : (a = s.Le(i.addMilliseconds(-1)), e.end.x = a.i, e.end.time = n);
2832
+ } }, this.Bf = function (e, t) { s.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 s.onRowClick && (s.onRowClick(n), n.preventDefault.value) || "function" == typeof s.onRowClicked && s.onRowClicked(n); }, this.Df = 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.Ef(e, t), i = s.Ff(a), r = s.Je(a.start.x), o = s.Je(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.Ef = function (e, t) { var n = {}; n.start = {}, n.end = {}; var a = s.Ie(e), i = s.Ie(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.Gf(r).i, n.end.y = s.Gf(o).i, n.start.x = DayPilot.Util.atLeast(n.start.x, 0); var l = s.Af(); return n.end.x >= l && (n.end.x = l - 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 = s.rowlist[n];
2834
2834
  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) {
2835
+ } return t; }, this.L = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.sb = 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.he.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.Ma && !e.Q) {
2836
2836
  e.Q = !0;
2837
- for (var t in e.Hf) {
2838
- var a = e.Hf[t];
2837
+ for (var n in e.Hf) {
2838
+ var a = e.Hf[n];
2839
2839
  DayPilot.isArray(a) ? a.forEach(function (e) { clearTimeout(e); }) : clearTimeout(a);
2840
2840
  }
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)
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, t.qc(e), c = null;
2842
+ } }, 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.If(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.Gf = function (e) { for (var t, n = s.rowlist, a = {}, i = 0, r = 0, o = n.length, l = 0; l < o; l++) {
2843
+ var d = n[l];
2844
+ 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
2845
  break;
2846
2846
  } return a; }, this.Jf = function (e) { if (e > this.rowlist.length - 1)
2847
2847
  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)
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 (!s.events.list || "undefined" == typeof s.events.list.length)
2849
2849
  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);
2850
+ return s.Kf(e); for (var t = s.events.list.length, n = 0; n < t; n++)
2851
+ if (s.events.list[n].id === e)
2852
+ return new DayPilot.Event(s.events.list[n], s); return null; }, this.events.findAll = function (e) { if ("function" == typeof e) {
2853
+ for (var t = s.events.list.length, n = [], a = 0; a < t; a++) {
2854
+ var i = new DayPilot.Event(s.events.list[a], s);
2855
2855
  e(i) && n.push(i);
2856
2856
  }
2857
2857
  return n;
2858
2858
  } if ("object" == typeof e)
2859
- return l.events.findAll(function (t) { for (var n in e)
2859
+ return s.events.findAll(function (t) { for (var n in e)
2860
2860
  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);
2861
+ return !1; return !0; }); throw new DayPilot.Exception("function or object argument expected"); }, this.Kf = function (e) { for (var t = s.events.list.length, n = 0; n < t; n++) {
2862
+ var a = new DayPilot.Event(s.events.list[n], s);
2863
2863
  if (e(a))
2864
2864
  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");
2865
+ } return null; }, this.events.focus = function (e) { var t = s.Lf(e); null === t || void 0 === t ? void 0 : t.focus(); }, this.events.scrollIntoView = function (e) { if (s.Lf(e)) {
2866
+ var t = e.start(), n = s.getViewport();
2867
+ !DayPilot.Util.overlaps(n.start, n.end, e.start(), e.end()) && DayPilot.Util.overlaps(s.sa(), s.Mf(), e.start(), e.end()) && s.scrollTo(t, "fast", "middle");
2868
2868
  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);
2869
+ s.getViewport().resources.indexOf(a) === -1 && s.scrollToResource(a);
2870
+ } }, this.events.all = function () { for (var e = [], t = 0; t < s.events.list.length; t++) {
2871
+ var n = new DayPilot.Event(s.events.list[t], s);
2872
2872
  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);
2873
+ } 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++) {
2874
+ var i = new DayPilot.Event(s.events.list[a], s);
2875
2875
  DayPilot.Util.overlaps(i.start(), i.end(), e, t) && n.push(i);
2876
2876
  } return n; }, this.events.load = function (e, t, n) { if (!e)
2877
2877
  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 +2884,128 @@ var DayPilot = { Global: {} };
2884
2884
  var o = {};
2885
2885
  if (o.preventDefault = function () { this.preventDefault.value = !0; }, o.data = n, "function" == typeof t && t(o), o.preventDefault.value)
2886
2886
  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 });
2887
+ s.events.list = o.data, s.Ma && s.update();
2888
+ } }; if (s.eventsLoadMethod && "POST" === s.eventsLoadMethod.toUpperCase())
2889
+ DayPilot.ajax({ "method": "POST", "contentType": "application/json", "data": { "start": s.visibleStart().toString(), "end": s.visibleEnd().toString() }, "url": e, "success": i, "error": a });
2890
2890
  else {
2891
- var r = e, o = "start=" + l.visibleStart().toString() + "&end=" + l.visibleEnd().toString();
2891
+ var r = e, o = "start=" + s.visibleStart().toString() + "&end=" + s.visibleEnd().toString();
2892
2892
  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++) {
2893
+ } }, this.events.Nf = function (e) { var t = []; return s.rowlist.forEach(function (n) { s.Of(n.index); for (var a = 0; a < n.events.length; a++) {
2894
2894
  var i = n.events[a].data;
2895
- if (l.Pf(i, e)) {
2895
+ if (s.Pf(i, e)) {
2896
2896
  t.push(n), n.events.splice(a, 1);
2897
2897
  break;
2898
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
+ return null; for (var t = s.rowlist, n = 0; n < t.length; n++) {
2901
2901
  var a = t[n];
2902
- l.Of(a.index);
2902
+ s.Of(a.index);
2903
2903
  for (var i = 0; i < a.events.length; i++) {
2904
2904
  var r = a.events[i];
2905
- if (l.Pf(r.data, e))
2905
+ if (s.Pf(r.data, e))
2906
2906
  return a.events[i];
2907
2907
  }
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));
2908
+ } return null; }, this.events.Rf = function (e) { var t = [], n = s.Sf(), a = DayPilot.indexOf(s.events.list, e); s.zb(a); var i = s.rowlist, r = !1; return i.forEach(function (i) { if (!r) {
2909
+ s.Of(i.index);
2910
+ var o = s.Tf(e, i);
2911
+ o && ("function" == typeof s.onBeforeEventRender && (o.cache = s.yb.events[a]), t.push(i), n || (r = !0));
2912
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);
2913
+ var t = s.events.find(e.id);
2914
+ return s.events.remove(t), void s.events.add(e);
2915
+ } if (s.events.list.find(function (t) { return s.Pf(t, e.data); })) {
2916
+ s.ze.Uf && (s.ze.skip = !0);
2917
+ var n = s.events.Nf(e.data);
2918
+ e.commit(), n = n.concat(s.events.Rf(e.data)), s.events.Vf(n);
2919
2919
  } }, this.events.remove = function (e) { if (e) {
2920
2920
  if ("string" == typeof e || "number" == typeof e) {
2921
- var t = l.events.find(e);
2922
- return void l.events.remove(t);
2921
+ var t = s.events.find(e);
2922
+ return void s.events.remove(t);
2923
2923
  }
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) {
2924
+ var n = s.Wf(e.data);
2925
+ n && s.events.list.splice(n.index, 1), s.ze.Uf && (s.ze.skip = !0);
2926
+ var a = s.events.Nf(e.data);
2927
+ s.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 = s, s.events.list || (s.events.list = []); var i = s.Wf(e); if (a) {
2929
2929
  if (!i)
2930
2930
  throw new DayPilot.Exception("Unexpected: event not found in list");
2931
2931
  }
2932
2932
  else {
2933
2933
  if (i)
2934
2934
  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))
2935
+ i || s.events.list.push(e.data);
2936
+ } if (s.Ma) {
2937
+ s.ze.Uf && (s.ze.skip = !0);
2938
+ var r = s.events.Rf(e.data);
2939
+ s.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 !!s.events.list.find(function (e) { if (s.Pf(t, e))
2941
2941
  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)
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(s.events.Zf), s.events.Zf = null, s.events.Yf.rows = []; }, this.events.$f = 0, this.events.Vf = function (e) { var t = s.events.Yf.rows; e.forEach(function (e) { t.push(e); }), s.events.Yf.rows = DayPilot.ua(t); var n = s.events.uf; s.events.Zf || (s.events.Zf = setTimeout(n, s.events.$f)); }, this.events.uf = function () { clearTimeout(s.events.Zf), s.events.Zf = null; var e = s.events.Yf.rows; s.events.Yf.rows = [], s._f(e), s.ag(), s.Ma && (s.lf && s.Xe(), s.ma(), s.kf(e)); }, this.ze = {}, this.ze.enabled = !1, this.ze.skip = !1, this.ze.skipUpdate = function () { return s.ze.skip; }, this.ze.skipped = function () { s.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 = s.startDate; if (e.ticks === t.ticks)
2943
2943
  return e; var n = t; if (e.ticks < t.ticks) {
2944
2944
  for (; n.ticks > e.ticks;)
2945
- n = n.addTime(60 * -l.Me() * 1e3);
2945
+ n = n.addTime(60 * -s.Me() * 1e3);
2946
2946
  return n;
2947
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
+ return a.current.start; throw new DayPilot.Exception("getBoxStart(): time not found"); }, this.If = function (e) { var n = this.Gf(s.coords.y); if ("function" != typeof e.end)
2949
2949
  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)
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 = l.eg(a), r = 0, o = s.coords.x; i && (r = e.start().getTime() - this.dg(e.start()).getTime()); var d = 0; if (t.fg)
2951
2951
  if (i) {
2952
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
+ d = t.fg.getTime() - u.getTime();
2954
+ var h = 60 * s.Me() * 1e3;
2955
+ d = Math.floor(d / h) * h;
2956
2956
  }
2957
2957
  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) {
2958
+ d = t.fg.getTime() - e.start().getTime(); var f = this.getDate(o, !0).addTime(-d); t.gg && (f = e.start()); var v = s.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 = n.top, _.left = w, _.row = n.element, _.rowIndex = n.i, _.width = x, _.start = f, _.end = p, _.relativeY = s.coords.y - n.top, _; }, this.Me = function () { switch (this.scale) {
2959
2959
  case "CellDuration": return this.cellDuration;
2960
2960
  case "Minute": return 1;
2961
2961
  case "Hour": return 60;
2962
2962
  case "Day": return 1440;
2963
2963
  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) {
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 = t.jg.width, n = t.jg.left, a = t.kg, i = t.gg.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.jg.start = r, t.jg.end = o; }, this.lg = function () { var e = s.coords, n = t.gg.dpBorder, a = t.gg.event, i = a.part.left; "right" === n && (i += a.part.width); var r, o, l = t.gg.event.calendar.cellWidth, d = a.part.width, c = a.part.left, u = 0, h = e.x - i, f = s.snapToGrid; if ("right" === n) {
2965
2965
  if (r = c, f) {
2966
- var v = l.Ie(d + c + h).cell, p = l.Ie(c).cell, m = p.left + p.width - c;
2966
+ var v = s.Ie(d + c + h).cell, p = s.Ie(c).cell, m = p.left + p.width - c;
2967
2967
  o = v.left + v.width - c, o < m && (o = m);
2968
2968
  }
2969
2969
  else
2970
2970
  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";
2971
+ var g = s.Ae();
2972
+ c + o > g && (o = g - c), t.jg.left = c, t.jg.width = o, t.jg.style.left = c + "px", t.jg.style.width = o + "px";
2973
2973
  }
2974
2974
  else {
2975
- if ("left" !== t)
2975
+ if ("left" !== n)
2976
2976
  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();
2977
+ f ? (h >= d && (h = d), r = Math.floor((c + h + 0) / l) * l, r < u && (r = u)) : r = c + h, o = d - (r - c);
2978
+ var y = c + d, b = l;
2979
+ f ? "Never" === s.useEventBoxes && (b = d < l ? d : 1) : b = 1, o < b && (o = b, r = y - o), t.jg.left = r, t.jg.width = o, t.jg.style.left = r + "px", t.jg.style.width = o + "px";
2980
+ } s.ig(); }, this.mg = function () { if (s.coords && t.ng) {
2981
+ var e = t.og, n = this.If(t.ng);
2982
+ 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;
2983
+ } }, this.pg = function () { return this.rowHeaderWidth; }, this.qg = function () { return this.rg(s.progressiveRowRenderingPreload); }, this.rg = function (e) { e = e || 0; var t = 0, n = s.rowlist.length; if (s.progressiveRowRendering) {
2984
+ var a = s.le();
2985
+ t = a.yStart, n = a.yEnd + 1, t = DayPilot.Util.atLeast(0, t - e), n = Math.min(s.rowlist.length, n + e);
2986
+ } return { "start": t, "end": n }; }, this.Ye = function () { function e() { var e = s.divHeader; e && (e.rows = []); var t = e; t && (t.innerHTML = ""); } this.sg = !0; var t = this.pg(); e(); var a = this.divHeader; if (a.style.width = t + "px", a.style.height = s.ae + "px", s.divHeader = a, s.progressiveRowRendering)
2987
+ n();
2988
2988
  else
2989
2989
  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();
2990
+ s.tg(r); s.ug(), this.divResScroll.appendChild(a); }, this.vg = function () { if (s.progressiveRowRendering)
2991
+ for (var e = this.qg(), t = 0; t < s.rowlist.length; t++)
2992
+ e.start <= t && t < e.end ? s.tg(t) : s.wg(t); }, this.ug = function () { if (!s.R.xg()) {
2993
+ var e = s.divHeader, t = r();
2994
+ t.style.position = "absolute", e.appendChild(t), s.nav.resScrollSpace = t;
2995
+ var n = r();
2996
2996
  n.style.position = "relative", n.style.height = "100%", n.className = this.L("_rowheader"), t.appendChild(n);
2997
2997
  var a = this.pg();
2998
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]) {
2999
+ } }, this.wg = function (e) { var t = s.divHeader.rows[e]; t && (DayPilot.de(t), s.divHeader.rows[e] = null); }, this.if = function (e) { this.wg(e), this.tg(e); }, this.tg = function (e) { var t = s.rowlist, n = s.divHeader; if (n && !n.rows[e]) {
3000
3000
  var a = this.pg(), i = t[e];
3001
3001
  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";
3002
+ var o = this.yg(i), l = r();
3003
+ l.style.position = "absolute", l.style.top = i.top + "px", n.rows[e] = l, l.row = i, l.index = e;
3004
+ var d = o.row, c = this.rowHeaderWidth;
3005
+ l.style.width = c + "px", l.style.border = "0px none";
3006
3006
  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();
3007
+ u && (l.title = u), "undefined" != typeof d.ariaLabel ? l.setAttribute("aria-label", d.ariaLabel) : l.setAttribute("aria-label", d.text || ""), l.onclick = s.zg;
3008
+ var h = r();
3009
3009
  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
3010
  var f = d.backColor || d.backColor;
3011
3011
  f && (h.style.background = f);
@@ -3013,7 +3013,7 @@ var DayPilot = { Global: {} };
3013
3013
  v && (h.style.color = v);
3014
3014
  var p = d.horizontalAlignment || d.horizontalAlignment;
3015
3015
  p && (h.style.textAlign = p), h.style.height = i.height + "px", h.style.overflow = "hidden", h.style.position = "relative";
3016
- var m = o();
3016
+ var m = r();
3017
3017
  switch (m.className = this.L("_rowheader_inner"), p) {
3018
3018
  case "right":
3019
3019
  m.style.justifyContent = "flex-end";
@@ -3024,12 +3024,12 @@ var DayPilot = { Global: {} };
3024
3024
  case "center": m.style.justifyContent = "center";
3025
3025
  }
3026
3026
  h.appendChild(m);
3027
- var g = d.areas || [], y = l.Ag(i);
3027
+ var g = d.areas || [], y = s.Ag(i);
3028
3028
  DayPilot.Areas.attach(h, y, { areas: g });
3029
- var b = o();
3029
+ var b = r();
3030
3030
  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);
3031
+ var w = r(), x = r();
3032
+ 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
3033
  var _ = d.verticalAlignment || d.verticalAlignment;
3034
3034
  if (_)
3035
3035
  switch (m.style.display = "flex", _) {
@@ -3041,19 +3041,19 @@ var DayPilot = { Global: {} };
3041
3041
  break;
3042
3042
  case "bottom": m.style.alignItems = "flex-end";
3043
3043
  }
3044
- s.appendChild(h), n.appendChild(s), h.style.width = a + "px";
3044
+ l.appendChild(h), n.appendChild(l), h.style.width = a + "px";
3045
3045
  }
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) {
3046
+ } }, this.zg = function (e) { var t = this.row, n = s.Ag(t, this.index); s.Bf(n, e); }, this.Bg = function () { if ("Disabled" !== s.timeHeaderClickHandling) {
3047
3047
  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) {
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(s.Me())), s.Df(e);
3049
+ } }, this.Cg = function (e) { if ("Disabled" !== s.timeHeaderRightClickHandling) {
3050
3050
  e.cancelBubble = !0, e.preventDefault();
3051
3051
  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()));
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(s.Me()));
3053
3053
  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++) {
3054
+ 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);
3055
+ } }, this.Ag = function (e) { return new DayPilot.Row(e, s); }, this.Of = function (e) { var t = s.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"); c.prepareRows(!0); var t, n = this.events.list, a = "function" == typeof this.onBeforeEventRender; s.Dg = {}; for (var i = 0; i < n.length; i++) {
3057
3057
  var r = n[i];
3058
3058
  if (r) {
3059
3059
  if ("object" != typeof r)
@@ -3065,22 +3065,22 @@ var DayPilot = { Global: {} };
3065
3065
  if (!("string" == typeof r.id || "number" == typeof r.id))
3066
3066
  throw new DayPilot.Exception("All events must have an id property (string or number)");
3067
3067
  var o = "_" + r.id;
3068
- if (l.Dg[o])
3068
+ if (s.Dg[o])
3069
3069
  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]);
3070
+ s.Dg[o] = !0, a && this.zb(i), t = s.Eg(r.resource);
3071
+ for (var l = 0; t && l < t.length; l++) {
3072
+ var d = t[l], u = this.Tf(r, d);
3073
+ u && a && (u.cache = this.yb.events[i]);
3074
3074
  }
3075
3075
  }
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++) {
3076
+ } s.rowlist.forEach(function (e) { s.Fg(e); }), s.ag(); }, c.rowcache = {}, c.prepareRows = function (e) { c.rowcache = {}; for (var t = s.rowlist, n = 0; n < t.length; n++) {
3077
3077
  var a = t[n];
3078
- if (e && a.resetEvents(), l.Of(a.index), a.id) {
3078
+ if (e && a.resetEvents(), s.Of(a.index), a.id) {
3079
3079
  var i = typeof a.id + "_" + a.id;
3080
- u.rowcache[i] || (u.rowcache[i] = []), u.rowcache[i].push(a);
3080
+ c.rowcache[i] || (c.rowcache[i] = []), c.rowcache[i].push(a);
3081
3081
  }
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;
3082
+ } }, this.Eg = function (e) { var t = typeof e + "_" + e; return c.rowcache[t] || []; }, this.Sf = function () { for (var e = {}, t = 0; t < s.rowlist.length; t++) {
3083
+ var n = s.rowlist[t], a = n.id;
3084
3084
  if (e[a])
3085
3085
  return !0;
3086
3086
  e[a] = !0;
@@ -3091,28 +3091,28 @@ var DayPilot = { Global: {} };
3091
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
3092
  var n = e.events[t];
3093
3093
  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)) {
3094
+ } }, this._f = function (e) { e = DayPilot.ua(e), e = s.jf(e), e.forEach(function (e) { s.Fg(e); }), e.forEach(function (e) { s.Gg(e); }); }, this.Tf = function (e, t) { var n = new DayPilot.Date(e.start), a = new DayPilot.Date(e.end); a = s.qf(a); var i = n.ticks, r = a.ticks, o = s.startDate.ticks, d = s.startDate.addDays(s.days).ticks; if (r < i)
3095
+ return null; var c = null; if ("function" == typeof s.onBeforeEventRender) {
3096
+ var u = DayPilot.indexOf(s.events.list, e);
3097
+ c = s.yb.events[u];
3098
+ } if (t.id !== e.resource || (r <= o || i >= d) && (i !== r || i !== o))
3099
+ 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.eg(r - i)) {
3100
3100
  var g = f.boxLeft, y = v.boxRight;
3101
3101
  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
3102
  }
3103
3103
  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]);
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 = 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.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 < s.rowlist.length; t++) {
3106
+ var n = s.Ag(s.rowlist[t]);
3107
3107
  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);
3108
+ } 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) {
3109
+ var n = s.Eg(e);
3110
+ e || (n = s.rowlist);
3111
3111
  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;
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, s) : null;
3113
3113
  } 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)
3114
+ 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.Ag(t)); }); if (r)
3115
+ return s.Ag(r); }, this.rows.load = function (e, t, n) { if (!e)
3116
3116
  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
3117
  n = JSON.parse(i.responseText);
3118
3118
  }
@@ -3123,19 +3123,19 @@ var DayPilot = { Global: {} };
3123
3123
  var o = {};
3124
3124
  if (o.preventDefault = function () { this.preventDefault.value = !0; }, o.data = n, "function" == typeof t && t(o), o.preventDefault.value)
3125
3125
  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);
3126
+ s.resources = o.data, s.Ma && s.update();
3127
+ } }; 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) {
3128
+ var t = s.rows.find(e);
3129
3129
  if (!t)
3130
3130
  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))
3131
+ return void s.rows.remove(t);
3132
+ } 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.rb(); }, this.rows.update = function (e) { if (!(e instanceof DayPilot.Row || "object" == typeof e))
3133
3133
  throw new DayPilot.Exception("DayPilot.Scheduler.rows.update() expects a DayPilot.Row object or a data object."); if (!(e instanceof DayPilot.Row)) {
3134
3134
  var t = e;
3135
- if (e = l.rows.find(t.id), !e)
3135
+ if (e = s.rows.find(t.id), !e)
3136
3136
  return;
3137
3137
  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++) {
3138
+ } var n = e.index, a = s.rowlist, i = a[n], r = e.data, o = s.Hg(r), l = s.Ig(o); l.level = i.level, l.index = n, l.top = i.top, l.height = i.height, a[n] = l, l.resetEvents(), s.Of(l.index), s.Jg(l), s.Fg(l), s.if(l.index), s.af(), s.df(); }, this.Jg = function (e) { for (var t = s.events.list, n = t.length, a = "function" == typeof s.onBeforeEventRender, i = 0; i < n; i++) {
3139
3139
  var r = t[i];
3140
3140
  if (r) {
3141
3141
  if (r instanceof DayPilot.Event)
@@ -3147,8 +3147,8 @@ var DayPilot = { Global: {} };
3147
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
+ throw new DayPilot.Exception("DayPilot.Scheduler.resources expects an array object"); e = e || [], s.rowlist = [], this.Kg(e); }, this.sa = function () { return new DayPilot.Date(this.startDate); }, this.Mf = function () { return new DayPilot.Date(s.startDate).addDays(s.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 = 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.ye, 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++) {
3151
+ var r = e.events[i], o = s.qf(r.end());
3152
3152
  DayPilot.Util.overlaps(r.start(), o, t, n) && a.push(r);
3153
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
3154
  var o = this[r];
@@ -3161,58 +3161,58 @@ var DayPilot = { Global: {} };
3161
3161
  if (this.lines[a].isFree(e, n))
3162
3162
  return a;
3163
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
+ for (var t = s.rowlist, n = 0; n < e.length; n++)
3165
3165
  if (e[n]) {
3166
3166
  var a = {};
3167
3167
  a.index = n;
3168
- var i = this.Hg(e[n], a), r = l.Ig(i, parent);
3168
+ var i = this.Hg(e[n], a), r = s.Ig(i, parent);
3169
3169
  r.index = n, t.push(r);
3170
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
3171
  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++) {
3172
+ n[i] = e[i]; return n.html = s._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 = d.Ng, this.nav.top.ontouchmove = d.Og, this.nav.top.ontouchend = d.Pg; 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.fb()), t.appendChild(n), t.appendChild(this.Qg()); var a = r(); 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 = 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.Ce() + "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.Rg()), i.appendChild(s.Sg()), 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.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 = s.qg(), a = n.start; a < n.end; a++) {
3173
3173
  var i = t.rows[a];
3174
3174
  if (i) {
3175
- var r = l.rowHeaderWidth;
3175
+ var r = s.rowHeaderWidth;
3176
3176
  i.style.width = r + "px";
3177
3177
  i.firstChild.style.width = r + "px";
3178
3178
  }
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);
3179
+ } s.nav.resScrollSpace && (s.nav.resScrollSpace.style.width = e + "px"); }, this._e = function () { this.Tg(), this.Ug(); }, this.fb = function () { var e = this.rowHeaderWidth, t = r(); s.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 = 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.Ce = function () { return s.timeHeaders ? s.timeHeaders.length * s.headerHeight : 0; }, this.Vg = null, this.Qg = function () { var e = r(); e.style.width = this.rowHeaderWidth + "px", e.style.height = this.Ya() + "px", e.style.overflow = "hidden", e.style.position = "relative", e.className = s.L("_rowheader_scroll"); var n = s.R.xg(); n && (e.style.overflowY = "auto"), e.ontouchstart = function () { t.Wg = !0; }, e.oncontextmenu = function () { return !1; }, e.onscroll = function () { if (s.Vg && clearTimeout(s.Vg), n) {
3180
+ var a = function () { var t = s.Xg() - s.nav.scroll.offsetHeight; e.scrollTop = Math.min(e.scrollTop, t), s.nav.scroll.scrollTop = e.scrollTop; };
3181
+ DayPilot.browser.ios ? t.Wg && (s.Vg = setTimeout(a, 10)) : s.Vg = setTimeout(a, 10);
3182
3182
  }
3183
3183
  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) {
3184
+ s.Vg = 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.De = e, e; }, this.Yg = null, this.Zg = null, this.$g = function () { var e = function () { s._g(), s.ef(); }, t = function () { var t = s.nav.top; if (t) {
3185
+ if (!s.Yg)
3186
+ return s.Yg = {}, void (s.Yg.width = t.offsetWidth);
3187
+ s.Yg.width !== t.offsetWidth && (s.Yg.width = t.offsetWidth, e());
3188
+ } }; if (!s.Zg) {
3189
3189
  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();
3190
+ n.observe(s.nav.top), s.Zg = n;
3191
+ } }, this._g = function () { s.Q || (s.ma(), s.ah(), s.yb.drawArea = null); }, this.ah = function () { var e = s.yf; s.clearSelection(), s.yf = e, s.zf(e, { "justDraw": !0 }); }, this.Rg = 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.Ce() + "px", e.style.overflow = "hidden", e.className = s.L("_timeheader_scroll"), this.divTimeScroll = e; var t = r(); return t.style.width = this.Ae() + 5e3 + "px", this.divNorth = t, e.appendChild(t), e; }, this.Ya = function () { var e = 0, t = s.heightSpec; return "Fixed" === t ? this.height ? this.height : 0 : (e = s.Xg(), "Max" === t && e > s.height ? s.height : e); }, this.Xg = function () { var e; return this.ae !== -1 ? (e = this.ae, this.ae > 0 && "auto" === s.nav.scroll.style.overflowX && (e += DayPilot.sh(s.nav.scroll) + 1)) : e = this.rowlist.length * s.eventHeight, e; }, this.Sg = function () {
3192
+ var e = r();
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 = r();
3194
3194
  var t = this.he;
3195
3195
  t.style.userSelect = "none", t.style.webkitUserSelect = "none", t.calendar = this, t.style.position = "absolute";
3196
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
+ 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 = 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.eh, t.appendChild(this.divCells), this.divLines = r(), this.divLines.style.position = "absolute", this.divLines.oncontextmenu = this.eh, t.appendChild(this.divLines), this.divSeparators = r(), this.divSeparators.style.position = "absolute", this.divSeparators.oncontextmenu = this.eh,
3198
+ t.appendChild(this.divSeparators), this.divRange = r(), this.divRange.style.position = "absolute", this.divRange.oncontextmenu = this.eh, 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;
3199
+ }, this.qb = function () { t.fh || (t.fh = !0, DayPilot.re(document, "mouseup", t._d), DayPilot.reNonPassive(document, "touchmove", t.gh), DayPilot.re(document, "touchend", t.hh)); }, this.ih = function () { this.nav.scroll.root = this, this.nav.scroll.onscroll = this.ef, s.jh = this.nav.scroll.scrollLeft, s.kh = this.nav.scroll.scrollTop, this.divNorth && (s.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++) {
3200
3200
  for (var a = e.lines[n], i = 0; i < a.length; i++) {
3201
3201
  var r = a[i];
3202
- r.part.line = n, r.part.top = t + l.rowMarginTop, r.part.right = r.part.left + r.part.width;
3202
+ r.part.line = n, r.part.top = t + s.rowMarginTop, r.part.right = r.part.left + r.part.width;
3203
3203
  }
3204
- t += l.eventHeight;
3205
- } }, this.Ue = null, this.na = function (e) { if (!l.Q) {
3204
+ t += s.eventHeight;
3205
+ } }, this.Ue = null, this.na = function (e) { if (!s.Q) {
3206
3206
  var t = this.mh.step;
3207
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
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++)
3209
+ 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.Gg(n); for (var a = 0; a < n.lines.length; a++)
3210
3210
  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));
3211
+ var o = i[r], l = s.Va(o);
3212
+ if (e && l && (t--, t <= 0))
3213
+ return s.divEvents.style.visibility = "", s.divEvents.style.display = "", void (s.Ue = setTimeout(function () { s.na(e); }, s.mh.delay));
3214
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++)
3215
+ } }, this.nf = function (e) { var t = s.rowlist[e]; this.Gg(t); for (var n = 0; n < t.lines.length; n++)
3216
3216
  for (var a = t.lines[n], i = 0; i < a.length; i++) {
3217
3217
  var r = a[i];
3218
3218
  this.Va(r);
@@ -3227,139 +3227,172 @@ var DayPilot = { Global: {} };
3227
3227
  }
3228
3228
  for (var a = n.length - 1; a >= 0; a--)
3229
3229
  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;
3230
+ } }, this.Pa = function (e) { var t = e.domArgs; if (e.domArgs = null, t && "function" == typeof s.onBeforeEventDomRemove && s.onBeforeEventDomRemove(t), t && "function" == typeof s.onBeforeEventDomAdd) {
3231
+ var n = t && t.Qa;
3232
+ if (n) {
3233
+ var a = s.cg.reactDOM && DayPilot.Util.isReactComponent(t.element), i = s.Sa.Ra && DayPilot.Util.isVueVNode(t.element);
3234
+ a ? s.cg.nh(n) : i && (s.Sa.Ta = !0, s.Sa.Ua(n), s.Sa.Ta = !1);
3235
+ }
3236
+ } 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.oh = function () { if ("Progressive" === this.dynamicEventRendering) {
3237
+ if (s.dynamicEventRenderingCacheSweeping) {
3238
+ var e = s.dynamicEventRenderingCacheSize || 0;
3233
3239
  this.divEvents.style.display = "none";
3234
3240
  for (var t = [], n = this.elements.events.length, a = n - 1; a >= 0; a--) {
3235
3241
  var i = this.elements.events[a];
3236
- this.oh(i.event) ? e > 0 ? (e--, t.unshift(i)) : this.Pa(i) : t.unshift(i);
3242
+ this.ph(i.event) ? e > 0 ? (e--, t.unshift(i)) : this.Pa(i) : t.unshift(i);
3237
3243
  }
3238
3244
  this.elements.events = t, this.divEvents.style.display = "";
3239
3245
  }
3240
- } }, this.ph = function (e) { for (var t = this.le(), n = this.elements.cells.length, a = n - 1; a >= 0; a--) {
3246
+ } }, this.qh = function (e) { for (var t = this.le(), n = this.elements.cells.length, a = n - 1; a >= 0; a--) {
3241
3247
  var i = this.elements.cells[a];
3242
3248
  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
3249
  } }, this.gb = function (e) { if (e && e.coords) {
3244
3250
  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;
3246
- } }, this.qh = function () { var e = "Progressive" === this.dynamicEventRendering; if (!this.nav.scroll)
3251
+ !function () { var t = e.domArgs; if (e.domArgs = null, t && "function" == typeof s.onBeforeCellDomRemove && s.onBeforeCellDomRemove(t), t && "function" == typeof s.onBeforeCellDomAdd) {
3252
+ var n = t && t.Qa;
3253
+ if (n) {
3254
+ var a = s.cg.reactDOM && DayPilot.Util.isReactComponent(t.element), i = s.Sa.Ra && DayPilot.Util.isVueVNode(t.element);
3255
+ a ? s.cg.nh(n) : i && (s.Sa.Ta = !0, s.Sa.Ua(n), s.Sa.Ta = !1);
3256
+ }
3257
+ } }(), DayPilot.rfa(s.elements.cells, e), DayPilot.de(e), s.yb.cells[t + "_" + n] = null;
3258
+ } }, this.rh = function () { var e = "Progressive" === this.dynamicEventRendering; if (!this.nav.scroll)
3247
3259
  return !1; for (var t = this.nav.scroll.scrollTop, n = t + this.nav.scroll.clientHeight, a = 0; a < this.rowlist.length; a++) {
3248
3260
  var i = this.rowlist[a], r = i.top, o = i.top + i.height;
3249
3261
  if (!e || !(n <= r || t >= o))
3250
3262
  for (var s = 0; s < i.lines.length; s++)
3251
3263
  for (var l = i.lines[s], d = 0; d < l.length; d++) {
3252
3264
  var c = l[d];
3253
- if (this.rh(c))
3265
+ if (this.uh(c))
3254
3266
  return !0;
3255
3267
  }
3256
- } return !1; }, this.rh = function (e) { if (e.rendered)
3257
- 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];
3268
+ } return !1; }, this.uh = function (e) { if (e.rendered)
3269
+ 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.ph = function (e) { if (!e.rendered)
3270
+ 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, l = e.part.right, d = e.part.top, c = e.part.top + s.eventHeight; return r <= o || i >= l || (a <= d || n >= c); }, this.Va = function (e, t) { t = t || {}; var n = t.forced; if (e.rendered)
3271
+ 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.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 + s.eventHeight, x = v <= g || f >= y, _ = m <= b || p >= w; if (!n && a && (x || _))
3272
+ 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.vh, T.onmousedown = this.wh, T.onmouseup = this.xh, T.ontouchstart = d.yh, T.ontouchmove = d.zh, T.ontouchend = d.Ah, 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 = 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) {
3273
+ var N = 100 * e.part.barLeft / C, R = Math.ceil(100 * e.part.barWidth / C), I = r();
3274
+ I.className = this.L("_event_bar"), I.style.position = "absolute", D.barBackColor && (I.style.backgroundColor = D.barBackColor);
3275
+ var L = r();
3276
+ L.className = this.L("_event_bar_inner"), L.style.left = N + "%", 0 < R && R <= 1 ? L.style.width = "1px" : L.style.width = R + "%", D.barColor && (L.style.backgroundColor = D.barColor), D.barImageUrl && (L.style.backgroundImage = "url(" + D.barImageUrl + ")"), I.appendChild(L), T.appendChild(I);
3277
+ } T.row = i, T.event = e, function () { if ("function" != typeof s.onBeforeEventDomAdd && "function" != typeof s.onBeforeEventDomRemove)
3278
+ return void s.Bh(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) {
3279
+ var n = A;
3280
+ if (n) {
3281
+ t.Qa = n;
3282
+ var a = DayPilot.Util.isReactComponent(t.element), i = DayPilot.Util.isVueVNode(t.element);
3283
+ if (a) {
3284
+ if (!s.cg.reactDOM)
3285
+ throw new DayPilot.Exception("Can't reach ReactDOM");
3286
+ s.cg.Vc(t.element, n);
3287
+ }
3288
+ else if (i) {
3289
+ if (!s.Sa.Ra)
3290
+ throw new DayPilot.Exception("Can't reach Vue");
3291
+ s.Sa.Ta = !0, s.Sa.Wa(t.element, n), s.Sa.Ta = !1;
3292
+ }
3293
+ else
3294
+ n.appendChild(t.element);
3295
+ }
3296
+ }
3297
+ else
3298
+ A.innerHTML = e.client.innerHTML(); }(); var P = []; return function () { if ("Disabled" !== s.eventDeleteHandling && !D.deleteDisabled) {
3299
+ var e = s.durationBarVisible ? s.durationBarHeight : 0;
3300
+ 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); } });
3301
+ } }(), 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.Bh = 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.of = function () { for (var e = 0; e < this.elements.events.length; e++) {
3302
+ 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;
3303
+ n.part.top + d > l && (d = Math.max(0, l - n.part.top)), t.style.top = o + "px", t.style.height = d + "px";
3304
+ } }, this.Ch = function (e) { if (!e)
3305
+ return null; for (var t = 0; t < s.elements.events.length; t++) {
3306
+ var n = s.elements.events[t];
3274
3307
  if (n.event === e || n.event.data === e.data)
3275
3308
  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;
3309
+ } return null; }, this.Lf = function (e) { var t = s.events.Qf(e.data); if (!t)
3310
+ return null; var n = s.rowlist[t.part.dayIndex]; return s.Gg(n), s.Va(t, { "forced": !0 }), s.Ch(t); }, this.vh = function (e) { for (var t = e.currentTarget; t && !t.event;)
3311
+ t = t.parentNode; s.Dh(t, e), s.Re(e); }, this.Pe = {}, this.wh = function (e) { s.Re(e); var n = DayPilot.Util.mouseButton(e); e.preventDefault(), e.stopPropagation(), n.left && ("w-resize" === this.style.cursor || "e-resize" === this.style.cursor ? (t.Oe = !0, t.gg = this, t.kg = this.event, t.Eh = DayPilot.mc(e), i().style.cursor = this.style.cursor) : ("move" === this.style.cursor || this.event.client.moveEnabled()) && s.Fh(this, e)); }, this.xh = function (e) { DayPilot.Util.mouseButton(e).right && s.xa.call(this, e); }, this.Fh = function (e, t) { var n = s.Pe; s.Re(t), n.Gh = !0, n.Pe = e, n.ng = e.event, n.Eh = DayPilot.mc(t), n.Hh = DayPilot.mo3(e, t).x, n.fg = s.getDate(s.coords.x, !0); }, "undefined" == typeof DayPilot.Global.touch && (DayPilot.Global.touch = {}), DayPilot.Global.touch.active = !1, DayPilot.Global.touch.start = !1;
3312
+ d.Hf = [];
3313
+ d.relativeCoords = function (e) { return d.Ih(e); }, d.startResizing = function (e, t) { d.Jh(e, t); }, d.startMoving = function (e, t) { d.Fh(e, t); }, d.yh = function (t) { if (!DayPilot.Global.touch.active && !DayPilot.Global.touch.start) {
3314
+ t.stopPropagation(), d.Kh(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
3281
3315
  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) {
3316
+ s.coords = d.Ih(t);
3317
+ var a = s.tapAndHoldTimeout;
3318
+ d.Hf.push(setTimeout(function () { DayPilot.Global.touch.active = !0, DayPilot.Global.touch.start = !1, t.preventDefault(); var a = n.event; switch (s.eventTapAndHoldHandling) {
3285
3319
  case "Move": if (a.client.moveEnabled()) {
3286
3320
  var i = e(t);
3287
- c.Dh(n, i);
3321
+ d.Fh(n, i);
3288
3322
  }
3289
3323
  } }, 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) {
3324
+ } }, d.zh = function () { d.Kh(), DayPilot.Global.touch.start = !1; }, d.Ah = function (e) { if (!DayPilot.Util.isMouseEvent(e)) {
3325
+ if (d.Kh(), DayPilot.Global.touch.start) {
3293
3326
  DayPilot.Global.touch.start = !1, e.preventDefault(), e.stopPropagation();
3294
3327
  var t = e.currentTarget;
3295
- setTimeout(function () { l.Qe(t, e); });
3328
+ setTimeout(function () { s.Qe(t, e); });
3296
3329
  }
3297
3330
  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);
3331
+ } }, d.Ng = function (e) { if (!(DayPilot.Global.touch.active || DayPilot.Global.touch.start || e.touches.length > 1 || "Disabled" === s.timeRangeSelectedHandling)) {
3332
+ d.Kh(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
3333
+ var t = s.tapAndHoldTimeout;
3334
+ d.Hf.push(setTimeout(function () { DayPilot.Global.touch.active = !0, DayPilot.Global.touch.start = !1, e.preventDefault(), s.coords = d.Ih(e), d.Lh = s.Mh(); }, t));
3335
+ s.coords = d.Ih(e);
3336
+ } }, d.Og = function (e) { if (d.Kh(), DayPilot.Global.touch.start = !1, t.gg)
3337
+ return e.preventDefault(), void d.Nh(); if (DayPilot.Global.touch.active) {
3338
+ if (e.preventDefault(), s.coords = d.Ih(e), t.Pe)
3339
+ return void d.Oh();
3340
+ if (d.Lh) {
3341
+ var n = d.Lh;
3342
+ n.end = { x: Math.floor(s.coords.x / s.cellWidth), "time": s.getDate(s.coords.x, !0) }, s.zf(n);
3310
3343
  }
3311
- } }, c.debug = function () { }, c.Pg = function (e) { c.Gh(); if (DayPilot.Global.touch.active) {
3312
- if (n.Pe) {
3344
+ } }, d.debug = function () { }, d.Pg = function (e) { d.Kh(); if (DayPilot.Global.touch.active) {
3345
+ if (t.Pe) {
3313
3346
  e.preventDefault();
3314
- var t = n.ng;
3315
- if (l !== n.og.calendar)
3347
+ var n = t.ng;
3348
+ if (s !== t.og.calendar)
3316
3349
  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);
3350
+ var a = t.og.start, r = t.og.end, o = t.og.row.id;
3351
+ DayPilot.Util.removeClass(t.Pe, s.L("_event_moving_source")), DayPilot.de(t.og), t.og.calendar = null, i().style.cursor = "", t.Pe = null, t.ng = null, t.og = null, s.M(n, a, r, o);
3319
3352
  }
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);
3353
+ if (d.Lh) {
3354
+ var l = d.Lh;
3355
+ d.Lh = null;
3356
+ var c = s.elements.range2;
3357
+ c && c.overlapping ? s.clearSelection() : s.vf(l);
3325
3358
  }
3326
3359
  }
3327
3360
  else if (DayPilot.Global.touch.start) {
3328
- if (l.coords.x < l.getScrollX())
3361
+ if (s.coords.x < s.getScrollX())
3329
3362
  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");
3363
+ var l = s.Mh();
3364
+ s.zf(l);
3365
+ var c = s.elements.range2;
3366
+ c && c.overlapping ? s.clearSelection() : s.vf(l);
3367
+ } setTimeout(function () { DayPilot.Global.touch.start = !1, DayPilot.Global.touch.active = !1; }, 500); }, d.Kh = function () { for (var e = 0; e < d.Hf.length; e++)
3368
+ clearTimeout(d.Hf[e]); d.Hf = []; }, d.Ih = 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.he, a = e.touches ? e.touches[0] : e; return t(a.pageX, a.pageY, n); }, d.Fh = function (e, n) { t.Pe = e, t.ng = e.event, t.Eh = n; var a = DayPilot.abs(e); t.Hh = n.x - a.x, t.fg = s.getDate(s.coords.x, !0), t.og = s.ca(e), s.mg(); }, d.Jh = function (e, n) { t.gg = e, t.kg = e.event, t.gg.dpBorder = n, t.jg || (t.jg = s.ca(e)), s.lg(); }, d.Nh = function () { if (!t.jg) {
3369
+ var e = t.gg;
3370
+ t.jg = s.ca(e);
3371
+ } s.lg(); }, d.Oh = function () { if (!t.og) {
3372
+ var e = t.Pe;
3373
+ t.og = s.ca(e);
3374
+ } t.og.calendar.mg(); }, this.Dh = function (e, n) { var a = this.eventResizeMargin, i = e; if ("undefined" != typeof t) {
3375
+ var r = DayPilot.mo3(e, n);
3376
+ if (r && (s.eventOffset = r, !t.gg && !t.Pe)) {
3377
+ var o = i.event.part.start.toString() === i.event.start().toString(), l = i.event.part.end.toString() === i.event.rawend().toString();
3378
+ 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.gg || t.Pe || (i.event.client.clickEnabled() ? e.style.cursor = "pointer" : e.style.cursor = "default");
3346
3379
  }
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++)
3380
+ } }, this.Af = function () { var e = s.Me(); return s.days * (1440 / e); }, this.wf = function (e) { if (e = e || t.Lh || s.yf, !e)
3381
+ return null; var n = s.rowlist[e.start.y]; if (!n)
3382
+ 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.Je(d).start, i = s.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, l, s); return h.allowed = !e.div || !e.div.overlapping, h; }, this.Ze = function () { this.yb.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
3383
  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) {
3384
+ this.Ph(a, t); var i = this.divNorth; 1 === i.childNodes.length ? i.replaceChild(e, i.childNodes[0]) : (i.innerHTML = "", i.appendChild(e)); var o = this.Ae(); i.style.width = o + 5e3 + "px", o > 0 && (this.divStretch.style.width = o + "px"); }, this.He = function (e, t) { var n = null, a = this.R.Ge(); t = t || this.cellGroupBy; var i = e.start; switch (t) {
3352
3385
  case "Minute":
3353
3386
  n = i.toString("m");
3354
3387
  break;
3355
3388
  case "Hour":
3356
- n = "Clock12Hours" === l.R.Nh() ? i.toString("h tt", a) : i.toString("H", a);
3389
+ n = "Clock12Hours" === s.R.Qh() ? i.toString("h tt", a) : i.toString("H", a);
3357
3390
  break;
3358
3391
  case "Day":
3359
3392
  n = i.toString(a.datePattern);
3360
3393
  break;
3361
3394
  case "Week":
3362
- n = 1 === d.ea() ? i.weekNumberISO() : i.weekNumber();
3395
+ n = 1 === l.ea() ? i.weekNumberISO() : i.weekNumber();
3363
3396
  break;
3364
3397
  case "Month":
3365
3398
  n = i.toString("MMMM yyyy", a);
@@ -3375,10 +3408,10 @@ var DayPilot = { Global: {} };
3375
3408
  break;
3376
3409
  case "Cell":
3377
3410
  var r = (e.end.ticks - e.start.ticks) / 6e4;
3378
- n = this.Oh(i, r);
3411
+ n = this.Rh(i, r);
3379
3412
  break;
3380
3413
  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) {
3414
+ } return n; }, this.Rh = 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" === s.R.Qh() ? 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.Fe = function (e, t, n) { var a, i = s.startDate.addDays(s.days); t = t || this.cellGroupBy; var r = 60; switch (t) {
3382
3415
  case "Minute":
3383
3416
  e.getMinutes() + e.getSeconds() + e.getMilliseconds() > 0 && (e = e.getDatePart().addHours(e.getHours()).addMinutes(e.getMinutes())), a = e.addMinutes(1);
3384
3417
  break;
@@ -3389,7 +3422,7 @@ var DayPilot = { Global: {} };
3389
3422
  a = e.getDatePart().addDays(1);
3390
3423
  break;
3391
3424
  case "Week":
3392
- for (a = e.getDatePart().addDays(1); a.dayOfWeek() !== d.ea();)
3425
+ for (a = e.getDatePart().addDays(1); a.dayOfWeek() !== l.ea();)
3393
3426
  a = a.addDays(1);
3394
3427
  break;
3395
3428
  case "Month":
@@ -3412,117 +3445,117 @@ var DayPilot = { Global: {} };
3412
3445
  a = i;
3413
3446
  break;
3414
3447
  case "Cell":
3415
- var s = this.Le(e);
3416
- s.current && (a = s.current.end);
3448
+ var d = this.Le(e);
3449
+ d.current && (a = d.current.end);
3417
3450
  break;
3418
3451
  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) {
3452
+ } return a.getTime() > i.getTime() && (a = i), a; }, this.Ph = 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.Bg, u.oncontextmenu = this.Cg, DayPilot.re(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.yb.timeHeader[e + "_" + t] = u, this.elements.timeHeader.push(u), n.appendChild(u); }, this.ag = function () { s.rowlist.forEach(function (e) { var t = e.getHeight() + s.rowMarginTop + s.rowMarginBottom; e.height !== t && (s.lf = !0), e.height = t; }), s.lf && (s.yb.drawArea = null); }, this.$e = function () { s.rowlist.forEach(function (e) { var t = s.divHeader; if (t) {
3420
3453
  var n = e.index;
3421
3454
  if (t.rows[n]) {
3422
3455
  var a = t.rows[n];
3423
- l.sg && (a.style.top = e.top + "px");
3456
+ s.sg && (a.style.top = e.top + "px");
3424
3457
  var i = e.height;
3425
3458
  a && a.firstChild && parseInt(a.firstChild.style.height, 10) !== i && (a.firstChild.style.height = i + "px");
3426
3459
  }
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) {
3460
+ } }), s.sg && s.nav.resScrollSpace && (s.nav.resScrollSpace.style.top = s.ae + "px"); }, this.bh = function (e) { if (DayPilot.Global.touch.start || DayPilot.Global.touch.active)
3461
+ return !1; if (s.Re(e), "Disabled" === s.timeRangeSelectedHandling)
3462
+ return !1; var n = DayPilot.Util.mouseButton(e); if (s.Sh())
3463
+ return !1; if (n.middle || n.right)
3464
+ return !1; if (s.Th(s.coords))
3465
+ return !1; var a = n.left ? "left" : n.right ? "right" : n.middle ? "middle" : "unknown"; return s.Uh = a, t.Lh = s.Mh(), t.Lh && (t.Vh = s), !1; }, this.Mh = function () { var e = {}, t = s.Ie(s.coords.x).x, n = s.getDate(s.coords.x, !0); return e.start = { y: s.Gf(s.coords.y).i, x: t, "time": n }, e.end = { x: t, "time": n }, e.calendar = s, s.zf(e), e; }, this.dh = function (e) { if (s.Pe = {}, s.yf) {
3433
3466
  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) {
3467
+ var n = s.yf;
3468
+ if (s.Th(s.coords)) {
3469
+ var a = function (e) { return function () { t.Wh = null; var n = s.wf(e); if (n) {
3437
3470
  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);
3471
+ 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
3472
  } }; };
3440
- "Disabled" !== l.timeRangeClickHandling && a(t)();
3473
+ "Disabled" !== s.timeRangeClickHandling && a(n)();
3441
3474
  }
3442
3475
  }
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 = {});
3476
+ } }, this.Sh = function () { return !!(t.gg || t.Pe || t.Lh) || !!s.Pe.Gh; }, this.dragInProgress = function () { return s.Sh(); }, this.Re = function (e) { var t = DayPilot.mo3(s.he, e); t = t || {}, t.stamp = t.x + "_" + t.y, s.coords && s.coords.stamp === t.stamp || (s.coords = t); }, this.ch = function (e) { if (!DayPilot.Global.touch.active) {
3477
+ var n = DayPilot.mc(e);
3478
+ if (s.Re(e), s.Pe.Gh) {
3479
+ DayPilot.distance(s.Pe.Eh, n) > 2 && (DayPilot.Util.copyProps(s.Pe, t), i().style.cursor = "move", s.Pe = {});
3447
3480
  }
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);
3481
+ t.gg && t.kg.calendar === s ? (t.gg.event || (t.gg.event = t.kg), s.Xh()) : t.ng ? s.Yh() : t.Lh && t.Lh.calendar === s && (t.Lh.moved = !0, s.Zh());
3482
+ } }, this.Zh = function () { var e = t.Lh, n = s.Ie(s.coords.x).x, a = s.getDate(s.coords.x, !0); e.end = { x: n, "time": a }, s.zf(e); }, this.Xh = function () { t.jg || (t.jg = s.ca(t.gg)), s.lg(); }, this.Yh = function () { if (!t.og) {
3483
+ DayPilot.Util.addClass(t.Pe, s.L("_event_moving_source"));
3484
+ var e = t.ng;
3485
+ t.og = s.ca(e);
3486
+ } s.mg(); }, this.eh = function (e) { return e.cancelBubble = !0, !1; }, this.Th = function (e) { var t = s.yf; if (!t || !t.start || !t.end)
3487
+ 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, l = n.bottom; return e.x >= i && e.x <= r && e.y >= o && e.y <= l; }, this.zf = 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) {
3488
+ var f = c ? e.start.x : e.end.x, v = c ? e.end.x : e.start.x, p = s.Je(f), m = s.Je(v);
3456
3489
  t = p.left, n = m.left + m.width;
3457
3490
  }
3458
3491
  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;
3492
+ 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) {
3493
+ y = r(), y.style.position = "absolute";
3494
+ var b = r();
3495
+ b.className = s.L("_shadow_inner"), a && (y.style.borderRadius = a, b.style.borderRadius = a), y.appendChild(b), s.divShadow.appendChild(y);
3496
+ } 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.Lh) {
3497
+ var a = s.eventBorderRadius;
3465
3498
  "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);
3499
+ var i = s.snapToGrid, o = s.rowlist;
3500
+ n(e);
3501
+ } }, this.$h = function (e) { return { "start": { "x": e.start.x, "y": e.start.y, "time": e.start.time }, "end": { "x": e.end.x, "time": e.end.time }, "calendar": e.calendar, "args": e.args }; }, this.getCoords = function () { if (!s.coords)
3502
+ return null; var e = {}; e.x = s.coords.x, e.y = s.coords.y; var t = s.Gf(e.y, e.grid).element; return e.row = s.Ag(t), e.time = s.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 (!s.Q) {
3503
+ s.cf();
3504
+ var e = s.nav.scroll;
3505
+ if (s.jh = e.scrollLeft, s.kh = e.scrollTop, s.lh = e.clientWidth, s.divTimeScroll && (s.divTimeScroll.scrollLeft = s.jh), DayPilot.browser.ios && t.Wg ? n() : s.divResScroll.scrollTop = s.kh, s.progressiveRowRendering && (s.Hf.drawRows && (clearTimeout(s.Hf.drawRows), s.Hf.drawRows = null), s.scrollDelayRows > 0 ? s.Hf.drawRows = setTimeout(function () { s.vg(); }, s.scrollDelayRows) : s.vg()), s.Hf.drawCells && (clearTimeout(s.Hf.drawCells), s.Hf.drawCells = null), s.scrollDelayCells > 0)
3506
+ s.Hf.drawCells = setTimeout(s._h(), s.scrollDelayCells);
3474
3507
  else {
3475
- l.Yh()();
3508
+ s._h()();
3476
3509
  }
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)
3510
+ s.Hf.na && (clearTimeout(s.Hf.na), s.Hf.na = null), s.scrollDelayEvents > 0 ? s.Hf.na = setTimeout(s.ai(), s.scrollDelayEvents) : s.na(), s.Hf.updateFloats && (clearTimeout(s.Hf.updateFloats), s.Hf.updateFloats = null), s.scrollDelayFloats > 0 ? s.Hf.updateFloats = setTimeout(function () { s.oe(); }, s.scrollDelayFloats) : s.oe(), s.onScrollCalled = !0;
3511
+ } }, this._h = function () { return function () { s && s.df(); }; }, this.ai = function () { return function () { s && (s.rh() ? setTimeout(function () { s.oh(), setTimeout(function () { s.na(!0); }, 50); }, 50) : s.pe()); }; }, this.cf = function () { s.yb.drawArea = null; }, this.show = function () { s.visible = !0, s.be = !0, s.nav.top.style.display = "", s.u(), s._g(), s.ef(); }, this.hide = function () { s.visible = !1, s.be = !1, s.nav.top.style.display = "none"; }, this.Wf = function (e) { if (!s.events.list)
3479
3512
  return null; for (var t = 0; t < this.events.list.length; t++) {
3480
3513
  var n = this.events.list[t];
3481
- if (l.Pf(n, e)) {
3514
+ if (s.Pf(n, e)) {
3482
3515
  var a = {};
3483
3516
  return a.ex = n, a.index = t, a;
3484
3517
  }
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++) {
3518
+ } return null; }, this.bi = 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++) {
3486
3519
  for (var o = t + r, s = 0; s < i; s++) {
3487
3520
  var l = a + s;
3488
3521
  this.hd(o, l);
3489
3522
  }
3490
- this._h(o);
3523
+ this.ci(o);
3491
3524
  } 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;
3525
+ this.di(l); }, this.df = function () { if (!s.Q) {
3526
+ var e = s.rowlist;
3494
3527
  if (e && e.length > 0) {
3495
3528
  if (this.cellSweeping) {
3496
3529
  var t = this.cellSweepingCacheSize;
3497
- this.ph(t);
3530
+ this.qh(t);
3498
3531
  }
3499
- this.$h();
3532
+ this.bi();
3500
3533
  }
3501
3534
  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;
3535
+ } }, this.le = function () { if (s.yb.drawArea)
3536
+ return s.yb.drawArea; if (!this.nav.scroll)
3537
+ return null; var e = s.kh, t = {}, n = null != this.dynamicEventRenderingMarginX ? this.dynamicEventRenderingMarginX : this.dynamicEventRenderingMargin, a = null != this.dynamicEventRenderingMarginY ? this.dynamicEventRenderingMarginY : this.dynamicEventRenderingMargin, i = s.jh - n, r = i + s.lh + 2 * n, o = 0, l = 0; o = s.Ie(i).x, l = s.Ie(r, !0).x; var d = this.Af(); 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.Gf(c).i, f = this.Gf(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.yb.drawArea = t, t; }, this.Ae = function () { return s.Af() * s.cellWidth; }, this.di = function (e) { var t = s.rowlist, n = s.divLines, a = "y_" + e; if (!this.yb.linesHorizontal[a]) {
3538
+ var i = t[e], o = i.height, l = i.top + o - 1, d = this.Ae(), c = r();
3539
+ 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.yb.linesHorizontal[a] = c;
3540
+ } }, this.ci = function (e) { var t = s.Je(e); if (t) {
3541
+ var n = s.divLines, a = s.ae, i = "x_" + e;
3509
3542
  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;
3543
+ var o = t.left + t.width - 1, l = r();
3544
+ 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.yb.linesVertical[i] = l;
3512
3545
  }
3513
- } }, this.Xe = function () { l.ae = l.bi(l.rowlist); }, this.bi = function (e) { for (var t = 0, n = 0; n < e.length; n++) {
3546
+ } }, this.Xe = function () { s.ae = s.ei(s.rowlist); }, this.ei = function (e) { for (var t = 0, n = 0; n < e.length; n++) {
3514
3547
  var a = e[n];
3515
3548
  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);
3549
+ } return t; }, this.af = function () { s.elements.cells = [], s.yb.cells = [], s.divCells.innerHTML = "", s.fi(); }, this.fi = function () { s.divLines.innerHTML = "", s.yb.linesVertical = {}, s.yb.linesHorizontal = {}, s.elements.linesVertical = []; }, this.pf = function (e) { var t = []; for (var n in s.yb.cells)
3550
+ t.push(s.yb.cells[n]); t.filter(function (t) { return t && t.coords && t.coords.y === e; }).forEach(function (e) { s.gb(e); }); }, this.hd = function (e, t) { if (this.Ma) {
3551
+ var n = s.Je(e);
3519
3552
  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) {
3553
+ var a = s.rowlist, i = s.divCells, o = e + "_" + t;
3554
+ if (!this.yb.cells[o]) {
3555
+ var l = this.gi(e, t), d = s.hi(e, t), c = r();
3556
+ 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) {
3557
+ 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) {
3558
+ switch (c.style.display = "flex", l.horizontalAlignment) {
3526
3559
  case "right":
3527
3560
  c.style.justifyContent = "flex-end";
3528
3561
  break;
@@ -3531,7 +3564,7 @@ var DayPilot = { Global: {} };
3531
3564
  break;
3532
3565
  case "center": c.style.justifyContent = "center";
3533
3566
  }
3534
- switch (s.verticalAlignment) {
3567
+ switch (l.verticalAlignment) {
3535
3568
  case "center":
3536
3569
  c.style.alignItems = "center";
3537
3570
  break;
@@ -3541,114 +3574,148 @@ var DayPilot = { Global: {} };
3541
3574
  case "bottom": c.style.alignItems = "flex-end";
3542
3575
  }
3543
3576
  }
3544
- DayPilot.Areas.attach(c, d.cell, { "areas": s.areas || d.cell.areas });
3577
+ DayPilot.Areas.attach(c, d.cell, { "areas": l.areas || d.cell.areas });
3545
3578
  }
3546
- i.appendChild(c), this.elements.cells.push(c), this.yb.cells[r] = c;
3579
+ var u = { start: n.start, end: n.end, resource: a[t].id, div: c, properties: l, x: e, y: t };
3580
+ !function () { if ("function" == typeof s.onBeforeCellDomAdd || "function" == typeof s.onBeforeCellDomRemove) {
3581
+ var e = {};
3582
+ if (e.control = s, e.cell = u, e.element = null, c.domArgs = e, "function" == typeof s.onBeforeCellDomAdd && s.onBeforeCellDomAdd(e), e.element) {
3583
+ var t = c;
3584
+ if (t) {
3585
+ e.Qa = t;
3586
+ var n = DayPilot.Util.isReactComponent(e.element), a = DayPilot.Util.isVueVNode(e.element);
3587
+ if (n) {
3588
+ if (!s.cg.reactDOM)
3589
+ throw new DayPilot.Exception("Can't reach ReactDOM");
3590
+ s.cg.Vc(e.element, t);
3591
+ }
3592
+ else if (a) {
3593
+ if (!s.Sa.Ra)
3594
+ throw new DayPilot.Exception("Can't reach Vue");
3595
+ s.Sa.Ta = !0, s.Sa.Wa(e.element, t), s.Sa.Ta = !1;
3596
+ }
3597
+ else
3598
+ t.appendChild(e.element);
3599
+ }
3600
+ }
3601
+ } }(), i.appendChild(c), this.elements.cells.push(c), this.yb.cells[o] = c;
3547
3602
  }
3548
3603
  }
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) {
3604
+ } }, this.hi = function (e, t) { var n = s.Je(e); if (!n)
3605
+ 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.Ag(a), properties: s.gi(e, t) }, l.control = s, "function" == typeof this.onBeforeCellRender) {
3551
3606
  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();
3607
+ if (s.beforeCellRenderCaching && s.bf[d])
3608
+ return l;
3609
+ s.bf[d] = !0, this.onBeforeCellRender(l);
3610
+ } return l; }, this.clearSelection = function () { this.ii(); }, this.ji = function (e, t, n) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var a = s.je(n), i = s.Le(e); if (!i.current)
3611
+ throw new DayPilot.Exception("Time range selection 'start' out of timeline"); var r = s.Le(new DayPilot.Date(t).addMilliseconds(-1)); if (!r.current)
3612
+ 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.ji(e, t, n); s.zf(i), a || setTimeout(function () { s.vf(i); }, 0); }, this.tf = function () { var e = t.og && t.og.source; e && DayPilot.Util.removeClass(e, s.L("_event_moving_source")), DayPilot.de(t.og), t.og = null, DayPilot.Global.movingLink && (DayPilot.Global.movingLink.clear(), DayPilot.Global.movingLink = null); }, this.ii = function () { s.divShadow && (s.divShadow.innerHTML = ""), s.elements.range = [], s.elements.range2 = null, s.yf = null, s.ki = null; }, l.Ld = function () { delete s.yb.headerHeight; }, l.da = function () { return "Disabled" !== s.xssProtection; }, l.Ge = function () { return DayPilot.Locale.find(s.locale); }, l.Qh = function () { return "Auto" !== s.timeFormat ? s.timeFormat : l.Ge().timeFormat; }, l.ea = function () { if ("Auto" === s.weekStarts) {
3613
+ var e = l.Ge();
3559
3614
  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])
3615
+ } return s.weekStarts || 0; }, l.xg = function () { var e = navigator.userAgent.toLowerCase(); return e.indexOf("mobile") !== -1 || e.indexOf("android") != -1; }, l.eg = function (e) { return "Always" === s.useEventBoxes || "Never" !== s.useEventBoxes && e < 60 * s.Me() * 1e3; }, this.gi = function (e, t) { var n = e + "_" + t, a = s.rowlist; if (this.cellProperties || (this.cellProperties = {}), this.cellProperties[n])
3561
3616
  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;
3617
+ var i = a[t], r = i.id, o = s.Je(e), l = o.start, d = o.end, c = {};
3618
+ c.start = l, c.end = d, c.resource = r;
3564
3619
  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()))
3620
+ u.business = s.isBusiness(c), this.cellProperties[n] = u;
3621
+ } 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
3622
  return !1; if (i < 720) {
3568
3623
  var r = n.getHours();
3569
3624
  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)
3625
+ var o = this.businessBeginsHour, l = this.businessEndsHour;
3626
+ if (0 === l && (l = 24), o === l)
3572
3627
  return !1;
3573
- if (!(o < s))
3574
- return r < s || r >= o;
3628
+ if (!(o < l))
3629
+ return r < l || r >= o;
3575
3630
  if (r < o)
3576
3631
  return !1;
3577
- if (s >= 24)
3632
+ if (l >= 24)
3578
3633
  return !0;
3579
- if (r >= s)
3634
+ if (r >= l)
3580
3635
  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)
3636
+ } return !0; }, this.u = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.li = function (e) { this.heightSpec = "Fixed", this.height = e - (this.Ce() + 2), this.ma(); }, this.setHeight = this.li, this.je = function (e) { return s.Eg(e)[0]; }, this.xb = function () { if (this.id && this.id.tagName)
3582
3637
  this.nav.top = this.id;
3583
3638
  else {
3584
3639
  if ("string" != typeof this.id)
3585
3640
  throw new DayPilot.Exception("DayPilot.Scheduler() constructor requires the target element or its ID as a parameter");
3586
3641
  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);
3642
+ throw new DayPilot.Exception("DayPilot.Scheduler: The placeholder element not found: '" + a + "'.");
3643
+ } }, this.init = function () {
3644
+ if (this.Ma)
3645
+ throw new DayPilot.Exception("This instance is already initialized. Use update() to change properties.");
3646
+ if (this.xb(), this.nav.top.dp) {
3647
+ if (this.nav.top.dp === s)
3648
+ return s;
3649
+ throw new DayPilot.Exception("The target placeholder was already initialized by another DayPilot component instance.");
3650
+ }
3651
+ return this.mi(), this.$g(), this;
3652
+ }, this.mi = function () { this.Mg(), this.qb(), this.ba(), this.ih(), this.rb(); var angular = s.ze.enabled; s.scrollToDate ? s.scrollTo(s.scrollToDate) : s.scrollX || s.scrollY ? s.setScroll(s.scrollX, s.scrollY) : angular || s.ef(), s.scrollToResourceId && (s.scrollToResource(s.scrollToResourceId), s.scrollToResourceId = null); var e = function () { s.scrollY && s.setScroll(s.scrollX, s.scrollY); }; setTimeout(e, 200), this.cf(), this.wb(), this.Ma = !0; var t = s.ge; t ? s.scrollTo(t) : s.ef(); }, this.vb = null, this.tb = function (e) { if (e) {
3653
+ 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.fe(this.data); } }, "scrollX": { "postInit": function () { this.data && s.ie(this.data); } }, "scrollY": { "postInit": function () { this.data && s.Be(this.data); } } };
3654
+ s.vb = t, s.ze.scrollToRequested && (t.scrollTo.data = s.ze.scrollToRequested, s.ze.scrollToRequested = null), s.ze.scrollXRequested && (t.scrollX.data = s.ze.scrollXRequested, s.ze.scrollXRequested = null), s.ze.scrollYRequested && (t.scrollY.data = s.ze.scrollYRequested, s.ze.scrollYRequested = null);
3596
3655
  for (var n in e)
3597
- t[n] || (l[n] = e[n]);
3656
+ t[n] || (s[n] = e[n]);
3598
3657
  for (var a in e)
3599
3658
  if (t[a]) {
3600
3659
  var i = t[a];
3601
3660
  i.data = e[a], i.preInit && i.preInit();
3602
3661
  }
3603
- } }, this.wb = function () { var e = l.vb; for (var t in e) {
3662
+ } }, this.wb = function () { var e = s.vb; for (var t in e) {
3604
3663
  var n = e[t];
3605
3664
  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) {
3665
+ } s.vb = {}; }, this.cg = {}, this.cg.reactDOM = null, this.cg.react = null, this.cg.Vc = function (e, t) { var n = s.cg.reactDOM; if ("function" == typeof n.createRoot) {
3666
+ var a = t.ni;
3667
+ a || (a = n.createRoot(t), t.ni = a), a.render(e);
3668
+ }
3669
+ else
3670
+ n.render(e, t); }, this.cg.nh = function (e) { var t = s.cg.reactDOM; if ("function" == typeof t.createRoot) {
3671
+ var n = e.ni;
3672
+ setTimeout(function () { n.unmount(), e.ni = null; }, 0);
3673
+ }
3674
+ else
3675
+ t.unmountComponentAtNode(e); }, this.Sa = {}, this.Sa.Ra = null, this.Sa.Mb = function (e, t, n) { var a = s.Sa.Ra; if ("function" == typeof a.createVNode && "function" == typeof a.render) {
3607
3676
  var i = a.createVNode(e, n);
3608
3677
  a.render(i, t);
3609
- } }, this.Sa.Wa = function (e, t) { var n = l.Sa.Ra; if ("function" == typeof n.render) {
3678
+ } }, this.Sa.Wa = function (e, t) { var n = s.Sa.Ra; if ("function" == typeof n.render) {
3610
3679
  var a = e;
3611
3680
  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)
3681
+ } }, this.Sa.Ua = function (e) { var t = s.Sa.Ra; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.adjustEndIn = s.qf, this.internal.adjustEndNormalize = s.rf, this.internal.xssTextHtml = s._a, this.internal.touch = s.ce, this.internal.skipUpdate = s.ze.skipUpdate, this.internal.skipped = s.ze.skipped, this.internal.loadOptions = s.tb, this.internal.postInit = s.wb, this.internal.enableAngular2 = function () { s.ze.enabled = !0; }, this.internal.eventsFromAttr = function () { s.ze.Uf = !0; }, this.internal.resourcesFromAttr = function () { s.ze.bg = !0; }, this.internal.evImmediateRefresh = function () { s.events.uf(); }, this.internal.enableReact = function (e, t) { s.cg.react = e, s.cg.reactDOM = t; }, this.internal.reactRefs = function () { return DayPilot.Util.copyProps(s.cg, {}, ["react", "reactDOM"]); }, this.internal.enableVue = function (e) { s.Sa.Ra = e; }, this.internal.vueRef = function () { return s.Sa.Ra; }, this.internal.vueRendering = function () { return s.Sa.Ta; }, this.tb(o);
3682
+ }, a = "${v}" === (new DayPilot.Scheduler).v, DayPilot.Row = function (e, t) { if (!e)
3616
3683
  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) {
3684
+ throw new DayPilot.Exception("No parent control supplied when creating DayPilot.Row"); this.oi = {}; var n = this.oi; 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.pi = 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.pi.events.length; t++)
3685
+ e.push(a.pi.events[t]); return e; }, a.events.isEmpty = function () { return 0 === a.pi.events.length; }, a.events.forRange = function (e, t) { return a.pi.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.Pe = null, t.ng = null, t.Eh = null, t.gg = null, t.kg = null, t.Oe = !1, t.fh = !1, t.Wh = null, t.qi = null, t.qc = function () { DayPilot.ue(document, "mouseup", t._d), DayPilot.ue(document, "touchmove", t.gh), DayPilot.ue(document, "touchend", t.hh), t.fh = !1; }, t.gh = function (e) { if (t.gg) {
3686
+ var n = t.gg.event.calendar;
3687
+ n.coords = n.ce.Ih(e), n.ce.Nh(), e.preventDefault();
3688
+ } if (t.Pe) {
3622
3689
  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);
3690
+ var n = t.ng.calendar;
3691
+ n.coords = n.ce.Ih(e), n.ce.Oh();
3692
+ } }, t.hh = function (e) { t.Wg = !1, t._d(e); }, t._d = function (e) { if (t.gg) {
3693
+ var a = function () { var e = t.kg, n = e.calendar; i().style.cursor = "", t.gg = null, t.kg = null, DayPilot.de(t.jg), t.jg = null, n && (n.ri = null); };
3694
+ if (setTimeout(function () { t.Oe = !1; }), !t.jg)
3695
+ return void a();
3696
+ var r = t.kg, o = r.calendar, s = t.jg.start, l = t.jg.end, d = "left" === t.gg.dpBorder ? "start" : "end";
3697
+ a(), o.K(r, s, l, d);
3631
3698
  }
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;
3699
+ else if (t.ng) {
3700
+ var a = function () { DayPilot.Global.movingAreaData = null; var e = t.og && t.og.calendar; t.og && (DayPilot.de(t.og), t.og.calendar = null), i().style.cursor = "", t.Pe = null, t.ng = null, e && (e.sf = null); };
3701
+ if (!t.og)
3702
+ return void a();
3703
+ var r = t.ng, o = t.og.calendar;
3637
3704
  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;
3705
+ return void a();
3706
+ if (t.og.source = t.Pe, !t.og.row)
3707
+ return void a();
3708
+ var s = t.og.start, l = t.og.end, c = t.og.row.id;
3709
+ t.og.calendar = null, i().style.cursor = "", t.Pe = null, t.ng = null, o.M(r, s, l, c, e), DayPilot.Global.movingAreaData = null;
3643
3710
  }
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; };
3711
+ else if (t.Lh) {
3712
+ var u = DayPilot.Util.mouseButton(e), h = t.Lh, f = h.calendar, a = function () { };
3713
+ if (f.ki = null, t.Wh)
3714
+ return clearTimeout(t.Wh), t.Wh = null, void a();
3715
+ f.yf = h, t.Lh = null;
3716
+ var v = function (e) { return function () { t.Wh = null, f.vf(e), "Hold" !== f.timeRangeSelectedHandling && "HoldForever" !== f.timeRangeSelectedHandling ? n() : f.yf = e; }; }, p = f.$h(h);
3717
+ return a(), u.left ? (v(p)(), e.cancelBubble = !0, !1) : void (t.Wh = null);
3718
+ } t.Hh = null, t.fg = null; };
3652
3719
  }
3653
3720
  }(DayPilot);
3654
3721