@daypilot/daypilot-lite-angular 5.9.0 → 5.10.0-sandbox.850

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.
@@ -500,7 +500,7 @@ DayPilot Lite
500
500
  Copyright (c) 2005 - 2026 Annpoint s.r.o.
501
501
  https://www.daypilot.org/
502
502
  Licensed under Apache Software License 2.0
503
- Version: 2026.2.839-lite
503
+ Version: 2026.3.850-lite
504
504
  */
505
505
  "use strict";
506
506
  var DayPilot = { Global: {} };
@@ -573,7 +573,7 @@ var DayPilot = { Global: {} };
573
573
  return a; var i = document.createElement("style"); i.nonce = e(), i.styleSheet || i.appendChild(document.createTextNode("")), (document.head || document.getElementsByTagName("head")[0]).appendChild(i); var r = !!i.styleSheet, o = {}; return o.rules = [], o.commit = function () { r && (i.styleSheet.cssText = this.rules.join("\n")); }, o.add = function (e, t, n) { return r ? void this.rules.push(e + "{" + t + "}") : void (i.sheet.insertRule ? ("undefined" == typeof n && (n = i.sheet.cssRules.length), i.sheet.insertRule(e + "{" + t + "}", n)) : i.sheet.addRule && i.sheet.addRule(e, t, n)); }, o; }, 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 () {
574
574
  if (!DayPilot.Global.defaultCss) {
575
575
  var e = DayPilot.sheet();
576
- e.add(".menu_default_main", "position: relative;border-radius: 4px;box-shadow: 0 0px 10px 0px #00000022;user-select:none;font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;font-size: 13px;border: 1px solid #cccccc;background-color: white;padding: 0px;cursor: default;"), e.add(".menu_default_main:before", "content: '';position: absolute;top: 0;bottom: 0;left: 28px;border-left: 1px solid #d9d9d9;pointer-events: none;"), e.add(".menu_default_main.menu_default_direction_rtl:before", "left: auto;right: 28px;border-left: none;border-right: 1px solid #d9d9d9;"), 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.menu_default_direction_rtl .menu_default_title", "padding: 4px 37px 4px 4px;"), 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_direction_rtl a", "padding: 2px 35px 2px 2px;"), 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_main.menu_default_direction_rtl a img", "margin-left: 0px;margin-right: 6px;"), 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.menu_default_direction_rtl .menu_default_item_text", "padding-left: 20px;padding-right: 2px;"), 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.menu_default_direction_rtl div div", "margin-left: 0px;margin-right: 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_main.menu_default_direction_rtl .menu_default_item_haschildren a:before", "border-color: transparent #666 transparent transparent;right: auto;left: 5px;"), e.add(".menu_default_item_icon", "position: absolute;top: 0px;left: 0px;padding: 2px 2px 2px 8px;"), e.add(".menu_default_main.menu_default_direction_rtl .menu_default_item_icon", "left: auto;right: 0px;padding: 2px 8px 2px 2px;"), 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(".menu_default_main.menu_default_direction_rtl .menu_default_item_symbol", "margin-left: 0px;margin-right: 6px;"), 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: 4px;--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-bg-top-color: #ffffff;--dp-calendar-allday-event-bg-bottom-color: #eeeeee;--dp-calendar-allday-event-background-hover: linear-gradient(to bottom, var(--dp-calendar-allday-event-bg-top-color-hover) 0%, var(--dp-calendar-allday-event-bg-bottom-color-hover) 100%);--dp-calendar-allday-event-bg-top-color-hover: #f8f8f8;--dp-calendar-allday-event-bg-bottom-color-hover: #e8e8e8;--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: 4px;--dp-calendar-event-box-shadow: none;--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-bg-top-color: #ffffff;--dp-calendar-event-bg-bottom-color: #eeeeee;--dp-calendar-event-background-hover: linear-gradient(to bottom, var(--dp-calendar-event-bg-top-color-hover) 0%, var(--dp-calendar-event-bg-bottom-color-hover) 100%);--dp-calendar-event-bg-top-color-hover: #f8f8f8;--dp-calendar-event-bg-bottom-color-hover: #f1f1f1;--dp-calendar-event-bar-bg-color: #9dc8e8;--dp-calendar-event-bar-color: #208fe3;--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", "border: var(--dp-calendar-event-border); border-radius: var(--dp-calendar-event-border-radius); background: var(--dp-calendar-event-background);"), e.add(".calendar_default_event:hover .calendar_default_event_inner", "background: var(--dp-calendar-event-background-hover);"), e.add(".calendar_default_alldayevent", "color: var(--dp-calendar-allday-event-color);box-shadow: var(--dp-calendar-allday-event-box-shadow); border-radius: var(--dp-calendar-allday-event-border-radius);"), e.add(".calendar_default_alldayevent_inner", "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_alldayevent:hover .calendar_default_alldayevent_inner", "background: var(--dp-calendar-allday-event-background-hover);"), 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, .calendar_default_event:hover.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", "color: var(--dp-calendar-event-color); 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); border-radius: var(--dp-calendar-event-border-radius); opacity: 0.5; height: 100%;"), e.add(".calendar_default_shadow", "box-shadow: 0 2px 5px rgba(0,0,0,0.2); border-radius: var(--dp-calendar-event-border-radius);"), 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", "opacity:0.4;cursor:pointer;background-color:currentColor;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTInIGhlaWdodD0nMTInIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgMTEuNSAxMS41IE0gMC41IDExLjUgTCAxMS41IDAuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6Y3VycmVudENvbG9yO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:12px 12px;mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTInIGhlaWdodD0nMTInIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgMTEuNSAxMS41IE0gMC41IDExLjUgTCAxMS41IDAuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6Y3VycmVudENvbG9yO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==);mask-repeat:no-repeat;mask-position:center;mask-size:12px 12px;background-image:none;"), e.add(".calendar_default_event_delete:hover", "opacity: 0.7;"), 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-background: linear-gradient(to bottom, var(--dp-month-event-bg-top-color) 0%, var(--dp-month-event-bg-bottom-color) 100%);--dp-month-event-bg-top-color: #ffffff;--dp-month-event-bg-bottom-color: #eeeeee;--dp-month-event-background-hover: linear-gradient(to bottom, var(--dp-month-event-bg-top-color-hover) 0%, var(--dp-month-event-bg-bottom-color-hover) 100%);--dp-month-event-bg-top-color-hover: #f8f8f8;--dp-month-event-bg-bottom-color-hover: #f1f1f1;--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: 4px;--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: #208fe3;--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", "color: var(--dp-month-event-color);border-radius: var(--dp-month-event-border-radius); box-shadow: var(--dp-month-event-box-shadow); "),
576
+ e.add(".menu_default_main", "position: relative;border-radius: 4px;box-shadow: 0 0px 10px 0px #00000022;user-select:none;font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;font-size: 13px;border: 1px solid #cccccc;background-color: white;padding: 0px;cursor: default;"), e.add(".menu_default_main:before", "content: '';position: absolute;top: 0;bottom: 0;left: 28px;border-left: 1px solid #d9d9d9;pointer-events: none;"), e.add(".menu_default_main.menu_default_direction_rtl:before", "left: auto;right: 28px;border-left: none;border-right: 1px solid #d9d9d9;"), 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.menu_default_direction_rtl .menu_default_title", "padding: 4px 37px 4px 4px;"), 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_direction_rtl a", "padding: 2px 35px 2px 2px;"), 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_main.menu_default_direction_rtl a img", "margin-left: 0px;margin-right: 6px;"), 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.menu_default_direction_rtl .menu_default_item_text", "padding-left: 20px;padding-right: 2px;"), e.add(".menu_default_main a:hover", "background-color: #f3f3f3;"), e.add(".menu_default_item div", "border-top: 1px solid #dddddd;margin-top: 2px;margin-bottom: 2px;margin-left: 28px;"), e.add(".menu_default_main.menu_default_direction_rtl div div", "margin-left: 0px;margin-right: 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_main.menu_default_direction_rtl .menu_default_item_haschildren a:before", "border-color: transparent #666 transparent transparent;right: auto;left: 5px;"), e.add(".menu_default_item_icon", "position: absolute;top: 0px;left: 0px;padding: 2px 2px 2px 8px;"), e.add(".menu_default_main.menu_default_direction_rtl .menu_default_item_icon", "left: auto;right: 0px;padding: 2px 8px 2px 2px;"), 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(".menu_default_main.menu_default_direction_rtl .menu_default_item_symbol", "margin-left: 0px;margin-right: 6px;"), 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: 4px;--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-bg-top-color: #ffffff;--dp-calendar-allday-event-bg-bottom-color: #eeeeee;--dp-calendar-allday-event-background-hover: linear-gradient(to bottom, var(--dp-calendar-allday-event-bg-top-color-hover) 0%, var(--dp-calendar-allday-event-bg-bottom-color-hover) 100%);--dp-calendar-allday-event-bg-top-color-hover: #f8f8f8;--dp-calendar-allday-event-bg-bottom-color-hover: #e8e8e8;--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: 4px;--dp-calendar-event-box-shadow: none;--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-bg-top-color: #ffffff;--dp-calendar-event-bg-bottom-color: #eeeeee;--dp-calendar-event-background-hover: linear-gradient(to bottom, var(--dp-calendar-event-bg-top-color-hover) 0%, var(--dp-calendar-event-bg-bottom-color-hover) 100%);--dp-calendar-event-bg-top-color-hover: #f8f8f8;--dp-calendar-event-bg-bottom-color-hover: #f1f1f1;--dp-calendar-event-bar-bg-color: #9dc8e8;--dp-calendar-event-bar-color: #208fe3;--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", "border: var(--dp-calendar-event-border); border-radius: var(--dp-calendar-event-border-radius); background: var(--dp-calendar-event-background);"), e.add(".calendar_default_event:hover .calendar_default_event_inner", "background: var(--dp-calendar-event-background-hover);"), e.add(".calendar_default_alldayevent", "color: var(--dp-calendar-allday-event-color);box-shadow: var(--dp-calendar-allday-event-box-shadow); border-radius: var(--dp-calendar-allday-event-border-radius);"), e.add(".calendar_default_alldayevent_inner", "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_alldayevent:hover .calendar_default_alldayevent_inner", "background: var(--dp-calendar-allday-event-background-hover);"), 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, .calendar_default_event:hover.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", "color: var(--dp-calendar-event-color); 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); border-radius: var(--dp-calendar-event-border-radius); opacity: 0.5; height: 100%;"), e.add(".calendar_default_shadow", "box-shadow: 0 2px 5px rgba(0,0,0,0.2); border-radius: var(--dp-calendar-event-border-radius);"), 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", "opacity:0.4;cursor:pointer;background-color:currentColor;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTInIGhlaWdodD0nMTInIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgMTEuNSAxMS41IE0gMC41IDExLjUgTCAxMS41IDAuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6Y3VycmVudENvbG9yO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:12px 12px;mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTInIGhlaWdodD0nMTInIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgMTEuNSAxMS41IE0gMC41IDExLjUgTCAxMS41IDAuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6Y3VycmVudENvbG9yO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==);mask-repeat:no-repeat;mask-position:center;mask-size:12px 12px;background-image:none;"), e.add(".calendar_default_event_delete:hover", "opacity: 0.7;"), 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-background: linear-gradient(to bottom, var(--dp-month-event-bg-top-color) 0%, var(--dp-month-event-bg-bottom-color) 100%);--dp-month-event-bg-top-color: #ffffff;--dp-month-event-bg-bottom-color: #eeeeee;--dp-month-event-background-hover: linear-gradient(to bottom, var(--dp-month-event-bg-top-color-hover) 0%, var(--dp-month-event-bg-bottom-color-hover) 100%);--dp-month-event-bg-top-color-hover: #f8f8f8;--dp-month-event-bg-bottom-color-hover: #f1f1f1;--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: 4px;--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: #208fe3;--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", "color: var(--dp-month-event-color);border-radius: var(--dp-month-event-border-radius); box-shadow: var(--dp-month-event-box-shadow); "),
577
577
  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); 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_event:hover .month_default_event_inner", "background: var(--dp-month-event-background-hover);"), 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, .month_default_event:hover.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); border-radius: var(--dp-month-event-border-radius); opacity: 0.5; height: 100%; "), e.add(".month_default_shadow", "box-shadow: 0 2px 5px rgba(0, 0, 0, .2); border-radius: var(--dp-month-event-border-radius);"), e.add(".month_default_event_delete", "opacity:0.4;cursor:pointer;background-color:currentColor;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTInIGhlaWdodD0nMTInIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgMTEuNSAxMS41IE0gMC41IDExLjUgTCAxMS41IDAuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6Y3VycmVudENvbG9yO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:12px 12px;mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTInIGhlaWdodD0nMTInIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgMTEuNSAxMS41IE0gMC41IDExLjUgTCAxMS41IDAuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6Y3VycmVudENvbG9yO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==);mask-repeat:no-repeat;mask-position:center;mask-size:12px 12px;background-image:none;"), e.add(".month_default_event_delete:hover", "opacity: 0.7;"), 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-background-hover: linear-gradient(to bottom, var(--dp-scheduler-event-bg-top-color-hover) 0%, var(--dp-scheduler-event-bg-bottom-color-hover) 100%);--dp-scheduler-event-bg-bottom-color: #eeeeee;--dp-scheduler-event-bg-top-color: #ffffff;--dp-scheduler-event-bg-bottom-color-hover: #e8e8e8;--dp-scheduler-event-bg-top-color-hover: #f8f8f8;--dp-scheduler-event-bar-bg-color: #9dc8e8;--dp-scheduler-event-bar-color: #208fe3;--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: 4px;--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, .scheduler_default_event:hover.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:hover .scheduler_default_event_inner", "background: var(--dp-scheduler-event-background-hover);"), 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:"";position:absolute;top:calc(50% - 5px);left:1px;width:5px;height:10px;opacity:0.5;background-color:currentColor;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA1IDEwJz48cGF0aCBkPSdNNSAwIEwwIDUgTDUgMTAgWicvPjwvc3ZnPg==);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:100% 100%;mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA1IDEwJz48cGF0aCBkPSdNNSAwIEwwIDUgTDUgMTAgWicvPjwvc3ZnPg==);mask-repeat:no-repeat;mask-position:center;mask-size:100% 100%;background-image:none;'), 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", "opacity:0.5;background-color:currentColor;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA4IDEwJz48cGF0aCBkPSdNIDEuNSAwLjUgTCA2LjUgNSBMIDEuNSA5LjUnIHN0eWxlPSdmaWxsOm5vbmU7c3Ryb2tlOmN1cnJlbnRDb2xvcjtzdHJva2Utd2lkdGg6MjtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLWxpbmVjYXA6YnV0dCcgLz48L3N2Zz4=);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:100% 100%;mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA4IDEwJz48cGF0aCBkPSdNIDEuNSAwLjUgTCA2LjUgNSBMIDEuNSA5LjUnIHN0eWxlPSdmaWxsOm5vbmU7c3Ryb2tlOmN1cnJlbnRDb2xvcjtzdHJva2Utd2lkdGg6MjtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLWxpbmVjYXA6YnV0dCcgLz48L3N2Zz4=);mask-repeat:no-repeat;mask-position:center;mask-size:100% 100%;background-image:none;"), e.add(".scheduler_default_tree_image_collapse", "opacity:0.5;background-color:currentColor;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMS41IEwgNSA2LjUgTCA5LjUgMS41JyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTpjdXJyZW50Q29sb3I7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1saW5lY2FwOmJ1dHQnIC8+PC9zdmc+);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:100% 100%;mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMS41IEwgNSA2LjUgTCA5LjUgMS41JyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTpjdXJyZW50Q29sb3I7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1saW5lY2FwOmJ1dHQnIC8+PC9zdmc+);mask-repeat:no-repeat;mask-position:center;mask-size:100% 100%;background-image:none;"), e.add(".scheduler_default_event_delete", "opacity:0.4;cursor:pointer;background-color:currentColor;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTInIGhlaWdodD0nMTInIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgMTEuNSAxMS41IE0gMC41IDExLjUgTCAxMS41IDAuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6Y3VycmVudENvbG9yO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:12px 12px;mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTInIGhlaWdodD0nMTInIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgMTEuNSAxMS41IE0gMC41IDExLjUgTCAxMS41IDAuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6Y3VycmVudENvbG9yO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==);mask-repeat:no-repeat;mask-position:center;mask-size:12px 12px;background-image:none;"), e.add(".scheduler_default_event_delete:hover", "opacity: 0.7;"), 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';");
578
578
  e.add(".scheduler_default_header_icon_show:before", "content: '\\00BB';");
579
579
  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;"), e.add(".scheduler_default_main:focus", "outline: none;"), 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-color:currentColor;-webkit-mask-image:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBvbHlnb24gcG9pbnRzPSI1IDEuNSwgMTAgMTAsIDAgMTAiLz48L3N2Zz4=');-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:10px 10px;mask-image:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBvbHlnb24gcG9pbnRzPSI1IDEuNSwgMTAgMTAsIDAgMTAiLz48L3N2Zz4=');mask-repeat:no-repeat;mask-position:center;mask-size:10px 10px;background-image:none;"), e.add(".scheduler_default_sorticon.scheduler_default_sorticon_desc", "background-color:currentColor;-webkit-mask-image:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBvbHlnb24gcG9pbnRzPSI1IDguNSwgMCAwLCAxMCAwIi8+PC9zdmc+');-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:10px 10px;mask-image:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBvbHlnb24gcG9pbnRzPSI1IDguNSwgMCAwLCAxMCAwIi8+PC9zdmc+');mask-repeat:no-repeat;mask-position:center;mask-size:10px 10px;background-image:none;"), e.add(".scheduler_default_sorticon.scheduler_default_sorticon_active", "opacity: 0.7;"), 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;
@@ -1573,11 +1573,11 @@ var DayPilot = { Global: {} };
1573
1573
  d.putIntoBlock(r);
1574
1574
  }
1575
1575
  for (var v = 0; v < d.blocks.length; v++) {
1576
- var E = d.blocks[v];
1577
- E.events.sort(this.Kb);
1578
- for (var H = 0; H < E.events.length; H++) {
1579
- var r = E.events[H];
1580
- E.putIntoLine(r);
1576
+ var H = d.blocks[v];
1577
+ H.events.sort(this.Kb);
1578
+ for (var E = 0; E < H.events.length; E++) {
1579
+ var r = H.events[E];
1580
+ H.putIntoLine(r);
1581
1581
  }
1582
1582
  }
1583
1583
  }
@@ -1765,9 +1765,9 @@ var DayPilot = { Global: {} };
1765
1765
  c.appendChild(v);
1766
1766
  }
1767
1767
  }
1768
- var E = function () { window.setTimeout(function () { t.menuClean(), DayPilot.MenuBar.deactivate(); }, 100); };
1769
- l.onclick = E, l.ontouchend = E, l.onmousedown = function (e) { e.stopPropagation(); }, l.oncontextmenu = function () { return !1; }, document.body.appendChild(l), a.$b.visible = !0, a.$b.source = n, l.style.display = "";
1770
- var H = l.offsetHeight, A = l.offsetWidth;
1768
+ var H = function () { window.setTimeout(function () { t.menuClean(), DayPilot.MenuBar.deactivate(); }, 100); };
1769
+ l.onclick = H, l.ontouchend = H, l.onmousedown = function (e) { e.stopPropagation(); }, l.oncontextmenu = function () { return !1; }, document.body.appendChild(l), a.$b.visible = !0, a.$b.source = n, l.style.display = "";
1770
+ var E = l.offsetHeight, A = l.offsetWidth;
1771
1771
  l.style.display = "none";
1772
1772
  var N = document.documentElement.clientHeight, I = window.innerWidth, R = "number" == typeof r.windowMargin ? r.windowMargin : 5;
1773
1773
  if (function () { var e = r.initiator; if (e) {
@@ -1778,8 +1778,8 @@ var DayPilot = { Global: {} };
1778
1778
  }
1779
1779
  } }(), function () {
1780
1780
  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, d = 0;
1781
- if (n - i > N - H && 0 !== N) {
1782
- s = n - (n - i - (N - H) + R);
1781
+ if (n - i > N - E && 0 !== N) {
1782
+ s = n - (n - i - (N - E) + R);
1783
1783
  }
1784
1784
  else
1785
1785
  s = n;
@@ -1790,12 +1790,12 @@ var DayPilot = { Global: {} };
1790
1790
  d = e;
1791
1791
  a.$b.x = d, l.style.left = d + "px";
1792
1792
  }(), r.parentLink) {
1793
- var P = r.parentLink, z = parseInt(new DayPilot.StyleReader(l).get("border-top-width")), B = DayPilot.abs(r.parentLink.parentNode), L = B.x + P.offsetWidth;
1794
- a.rtl && (L = B.x - A);
1795
- var U = B.y - z;
1796
- L + A > I && (L = Math.max(0, B.x - A));
1797
- var j = document.body.scrollTop + document.documentElement.scrollTop;
1798
- U + H - j > N && (U = Math.max(0, N - H + j)), l.style.left = L + "px", l.style.top = U + "px";
1793
+ var P = r.parentLink, z = parseInt(new DayPilot.StyleReader(l).get("border-top-width")), U = DayPilot.abs(r.parentLink.parentNode), L = U.x + P.offsetWidth;
1794
+ a.rtl && (L = U.x - A);
1795
+ var B = U.y - z;
1796
+ L + A > I && (L = Math.max(0, U.x - A));
1797
+ var O = document.body.scrollTop + document.documentElement.scrollTop;
1798
+ B + E - O > N && (B = Math.max(0, N - E + O)), l.style.left = L + "px", l.style.top = B + "px";
1799
1799
  }
1800
1800
  l.style.display = "", function () { l.offsetHeight > N - R && (l.style.height = N - R + "px", l.style.overflowY = "auto", l.onwheel = function (e) { e.stopPropagation(); }); }(), this.addShadow(l), this.$b.div = l, r.submenu || (DayPilot.Menu.active = this);
1801
1801
  }
@@ -2720,23 +2720,23 @@ var DayPilot = { Global: {} };
2720
2720
  break;
2721
2721
  default: throw "Unknown weekNumberAlgorithm value.";
2722
2722
  }
2723
- var E = document.createElement("div");
2724
- E.style.position = "absolute", E.style.left = "0px", E.style.right = "0px", E.style.top = M * this.cellHeight + x + "px", E.style.width = o.Cd(), E.style.height = this.cellHeight + "px", E.style.lineHeight = this.cellHeight + "px", E.className = this.M("_weeknumber"), E.innerHTML = "<span>" + T + "</span>", b.appendChild(E), r.weeks.push(E);
2723
+ var H = document.createElement("div");
2724
+ H.style.position = "absolute", H.style.left = "0px", H.style.right = "0px", H.style.top = M * this.cellHeight + x + "px", H.style.width = o.Cd(), H.style.height = this.cellHeight + "px", H.style.lineHeight = this.cellHeight + "px", H.className = this.M("_weeknumber"), H.innerHTML = "<span>" + T + "</span>", b.appendChild(H), r.weeks.push(H);
2725
2725
  } if (o.showWeekNumbers) {
2726
- var E = document.createElement("div");
2727
- E.style.position = "absolute", E.style.left = "0px", E.style.right = "0px", E.style.top = this.titleHeight + "px", E.style.width = o.Cd(), E.style.height = this.dayHeaderHeight + "px", E.className = this.M("_dayheader"), b.appendChild(E);
2728
- } for (var H = 0; H < 7; H++) {
2729
- r.cells[H] = [];
2730
- var E = document.createElement("div");
2731
- E.style.position = "absolute", E.style.left = o.Cd(H + D), E.style.right = o.Cd(H + D), E.style.top = this.titleHeight + "px", E.style.width = o.Cd(), E.style.height = this.dayHeaderHeight + "px", E.style.lineHeight = this.dayHeaderHeight + "px", E.className = this.M("_dayheader"), E.innerHTML = "<span>" + this.Fd(H) + "</span>", b.appendChild(E), r.days.push(E);
2732
- for (var A = function (a) { var i = h.addDays(7 * a + H), u = N.Gd(i) && "none" !== N.Hd(), f = i.firstDayOfMonth() === l, v = i < l, p = i >= l.addMonths(1); if ("month" === N.Hd())
2726
+ var H = document.createElement("div");
2727
+ H.style.position = "absolute", H.style.left = "0px", H.style.right = "0px", H.style.top = this.titleHeight + "px", H.style.width = o.Cd(), H.style.height = this.dayHeaderHeight + "px", H.className = this.M("_dayheader"), b.appendChild(H);
2728
+ } for (var E = 0; E < 7; E++) {
2729
+ r.cells[E] = [];
2730
+ var H = document.createElement("div");
2731
+ H.style.position = "absolute", H.style.left = o.Cd(E + D), H.style.right = o.Cd(E + D), H.style.top = this.titleHeight + "px", H.style.width = o.Cd(), H.style.height = this.dayHeaderHeight + "px", H.style.lineHeight = this.dayHeaderHeight + "px", H.className = this.M("_dayheader"), H.innerHTML = "<span>" + this.Fd(E) + "</span>", b.appendChild(H), r.days.push(H);
2732
+ for (var A = function (a) { var i = h.addDays(7 * a + E), u = N.Gd(i) && "none" !== N.Hd(), f = i.firstDayOfMonth() === l, v = i < l, p = i >= l.addMonths(1); if ("month" === N.Hd())
2733
2733
  u = u && f;
2734
2734
  else if ("day" === N.Hd())
2735
2735
  u = u && (f || d && v || c && p);
2736
2736
  else if ("week" === N.Hd()) {
2737
2737
  var g = i.firstDayOfMonth() === l;
2738
2738
  u = u && (g || d && v || c && p);
2739
- } var y = document.createElement("div"); r.cells[H][a] = y; var w = o.Id(H, a), x = w.x, _ = w.y, C = s.vd() ? "%" : "px"; y.day = i, y.x = H, y.y = a, y.left = x, y.top = _, y.isCurrentMonth = f, y.isNextMonth = p, y.isPrevMonth = v, y.showBefore = d, y.showAfter = c, y.className = N.M(f ? "_day" : "_dayother"), o.xd(y, "cell"), i.getTime() === m.getTime() && f && N.xd(y, "today"), 0 !== i.dayOfWeek() && 6 !== i.dayOfWeek() || N.xd(y, "weekend"), y.style.position = "absolute", y.style.left = x + C, y.style.right = x + C, y.style.top = _ + "px", y.style.width = o.Cd(), y.style.height = N.cellHeight + "px", y.style.lineHeight = N.cellHeight + "px"; var k = document.createElement("div"); k.style.position = "absolute", k.className = i.getTime() === m.getTime() && f ? N.M("_todaybox") : N.M("_daybox"), o.xd(k, "cell_box"), k.style.left = "0px", k.style.top = "0px", k.style.right = "0px", k.style.bottom = "0px", y.appendChild(k); var D = null; N.cells && N.cells[i.toStringSortable()] && (D = N.cells[i.toStringSortable()]); var M = D || {}; if (M.day = i, M.isCurrentMonth = f, M.isToday = i.getTime() === m.getTime() && f, M.isWeekend = 0 === i.dayOfWeek() || 6 === i.dayOfWeek(), D ? (M.html = D.html || i.getDay(), M.cssClass = D.css) : (M.html = i.getDay(), M.cssClass = null), M.events = { all: function () { var e; return (null === (e = o.items) || void 0 === e ? void 0 : e[i.toStringSortable()]) || []; } }, "function" == typeof o.onBeforeCellRender) {
2739
+ } var y = document.createElement("div"); r.cells[E][a] = y; var w = o.Id(E, a), x = w.x, _ = w.y, C = s.vd() ? "%" : "px"; y.day = i, y.x = E, y.y = a, y.left = x, y.top = _, y.isCurrentMonth = f, y.isNextMonth = p, y.isPrevMonth = v, y.showBefore = d, y.showAfter = c, y.className = N.M(f ? "_day" : "_dayother"), o.xd(y, "cell"), i.getTime() === m.getTime() && f && N.xd(y, "today"), 0 !== i.dayOfWeek() && 6 !== i.dayOfWeek() || N.xd(y, "weekend"), y.style.position = "absolute", y.style.left = x + C, y.style.right = x + C, y.style.top = _ + "px", y.style.width = o.Cd(), y.style.height = N.cellHeight + "px", y.style.lineHeight = N.cellHeight + "px"; var k = document.createElement("div"); k.style.position = "absolute", k.className = i.getTime() === m.getTime() && f ? N.M("_todaybox") : N.M("_daybox"), o.xd(k, "cell_box"), k.style.left = "0px", k.style.top = "0px", k.style.right = "0px", k.style.bottom = "0px", y.appendChild(k); var D = null; N.cells && N.cells[i.toStringSortable()] && (D = N.cells[i.toStringSortable()]); var M = D || {}; if (M.day = i, M.isCurrentMonth = f, M.isToday = i.getTime() === m.getTime() && f, M.isWeekend = 0 === i.dayOfWeek() || 6 === i.dayOfWeek(), D ? (M.html = D.html || i.getDay(), M.cssClass = D.css) : (M.html = i.getDay(), M.cssClass = null), M.events = { all: function () { var e; return (null === (e = o.items) || void 0 === e ? void 0 : e[i.toStringSortable()]) || []; } }, "function" == typeof o.onBeforeCellRender) {
2740
2740
  var S = {};
2741
2741
  S.cell = M, o.onBeforeCellRender(S), D = S.cell;
2742
2742
  } if (D && DayPilot.Util.addClass(y, D.cssClass || D.css), f || d && v || c && p) {
@@ -2768,7 +2768,7 @@ var DayPilot = { Global: {} };
2768
2768
  i.appendChild(a.element);
2769
2769
  }
2770
2770
  }
2771
- } }(), b.appendChild(y), u && (o.Kd(b, H, a), N.selected.push(y)); }, N = this, M = 0; M < p; M++)
2771
+ } }(), b.appendChild(y), u && (o.Kd(b, E, a), N.selected.push(y)); }, N = this, M = 0; M < p; M++)
2772
2772
  A(M);
2773
2773
  } var I = document.createElement("div"); I.style.position = "absolute", I.style.left = "0px", I.style.top = x - 2 + "px", I.style.width = o.Cd(7 + D), I.style.height = "1px", I.style.fontSize = "1px", I.style.lineHeight = "1px", I.className = this.M("_line"), b.appendChild(I), this.months.push(r); }, this.Id = function (e, t) { var n = this.titleHeight + this.dayHeaderHeight, a = this.showWeekNumbers ? 1 : 0; return { "x": o.Bd(e + a), "y": t * this.cellHeight + n }; }, this.Kd = function (e, t, n) { var a = e.month.cells[t][n]; o.xd(a, "select"); }, this.Ld = function (e, t, n) { var a = e.month.cells[t][n]; o.yd(a, "select"); }, this.wd = function () { return this.showWeekNumbers ? s.cellWidth() : 0; }, this.Md = function () { var e; if (this.items)
2774
2774
  for (var t = 0; t < this.showMonths; t++)
@@ -3303,16 +3303,16 @@ var DayPilot = { Global: {} };
3303
3303
  var a = e.Vf[n];
3304
3304
  DayPilot.isArray(a) ? a.forEach(function (e) { clearTimeout(e); }) : clearTimeout(a);
3305
3305
  }
3306
- e._(), 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.Qe = null, e.se.calendar = null, e.se = 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.Ac(e), c = null;
3307
- } }, this.disposed = function () { return s.R; }, this.da = function (e) { var t = null; t = e.nodeType ? e.event : e; var n = s.eventBorderRadius; "number" == typeof n && (n += "px"); var a = s.Wf(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.M("_shadow"), h.className = this.M("_shadow_inner"), n && (u.style.borderRadius = n, h.style.borderRadius = n), s.divShadow.appendChild(u), u.calendar = s, u; }, this.Uf = function (e) { for (var t, n = s.rowlist, a = {}, i = 0, r = 0, o = n.length, l = 0; l < o; l++) {
3306
+ e._(), e.of(), e.Wf(), e.Xf(), e.Ae(), 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.Qe = null, e.se.calendar = null, e.se = 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.Ac(e), c = null;
3307
+ } }, this.disposed = function () { return s.R; }, this.da = function (e) { var t = null; t = e.nodeType ? e.event : e; var n = s.eventBorderRadius; "number" == typeof n && (n += "px"); var a = s.Yf(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.M("_shadow"), h.className = this.M("_shadow_inner"), n && (u.style.borderRadius = n, h.style.borderRadius = n), s.divShadow.appendChild(u), u.calendar = s, u; }, this.Uf = function (e) { for (var t, n = s.rowlist, a = {}, i = 0, r = 0, o = n.length, l = 0; l < o; l++) {
3308
3308
  var d = n[l];
3309
3309
  if (r += d.height, i = r - d.height, t = d, a.top = i, a.bottom = r, a.i = l, a.element = t, e < r)
3310
3310
  break;
3311
- } return a; }, this.Xf = function (e) { if (e > this.rowlist.length - 1)
3311
+ } return a; }, this.Zf = function (e) { if (e > this.rowlist.length - 1)
3312
3312
  throw new DayPilot.Exception("Row index too high"); for (var t = 0, n = 0; n <= e; n++)
3313
3313
  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)
3314
3314
  return null; if ("function" == typeof e)
3315
- return s.Yf(e); for (var t = s.events.list.length, n = 0; n < t; n++)
3315
+ return s.$f(e); for (var t = s.events.list.length, n = 0; n < t; n++)
3316
3316
  if (s.events.list[n].id === e)
3317
3317
  return new DayPilot.Event(s.events.list[n], s); return null; }, this.events.findAll = function (e) { if ("function" == typeof e) {
3318
3318
  for (var t = s.events.list.length, n = [], a = 0; a < t; a++) {
@@ -3323,13 +3323,13 @@ var DayPilot = { Global: {} };
3323
3323
  } if ("object" == typeof e)
3324
3324
  return s.events.findAll(function (t) { for (var n in e)
3325
3325
  if (e[n] !== t.data[n])
3326
- return !1; return !0; }); throw new DayPilot.Exception("function or object argument expected"); }, this.Yf = function (e) { for (var t = s.events.list.length, n = 0; n < t; n++) {
3326
+ return !1; return !0; }); throw new DayPilot.Exception("function or object argument expected"); }, this.$f = function (e) { for (var t = s.events.list.length, n = 0; n < t; n++) {
3327
3327
  var a = new DayPilot.Event(s.events.list[n], s);
3328
3328
  if (e(a))
3329
3329
  return a;
3330
- } return null; }, this.events.focus = function (e) { var t = s.Zf(e); null === t || void 0 === t ? void 0 : t.focus(); }, this.events.scrollIntoView = function (e) { if (s.Zf(e)) {
3330
+ } return null; }, this.events.focus = function (e) { var t = s._f(e); null === t || void 0 === t ? void 0 : t.focus(); }, this.events.scrollIntoView = function (e) { if (s._f(e)) {
3331
3331
  var t = e.start(), n = s.getViewport();
3332
- !DayPilot.Util.overlaps(n.start, n.end, e.start(), e.end()) && DayPilot.Util.overlaps(s.ta(), s.$f(), e.start(), e.end()) && s.scrollTo(t, "fast", "middle");
3332
+ !DayPilot.Util.overlaps(n.start, n.end, e.start(), e.end()) && DayPilot.Util.overlaps(s.ta(), s.ag(), e.start(), e.end()) && s.scrollTo(t, "fast", "middle");
3333
3333
  var a = e.resource();
3334
3334
  s.getViewport().resources.indexOf(a) === -1 && s.scrollToResource(a);
3335
3335
  } }, this.events.all = function () { for (var e = [], t = 0; t < s.events.list.length; t++) {
@@ -3355,42 +3355,42 @@ var DayPilot = { Global: {} };
3355
3355
  else {
3356
3356
  var r = e, o = "start=" + s.visibleStart().toString() + "&end=" + s.visibleEnd().toString();
3357
3357
  r += r.indexOf("?") > -1 ? "&" + o : "?" + o, DayPilot.ajax({ "method": "GET", "url": r, "success": i, "error": a });
3358
- } }, this.events._f = function (e) { var t = []; return s.rowlist.forEach(function (n) { s.ag(n.index); for (var a = 0; a < n.events.length; a++) {
3358
+ } }, this.events.bg = function (e) { var t = []; return s.rowlist.forEach(function (n) { s.cg(n.index); for (var a = 0; a < n.events.length; a++) {
3359
3359
  var i = n.events[a].data;
3360
- if (s.bg(i, e)) {
3360
+ if (s.dg(i, e)) {
3361
3361
  t.push(n), n.events.splice(a, 1);
3362
3362
  break;
3363
3363
  }
3364
- } }), t; }, this.events.cg = function (e) { if (!e)
3364
+ } }), t; }, this.events.eg = function (e) { if (!e)
3365
3365
  return null; for (var t = s.rowlist, n = 0; n < t.length; n++) {
3366
3366
  var a = t[n];
3367
- s.ag(a.index);
3367
+ s.cg(a.index);
3368
3368
  for (var i = 0; i < a.events.length; i++) {
3369
3369
  var r = a.events[i];
3370
- if (s.bg(r.data, e))
3370
+ if (s.dg(r.data, e))
3371
3371
  return a.events[i];
3372
3372
  }
3373
- } return null; }, this.events.dg = function (e) { var t = [], n = s.eg(), a = DayPilot.indexOf(s.events.list, e); s.Jb(a); var i = s.rowlist, r = !1; return i.forEach(function (i) { if (!r) {
3374
- s.ag(i.index);
3375
- var o = s.fg(e, i);
3373
+ } return null; }, this.events.fg = function (e) { var t = [], n = s.gg(), a = DayPilot.indexOf(s.events.list, e); s.Jb(a); var i = s.rowlist, r = !1; return i.forEach(function (i) { if (!r) {
3374
+ s.cg(i.index);
3375
+ var o = s.hg(e, i);
3376
3376
  o && ("function" == typeof s.onBeforeEventRender && (o.cache = s.Ib.events[a]), t.push(i), n || (r = !0));
3377
- } }), t; }, this.bg = function (e, t) { return DayPilot.Util.isSameEvent(e, t); }, this.events.update = function (e) { if ("object" == typeof e && !(e instanceof DayPilot.Event)) {
3377
+ } }), t; }, this.dg = function (e, t) { return DayPilot.Util.isSameEvent(e, t); }, this.events.update = function (e) { if ("object" == typeof e && !(e instanceof DayPilot.Event)) {
3378
3378
  var t = s.events.find(e.id);
3379
3379
  return s.events.remove(t), void s.events.add(e);
3380
- } if (s.events.list.find(function (t) { return s.bg(t, e.data); })) {
3381
- s.Me.gg && (s.Me.skip = !0);
3382
- var n = s.events._f(e.data);
3383
- e.commit(), n = n.concat(s.events.dg(e.data)), s.events.hg(n);
3380
+ } if (s.events.list.find(function (t) { return s.dg(t, e.data); })) {
3381
+ s.Me.ig && (s.Me.skip = !0);
3382
+ var n = s.events.bg(e.data);
3383
+ e.commit(), n = n.concat(s.events.fg(e.data)), s.events.jg(n);
3384
3384
  } }, this.events.remove = function (e) { if (e) {
3385
3385
  if ("string" == typeof e || "number" == typeof e) {
3386
3386
  var t = s.events.find(e);
3387
3387
  return void s.events.remove(t);
3388
3388
  }
3389
- var n = s.ig(e.data);
3390
- n && s.events.list.splice(n.index, 1), s.Me.gg && (s.Me.skip = !0);
3391
- var a = s.events._f(e.data);
3392
- s.events.hg(a);
3393
- } }, 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.ig(e); if (a) {
3389
+ var n = s.kg(e.data);
3390
+ n && s.events.list.splice(n.index, 1), s.Me.ig && (s.Me.skip = !0);
3391
+ var a = s.events.bg(e.data);
3392
+ s.events.jg(a);
3393
+ } }, 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.kg(e); if (a) {
3394
3394
  if (!i)
3395
3395
  throw new DayPilot.Exception("Unexpected: event not found in list");
3396
3396
  }
@@ -3399,34 +3399,34 @@ var DayPilot = { Global: {} };
3399
3399
  throw new DayPilot.Exception("The event you are trying to add using DayPilot.Scheduler.events.add() is already loaded. A unique ID is required.");
3400
3400
  i || s.events.list.push(e.data);
3401
3401
  } if (s.Ra) {
3402
- s.Me.gg && (s.Me.skip = !0);
3403
- var r = s.events.dg(e.data);
3404
- s.events.hg(r);
3405
- } }, this.events.jg = 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.bg(t, e))
3402
+ s.Me.ig && (s.Me.skip = !0);
3403
+ var r = s.events.fg(e.data);
3404
+ s.events.jg(r);
3405
+ } }, this.events.lg = 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.dg(t, e))
3406
3406
  return !1; if (t.resource !== e.resource)
3407
- 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.kg = { "rows": [] }, this.events.lg = null, this.events.if = function () { clearTimeout(s.events.lg), s.events.lg = null, s.events.kg.rows = []; }, this.events.mg = 0, this.events.hg = function (e) { var t = s.events.kg.rows; e.forEach(function (e) { t.push(e); }), s.events.kg.rows = DayPilot.ua(t); var n = s.events.If; s.events.lg || (s.events.lg = setTimeout(n, s.events.mg)); }, this.events.If = function () { clearTimeout(s.events.lg), s.events.lg = null; var e = s.events.kg.rows; s.events.kg.rows = [], s.ng(e), s.og(), s.Ra && (s.zf && s.jf(), s.na(), s.yf(e)); }, this.Me = {}, this.Me.enabled = !1, this.Me.skip = !1, this.Me.skipUpdate = function () { return s.Me.skip; }, this.Me.skipped = function () { s.Me.skip = !1; }, this.Me.pg = !1, this.Me.gg = !1, this.qg = function (e) { var t = s.startDate; if (e.ticks === t.ticks)
3407
+ 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.mg = { "rows": [] }, this.events.ng = null, this.events.if = function () { clearTimeout(s.events.ng), s.events.ng = null, s.events.mg.rows = []; }, this.events.og = 0, this.events.jg = function (e) { var t = s.events.mg.rows; e.forEach(function (e) { t.push(e); }), s.events.mg.rows = DayPilot.ua(t); var n = s.events.If; s.events.ng || (s.events.ng = setTimeout(n, s.events.og)); }, this.events.If = function () { clearTimeout(s.events.ng), s.events.ng = null; var e = s.events.mg.rows; s.events.mg.rows = [], s.pg(e), s.qg(), s.Ra && (s.zf && s.jf(), s.na(), s.yf(e)); }, this.Me = {}, this.Me.enabled = !1, this.Me.skip = !1, this.Me.skipUpdate = function () { return s.Me.skip; }, this.Me.skipped = function () { s.Me.skip = !1; }, this.Me.rg = !1, this.Me.ig = !1, this.sg = function (e) { var t = s.startDate; if (e.ticks === t.ticks)
3408
3408
  return e; var n = t; if (e.ticks < t.ticks) {
3409
3409
  for (; n.ticks > e.ticks;)
3410
3410
  n = n.addTime(60 * -s.Ze() * 1e3);
3411
3411
  return n;
3412
3412
  } var a = this.Ye(e); if (a.current)
3413
- return a.current.start; throw new DayPilot.Exception("getBoxStart(): time not found"); }, this.Wf = function (e) { var n = this.Uf(s.coords.y); if ("function" != typeof e.end)
3413
+ return a.current.start; throw new DayPilot.Exception("getBoxStart(): time not found"); }, this.Yf = function (e) { var n = this.Uf(s.coords.y); if ("function" != typeof e.end)
3414
3414
  throw new DayPilot.Exception("e.end function is not defined"); if (!e.end())
3415
- 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.rg(a), r = 0, o = s.coords.x; i && (r = e.start().getTime() - this.qg(e.start()).getTime()); var d = 0; if (t.sg)
3415
+ 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.tg(a), r = 0, o = s.coords.x; i && (r = e.start().getTime() - this.sg(e.start()).getTime()); var d = 0; if (t.ug)
3416
3416
  if (i) {
3417
- var c = e.start(), u = this.qg(c);
3418
- d = t.sg.getTime() - u.getTime();
3417
+ var c = e.start(), u = this.sg(c);
3418
+ d = t.ug.getTime() - u.getTime();
3419
3419
  var h = 60 * s.Ze() * 1e3;
3420
3420
  d = Math.floor(d / h) * h;
3421
3421
  }
3422
3422
  else
3423
- d = t.sg.getTime() - e.start().getTime(); var f = this.getDate(o, !0).addTime(-d); t.tg && (f = e.start()); var v = s.snapToGrid; v && (f = this.qg(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.Ze = function () { switch (this.scale) {
3423
+ d = t.ug.getTime() - e.start().getTime(); var f = this.getDate(o, !0).addTime(-d); t.vg && (f = e.start()); var v = s.snapToGrid; v && (f = this.sg(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.Ze = function () { switch (this.scale) {
3424
3424
  case "CellDuration": return this.cellDuration;
3425
3425
  case "Minute": return 1;
3426
3426
  case "Hour": return 60;
3427
3427
  case "Day": return 1440;
3428
3428
  case "Week": return 10080;
3429
- } throw new DayPilot.Exception("can't guess cellDuration value"); }, this.ug = function (e) { return e.end.ticks - e.start.ticks; }, this.vg = function () { var e = t.wg.width, n = t.wg.left, a = t.xg, i = t.tg.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.wg.start = r, t.wg.end = o; }, this.yg = function () { var e = s.coords, n = t.tg.dpBorder, a = t.tg.event, i = a.part.left; "right" === n && (i += a.part.width); var r, o, l = t.tg.event.calendar.cellWidth, d = a.part.width, c = a.part.left, u = 0, h = e.x - i, f = s.snapToGrid; if ("right" === n) {
3429
+ } throw new DayPilot.Exception("can't guess cellDuration value"); }, this.wg = function (e) { return e.end.ticks - e.start.ticks; }, this.xg = function () { var e = t.yg.width, n = t.yg.left, a = t.zg, i = t.vg.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.yg.start = r, t.yg.end = o; }, this.Ag = function () { var e = s.coords, n = t.vg.dpBorder, a = t.vg.event, i = a.part.left; "right" === n && (i += a.part.width); var r, o, l = t.vg.event.calendar.cellWidth, d = a.part.width, c = a.part.left, u = 0, h = e.x - i, f = s.snapToGrid; if ("right" === n) {
3430
3430
  if (r = c, f) {
3431
3431
  var v = s.Ve(d + c + h).cell, p = s.Ve(c).cell, m = p.left + p.width - c;
3432
3432
  o = v.left + v.width - c, o < m && (o = m);
@@ -3434,124 +3434,172 @@ var DayPilot = { Global: {} };
3434
3434
  else
3435
3435
  o = d + h;
3436
3436
  var g = s.Ne();
3437
- c + o > g && (o = g - c), t.wg.left = c, t.wg.width = o, t.wg.style.left = c + "px", t.wg.style.width = o + "px";
3437
+ c + o > g && (o = g - c), t.yg.left = c, t.yg.width = o, t.yg.style.left = c + "px", t.yg.style.width = o + "px";
3438
3438
  }
3439
3439
  else {
3440
3440
  if ("left" !== n)
3441
3441
  throw new DayPilot.Exception("Invalid dpBorder.");
3442
3442
  f ? (h >= d && (h = d), r = Math.floor((c + h + 0) / l) * l, r < u && (r = u)) : r = c + h, o = d - (r - c);
3443
3443
  var y = c + d, b = l;
3444
- f ? "Never" === s.useEventBoxes && (b = d < l ? d : 1) : b = 1, o < b && (o = b, r = y - o), t.wg.left = r, t.wg.width = o, t.wg.style.left = r + "px", t.wg.style.width = o + "px";
3445
- } s.vg(); }, this.zg = function () { if (s.coords && t.Ag) {
3446
- var e = t.Bg, n = this.Wf(t.Ag);
3444
+ f ? "Never" === s.useEventBoxes && (b = d < l ? d : 1) : b = 1, o < b && (o = b, r = y - o), t.yg.left = r, t.yg.width = o, t.yg.style.left = r + "px", t.yg.style.width = o + "px";
3445
+ } s.xg(); }, this.Bg = function () { if (s.coords && t.Cg) {
3446
+ var e = t.Dg, n = this.Yf(t.Cg);
3447
3447
  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;
3448
- } }, this.Cg = function () { return this.rowHeaderWidth; }, this.Dg = function () { return this.Eg(s.progressiveRowRenderingPreload); }, this.Eg = function (e) { e = e || 0; var t = 0, n = s.rowlist.length; if (s.progressiveRowRendering) {
3448
+ } }, this.Eg = function () { return this.rowHeaderWidth; }, this.Fg = function () { return this.Gg(s.progressiveRowRenderingPreload); }, this.Gg = function (e) { e = e || 0; var t = 0, n = s.rowlist.length; if (s.progressiveRowRendering) {
3449
3449
  var a = s.xe();
3450
3450
  t = a.yStart, n = a.yEnd + 1, t = DayPilot.Util.atLeast(0, t - e), n = Math.min(s.rowlist.length, n + e);
3451
- } return { "start": t, "end": n }; }, this.kf = function () { function e() { var e = s.divHeader; e && (e.rows = []); var t = e; t && (t.innerHTML = ""); } this.Fg = !0; var t = this.Cg(); e(); var a = this.divHeader; if (a.style.width = t + "px", a.style.height = s.le + "px", s.divHeader = a, s.progressiveRowRendering)
3451
+ } return { "start": t, "end": n }; }, this.kf = function () { this.Hg = !0; var e = this.Eg(); s.Xf(); var t = this.divHeader; if (t.style.width = e + "px", t.style.height = s.le + "px", s.divHeader = t, s.progressiveRowRendering)
3452
3452
  n();
3453
3453
  else
3454
- for (var i = this.rowlist.length, r = 0; r < i; r++)
3455
- s.Gg(r); s.Hg(), this.divResScroll.appendChild(a); }, this.Ig = function () { if (s.progressiveRowRendering)
3456
- for (var e = this.Dg(), t = 0; t < s.rowlist.length; t++)
3457
- e.start <= t && t < e.end ? s.Gg(t) : s.Jg(t); }, this.Hg = function () { if (!s.S.Kg()) {
3454
+ for (var a = this.rowlist.length, i = 0; i < a; i++)
3455
+ s.Ig(i); s.Jg(), this.divResScroll.appendChild(t); }, this.Xf = function () { var e = s.divHeader; !function () { if ("function" == typeof s.onBeforeRowHeaderDomAdd || "function" == typeof s.onBeforeRowHeaderDomRemove) {
3456
+ var t = s.rowlist;
3457
+ if (e.rows) {
3458
+ if ("function" == typeof s.onBeforeRowHeaderDomAdd || "function" == typeof s.onBeforeRowHeaderDomRemove)
3459
+ for (var n = 0; n < t.length; n++)
3460
+ e.rows[n] && s.Kg(n);
3461
+ }
3462
+ } }(), e && (e.rows = [], e.innerHTML = ""); }, this.Wf = function () { ("function" == typeof s.onBeforeTimeHeaderDomAdd || "function" == typeof s.onBeforeTimeHeaderDomRemove) && s.elements.timeHeader.forEach(function (e) { var t = e.domArgs; if (e.domArgs = null, "function" == typeof s.onBeforeTimeHeaderDomRemove && s.onBeforeTimeHeaderDomRemove(t), "function" == typeof s.onBeforeTimeHeaderDomAdd) {
3463
+ var n = t && t.Wa;
3464
+ if (n) {
3465
+ var a = s.Za.reactDOM && DayPilot.Util.isReactComponent(t.element), i = s.Ya.Xa && DayPilot.Util.isVueVNode(t.element);
3466
+ a ? s.Za.$a(n) : i && (s.Ya._a = !0, s.Ya.ab(n), s.Ya._a = !1);
3467
+ }
3468
+ } }), s.nav.timeHeader.innerHTML = "", s.elements.timeHeader = [], this.Ib.timeHeader = {}; }, this.Lg = function () { if (s.progressiveRowRendering)
3469
+ for (var e = this.Fg(), t = 0; t < s.rowlist.length; t++)
3470
+ e.start <= t && t < e.end ? s.Ig(t) : s.Kg(t); }, this.Jg = function () { if (!s.S.Mg()) {
3458
3471
  var e = s.divHeader, t = r();
3459
3472
  t.style.position = "absolute", e.appendChild(t), s.nav.resScrollSpace = t;
3460
3473
  var n = r();
3461
3474
  n.style.position = "relative", n.style.height = "100%", n.className = this.M("_rowheader"), t.appendChild(n);
3462
- var a = this.Cg();
3475
+ var a = this.Eg();
3463
3476
  t.style.width = a + "px", t.style.top = this.le + "px";
3464
- } }, this.Jg = function (e) { var t = s.divHeader.rows[e]; t && (DayPilot.de(t), s.divHeader.rows[e] = null); }, this.wf = function (e) { this.Jg(e), this.Gg(e); }, this.Gg = function (e) { var t = s.rowlist, n = s.divHeader; if (n && !n.rows[e]) {
3465
- var a = this.Cg(), i = t[e];
3466
- if (i) {
3467
- var o = this.Lg(i), l = r();
3468
- l.style.position = "absolute", l.style.top = i.top + "px", n.rows[e] = l, l.row = i, l.index = e;
3469
- var d = o.row, c = this.rowHeaderWidth;
3470
- l.style.width = c + "px", l.style.border = "0px none";
3471
- var u = d.toolTip || d.toolTip;
3472
- u && (l.title = u), "undefined" != typeof d.ariaLabel ? l.setAttribute("aria-label", d.ariaLabel) : l.setAttribute("aria-label", d.text || ""), l.onclick = s.Mg;
3473
- var h = r();
3474
- h.style.width = c + "px", h.className = this.M("_rowheader"), d.cssClass && DayPilot.Util.addClass(h, d.cssClass), d.cssClass && DayPilot.Util.addClass(h, d.cssClass);
3475
- var f = d.backColor || d.backColor;
3476
- f && (h.style.background = f);
3477
- var v = d.fontColor || d.fontColor;
3478
- v && (h.style.color = v);
3479
- var p = d.horizontalAlignment || d.horizontalAlignment;
3480
- p && (h.style.textAlign = p), h.style.height = i.height + "px", h.style.overflow = "hidden", h.style.position = "relative";
3481
- var m = r();
3482
- switch (m.className = this.M("_rowheader_inner"), p) {
3483
- case "right":
3484
- m.style.justifyContent = "flex-end";
3485
- break;
3486
- case "left":
3487
- m.style.justifyContent = "flex-start";
3488
- break;
3489
- case "center": m.style.justifyContent = "center";
3477
+ } }, this.Kg = function (e) { var t = s.divHeader.rows[e]; t && (!function () { var e = t.cellDiv; if (e) {
3478
+ var n = e.domArgs;
3479
+ if (e.domArgs = null, n && "function" == typeof s.onBeforeRowHeaderDomRemove && s.onBeforeRowHeaderDomRemove(n), n && "function" == typeof s.onBeforeRowHeaderDomAdd) {
3480
+ var a = n && n.Wa;
3481
+ if (a) {
3482
+ var i = s.Za.reactDOM && DayPilot.Util.isReactComponent(n.element), r = s.Ya.Xa && DayPilot.Util.isVueVNode(n.element);
3483
+ i ? s.Za.$a(a) : r && (s.Ya._a = !0, s.Ya.ab(a), s.Ya._a = !1);
3490
3484
  }
3491
- h.appendChild(m);
3492
- var g = d.areas || [], y = s.Ng(i);
3493
- DayPilot.Areas.attach(h, y, { areas: g });
3494
- var b = r();
3495
- 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.M("_resourcedivider"), h.appendChild(b);
3496
- var w = r(), x = r();
3497
- x.innerHTML = s.jb(d.text, d.html), x.className = s.M("_rowheader_inner_text"), l.textDiv = x, l.cellDiv = h, w.appendChild(x), m.appendChild(w);
3498
- var _ = d.verticalAlignment || d.verticalAlignment;
3499
- if (_)
3500
- switch (m.style.display = "flex", _) {
3501
- case "center":
3502
- m.style.alignItems = "center";
3485
+ }
3486
+ n && (n.element = null, n.Wa = null);
3487
+ } }(), DayPilot.de(t), s.divHeader.rows[e] = null); }, this.wf = function (e) { this.Kg(e), this.Ig(e); }, this.Ig = function (e) {
3488
+ var t = s.rowlist, n = s.divHeader;
3489
+ if (n && !n.rows[e]) {
3490
+ var a = this.Eg(), i = t[e];
3491
+ if (i) {
3492
+ var o = this.Ng(i), l = r();
3493
+ l.style.position = "absolute", l.style.top = i.top + "px", n.rows[e] = l, l.row = i, l.index = e;
3494
+ var d = o.row, c = this.rowHeaderWidth;
3495
+ l.style.width = c + "px", l.style.border = "0px none";
3496
+ var u = d.toolTip || d.toolTip;
3497
+ u && (l.title = u), "undefined" != typeof d.ariaLabel ? l.setAttribute("aria-label", d.ariaLabel) : l.setAttribute("aria-label", d.text || ""), l.onclick = s.Og;
3498
+ var h = r();
3499
+ h.style.width = c + "px", h.className = this.M("_rowheader"), d.cssClass && DayPilot.Util.addClass(h, d.cssClass), d.cssClass && DayPilot.Util.addClass(h, d.cssClass);
3500
+ var f = d.backColor || d.backColor;
3501
+ f && (h.style.background = f);
3502
+ var v = d.fontColor || d.fontColor;
3503
+ v && (h.style.color = v);
3504
+ var p = d.horizontalAlignment || d.horizontalAlignment;
3505
+ p && (h.style.textAlign = p), h.style.height = i.height + "px", h.style.overflow = "hidden", h.style.position = "relative";
3506
+ var m = r();
3507
+ switch (m.className = this.M("_rowheader_inner"), p) {
3508
+ case "right":
3509
+ m.style.justifyContent = "flex-end";
3503
3510
  break;
3504
- case "top":
3505
- m.style.alignItems = "flex-start";
3511
+ case "left":
3512
+ m.style.justifyContent = "flex-start";
3506
3513
  break;
3507
- case "bottom": m.style.alignItems = "flex-end";
3514
+ case "center": m.style.justifyContent = "center";
3508
3515
  }
3509
- l.appendChild(h), n.appendChild(l), h.style.width = a + "px";
3516
+ h.appendChild(m);
3517
+ var g = d.areas || [], y = s.Pg(i);
3518
+ DayPilot.Areas.attach(h, y, { areas: g });
3519
+ var b = r();
3520
+ 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.M("_resourcedivider"), h.appendChild(b);
3521
+ var w = r(), x = r();
3522
+ x.innerHTML = s.jb(d.text, d.html), x.className = s.M("_rowheader_inner_text"), l.textDiv = x, l.cellDiv = h, w.appendChild(x), m.appendChild(w);
3523
+ var _ = d.verticalAlignment || d.verticalAlignment;
3524
+ if (_)
3525
+ switch (m.style.display = "flex", _) {
3526
+ case "center":
3527
+ m.style.alignItems = "center";
3528
+ break;
3529
+ case "top":
3530
+ m.style.alignItems = "flex-start";
3531
+ break;
3532
+ case "bottom": m.style.alignItems = "flex-end";
3533
+ }
3534
+ l.appendChild(h), function () {
3535
+ if (("function" == typeof s.onBeforeRowHeaderDomAdd || "function" == typeof s.onBeforeRowHeaderDomRemove) && !i.isNewRow) {
3536
+ var e = {};
3537
+ if (e.control = s, e.row = s.Pg(i), e.element = null, e.target = "Cell", h.domArgs = e, "function" == typeof s.onBeforeRowHeaderDomAdd && s.onBeforeRowHeaderDomAdd(e), e.element) {
3538
+ var t = null;
3539
+ switch (e.target && e.target.toLowerCase()) {
3540
+ case "text":
3541
+ t = x;
3542
+ break;
3543
+ case "cell": t = m;
3544
+ }
3545
+ if (t) {
3546
+ e.Wa = t, t.innerHTML = "";
3547
+ var n = DayPilot.Util.isReactComponent(e.element), a = DayPilot.Util.isVueVNode(e.element);
3548
+ if (n) {
3549
+ if (!s.Za.reactDOM)
3550
+ throw new DayPilot.Exception("Can't reach ReactDOM");
3551
+ s.Za.db(e.element, t);
3552
+ }
3553
+ else if (a) {
3554
+ if (!s.Ya.Xa)
3555
+ throw new DayPilot.Exception("Can't reach Vue");
3556
+ s.Ya._a = !0, s.Ya.eb(e.element, t), s.Ya._a = !1;
3557
+ }
3558
+ else
3559
+ t.appendChild(e.element);
3560
+ }
3561
+ }
3562
+ }
3563
+ }(), n.appendChild(l), h.style.width = a + "px";
3564
+ }
3510
3565
  }
3511
- } }, this.Mg = function (e) { var t = this.row, n = s.Ng(t, this.index); s.Pf(n, e); }, this.Og = function () { if ("Disabled" !== s.timeHeaderClickHandling) {
3566
+ }, this.Og = function (e) { var t = this.row, n = s.Pg(t, this.index); s.Pf(n, e); }, this.Qg = function () { if ("Disabled" !== s.timeHeaderClickHandling) {
3512
3567
  var e = {};
3513
3568
  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.Ze())), s.Rf(e);
3514
- } }, this.Pg = function (e) { if ("Disabled" !== s.timeHeaderRightClickHandling) {
3569
+ } }, this.Rg = function (e) { if ("Disabled" !== s.timeHeaderRightClickHandling) {
3515
3570
  e.cancelBubble = !0, e.preventDefault();
3516
3571
  var t = {};
3517
3572
  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.Ze()));
3518
3573
  var n = {};
3519
3574
  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);
3520
- } }, this.Ng = function (e) { return new DayPilot.Row(e, s); }, this.ag = function (e) { var t = s.rowlist, n = t[e]; n.events || n.resetEvents(); }, this.Qg = {}, this.ia = function (e) {
3521
- if (e ? this.events.list = e : this.events.list || (this.events.list = []), null != this.events.list && !DayPilot.isArray(this.events.list))
3522
- throw new DayPilot.Exception("DayPilot.Scheduler.events.list expects an array object");
3523
- c.prepareRows(!0);
3524
- var t, n = this.events.list, a = "function" == typeof this.onBeforeEventRender;
3525
- s.Qg = {};
3526
- for (var i = 0; i < n.length; i++) {
3527
- var r = n[i];
3528
- if (r) {
3529
- if ("object" != typeof r)
3530
- throw new DayPilot.Exception("Event data item must be an object");
3531
- if (!r.start)
3532
- throw new DayPilot.Exception("Event data item must specify 'start' property");
3533
- if (r instanceof DayPilot.Event)
3534
- throw new DayPilot.Exception("DayPilot.Scheduler: DayPilot.Event object detected in events.list array. Use raw event data instead.");
3535
- if (!("string" == typeof r.id || "number" == typeof r.id))
3536
- throw new DayPilot.Exception("All events must have an id property (string or number)");
3537
- var o = "_" + r.id;
3538
- if (s.Qg[o])
3539
- throw new DayPilot.Exception("Duplicate event IDs are not allowed: " + o);
3540
- s.Qg[o] = !0, a && this.Jb(i), t = s.Rg(r.resource);
3541
- for (var l = 0; t && l < t.length; l++) {
3542
- var d = t[l], u = this.fg(r, d);
3543
- u && a && (u.cache = this.Ib.events[i]);
3544
- }
3575
+ } }, this.Pg = function (e) { return new DayPilot.Row(e, s); }, this.cg = function (e) { var t = s.rowlist, n = t[e]; n.events || n.resetEvents(); }, this.Sg = {}, this.ia = function (e) { if (e ? this.events.list = e : this.events.list || (this.events.list = []), null != this.events.list && !DayPilot.isArray(this.events.list))
3576
+ 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.Sg = {}; for (var i = 0; i < n.length; i++) {
3577
+ var r = n[i];
3578
+ if (r) {
3579
+ if ("object" != typeof r)
3580
+ throw new DayPilot.Exception("Event data item must be an object");
3581
+ if (!r.start)
3582
+ throw new DayPilot.Exception("Event data item must specify 'start' property");
3583
+ if (r instanceof DayPilot.Event)
3584
+ throw new DayPilot.Exception("DayPilot.Scheduler: DayPilot.Event object detected in events.list array. Use raw event data instead.");
3585
+ if (!("string" == typeof r.id || "number" == typeof r.id))
3586
+ throw new DayPilot.Exception("All events must have an id property (string or number)");
3587
+ var o = "_" + r.id;
3588
+ if (s.Sg[o])
3589
+ throw new DayPilot.Exception("Duplicate event IDs are not allowed: " + o);
3590
+ s.Sg[o] = !0, a && this.Jb(i), t = s.Tg(r.resource);
3591
+ for (var l = 0; t && l < t.length; l++) {
3592
+ var d = t[l], u = this.hg(r, d);
3593
+ u && a && (u.cache = this.Ib.events[i]);
3545
3594
  }
3546
3595
  }
3547
- s.rowlist.forEach(function (e) { s.Sg(e); }), s.og();
3548
- }, c.rowcache = {}, c.prepareRows = function (e) { c.rowcache = {}; for (var t = s.rowlist, n = 0; n < t.length; n++) {
3596
+ } s.rowlist.forEach(function (e) { s.Ug(e); }), s.qg(); }, c.rowcache = {}, c.prepareRows = function (e) { c.rowcache = {}; for (var t = s.rowlist, n = 0; n < t.length; n++) {
3549
3597
  var a = t[n];
3550
- if (e && a.resetEvents(), s.ag(a.index), a.id) {
3598
+ if (e && a.resetEvents(), s.cg(a.index), a.id) {
3551
3599
  var i = typeof a.id + "_" + a.id;
3552
3600
  c.rowcache[i] || (c.rowcache[i] = []), c.rowcache[i].push(a);
3553
3601
  }
3554
- } }, this.Rg = function (e) { var t = typeof e + "_" + e; return c.rowcache[t] || []; }, this.eg = function () { for (var e = {}, t = 0; t < s.rowlist.length; t++) {
3602
+ } }, this.Tg = function (e) { var t = typeof e + "_" + e; return c.rowcache[t] || []; }, this.gg = function () { for (var e = {}, t = 0; t < s.rowlist.length; t++) {
3555
3603
  var n = s.rowlist[t], a = n.id;
3556
3604
  if (e[a])
3557
3605
  return !0;
@@ -3560,31 +3608,31 @@ var DayPilot = { Global: {} };
3560
3608
  a[i] = n[i]; if ("string" == typeof a.start && (a.start = new DayPilot.Date(a.start)), "string" == typeof a.end && (a.end = new DayPilot.Date(a.end)), "function" == typeof this.onBeforeEventRender) {
3561
3609
  var r = {};
3562
3610
  r.e = a, r.data = a, this.onBeforeEventRender(r);
3563
- } t[e] = a; }, this.Sg = function (e) { e.lines = [], e.sections = null, e.events.sort(this.Kb); for (var t = 0; t < e.events.length; t++) {
3611
+ } t[e] = a; }, this.Ug = function (e) { e.lines = [], e.sections = null, e.events.sort(this.Kb); for (var t = 0; t < e.events.length; t++) {
3564
3612
  var n = e.events[t];
3565
3613
  e.putIntoLine(n);
3566
- } }, this.ng = function (e) { e = DayPilot.ua(e), e = s.xf(e), e.forEach(function (e) { s.Sg(e); }), e.forEach(function (e) { s.Tg(e); }); }, this.fg = function (e, t) { var n = new DayPilot.Date(e.start), a = new DayPilot.Date(e.end); a = s.Ef(a); var i = n.ticks, r = a.ticks, o = s.startDate.ticks, d = s.startDate.addDays(s.days).ticks; if (r < i)
3614
+ } }, this.pg = function (e) { e = DayPilot.ua(e), e = s.xf(e), e.forEach(function (e) { s.Ug(e); }), e.forEach(function (e) { s.Vg(e); }); }, this.hg = function (e, t) { var n = new DayPilot.Date(e.start), a = new DayPilot.Date(e.end); a = s.Ef(a); var i = n.ticks, r = a.ticks, o = s.startDate.ticks, d = s.startDate.addDays(s.days).ticks; if (r < i)
3567
3615
  return null; var c = null; if ("function" == typeof s.onBeforeEventRender) {
3568
3616
  var u = DayPilot.indexOf(s.events.list, e);
3569
3617
  c = s.Ib.events[u];
3570
3618
  } if (t.id !== e.resource || (r <= o || i >= d) && (i !== r || i !== o))
3571
- 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.rg(r - i)) {
3619
+ 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.tg(r - i)) {
3572
3620
  var g = f.boxLeft, y = v.boxRight;
3573
3621
  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);
3574
3622
  }
3575
3623
  else
3576
3624
  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.Kb = function (e, t) { if (!(e && t && e.start && t.start))
3577
3625
  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++) {
3578
- var n = s.Ng(s.rowlist[t]);
3626
+ var n = s.Pg(s.rowlist[t]);
3579
3627
  e.push(n);
3580
3628
  } 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) {
3581
- var n = s.Rg(e);
3629
+ var n = s.Tg(e);
3582
3630
  e || (n = s.rowlist);
3583
3631
  var a = null;
3584
3632
  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;
3585
3633
  } if ("function" != typeof e)
3586
- 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.Ng(t)); }); if (r)
3587
- return s.Ng(r); }, this.rows.load = function (e, t, n) { if (!e)
3634
+ 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.Pg(t)); }); if (r)
3635
+ return s.Pg(r); }, this.rows.load = function (e, t, n) { if (!e)
3588
3636
  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 {
3589
3637
  n = JSON.parse(i.responseText);
3590
3638
  }
@@ -3607,22 +3655,22 @@ var DayPilot = { Global: {} };
3607
3655
  if (e = s.rows.find(t.id), !e)
3608
3656
  return;
3609
3657
  e.data = t;
3610
- } var n = e.index, a = s.rowlist, i = a[n], r = e.data, o = s.Ug(r), l = s.Vg(o); l.level = i.level, l.index = n, l.top = i.top, l.height = i.height, a[n] = l, l.resetEvents(), s.ag(l.index), s.Wg(l), s.Sg(l), s.wf(l.index), s.of(), s.rf(); }, this.Wg = function (e) { for (var t = s.events.list, n = t.length, a = "function" == typeof s.onBeforeEventRender, i = 0; i < n; i++) {
3658
+ } var n = e.index, a = s.rowlist, i = a[n], r = e.data, o = s.Wg(r), l = s.Xg(o); l.level = i.level, l.index = n, l.top = i.top, l.height = i.height, a[n] = l, l.resetEvents(), s.cg(l.index), s.Yg(l), s.Ug(l), s.wf(l.index), s.of(), s.rf(); }, this.Yg = function (e) { for (var t = s.events.list, n = t.length, a = "function" == typeof s.onBeforeEventRender, i = 0; i < n; i++) {
3611
3659
  var r = t[i];
3612
3660
  if (r) {
3613
3661
  if (r instanceof DayPilot.Event)
3614
3662
  throw new DayPilot.Exception("DayPilot.Scheduler: DayPilot.Event object detected in events.list array. Use raw event data instead.");
3615
3663
  if (r.resource === e.id) {
3616
3664
  a && this.Jb(i);
3617
- var o = this.fg(r, e);
3665
+ var o = this.hg(r, e);
3618
3666
  o && a && (o.cache = this.Ib.events[i]);
3619
3667
  }
3620
3668
  }
3621
3669
  } }, this.hf = function () { var e = this.resources; if ({}.i = 0, null != e && !DayPilot.isArray(e))
3622
- throw new DayPilot.Exception("DayPilot.Scheduler.resources expects an array object"); e = e || [], s.rowlist = [], this.Xg(e); }, this.ta = function () { return new DayPilot.Date(this.startDate); }, this.$f = function () { return new DayPilot.Date(s.startDate).addDays(s.days); }, this.visibleStart = function () { return this.ta(); }, this.visibleEnd = function () { return this.$f(); }, this.Vg = function (e) { var t = {}; return t.backColor = e.backColor, t.fontColor = e.fontColor, t.cssClass = e.cssClass, t.name = e.name, t.html = s.jb(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.Le, 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++) {
3670
+ throw new DayPilot.Exception("DayPilot.Scheduler.resources expects an array object"); e = e || [], s.rowlist = [], this.Zg(e); }, this.ta = function () { return new DayPilot.Date(this.startDate); }, this.ag = function () { return new DayPilot.Date(s.startDate).addDays(s.days); }, this.visibleStart = function () { return this.ta(); }, this.visibleEnd = function () { return this.ag(); }, this.Xg = function (e) { var t = {}; return t.backColor = e.backColor, t.fontColor = e.fontColor, t.cssClass = e.cssClass, t.name = e.name, t.html = s.jb(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.Le, 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++) {
3623
3671
  var r = e.events[i], o = s.Ef(r.end());
3624
3672
  DayPilot.Util.overlaps(r.start(), o, t, n) && a.push(r);
3625
- } return a; }; }, t.Yg = 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++) {
3673
+ } return a; }; }, t.$g = 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++) {
3626
3674
  var o = this[r];
3627
3675
  if (!(a < o.part.left || e > o.part.left + o.part.width - 1)) {
3628
3676
  if (DayPilot.contains(n, o.data))
@@ -3632,51 +3680,51 @@ var DayPilot = { Global: {} };
3632
3680
  } return !0; }, e; }, t.findFreeLine = function (e, n) { for (var a = 0; a < this.lines.length; a++) {
3633
3681
  if (this.lines[a].isFree(e, n))
3634
3682
  return a;
3635
- } var i = t.Yg(); 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.Xg = function (e) { if (e)
3683
+ } var i = t.$g(); 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.Zg = function (e) { if (e)
3636
3684
  for (var t = s.rowlist, n = 0; n < e.length; n++)
3637
3685
  if (e[n]) {
3638
3686
  var a = {};
3639
3687
  a.index = n;
3640
- var i = this.Ug(e[n], a), r = s.Vg(i, parent);
3688
+ var i = this.Wg(e[n], a), r = s.Xg(i, parent);
3641
3689
  r.index = n, t.push(r);
3642
- } }, this.Lg = function (e) { var t = {}; return t.row = this.Ng(e), DayPilot.Util.copyProps(e, t.row, ["html", "backColor", "fontColor", "cssClass", "toolTip", "areas"]), "function" == typeof this.onBeforeRowHeaderRender && this.onBeforeRowHeaderRender(t), t; }, this.Ug = function (e, t) { var n = { get $data() { return this.Le; } }; for (var a in t)
3690
+ } }, this.Ng = function (e) { var t = {}; return t.row = this.Pg(e), DayPilot.Util.copyProps(e, t.row, ["html", "backColor", "fontColor", "cssClass", "toolTip", "areas"]), "function" == typeof this.onBeforeRowHeaderRender && this.onBeforeRowHeaderRender(t), t; }, this.Wg = function (e, t) { var n = { get $data() { return this.Le; } }; for (var a in t)
3643
3691
  n[a] = t[a]; for (var i in e)
3644
- n[i] = e[i]; return n.html = s.jb(e.name, e.html), n.Le = e, n; }, this.Zg = function () { this.nav.top.dp = this, this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.M("_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.$g, this.nav.top.ontouchmove = d._g, this.nav.top.ontouchend = d.ah; 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.M("_divider_horizontal"), this.nav.dh1 = n, this.nav.left = t, t.appendChild(this.pb()), t.appendChild(n), t.appendChild(this.bh()); var a = r(); a.style.position = "absolute", a.style.left = e + "px", a.style.width = "1px", a.style.height = this.Pe() + this.gb() + "px", a.className = this.M("_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.Pe() + "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.M("_divider_horizontal"), this.nav.dh2 = o, i.appendChild(s.ch()), i.appendChild(s.dh()), 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.M("_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.M("_divider_horizontal") + " " + this.M("_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.ja = function () { var e = this.Pe(); 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.eh = 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.fh = function () { var e = this.rowHeaderWidth, t = this.divHeader; t.style.width = e + "px"; for (var n = s.Dg(), a = n.start; a < n.end; a++) {
3692
+ n[i] = e[i]; return n.html = s.jb(e.name, e.html), n.Le = e, n; }, this._g = function () { this.nav.top.dp = this, this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.M("_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.ah, this.nav.top.ontouchmove = d.bh, this.nav.top.ontouchend = d.ch; 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.M("_divider_horizontal"), this.nav.dh1 = n, this.nav.left = t, t.appendChild(this.pb()), t.appendChild(n), t.appendChild(this.dh()); var a = r(); a.style.position = "absolute", a.style.left = e + "px", a.style.width = "1px", a.style.height = this.Pe() + this.gb() + "px", a.className = this.M("_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.Pe() + "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.M("_divider_horizontal"), this.nav.dh2 = o, i.appendChild(s.eh()), i.appendChild(s.fh()), 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.M("_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.M("_divider_horizontal") + " " + this.M("_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.ja = function () { var e = this.Pe(); 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.gh = 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.hh = function () { var e = this.rowHeaderWidth, t = this.divHeader; t.style.width = e + "px"; for (var n = s.Fg(), a = n.start; a < n.end; a++) {
3645
3693
  var i = t.rows[a];
3646
3694
  if (i) {
3647
3695
  var r = s.rowHeaderWidth;
3648
3696
  i.style.width = r + "px";
3649
3697
  i.firstChild.style.width = r + "px";
3650
3698
  }
3651
- } s.nav.resScrollSpace && (s.nav.resScrollSpace.style.width = e + "px"); }, this.nf = function () { this.eh(), this.fh(); }, this.pb = function () { var e = this.rowHeaderWidth, t = r(); s.nav.corner = t, t.style.width = e + "px", t.style.height = this.Pe() + "px", t.style.overflow = "hidden", t.style.position = "relative", t.oncontextmenu = function () { return !1; }, t.className = this.M("_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.M("_corner_inner"), n.innerHTML = "&nbsp;", this.divCorner = n, t.appendChild(n), t; }, this.Pe = function () { return s.timeHeaders ? s.timeHeaders.length * s.headerHeight : 0; }, this.gh = null, this.bh = function () { var e = r(); e.style.width = this.rowHeaderWidth + "px", e.style.height = this.gb() + "px", e.style.overflow = "hidden", e.style.position = "relative", e.className = s.M("_rowheader_scroll"); var n = s.S.Kg(); n && (e.style.overflowY = "auto"), e.ontouchstart = function () { t.hh = !0; }, e.oncontextmenu = function () { return !1; }, e.onscroll = function () { if (s.gh && clearTimeout(s.gh), n) {
3652
- var a = function () { var t = s.ih() - s.nav.scroll.offsetHeight; e.scrollTop = Math.min(e.scrollTop, t), s.nav.scroll.scrollTop = e.scrollTop; };
3653
- DayPilot.browser.ios ? t.hh && (s.gh = setTimeout(a, 10)) : s.gh = setTimeout(a, 10);
3699
+ } s.nav.resScrollSpace && (s.nav.resScrollSpace.style.width = e + "px"); }, this.nf = function () { this.gh(), this.hh(); }, this.pb = function () { var e = this.rowHeaderWidth, t = r(); s.nav.corner = t, t.style.width = e + "px", t.style.height = this.Pe() + "px", t.style.overflow = "hidden", t.style.position = "relative", t.oncontextmenu = function () { return !1; }, t.className = this.M("_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.M("_corner_inner"), n.innerHTML = "&nbsp;", this.divCorner = n, t.appendChild(n), t; }, this.Pe = function () { return s.timeHeaders ? s.timeHeaders.length * s.headerHeight : 0; }, this.ih = null, this.dh = function () { var e = r(); e.style.width = this.rowHeaderWidth + "px", e.style.height = this.gb() + "px", e.style.overflow = "hidden", e.style.position = "relative", e.className = s.M("_rowheader_scroll"); var n = s.S.Mg(); n && (e.style.overflowY = "auto"), e.ontouchstart = function () { t.jh = !0; }, e.oncontextmenu = function () { return !1; }, e.onscroll = function () { if (s.ih && clearTimeout(s.ih), n) {
3700
+ var a = function () { var t = s.kh() - s.nav.scroll.offsetHeight; e.scrollTop = Math.min(e.scrollTop, t), s.nav.scroll.scrollTop = e.scrollTop; };
3701
+ DayPilot.browser.ios ? t.jh && (s.ih = setTimeout(a, 10)) : s.ih = setTimeout(a, 10);
3654
3702
  }
3655
3703
  else
3656
- s.gh = 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.Qe = e, e; }, this.jh = null, this.kh = null, this.lh = function () { var e = function () { s.mh(), s.sf(); }, t = function () { var t = s.nav.top; if (t) {
3657
- if (!s.jh)
3658
- return s.jh = {}, void (s.jh.width = t.offsetWidth);
3659
- s.jh.width !== t.offsetWidth && (s.jh.width = t.offsetWidth, e());
3660
- } }; if (!s.kh) {
3704
+ s.ih = 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.Qe = e, e; }, this.lh = null, this.mh = null, this.nh = function () { var e = function () { s.oh(), s.sf(); }, t = function () { var t = s.nav.top; if (t) {
3705
+ if (!s.lh)
3706
+ return s.lh = {}, void (s.lh.width = t.offsetWidth);
3707
+ s.lh.width !== t.offsetWidth && (s.lh.width = t.offsetWidth, e());
3708
+ } }; if (!s.mh) {
3661
3709
  var n = new ResizeObserver(DayPilot.debounce(t, 100));
3662
- n.observe(s.nav.top), s.kh = n;
3663
- } }, this.mh = function () { s.R || (s.na(), s.nh(), s.Ib.drawArea = null); }, this.nh = function () { var e = s.Mf; s.clearSelection(), s.Mf = e, s.Nf(e, { "justDraw": !0 }); }, this.ch = 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.Pe() + "px", e.style.overflow = "hidden", e.className = s.M("_timeheader_scroll"), this.divTimeScroll = e; var t = r(); return t.style.width = this.Ne() + 5e3 + "px", this.divNorth = t, e.appendChild(t), e; }, this.gb = function () { var e = 0, t = s.heightSpec; return "Fixed" === t ? this.height ? this.height : 0 : (e = s.ih(), "Max" === t && e > s.height ? s.height : e); }, this.ih = function () { var e; return this.le !== -1 ? (e = this.le, this.le > 0 && "auto" === s.nav.scroll.style.overflowX && (e += DayPilot.sh(s.nav.scroll) + 1)) : e = this.rowlist.length * s.eventHeight, e; }, this.dh = function () { var e = r(); e.style.overflow = "auto", e.style.overflowX = "auto", e.style.overflowY = "auto", e.style.height = this.gb() + "px", e.style.top = this.Pe() + 1 + "px", e.style.position = "absolute", e.style.width = "100%", e.className = this.M("_scrollable"), e.oncontextmenu = function () { return !1; }, this.nav.scroll = e, this.se = r(); var t = this.se; t.style.userSelect = "none", t.style.webkitUserSelect = "none", t.calendar = this, t.style.position = "absolute"; var n = this.Ne(); return n > 0 && (t.style.width = n + "px"), t.onmousedown = this.oh, t.onmousemove = this.ph, t.onmouseup = this.qh, t.oncontextmenu = this.rh, t.className = this.M("_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.rh, t.appendChild(this.divCells), this.divLines = r(), this.divLines.style.position = "absolute", this.divLines.oncontextmenu = this.rh, t.appendChild(this.divLines), this.divSeparators = r(), this.divSeparators.style.position = "absolute", this.divSeparators.oncontextmenu = this.rh, t.appendChild(this.divSeparators), this.divRange = r(), this.divRange.style.position = "absolute", this.divRange.oncontextmenu = this.rh, 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; }, this.Ab = function () { t.uh || (t.uh = !0, DayPilot.re(document, "mouseup", t.ke), DayPilot.reNonPassive(document, "touchmove", t.vh), DayPilot.re(document, "touchend", t.wh)); }, this.xh = function () { this.nav.scroll.root = this, this.nav.scroll.onscroll = this.sf, s.yh = this.nav.scroll.scrollLeft, s.zh = this.nav.scroll.scrollTop, this.divNorth && (s.Ah = this.divNorth.clientWidth); }, this.Bh = {}, this.Bh.step = 300, this.Bh.delay = 10, this.Bh.mode = "display", this.Bh.layers = !1, this.Tg = function (e) { for (var t = 0, n = 0; n < e.lines.length; n++) {
3710
+ n.observe(s.nav.top), s.mh = n;
3711
+ } }, this.oh = function () { s.R || (s.na(), s.ph(), s.Ib.drawArea = null); }, this.ph = function () { var e = s.Mf; s.clearSelection(), s.Mf = e, s.Nf(e, { "justDraw": !0 }); }, this.eh = 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.Pe() + "px", e.style.overflow = "hidden", e.className = s.M("_timeheader_scroll"), this.divTimeScroll = e; var t = r(); return t.style.width = this.Ne() + 5e3 + "px", this.divNorth = t, e.appendChild(t), e; }, this.gb = function () { var e = 0, t = s.heightSpec; return "Fixed" === t ? this.height ? this.height : 0 : (e = s.kh(), "Max" === t && e > s.height ? s.height : e); }, this.kh = function () { var e; return this.le !== -1 ? (e = this.le, this.le > 0 && "auto" === s.nav.scroll.style.overflowX && (e += DayPilot.sh(s.nav.scroll) + 1)) : e = this.rowlist.length * s.eventHeight, e; }, this.fh = function () { var e = r(); e.style.overflow = "auto", e.style.overflowX = "auto", e.style.overflowY = "auto", e.style.height = this.gb() + "px", e.style.top = this.Pe() + 1 + "px", e.style.position = "absolute", e.style.width = "100%", e.className = this.M("_scrollable"), e.oncontextmenu = function () { return !1; }, this.nav.scroll = e, this.se = r(); var t = this.se; t.style.userSelect = "none", t.style.webkitUserSelect = "none", t.calendar = this, t.style.position = "absolute"; var n = this.Ne(); return n > 0 && (t.style.width = n + "px"), t.onmousedown = this.qh, t.onmousemove = this.rh, t.onmouseup = this.uh, t.oncontextmenu = this.vh, t.className = this.M("_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.vh, t.appendChild(this.divCells), this.divLines = r(), this.divLines.style.position = "absolute", this.divLines.oncontextmenu = this.vh, t.appendChild(this.divLines), this.divSeparators = r(), this.divSeparators.style.position = "absolute", this.divSeparators.oncontextmenu = this.vh, t.appendChild(this.divSeparators), this.divRange = r(), this.divRange.style.position = "absolute", this.divRange.oncontextmenu = this.vh, 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; }, this.Ab = function () { t.wh || (t.wh = !0, DayPilot.re(document, "mouseup", t.ke), DayPilot.reNonPassive(document, "touchmove", t.xh), DayPilot.re(document, "touchend", t.yh)); }, this.zh = function () { this.nav.scroll.root = this, this.nav.scroll.onscroll = this.sf, s.Ah = this.nav.scroll.scrollLeft, s.Bh = this.nav.scroll.scrollTop, this.divNorth && (s.Ch = this.divNorth.clientWidth); }, this.Dh = {}, this.Dh.step = 300, this.Dh.delay = 10, this.Dh.mode = "display", this.Dh.layers = !1, this.Vg = function (e) { for (var t = 0, n = 0; n < e.lines.length; n++) {
3664
3712
  for (var a = e.lines[n], i = 0; i < a.length; i++) {
3665
3713
  var r = a[i];
3666
3714
  r.part.line = n, r.part.top = t + s.rowMarginTop, r.part.right = r.part.left + r.part.width;
3667
3715
  }
3668
3716
  t += s.eventHeight;
3669
3717
  } }, this.gf = null, this.oa = function (e) { if (!s.R) {
3670
- var t = this.Bh.step;
3671
- "display" === this.Bh.mode ? this.divEvents.style.display = "none" : "visibility" === this.Bh.mode && (this.divEvents.style.visibility = "hidden"), this.divEvents.setAttribute("role", "region"), this.divEvents.setAttribute("aria-label", "scheduler events");
3718
+ var t = this.Dh.step;
3719
+ "display" === this.Dh.mode ? this.divEvents.style.display = "none" : "visibility" === this.Dh.mode && (this.divEvents.style.visibility = "hidden"), this.divEvents.setAttribute("role", "region"), this.divEvents.setAttribute("aria-label", "scheduler events");
3672
3720
  var n = "Progressive" === this.dynamicEventRendering, a = this.xe(), i = a.pixels.top, r = a.pixels.bottom;
3673
- s.rowlist.filter(function (e) { var t = e.top - l.Ch(), a = t + e.height + 2 * l.Ch(); return !n || !(a <= i || t >= r); }).forEach(function (n) { s.Tg(n); for (var a = 0; a < n.lines.length; a++)
3721
+ s.rowlist.filter(function (e) { var t = e.top - l.Eh(), a = t + e.height + 2 * l.Eh(); return !n || !(a <= i || t >= r); }).forEach(function (n) { s.Vg(n); for (var a = 0; a < n.lines.length; a++)
3674
3722
  for (var i = n.lines[a], r = 0; r < i.length; r++) {
3675
3723
  var o = i[r], l = s.bb(o);
3676
3724
  if (e && l && (t--, t <= 0))
3677
- return s.divEvents.style.visibility = "", s.divEvents.style.display = "", void (s.gf = setTimeout(function () { s.oa(e); }, s.Bh.delay));
3725
+ return s.divEvents.style.visibility = "", s.divEvents.style.display = "", void (s.gf = setTimeout(function () { s.oa(e); }, s.Dh.delay));
3678
3726
  } }), this.divEvents.style.display = "", this.Ce();
3679
- } }, this.Bf = function (e) { var t = s.rowlist[e]; this.Tg(t); for (var n = 0; n < t.lines.length; n++)
3727
+ } }, this.Bf = function (e) { var t = s.rowlist[e]; this.Vg(t); for (var n = 0; n < t.lines.length; n++)
3680
3728
  for (var a = t.lines[n], i = 0; i < a.length; i++) {
3681
3729
  var r = a[i];
3682
3730
  this.bb(r);
@@ -3697,17 +3745,17 @@ var DayPilot = { Global: {} };
3697
3745
  var a = s.Za.reactDOM && DayPilot.Util.isReactComponent(t.element), i = s.Ya.Xa && DayPilot.Util.isVueVNode(t.element);
3698
3746
  a ? s.Za.$a(n) : i && (s.Ya._a = !0, s.Ya.ab(n), s.Ya._a = !1);
3699
3747
  }
3700
- } 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.Dh = function () { if ("Progressive" === this.dynamicEventRendering) {
3748
+ } 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.Fh = function () { if ("Progressive" === this.dynamicEventRendering) {
3701
3749
  if (s.dynamicEventRenderingCacheSweeping) {
3702
3750
  var e = s.dynamicEventRenderingCacheSize || 0;
3703
3751
  this.divEvents.style.display = "none";
3704
3752
  for (var t = [], n = this.elements.events.length, a = n - 1; a >= 0; a--) {
3705
3753
  var i = this.elements.events[a];
3706
- this.Eh(i.event) ? e > 0 ? (e--, t.unshift(i)) : this.Va(i) : t.unshift(i);
3754
+ this.Gh(i.event) ? e > 0 ? (e--, t.unshift(i)) : this.Va(i) : t.unshift(i);
3707
3755
  }
3708
3756
  this.elements.events = t, this.divEvents.style.display = "";
3709
3757
  }
3710
- } }, this.Fh = function (e) { for (var t = this.xe(), n = this.elements.cells.length, a = n - 1; a >= 0; a--) {
3758
+ } }, this.Hh = function (e) { for (var t = this.xe(), n = this.elements.cells.length, a = n - 1; a >= 0; a--) {
3711
3759
  var i = this.elements.cells[a];
3712
3760
  t.xStart < i.coords.x && i.coords.x <= t.xEnd && t.yStart < i.coords.y && i.coords.y <= t.yEnd || (e > 0 ? e-- : this.qb(i));
3713
3761
  } }, this.qb = function (e) { if (e && e.coords) {
@@ -3719,28 +3767,28 @@ var DayPilot = { Global: {} };
3719
3767
  a ? s.Za.$a(n) : i && (s.Ya._a = !0, s.Ya.ab(n), s.Ya._a = !1);
3720
3768
  }
3721
3769
  } }(), DayPilot.rfa(s.elements.cells, e), DayPilot.de(e), s.Ib.cells[t + "_" + n] = null;
3722
- } }, this.Gh = function () { var e = "Progressive" === this.dynamicEventRendering; if (!this.nav.scroll)
3723
- return !1; for (var t = this.nav.scroll.scrollTop - l.Ch(), n = t + this.nav.scroll.clientHeight + 2 * l.Ch(), a = 0; a < this.rowlist.length; a++) {
3770
+ } }, this.Ih = function () { var e = "Progressive" === this.dynamicEventRendering; if (!this.nav.scroll)
3771
+ return !1; for (var t = this.nav.scroll.scrollTop - l.Eh(), n = t + this.nav.scroll.clientHeight + 2 * l.Eh(), a = 0; a < this.rowlist.length; a++) {
3724
3772
  var i = this.rowlist[a], r = i.top, o = i.top + i.height;
3725
3773
  if (!e || !(r >= n || o <= t))
3726
3774
  for (var s = 0; s < i.lines.length; s++)
3727
3775
  for (var d = i.lines[s], c = 0; c < d.length; c++) {
3728
3776
  var u = d[c];
3729
- if (this.Hh(u))
3777
+ if (this.Jh(u))
3730
3778
  return !0;
3731
3779
  }
3732
- } return !1; }, this.Hh = function (e) { if (e.rendered)
3733
- return !1; var t = "Progressive" === this.dynamicEventRendering, n = this.nav.scroll.scrollLeft - l.Ih(), a = n + this.nav.scroll.clientWidth + 2 * l.Ih(), i = e.part.left, r = e.part.left + e.part.width; return !t || !(a <= i || n >= r); }, this.Eh = function (e) { if (!e.rendered)
3780
+ } return !1; }, this.Jh = function (e) { if (e.rendered)
3781
+ return !1; var t = "Progressive" === this.dynamicEventRendering, n = this.nav.scroll.scrollLeft - l.Kh(), a = n + this.nav.scroll.clientWidth + 2 * l.Kh(), i = e.part.left, r = e.part.left + e.part.width; return !t || !(a <= i || n >= r); }, this.Gh = function (e) { if (!e.rendered)
3734
3782
  return !0; var t = this.xe(), 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.bb = function (e, t) { t = t || {}; var n = t.forced; if (e.rendered)
3735
- return !1; var a = "Progressive" === this.dynamicEventRendering, i = e.part.dayIndex, o = s.divEvents, c = s.rowlist, u = c[i], h = u.top, f = this.xe(), v = f.pixels.left - l.Ih(), p = f.pixels.right + l.Ih(), m = f.pixels.top, g = f.pixels.bottom, y = e.part.left, b = e.part.left + e.part.width, w = e.part.top + h, x = w + s.eventHeight, _ = p <= y || v >= b, C = g <= w || m >= x; if (!n && a && (_ || C))
3736
- return !1; var k = e.part.width, D = s.eventHeight, M = e.cache || e.data, S = M.borderRadius || s.eventBorderRadius; "number" == typeof S && (S += "px"); var T = M.padding || s.eventPadding; "number" == typeof T && (T += "px"), k = DayPilot.Util.atLeast(0, k), D = DayPilot.Util.atLeast(0, D); var E = r(); E.style.position = "absolute", E.style.left = e.part.left + "px", E.style.top = h + e.part.top + "px", E.style.width = k + "px", E.style.height = D + "px", s.eventTextWrappingEnabled || (E.style.whiteSpace = "nowrap"), E.style.overflow = "hidden", E.className = this.M("_event"), M.cssClass && DayPilot.Util.addClass(E, M.cssClass); "number" == typeof e.part.line && DayPilot.Util.addClass(E, this.M("_event_line" + e.part.line)), S && (E.style.borderRadius = S), this.showToolTip && (E.title = e.client.toolTip() || ""), E.onmousemove = this.Jh, E.onmousedown = this.Kh, E.onmouseup = this.Lh, E.ontouchstart = d.Mh, E.ontouchmove = d.Nh, E.ontouchend = d.Oh, e.client.clickEnabled() && (E.onclick = this.$e), "undefined" != typeof M.ariaLabel ? E.setAttribute("aria-label", M.ariaLabel) : E.setAttribute("aria-label", M.text), E.setAttribute("tabindex", "-1"); var H = r(); H.className = s.M("_event_inner"), S && (H.style.borderRadius = S), T && (H.style.padding = T), M.backColor && (H.style.background = M.backColor), M.fontColor && (H.style.color = M.fontColor), "darker" === M.borderColor && M.backColor ? H.style.borderColor = DayPilot.ColorUtil.darker(M.backColor, 2) : H.style.borderColor = M.borderColor, M.backImage && (H.style.backgroundImage = "url(" + M.backImage + ")", M.backRepeat && (H.style.backgroundRepeat = M.backRepeat)), E.appendChild(H); var A = e.start().getTime() === e.part.start.getTime(), N = e.rawend().getTime() === e.part.end.getTime(); if (A || DayPilot.Util.addClass(E, this.M("_event_continueleft")), N || DayPilot.Util.addClass(E, this.M("_event_continueright")), e.client.barVisible() && k > 0) {
3783
+ return !1; var a = "Progressive" === this.dynamicEventRendering, i = e.part.dayIndex, o = s.divEvents, c = s.rowlist, u = c[i], h = u.top, f = this.xe(), v = f.pixels.left - l.Kh(), p = f.pixels.right + l.Kh(), m = f.pixels.top, g = f.pixels.bottom, y = e.part.left, b = e.part.left + e.part.width, w = e.part.top + h, x = w + s.eventHeight, _ = p <= y || v >= b, C = g <= w || m >= x; if (!n && a && (_ || C))
3784
+ return !1; var k = e.part.width, D = s.eventHeight, M = e.cache || e.data, S = M.borderRadius || s.eventBorderRadius; "number" == typeof S && (S += "px"); var T = M.padding || s.eventPadding; "number" == typeof T && (T += "px"), k = DayPilot.Util.atLeast(0, k), D = DayPilot.Util.atLeast(0, D); var H = r(); H.style.position = "absolute", H.style.left = e.part.left + "px", H.style.top = h + e.part.top + "px", H.style.width = k + "px", H.style.height = D + "px", s.eventTextWrappingEnabled || (H.style.whiteSpace = "nowrap"), H.style.overflow = "hidden", H.className = this.M("_event"), M.cssClass && DayPilot.Util.addClass(H, M.cssClass); "number" == typeof e.part.line && DayPilot.Util.addClass(H, this.M("_event_line" + e.part.line)), S && (H.style.borderRadius = S), this.showToolTip && (H.title = e.client.toolTip() || ""), H.onmousemove = this.Lh, H.onmousedown = this.Mh, H.onmouseup = this.Nh, H.ontouchstart = d.Oh, H.ontouchmove = d.Ph, H.ontouchend = d.Qh, e.client.clickEnabled() && (H.onclick = this.$e), "undefined" != typeof M.ariaLabel ? H.setAttribute("aria-label", M.ariaLabel) : H.setAttribute("aria-label", M.text), H.setAttribute("tabindex", "-1"); var E = r(); E.className = s.M("_event_inner"), S && (E.style.borderRadius = S), T && (E.style.padding = T), M.backColor && (E.style.background = M.backColor), M.fontColor && (E.style.color = M.fontColor), "darker" === M.borderColor && M.backColor ? E.style.borderColor = DayPilot.ColorUtil.darker(M.backColor, 2) : E.style.borderColor = M.borderColor, M.backImage && (E.style.backgroundImage = "url(" + M.backImage + ")", M.backRepeat && (E.style.backgroundRepeat = M.backRepeat)), H.appendChild(E); var A = e.start().getTime() === e.part.start.getTime(), N = e.rawend().getTime() === e.part.end.getTime(); if (A || DayPilot.Util.addClass(H, this.M("_event_continueleft")), N || DayPilot.Util.addClass(H, this.M("_event_continueright")), e.client.barVisible() && k > 0) {
3737
3785
  var I = 100 * e.part.barLeft / k, R = Math.ceil(100 * e.part.barWidth / k), P = r();
3738
3786
  P.className = this.M("_event_bar"), P.style.position = "absolute", M.barBackColor && (P.style.backgroundColor = M.barBackColor);
3739
3787
  var z = r();
3740
- z.className = this.M("_event_bar_inner"), z.style.left = I + "%", 0 < R && R <= 1 ? z.style.width = "1px" : z.style.width = R + "%", M.barColor && (z.style.backgroundColor = M.barColor), M.barImageUrl && (z.style.backgroundImage = "url(" + M.barImageUrl + ")"), P.appendChild(z), E.appendChild(P);
3741
- } E.row = i, E.event = e, function () { if ("function" != typeof s.onBeforeEventDomAdd && "function" != typeof s.onBeforeEventDomRemove)
3742
- return void s.Ph(H, M.text, M.html); var t = {}; if (t.control = s, t.e = e, t.element = null, E.domArgs = t, "function" == typeof s.onBeforeEventDomAdd && s.onBeforeEventDomAdd(t), t.element) {
3743
- var n = H;
3788
+ z.className = this.M("_event_bar_inner"), z.style.left = I + "%", 0 < R && R <= 1 ? z.style.width = "1px" : z.style.width = R + "%", M.barColor && (z.style.backgroundColor = M.barColor), M.barImageUrl && (z.style.backgroundImage = "url(" + M.barImageUrl + ")"), P.appendChild(z), H.appendChild(P);
3789
+ } H.row = i, H.event = e, function () { if ("function" != typeof s.onBeforeEventDomAdd && "function" != typeof s.onBeforeEventDomRemove)
3790
+ return void s.Rh(E, M.text, M.html); var t = {}; if (t.control = s, t.e = e, t.element = null, H.domArgs = t, "function" == typeof s.onBeforeEventDomAdd && s.onBeforeEventDomAdd(t), t.element) {
3791
+ var n = E;
3744
3792
  if (n) {
3745
3793
  t.Wa = n;
3746
3794
  var a = DayPilot.Util.isReactComponent(t.element), i = DayPilot.Util.isVueVNode(t.element);
@@ -3759,61 +3807,61 @@ var DayPilot = { Global: {} };
3759
3807
  }
3760
3808
  }
3761
3809
  else
3762
- H.innerHTML = e.client.innerHTML(); }(); var B = []; return function () { "Disabled" === s.eventDeleteHandling || M.deleteDisabled || B.push({ v: "Hover", w: 18, h: 18, top: "calc(50% - 9px)", right: 2, action: "None", css: s.M("_event_delete"), onClick: function (e) { s.za(e.source); } }); }(), M.areas && (B = B.concat(M.areas)), DayPilot.Areas.attach(E, e, { areas: B }), this.elements.events.push(E), o.appendChild(E), e.rendered = !0, !0; }, this.jb = function (e, t) { return s.S.ea() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Ph = function (e, t, n) { DayPilot.Util.isNullOrUndefined(n) ? null !== t && void 0 !== t && (s.S.ea() ? e.innerText = t : e.innerHTML = t) : e.innerHTML = n; }, this.Cf = function () { for (var e = 0; e < this.elements.events.length; e++) {
3810
+ E.innerHTML = e.client.innerHTML(); }(); var U = []; return function () { "Disabled" === s.eventDeleteHandling || M.deleteDisabled || U.push({ v: "Hover", w: 18, h: 18, top: "calc(50% - 9px)", right: 2, action: "None", css: s.M("_event_delete"), onClick: function (e) { s.za(e.source); } }); }(), M.areas && (U = U.concat(M.areas)), DayPilot.Areas.attach(H, e, { areas: U }), this.elements.events.push(H), o.appendChild(H), e.rendered = !0, !0; }, this.jb = function (e, t) { return s.S.ea() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Rh = function (e, t, n) { DayPilot.Util.isNullOrUndefined(n) ? null !== t && void 0 !== t && (s.S.ea() ? e.innerText = t : e.innerHTML = t) : e.innerHTML = n; }, this.Cf = function () { for (var e = 0; e < this.elements.events.length; e++) {
3763
3811
  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;
3764
3812
  n.part.top + d > l && (d = Math.max(0, l - n.part.top)), t.style.top = o + "px", t.style.height = d + "px";
3765
- } }, this.Qh = function (e) { if (!e)
3813
+ } }, this.Sh = function (e) { if (!e)
3766
3814
  return null; for (var t = 0; t < s.elements.events.length; t++) {
3767
3815
  var n = s.elements.events[t];
3768
3816
  if (n.event === e || n.event.data === e.data)
3769
3817
  return n;
3770
- } return null; }, this.Zf = function (e) { var t = s.events.cg(e.data); if (!t)
3771
- return null; var n = s.rowlist[t.part.dayIndex]; return s.Tg(n), s.bb(t, { "forced": !0 }), s.Qh(t); }, this.Jh = function (e) { for (var t = e.currentTarget; t && !t.event;)
3772
- t = t.parentNode; s.Rh(t, e), s.cf(e); }, this.af = {}, this.Kh = function (e) { s.cf(e); var n = DayPilot.Util.mouseButton(e); e.preventDefault(), e.stopPropagation(), n.left && ("w-resize" === this.style.cursor || "e-resize" === this.style.cursor ? (t._e = !0, t.tg = this, t.xg = this.event, t.Sh = DayPilot.mc(e), i().style.cursor = this.style.cursor) : ("move" === this.style.cursor || this.event.client.moveEnabled()) && s.Th(this, e)); }, this.Lh = function (e) { DayPilot.Util.mouseButton(e).right && s.ya.call(this, e); }, this.Th = function (e, t) { var n = s.af; s.cf(t), n.Uh = !0, n.af = e, n.Ag = e.event, n.Sh = DayPilot.mc(t), n.Vh = DayPilot.mo3(e, t).x, n.sg = s.getDate(s.coords.x, !0); }, "undefined" == typeof DayPilot.Global.touch && (DayPilot.Global.touch = {}), DayPilot.Global.touch.active = !1, DayPilot.Global.touch.start = !1, d.Vf = [], d.relativeCoords = function (e) { return d.Wh(e); };
3773
- d.startResizing = function (e, t) { d.Xh(e, t); };
3774
- d.startMoving = function (e, t) { d.Th(e, t); }, d.Mh = function (t) { if (!DayPilot.Global.touch.active && !DayPilot.Global.touch.start) {
3775
- t.stopPropagation(), d.Yh(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
3818
+ } return null; }, this._f = function (e) { var t = s.events.eg(e.data); if (!t)
3819
+ return null; var n = s.rowlist[t.part.dayIndex]; return s.Vg(n), s.bb(t, { "forced": !0 }), s.Sh(t); }, this.Lh = function (e) { for (var t = e.currentTarget; t && !t.event;)
3820
+ t = t.parentNode; s.Th(t, e), s.cf(e); }, this.af = {}, this.Mh = function (e) { s.cf(e); var n = DayPilot.Util.mouseButton(e); e.preventDefault(), e.stopPropagation(), n.left && ("w-resize" === this.style.cursor || "e-resize" === this.style.cursor ? (t._e = !0, t.vg = this, t.zg = this.event, t.Uh = DayPilot.mc(e), i().style.cursor = this.style.cursor) : ("move" === this.style.cursor || this.event.client.moveEnabled()) && s.Vh(this, e)); }, this.Nh = function (e) { DayPilot.Util.mouseButton(e).right && s.ya.call(this, e); }, this.Vh = function (e, t) { var n = s.af; s.cf(t), n.Wh = !0, n.af = e, n.Cg = e.event, n.Uh = DayPilot.mc(t), n.Xh = DayPilot.mo3(e, t).x, n.ug = s.getDate(s.coords.x, !0); }, "undefined" == typeof DayPilot.Global.touch && (DayPilot.Global.touch = {}), DayPilot.Global.touch.active = !1, DayPilot.Global.touch.start = !1;
3821
+ d.Vf = [];
3822
+ d.relativeCoords = function (e) { return d.Yh(e); }, d.startResizing = function (e, t) { d.Zh(e, t); }, d.startMoving = function (e, t) { d.Vh(e, t); }, d.Oh = function (t) { if (!DayPilot.Global.touch.active && !DayPilot.Global.touch.start) {
3823
+ t.stopPropagation(), d.$h(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
3776
3824
  var n = t.currentTarget;
3777
- s.coords = d.Wh(t);
3825
+ s.coords = d.Yh(t);
3778
3826
  var a = s.tapAndHoldTimeout;
3779
3827
  d.Vf.push(setTimeout(function () { DayPilot.Global.touch.active = !0, DayPilot.Global.touch.start = !1, t.preventDefault(); var a = n.event; switch (s.eventTapAndHoldHandling) {
3780
3828
  case "Move": if (a.client.moveEnabled()) {
3781
3829
  var i = e(t);
3782
- d.Th(n, i);
3830
+ d.Vh(n, i);
3783
3831
  }
3784
3832
  } }, a));
3785
- } }, d.Nh = function () { d.Yh(), DayPilot.Global.touch.start = !1; }, d.Oh = function (e) { if (!DayPilot.Util.isMouseEvent(e)) {
3786
- if (d.Yh(), DayPilot.Global.touch.start) {
3833
+ } }, d.Ph = function () { d.$h(), DayPilot.Global.touch.start = !1; }, d.Qh = function (e) { if (!DayPilot.Util.isMouseEvent(e)) {
3834
+ if (d.$h(), DayPilot.Global.touch.start) {
3787
3835
  DayPilot.Global.touch.start = !1, e.preventDefault(), e.stopPropagation();
3788
3836
  var t = e.currentTarget;
3789
3837
  setTimeout(function () { s.bf(t, e); });
3790
3838
  }
3791
3839
  setTimeout(function () { DayPilot.Global.touch.start = !1, DayPilot.Global.touch.active = !1; }, 500);
3792
- } }, d.$g = function (e) { if (!(DayPilot.Global.touch.active || DayPilot.Global.touch.start || e.touches.length > 1 || "Disabled" === s.timeRangeSelectedHandling)) {
3793
- d.Yh(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
3840
+ } }, d.ah = function (e) { if (!(DayPilot.Global.touch.active || DayPilot.Global.touch.start || e.touches.length > 1 || "Disabled" === s.timeRangeSelectedHandling)) {
3841
+ d.$h(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
3794
3842
  var t = s.tapAndHoldTimeout;
3795
- d.Vf.push(setTimeout(function () { DayPilot.Global.touch.active = !0, DayPilot.Global.touch.start = !1, "undefined" != typeof DayPilot.Menu && DayPilot.Menu.hide(), s.coords = d.Wh(e), d.Zh = s.$h(); }, t));
3796
- s.coords = d.Wh(e);
3797
- } }, d._g = function (e) { if (d.Yh(), DayPilot.Global.touch.start = !1, t.tg)
3798
- return e.preventDefault(), void d._h(); if (DayPilot.Global.touch.active) {
3799
- if (e.preventDefault(), s.coords = d.Wh(e), t.af)
3800
- return void d.ai();
3801
- if (d.Zh) {
3802
- var n = d.Zh;
3843
+ d.Vf.push(setTimeout(function () { DayPilot.Global.touch.active = !0, DayPilot.Global.touch.start = !1, "undefined" != typeof DayPilot.Menu && DayPilot.Menu.hide(), s.coords = d.Yh(e), d._h = s.ai(); }, t));
3844
+ s.coords = d.Yh(e);
3845
+ } }, d.bh = function (e) { if (d.$h(), DayPilot.Global.touch.start = !1, t.vg)
3846
+ return e.preventDefault(), void d.bi(); if (DayPilot.Global.touch.active) {
3847
+ if (e.preventDefault(), s.coords = d.Yh(e), t.af)
3848
+ return void d.ci();
3849
+ if (d._h) {
3850
+ var n = d._h;
3803
3851
  n.end = { x: Math.floor(s.coords.x / s.cellWidth), "time": s.getDate(s.coords.x, !0) }, s.Nf(n);
3804
3852
  }
3805
- } }, d.debug = function () { }, d.ah = function (e) { d.Yh(); if (DayPilot.Global.touch.active) {
3853
+ } }, d.debug = function () { }, d.ch = function (e) { d.$h(); if (DayPilot.Global.touch.active) {
3806
3854
  if (t.af) {
3807
3855
  e.preventDefault();
3808
- var n = t.Ag;
3809
- if (s !== t.Bg.calendar)
3856
+ var n = t.Cg;
3857
+ if (s !== t.Dg.calendar)
3810
3858
  return;
3811
- var a = t.Bg.start, r = t.Bg.end, o = t.Bg.row.id;
3812
- DayPilot.Util.removeClass(t.af, s.M("_event_moving_source")), DayPilot.de(t.Bg), t.Bg.calendar = null, i().style.cursor = "", t.af = null, t.Ag = null, t.Bg = null, s.N(n, a, r, o);
3859
+ var a = t.Dg.start, r = t.Dg.end, o = t.Dg.row.id;
3860
+ DayPilot.Util.removeClass(t.af, s.M("_event_moving_source")), DayPilot.de(t.Dg), t.Dg.calendar = null, i().style.cursor = "", t.af = null, t.Cg = null, t.Dg = null, s.N(n, a, r, o);
3813
3861
  }
3814
- if (d.Zh) {
3815
- var l = d.Zh;
3816
- d.Zh = null;
3862
+ if (d._h) {
3863
+ var l = d._h;
3864
+ d._h = null;
3817
3865
  var c = s.elements.range2;
3818
3866
  c && c.overlapping ? s.clearSelection() : s.Jf(l);
3819
3867
  }
@@ -3821,33 +3869,33 @@ var DayPilot = { Global: {} };
3821
3869
  else if (DayPilot.Global.touch.start) {
3822
3870
  if (s.coords.x < s.getScrollX())
3823
3871
  return;
3824
- var l = s.$h();
3872
+ var l = s.ai();
3825
3873
  s.Nf(l);
3826
3874
  var c = s.elements.range2;
3827
3875
  c && c.overlapping ? s.clearSelection() : s.Jf(l);
3828
- } setTimeout(function () { DayPilot.Global.touch.start = !1, DayPilot.Global.touch.active = !1; }, 500); }, d.Yh = function () { for (var e = 0; e < d.Vf.length; e++)
3829
- clearTimeout(d.Vf[e]); d.Vf = []; }, d.Wh = 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.se, a = e.touches ? e.touches[0] : e; return t(a.pageX, a.pageY, n); }, d.Th = function (e, n) { t.af = e, t.Ag = e.event, t.Sh = n; var a = DayPilot.abs(e); t.Vh = n.x - a.x, t.sg = s.getDate(s.coords.x, !0), t.Bg = s.da(e), s.zg(); }, d.Xh = function (e, n) { t.tg = e, t.xg = e.event, t.tg.dpBorder = n, t.wg || (t.wg = s.da(e)), s.yg(); }, d._h = function () { if (!t.wg) {
3830
- var e = t.tg;
3831
- t.wg = s.da(e);
3832
- } s.yg(); }, d.ai = function () { if (!t.Bg) {
3876
+ } setTimeout(function () { DayPilot.Global.touch.start = !1, DayPilot.Global.touch.active = !1; }, 500); }, d.$h = function () { for (var e = 0; e < d.Vf.length; e++)
3877
+ clearTimeout(d.Vf[e]); d.Vf = []; }, d.Yh = 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.se, a = e.touches ? e.touches[0] : e; return t(a.pageX, a.pageY, n); }, d.Vh = function (e, n) { t.af = e, t.Cg = e.event, t.Uh = n; var a = DayPilot.abs(e); t.Xh = n.x - a.x, t.ug = s.getDate(s.coords.x, !0), t.Dg = s.da(e), s.Bg(); }, d.Zh = function (e, n) { t.vg = e, t.zg = e.event, t.vg.dpBorder = n, t.yg || (t.yg = s.da(e)), s.Ag(); }, d.bi = function () { if (!t.yg) {
3878
+ var e = t.vg;
3879
+ t.yg = s.da(e);
3880
+ } s.Ag(); }, d.ci = function () { if (!t.Dg) {
3833
3881
  var e = t.af;
3834
- t.Bg = s.da(e);
3835
- } t.Bg.calendar.zg(); }, this.Rh = function (e, n) { var a = this.eventResizeMargin, i = e; if ("undefined" != typeof t) {
3882
+ t.Dg = s.da(e);
3883
+ } t.Dg.calendar.Bg(); }, this.Th = function (e, n) { var a = this.eventResizeMargin, i = e; if ("undefined" != typeof t) {
3836
3884
  var r = DayPilot.mo3(e, n);
3837
- if (r && (s.eventOffset = r, !t.tg && !t.af)) {
3885
+ if (r && (s.eventOffset = r, !t.vg && !t.af)) {
3838
3886
  var o = i.event.part.start.toString() === i.event.start().toString(), l = i.event.part.end.toString() === i.event.rawend().toString();
3839
- 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.tg || t.af || (i.event.client.clickEnabled() ? e.style.cursor = "pointer" : e.style.cursor = "default");
3887
+ 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.vg || t.af || (i.event.client.clickEnabled() ? e.style.cursor = "pointer" : e.style.cursor = "default");
3840
3888
  }
3841
- } }, this.Of = function () { var e = s.Ze(); return s.days * (1440 / e); }, this.Kf = function (e) { if (e = e || t.Zh || s.Mf, !e)
3889
+ } }, this.Of = function () { var e = s.Ze(); return s.days * (1440 / e); }, this.Kf = function (e) { if (e = e || t._h || s.Mf, !e)
3842
3890
  return null; var n = s.rowlist[e.start.y]; if (!n)
3843
- 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.We(d).start, i = s.We(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.lf = function () { this.Ib.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++)
3891
+ 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.We(d).start, i = s.We(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.lf = function () { this.Ib.timeHeader = {}, s.elements.timeHeader.length > 0 && s.Wf(); var e = r(); e.style.position = "relative", this.nav.timeHeader = e; for (var t = 0; t < this.timeHeader.length; t++)
3844
3892
  for (var n = this.timeHeader[t], a = 0; a < n.length; a++)
3845
- this.bi(a, t); var i = this.divNorth; 1 === i.childNodes.length ? i.replaceChild(e, i.childNodes[0]) : (i.innerHTML = "", i.appendChild(e)); var o = this.Ne(); i.style.width = o + 5e3 + "px", o > 0 && (this.divStretch.style.width = o + "px"); }, this.Ue = function (e, t) { var n = null, a = this.S.Te(); t = t || this.cellGroupBy; var i = e.start; switch (t) {
3893
+ this.di(a, t); var i = this.divNorth; 1 === i.childNodes.length ? i.replaceChild(e, i.childNodes[0]) : (i.innerHTML = "", i.appendChild(e)); var o = this.Ne(); i.style.width = o + 5e3 + "px", o > 0 && (this.divStretch.style.width = o + "px"); }, this.Ue = function (e, t) { var n = null, a = this.S.Te(); t = t || this.cellGroupBy; var i = e.start; switch (t) {
3846
3894
  case "Minute":
3847
3895
  n = i.toString("m");
3848
3896
  break;
3849
3897
  case "Hour":
3850
- n = "Clock12Hours" === s.S.ci() ? i.toString("h tt", a) : i.toString("H", a);
3898
+ n = "Clock12Hours" === s.S.ei() ? i.toString("h tt", a) : i.toString("H", a);
3851
3899
  break;
3852
3900
  case "Day":
3853
3901
  n = i.toString(a.datePattern);
@@ -3869,56 +3917,78 @@ var DayPilot = { Global: {} };
3869
3917
  break;
3870
3918
  case "Cell":
3871
3919
  var r = (e.end.ticks - e.start.ticks) / 6e4;
3872
- n = this.di(i, r);
3920
+ n = this.fi(i, r);
3873
3921
  break;
3874
3922
  default: throw new DayPilot.Exception("Invalid groupBy value: " + t);
3875
- } return n; }, this.di = function (e, t) { var n = this.S.Te(); return t = t || this.cellDuration, t < 1 ? e.toString("ss") : t < 60 ? e.toString("mm") : t < 1440 ? "Clock12Hours" === s.S.ci() ? e.toString("h tt", n) : e.toString("H", n) : t < 10080 ? e.toString("d") : 10080 === t ? 1 === l.fa() ? e.weekNumberISO() : e.weekNumber() : e.toString("MMMM yyyy", n); }, this.Se = function (e, t, n) { var a, i = s.startDate.addDays(s.days); t = t || this.cellGroupBy; var r = 60; switch (t) {
3876
- case "Minute":
3877
- e.getMinutes() + e.getSeconds() + e.getMilliseconds() > 0 && (e = e.getDatePart().addHours(e.getHours()).addMinutes(e.getMinutes())), a = e.addMinutes(1);
3878
- break;
3879
- case "Hour":
3880
- e.getHours() + e.getMinutes() + e.getSeconds() + e.getMilliseconds() > 0 && (e = e.getDatePart().addHours(e.getHours())), a = e.addHours(1);
3881
- break;
3882
- case "Day":
3883
- a = e.getDatePart().addDays(1);
3884
- break;
3885
- case "Week":
3886
- for (a = e.getDatePart().addDays(1); a.dayOfWeek() !== l.fa();)
3887
- a = a.addDays(1);
3888
- break;
3889
- case "Month":
3890
- e = e.getDatePart(), a = e.addMonths(1), a = a.firstDayOfMonth();
3891
- for (var o = DayPilot.DateUtil.diff(a, e) / 6e4 % r === 0; !o;)
3892
- a = a.addHours(1), o = DayPilot.DateUtil.diff(a, e) / 6e4 % r === 0;
3893
- break;
3894
- case "Quarter":
3895
- for (e = e.getDatePart(), a = e.addMonths(1), a = a.firstDayOfMonth(); a.getMonth() % 3;)
3896
- a = a.addMonths(1);
3897
- for (var o = DayPilot.DateUtil.diff(a, e) / 6e4 % r === 0; !o;)
3898
- a = a.addHours(1), o = DayPilot.DateUtil.diff(a, e) / 6e4 % r === 0;
3899
- break;
3900
- case "Year":
3901
- e = e.getDatePart(), a = e.addYears(1), a = a.firstDayOfYear();
3902
- for (var o = DayPilot.DateUtil.diff(a, e) / 6e4 % r === 0; !o;)
3903
- a = a.addHours(1), o = DayPilot.DateUtil.diff(a, e) / 6e4 % r === 0;
3904
- break;
3905
- case "None":
3906
- a = i;
3907
- break;
3908
- case "Cell":
3909
- var d = this.Ye(e);
3910
- d.current && (a = d.current.end);
3911
- break;
3912
- default: throw n ? new DayPilot.Exception("Invalid scale value: " + t) : new DayPilot.Exception("Invalid groupBy value: " + t);
3913
- } return a.getTime() > i.getTime() && (a = i), a; }, this.bi = function (e, t) {
3914
- 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();
3915
- 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.Og, u.oncontextmenu = this.Pg, DayPilot.rePassive(u, DayPilot.touch.start, function (e) { e.stopPropagation(); }), u.style.overflow = "hidden", s.timeHeaderTextWrappingEnabled || (u.style.whiteSpace = "nowrap");
3916
- var h = r();
3917
- h.innerHTML = s.jb(a.text, a.html), a.backColor && (h.style.background = a.backColor), a.fontColor && (h.style.color = a.fontColor);
3918
- var f = this.M("_timeheadercol"), v = this.M("_timeheadercol_inner");
3919
- i && (f = this.M("_timeheadergroup"), v = this.M("_timeheadergroup_inner")), DayPilot.Util.addClass(u, f), DayPilot.Util.addClass(h, v), DayPilot.Util.addClass(u, s.M("_timeheader_cell")), DayPilot.Util.addClass(h, s.M("_timeheader_cell_inner")),
3920
- u.appendChild(h), DayPilot.Areas.attach(u, a, { areas: a.areas }), this.Ib.timeHeader[e + "_" + t] = u, this.elements.timeHeader.push(u), n.appendChild(u);
3921
- }, this.ob = function () { var e = this.nav.corner; if (e) {
3923
+ } return n; }, this.fi = function (e, t) { var n = this.S.Te(); return t = t || this.cellDuration, t < 1 ? e.toString("ss") : t < 60 ? e.toString("mm") : t < 1440 ? "Clock12Hours" === s.S.ei() ? e.toString("h tt", n) : e.toString("H", n) : t < 10080 ? e.toString("d") : 10080 === t ? 1 === l.fa() ? e.weekNumberISO() : e.weekNumber() : e.toString("MMMM yyyy", n); }, this.Se = function (e, t, n) {
3924
+ var a, i = s.startDate.addDays(s.days);
3925
+ t = t || this.cellGroupBy;
3926
+ var r = 60;
3927
+ switch (t) {
3928
+ case "Minute":
3929
+ e.getMinutes() + e.getSeconds() + e.getMilliseconds() > 0 && (e = e.getDatePart().addHours(e.getHours()).addMinutes(e.getMinutes())), a = e.addMinutes(1);
3930
+ break;
3931
+ case "Hour":
3932
+ e.getHours() + e.getMinutes() + e.getSeconds() + e.getMilliseconds() > 0 && (e = e.getDatePart().addHours(e.getHours())), a = e.addHours(1);
3933
+ break;
3934
+ case "Day":
3935
+ a = e.getDatePart().addDays(1);
3936
+ break;
3937
+ case "Week":
3938
+ for (a = e.getDatePart().addDays(1); a.dayOfWeek() !== l.fa();)
3939
+ a = a.addDays(1);
3940
+ break;
3941
+ case "Month":
3942
+ e = e.getDatePart(), a = e.addMonths(1), a = a.firstDayOfMonth();
3943
+ for (var o = DayPilot.DateUtil.diff(a, e) / 6e4 % r === 0; !o;)
3944
+ a = a.addHours(1), o = DayPilot.DateUtil.diff(a, e) / 6e4 % r === 0;
3945
+ break;
3946
+ case "Quarter":
3947
+ for (e = e.getDatePart(), a = e.addMonths(1), a = a.firstDayOfMonth(); a.getMonth() % 3;)
3948
+ a = a.addMonths(1);
3949
+ for (var o = DayPilot.DateUtil.diff(a, e) / 6e4 % r === 0; !o;)
3950
+ a = a.addHours(1), o = DayPilot.DateUtil.diff(a, e) / 6e4 % r === 0;
3951
+ break;
3952
+ case "Year":
3953
+ e = e.getDatePart(), a = e.addYears(1), a = a.firstDayOfYear();
3954
+ for (var o = DayPilot.DateUtil.diff(a, e) / 6e4 % r === 0; !o;)
3955
+ a = a.addHours(1), o = DayPilot.DateUtil.diff(a, e) / 6e4 % r === 0;
3956
+ break;
3957
+ case "None":
3958
+ a = i;
3959
+ break;
3960
+ case "Cell":
3961
+ var d = this.Ye(e);
3962
+ d.current && (a = d.current.end);
3963
+ break;
3964
+ default: throw n ? new DayPilot.Exception("Invalid scale value: " + t) : new DayPilot.Exception("Invalid groupBy value: " + t);
3965
+ }
3966
+ return a.getTime() > i.getTime() && (a = i), a;
3967
+ }, this.di = 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.Qg, u.oncontextmenu = this.Rg, DayPilot.rePassive(u, DayPilot.touch.start, function (e) { e.stopPropagation(); }), u.style.overflow = "hidden", s.timeHeaderTextWrappingEnabled || (u.style.whiteSpace = "nowrap"); var h = r(); h.innerHTML = s.jb(a.text, a.html), a.backColor && (h.style.background = a.backColor), a.fontColor && (h.style.color = a.fontColor); var f = this.M("_timeheadercol"), v = this.M("_timeheadercol_inner"); i && (f = this.M("_timeheadergroup"), v = this.M("_timeheadergroup_inner")), DayPilot.Util.addClass(u, f), DayPilot.Util.addClass(h, v), DayPilot.Util.addClass(u, s.M("_timeheader_cell")), DayPilot.Util.addClass(h, s.M("_timeheader_cell_inner")), function () { if ("function" == typeof s.onBeforeTimeHeaderDomAdd || "function" == typeof s.onBeforeTimeHeaderDomRemove) {
3968
+ var e = {};
3969
+ if (e.control = s, e.header = {}, e.header.start = a.start, e.header.end = a.end, e.header.level = t, e.element = null, u.domArgs = e, "function" == typeof s.onBeforeTimeHeaderDomAdd) {
3970
+ s.onBeforeTimeHeaderDomAdd(e);
3971
+ var n = e.element;
3972
+ if (n) {
3973
+ h.innerHTML = "";
3974
+ var i = r();
3975
+ h.appendChild(i), e.Wa = i;
3976
+ var o = DayPilot.Util.isReactComponent(n), l = DayPilot.Util.isVueVNode(n);
3977
+ if (o) {
3978
+ if (!s.Za.reactDOM)
3979
+ throw new DayPilot.Exception("Can't reach ReactDOM");
3980
+ s.Za.db(n, i);
3981
+ }
3982
+ else if (l) {
3983
+ if (!s.Ya.Xa)
3984
+ throw new DayPilot.Exception("Can't reach Vue");
3985
+ s.Ya._a = !0, s.Ya.eb(e.element, i), s.Ya._a = !1;
3986
+ }
3987
+ else
3988
+ i.appendChild(n);
3989
+ }
3990
+ }
3991
+ } }(), u.appendChild(h), DayPilot.Areas.attach(u, a, { areas: a.areas }), this.Ib.timeHeader[e + "_" + t] = u, this.elements.timeHeader.push(u), n.appendChild(u); }, this.ob = function () { var e = this.nav.corner; if (e) {
3922
3992
  var t = this.divCorner;
3923
3993
  e.className = this.M("_corner"), t.className = this.M("_corner_inner"), function () { var e = {}; e.control = s, e.backColor = null, e.html = s.cornerHtml, e.text = s.cornerText, e.verticalAlignment = null, e.horizontalAlignment = null, e.areas = null, "function" == typeof s.onBeforeCornerRender && s.onBeforeCornerRender(e); var t = s.divCorner; if (t) {
3924
3994
  var n = s.jb(e.text, e.html), a = e.horizontalAlignment, i = e.verticalAlignment;
@@ -3943,42 +4013,42 @@ var DayPilot = { Global: {} };
3943
4013
  }
3944
4014
  }
3945
4015
  } e.areas && DayPilot.Areas.attach(s.nav.corner, {}, { "areas": e.areas }); }();
3946
- } }, this.og = function () { s.rowlist.forEach(function (e) { var t = e.getHeight() + s.rowMarginTop + s.rowMarginBottom; e.height !== t && (s.zf = !0), e.height = t; }), s.zf && (s.Ib.drawArea = null); }, this.mf = function () { s.rowlist.forEach(function (e) { var t = s.divHeader; if (t) {
4016
+ } }, this.qg = function () { s.rowlist.forEach(function (e) { var t = e.getHeight() + s.rowMarginTop + s.rowMarginBottom; e.height !== t && (s.zf = !0), e.height = t; }), s.zf && (s.Ib.drawArea = null); }, this.mf = function () { s.rowlist.forEach(function (e) { var t = s.divHeader; if (t) {
3947
4017
  var n = e.index;
3948
4018
  if (t.rows[n]) {
3949
4019
  var a = t.rows[n];
3950
- s.Fg && (a.style.top = e.top + "px");
4020
+ s.Hg && (a.style.top = e.top + "px");
3951
4021
  var i = e.height;
3952
4022
  a && a.firstChild && parseInt(a.firstChild.style.height, 10) !== i && (a.firstChild.style.height = i + "px");
3953
4023
  }
3954
- } }), s.Fg && s.nav.resScrollSpace && (s.nav.resScrollSpace.style.top = s.le + "px"); }, this.oh = function (e) { if (DayPilot.Global.touch.start || DayPilot.Global.touch.active)
4024
+ } }), s.Hg && s.nav.resScrollSpace && (s.nav.resScrollSpace.style.top = s.le + "px"); }, this.qh = function (e) { if (DayPilot.Global.touch.start || DayPilot.Global.touch.active)
3955
4025
  return !1; if (s.cf(e), "Disabled" === s.timeRangeSelectedHandling)
3956
- return !1; var n = DayPilot.Util.mouseButton(e); if ("undefined" != typeof DayPilot.Menu && DayPilot.Menu.hide(), s.ei())
4026
+ return !1; var n = DayPilot.Util.mouseButton(e); if ("undefined" != typeof DayPilot.Menu && DayPilot.Menu.hide(), s.gi())
3957
4027
  return !1; if (n.middle || n.right)
3958
- return !1; if (s.fi(s.coords))
3959
- return !1; var a = n.left ? "left" : n.right ? "right" : n.middle ? "middle" : "unknown"; return s.gi = a, t.Zh = s.$h(), t.Zh && (t.hi = s), !1; }, this.$h = function () { var e = {}, t = s.Ve(s.coords.x).x, n = s.getDate(s.coords.x, !0); return e.start = { y: s.Uf(s.coords.y).i, x: t, "time": n }, e.end = { x: t, "time": n }, e.calendar = s, s.Nf(e), e; }, this.qh = function (e) { if (s.af = {}, s.Mf) {
4028
+ return !1; if (s.hi(s.coords))
4029
+ return !1; var a = n.left ? "left" : n.right ? "right" : n.middle ? "middle" : "unknown"; return s.ii = a, t._h = s.ai(), t._h && (t.ji = s), !1; }, this.ai = function () { var e = {}, t = s.Ve(s.coords.x).x, n = s.getDate(s.coords.x, !0); return e.start = { y: s.Uf(s.coords.y).i, x: t, "time": n }, e.end = { x: t, "time": n }, e.calendar = s, s.Nf(e), e; }, this.uh = function (e) { if (s.af = {}, s.Mf) {
3960
4030
  if (DayPilot.Util.mouseButton(e).left) {
3961
4031
  var n = s.Mf;
3962
- if (s.fi(s.coords)) {
3963
- var a = function (e) { return function () { t.ii = null; var n = s.Kf(e); if (n) {
4032
+ if (s.hi(s.coords)) {
4033
+ var a = function (e) { return function () { t.ki = null; var n = s.Kf(e); if (n) {
3964
4034
  var a = {};
3965
4035
  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);
3966
4036
  } }; };
3967
4037
  "Disabled" !== s.timeRangeClickHandling && a(n)();
3968
4038
  }
3969
4039
  }
3970
- } }, this.ei = function () { return !!(t.tg || t.af || t.Zh) || !!s.af.Uh; }, this.dragInProgress = function () { return s.ei(); }, this.cf = function (e) { var t = DayPilot.mo3(s.se, e); t = t || {}, t.stamp = t.x + "_" + t.y, s.coords && s.coords.stamp === t.stamp || (s.coords = t); }, this.ph = function (e) { if (!DayPilot.Global.touch.active) {
4040
+ } }, this.gi = function () { return !!(t.vg || t.af || t._h) || !!s.af.Wh; }, this.dragInProgress = function () { return s.gi(); }, this.cf = function (e) { var t = DayPilot.mo3(s.se, e); t = t || {}, t.stamp = t.x + "_" + t.y, s.coords && s.coords.stamp === t.stamp || (s.coords = t); }, this.rh = function (e) { if (!DayPilot.Global.touch.active) {
3971
4041
  var n = DayPilot.mc(e);
3972
- if (s.cf(e), s.af.Uh) {
3973
- DayPilot.distance(s.af.Sh, n) > 2 && (DayPilot.Util.copyProps(s.af, t), i().style.cursor = "move", s.af = {});
4042
+ if (s.cf(e), s.af.Wh) {
4043
+ DayPilot.distance(s.af.Uh, n) > 2 && (DayPilot.Util.copyProps(s.af, t), i().style.cursor = "move", s.af = {});
3974
4044
  }
3975
- t.tg && t.xg.calendar === s ? (t.tg.event || (t.tg.event = t.xg), s.ji()) : t.Ag ? s.ki() : t.Zh && t.Zh.calendar === s && (t.Zh.moved = !0, s.li());
3976
- } }, this.li = function () { var e = t.Zh, n = s.Ve(s.coords.x).x, a = s.getDate(s.coords.x, !0); e.end = { x: n, "time": a }, s.Nf(e); }, this.ji = function () { t.wg || (t.wg = s.da(t.tg)), s.yg(); }, this.ki = function () { if (!t.Bg) {
4045
+ t.vg && t.zg.calendar === s ? (t.vg.event || (t.vg.event = t.zg), s.li()) : t.Cg ? s.mi() : t._h && t._h.calendar === s && (t._h.moved = !0, s.ni());
4046
+ } }, this.ni = function () { var e = t._h, n = s.Ve(s.coords.x).x, a = s.getDate(s.coords.x, !0); e.end = { x: n, "time": a }, s.Nf(e); }, this.li = function () { t.yg || (t.yg = s.da(t.vg)), s.Ag(); }, this.mi = function () { if (!t.Dg) {
3977
4047
  DayPilot.Util.addClass(t.af, s.M("_event_moving_source"));
3978
- var e = t.Ag;
3979
- t.Bg = s.da(e);
3980
- } s.zg(); }, this.rh = function (e) { return e.cancelBubble = !0, !1; }, this.fi = function (e) { var t = s.Mf; if (!t || !t.start || !t.end)
3981
- return !1; var n = this.Xf(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.Nf = 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) {
4048
+ var e = t.Cg;
4049
+ t.Dg = s.da(e);
4050
+ } s.Bg(); }, this.vh = function (e) { return e.cancelBubble = !0, !1; }, this.hi = function (e) { var t = s.Mf; if (!t || !t.start || !t.end)
4051
+ return !1; var n = this.Zf(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.Nf = 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) {
3982
4052
  var f = c ? e.start.x : e.end.x, v = c ? e.end.x : e.start.x, p = s.We(f), m = s.We(v);
3983
4053
  t = p.left, n = m.left + m.width;
3984
4054
  }
@@ -3987,13 +4057,13 @@ var DayPilot = { Global: {} };
3987
4057
  y = r(), y.style.position = "absolute";
3988
4058
  var b = r();
3989
4059
  b.className = s.M("_shadow_inner"), a && (y.style.borderRadius = a, b.style.borderRadius = a), y.appendChild(b), s.divShadow.appendChild(y);
3990
- } return y.className = s.M("_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.Zh) {
4060
+ } return y.className = s.M("_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._h) {
3991
4061
  var a = s.eventBorderRadius;
3992
4062
  "number" == typeof a && (a += "px");
3993
4063
  var i = s.snapToGrid, o = s.rowlist;
3994
4064
  n(e);
3995
- } }, this.mi = 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)
3996
- return null; var e = {}; e.x = s.coords.x, e.y = s.coords.y; var t = s.Uf(e.y, e.grid).element; return e.row = s.Ng(t), e.time = s.getDate(e.x, !0), e; }, this.zoom = {}, this.zoom.active = -1, this.zoom.setActive = function (e, t, n) { var a; if ("number" == typeof e)
4065
+ } }, this.oi = 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)
4066
+ return null; var e = {}; e.x = s.coords.x, e.y = s.coords.y; var t = s.Uf(e.y, e.grid).element; return e.row = s.Pg(t), e.time = s.getDate(e.x, !0), e; }, this.zoom = {}, this.zoom.active = -1, this.zoom.setActive = function (e, t, n) { var a; if ("number" == typeof e)
3997
4067
  a = s.zoomLevels[e];
3998
4068
  else {
3999
4069
  if ("string" != typeof e)
@@ -4014,60 +4084,61 @@ var DayPilot = { Global: {} };
4014
4084
  return "function" == typeof e.val ? void (s[e.key] = e.val(i)) : void (s[e.key] = e.val); }), i; }, this.Vf = {}, this.Vf.oa = null, this.Vf.drawCells = null, this.Vf.drawRows = null, this.Vf.click = null, this.Vf.resClick = [], this.Vf.updateFloats = null, this.sf = function () { if (!s.R) {
4015
4085
  "undefined" != typeof DayPilot.Menu && DayPilot.Menu.hide(), s.qf();
4016
4086
  var e = s.nav.scroll;
4017
- if (s.yh = e.scrollLeft, s.zh = e.scrollTop, s.Ah = e.clientWidth, s.divTimeScroll && (s.divTimeScroll.scrollLeft = s.yh), DayPilot.browser.ios && t.hh ? n() : s.divResScroll.scrollTop = s.zh, s.progressiveRowRendering && (s.Vf.drawRows && (clearTimeout(s.Vf.drawRows), s.Vf.drawRows = null), s.scrollDelayRows > 0 ? s.Vf.drawRows = setTimeout(function () { s.Ig(); }, s.scrollDelayRows) : s.Ig()), s.Vf.drawCells && (clearTimeout(s.Vf.drawCells), s.Vf.drawCells = null), s.scrollDelayCells > 0)
4018
- s.Vf.drawCells = setTimeout(s.ni(), s.scrollDelayCells);
4087
+ if (s.Ah = e.scrollLeft, s.Bh = e.scrollTop, s.Ch = e.clientWidth, s.divTimeScroll && (s.divTimeScroll.scrollLeft = s.Ah), DayPilot.browser.ios && t.jh ? n() : s.divResScroll.scrollTop = s.Bh, s.progressiveRowRendering && (s.Vf.drawRows && (clearTimeout(s.Vf.drawRows), s.Vf.drawRows = null), s.scrollDelayRows > 0 ? s.Vf.drawRows = setTimeout(function () { s.Lg(); }, s.scrollDelayRows) : s.Lg()), s.Vf.drawCells && (clearTimeout(s.Vf.drawCells), s.Vf.drawCells = null), s.scrollDelayCells > 0)
4088
+ s.Vf.drawCells = setTimeout(s.pi(), s.scrollDelayCells);
4019
4089
  else {
4020
- s.ni()();
4090
+ s.pi()();
4021
4091
  }
4022
- if (s.Vf.oa && (clearTimeout(s.Vf.oa), s.Vf.oa = null), s.scrollDelayEvents > 0 ? s.Vf.oa = setTimeout(s.oi(), s.scrollDelayEvents) : s.oa(), s.Vf.updateFloats && (clearTimeout(s.Vf.updateFloats), s.Vf.updateFloats = null), s.scrollDelayFloats > 0 ? s.Vf.updateFloats = setTimeout(function () { s.Be(); }, s.scrollDelayFloats) : s.Be(), s.onScrollCalled = !0, "function" == typeof s.onScroll) {
4092
+ if (s.Vf.oa && (clearTimeout(s.Vf.oa), s.Vf.oa = null), s.scrollDelayEvents > 0 ? s.Vf.oa = setTimeout(s.qi(), s.scrollDelayEvents) : s.oa(), s.Vf.updateFloats && (clearTimeout(s.Vf.updateFloats), s.Vf.updateFloats = null), s.scrollDelayFloats > 0 ? s.Vf.updateFloats = setTimeout(function () { s.Be(); }, s.scrollDelayFloats) : s.Be(), s.onScrollCalled = !0, "function" == typeof s.onScroll) {
4023
4093
  var a = { control: s, viewport: s.getViewport() };
4024
4094
  s.onScroll(a);
4025
4095
  }
4026
- } }, this.ni = function () { return function () { s && s.rf(); }; }, this.oi = function () { return function () { s && (s.Gh() ? setTimeout(function () { s.Dh(), setTimeout(function () { s.oa(!0); }, 50); }, 50) : s.Ce()); }; }, this.qf = function () { s.Ib.drawArea = null; }, this.show = function () { s.visible = !0, s.me = !0, s.nav.top.style.display = "", s.z(), s.mh(), s.sf(); }, this.hide = function () { s.visible = !1, s.me = !1, s.nav.top.style.display = "none"; }, this.ig = function (e) { if (!s.events.list)
4096
+ } }, this.pi = function () { return function () { s && s.rf(); }; }, this.qi = function () { return function () { s && (s.Ih() ? setTimeout(function () { s.Fh(), setTimeout(function () { s.oa(!0); }, 50); }, 50) : s.Ce()); }; }, this.qf = function () { s.Ib.drawArea = null; }, this.show = function () { s.visible = !0, s.me = !0, s.nav.top.style.display = "", s.z(), s.oh(), s.sf(); }, this.hide = function () { s.visible = !1, s.me = !1, s.nav.top.style.display = "none"; }, this.kg = function (e) { if (!s.events.list)
4027
4097
  return null; for (var t = 0; t < this.events.list.length; t++) {
4028
4098
  var n = this.events.list[t];
4029
- if (s.bg(n, e)) {
4099
+ if (s.dg(n, e)) {
4030
4100
  var a = {};
4031
4101
  return a.ex = n, a.index = t, a;
4032
4102
  }
4033
- } return null; }, this.pi = function () { var e = this.xe(), 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++) {
4103
+ } return null; }, this.ri = function () { var e = this.xe(), 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++) {
4034
4104
  for (var o = t + r, s = 0; s < i; s++) {
4035
4105
  var l = a + s;
4036
4106
  this.rd(o, l);
4037
4107
  }
4038
- this.qi(o);
4039
- } for (var d = this.Dg(), l = d.start; l < d.end; l++)
4040
- this.ri(l); }, this.rf = function () { if (!s.R) {
4108
+ this.si(o);
4109
+ } for (var d = this.Fg(), l = d.start; l < d.end; l++)
4110
+ this.vi(l); }, this.rf = function () { if (!s.R) {
4041
4111
  var e = s.rowlist;
4042
4112
  if (e && e.length > 0) {
4043
4113
  if (this.cellSweeping) {
4044
4114
  var t = this.cellSweepingCacheSize;
4045
- this.Fh(t);
4115
+ this.Hh(t);
4046
4116
  }
4047
- this.pi();
4117
+ this.ri();
4048
4118
  }
4049
4119
  this.zf = !1;
4050
4120
  } }, this.xe = function () { if (s.Ib.drawArea)
4051
4121
  return s.Ib.drawArea; if (!this.nav.scroll)
4052
- return null; var e = s.zh, t = {}, n = l.Ih(), a = l.Ch(), i = s.yh - n, r = i + s.Ah + 2 * n, o = 0, d = 0; o = s.Ve(i).x, d = s.Ve(r, !0).x; var c = this.Of(); d = Math.min(d, c - 1), o = DayPilot.Util.atLeast(o, 0); var u = e - a, h = e + this.nav.scroll.offsetHeight + 2 * a, f = this.Uf(u).i, v = this.Uf(h).i; v < this.rowlist.length && v++, t.xStart = o, t.xEnd = d, t.yStart = f, t.yEnd = v; var p = s.nav.scroll; return 0 === p.clientWidth && (p = s.divTimeScroll), t.pixels = {}, t.pixels.left = p.scrollLeft, t.pixels.right = p.scrollLeft + p.clientWidth, t.pixels.top = p.scrollTop, t.pixels.bottom = p.scrollTop + p.clientHeight, t.pixels.width = p.scrollWidth, t.sw = DayPilot.sw(s.nav.scroll), s.Ib.drawArea = t, t; }, this.Ne = function () { return s.Of() * s.cellWidth; }, this.ri = function (e) { var t = s.rowlist, n = s.divLines, a = "y_" + e; if (!this.Ib.linesHorizontal[a]) {
4122
+ return null; var e = s.Bh, t = {}, n = l.Kh(), a = l.Eh(), i = s.Ah - n, r = i + s.Ch + 2 * n, o = 0, d = 0; o = s.Ve(i).x, d = s.Ve(r, !0).x; var c = this.Of(); d = Math.min(d, c - 1), o = DayPilot.Util.atLeast(o, 0); var u = e - a, h = e + this.nav.scroll.offsetHeight + 2 * a, f = this.Uf(u).i, v = this.Uf(h).i; v < this.rowlist.length && v++, t.xStart = o, t.xEnd = d, t.yStart = f, t.yEnd = v; var p = s.nav.scroll; return 0 === p.clientWidth && (p = s.divTimeScroll), t.pixels = {}, t.pixels.left = p.scrollLeft, t.pixels.right = p.scrollLeft + p.clientWidth, t.pixels.top = p.scrollTop, t.pixels.bottom = p.scrollTop + p.clientHeight, t.pixels.width = p.scrollWidth, t.sw = DayPilot.sw(s.nav.scroll), s.Ib.drawArea = t, t; }, this.Ne = function () { return s.Of() * s.cellWidth; }, this.vi = function (e) { var t = s.rowlist, n = s.divLines, a = "y_" + e; if (!this.Ib.linesHorizontal[a]) {
4053
4123
  var i = t[e], o = i.height, l = i.top + o - 1, d = this.Ne(), c = r();
4054
4124
  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.M("_matrix_horizontal_line"), n.appendChild(c), this.Ib.linesHorizontal[a] = c;
4055
- } }, this.qi = function (e) { var t = s.We(e); if (t) {
4125
+ } }, this.si = function (e) { var t = s.We(e); if (t) {
4056
4126
  var n = s.divLines, a = s.le, i = "x_" + e;
4057
4127
  if (!this.Ib.linesVertical[i]) {
4058
4128
  var o = t.left + t.width - 1, l = r();
4059
4129
  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.M("_matrix_vertical_line"), n.appendChild(l), this.elements.linesVertical.push(l), this.Ib.linesVertical[i] = l;
4060
4130
  }
4061
- } }, this.jf = function () { s.le = s.si(s.rowlist); }, this.si = function (e) { for (var t = 0, n = 0; n < e.length; n++) {
4131
+ } }, this.jf = function () { s.le = s.wi(s.rowlist); }, this.wi = function (e) { for (var t = 0, n = 0; n < e.length; n++) {
4062
4132
  var a = e[n];
4063
4133
  a.top = t, t += a.height;
4064
- } return t; }, this.of = function () { s.elements.cells = [], s.Ib.cells = [], s.divCells.innerHTML = "", s.vi(); }, this.vi = function () { s.divLines.innerHTML = "", s.Ib.linesVertical = {}, s.Ib.linesHorizontal = {}, s.elements.linesVertical = []; }, this.Df = function (e) { var t = []; for (var n in s.Ib.cells)
4134
+ } return t; }, this.of = function () { "function" == typeof s.onBeforeCellDomAdd && s.xi(), s.elements.cells = [], s.Ib.cells = [], s.divCells.innerHTML = "", s.yi(); }, this.yi = function () { s.divLines.innerHTML = "", s.Ib.linesVertical = {}, s.Ib.linesHorizontal = {}, s.elements.linesVertical = []; }, this.xi = function () { var e = []; for (var t in s.Ib.cells)
4135
+ e.push(s.Ib.cells[t]); e.forEach(function (e) { s.qb(e); }); }, this.Df = function (e) { var t = []; for (var n in s.Ib.cells)
4065
4136
  t.push(s.Ib.cells[n]); t.filter(function (t) { return t && t.coords && t.coords.y === e; }).forEach(function (e) { s.qb(e); }); }, this.rd = function (e, t) { if (this.Ra) {
4066
4137
  var n = s.We(e);
4067
4138
  if (n) {
4068
4139
  var a = s.rowlist, i = s.divCells, o = e + "_" + t;
4069
4140
  if (!this.Ib.cells[o]) {
4070
- var l = this.wi(e, t), d = s.xi(e, t), c = r();
4141
+ var l = this.zi(e, t), d = s.Ai(e, t), c = r();
4071
4142
  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.M("_cell"), c.coords = {}, c.coords.x = e, c.coords.y = t, l) {
4072
4143
  if (l.cssClass && DayPilot.Util.addClass(c, l.cssClass), c.innerHTML = s.jb(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.M("_cell_business")), l.disabled && DayPilot.Util.addClass(c, s.M("_cell_disabled")), l.backColor && (c.style.backgroundColor = l.backColor), l.fontColor && (c.style.color = l.fontColor), l.horizontalAlignment || l.verticalAlignment) {
4073
4144
  switch (c.style.display = "flex", l.horizontalAlignment) {
@@ -4116,20 +4187,20 @@ var DayPilot = { Global: {} };
4116
4187
  } }(), i.appendChild(c), this.elements.cells.push(c), this.Ib.cells[o] = c;
4117
4188
  }
4118
4189
  }
4119
- } }, this.xi = function (e, t) { var n = s.We(e); if (!n)
4120
- 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.Ng(a), properties: s.wi(e, t) }, l.control = s, "function" == typeof this.onBeforeCellRender) {
4190
+ } }, this.Ai = function (e, t) { var n = s.We(e); if (!n)
4191
+ 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.Pg(a), properties: s.zi(e, t) }, l.control = s, "function" == typeof this.onBeforeCellRender) {
4121
4192
  var d = e + "_" + t;
4122
4193
  if (s.beforeCellRenderCaching && s.pf[d])
4123
4194
  return l;
4124
4195
  s.pf[d] = !0, this.onBeforeCellRender(l);
4125
- } return l; }, this.clearSelection = function () { this.yi(); }, this.zi = function (e, t, n) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var a = s.ve(n), i = s.Ye(e); if (!i.current)
4196
+ } return l; }, this.clearSelection = function () { this.Bi(); }, this.Ci = function (e, t, n) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var a = s.ve(n), i = s.Ye(e); if (!i.current)
4126
4197
  throw new DayPilot.Exception("Time range selection 'start' out of timeline"); var r = s.Ye(new DayPilot.Date(t).addMilliseconds(-1)); if (!r.current)
4127
- 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.zi(e, t, n); s.Nf(i), a || setTimeout(function () { s.Jf(i); }, 0); }, this.Hf = function () { var e = t.Bg && t.Bg.source; e && DayPilot.Util.removeClass(e, s.M("_event_moving_source")), DayPilot.de(t.Bg), t.Bg = null, DayPilot.Global.movingLink && (DayPilot.Global.movingLink.clear(), DayPilot.Global.movingLink = null); }, this.ef = function () { DayPilot.de(t.wg), t.wg = null; }, this.yi = function () { s.divShadow && (s.divShadow.innerHTML = ""), s.elements.range = [], s.elements.range2 = null, s.Mf = null, s.Ai = null; }, l.Vd = function () { delete s.Ib.headerHeight; }, l.ea = function () { return "Disabled" !== s.xssProtection; }, l.Te = function () { return DayPilot.Locale.find(s.locale); }, l.ci = function () { return "Auto" !== s.timeFormat ? s.timeFormat : l.Te().timeFormat; }, l.fa = function () { if ("Auto" === s.weekStarts) {
4198
+ 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.Ci(e, t, n); s.Nf(i), a || setTimeout(function () { s.Jf(i); }, 0); }, this.Hf = function () { var e = t.Dg && t.Dg.source; e && DayPilot.Util.removeClass(e, s.M("_event_moving_source")), DayPilot.de(t.Dg), t.Dg = null, DayPilot.Global.movingLink && (DayPilot.Global.movingLink.clear(), DayPilot.Global.movingLink = null); }, this.ef = function () { DayPilot.de(t.yg), t.yg = null; }, this.Bi = function () { s.divShadow && (s.divShadow.innerHTML = ""), s.elements.range = [], s.elements.range2 = null, s.Mf = null, s.Di = null; }, l.Vd = function () { delete s.Ib.headerHeight; }, l.ea = function () { return "Disabled" !== s.xssProtection; }, l.Te = function () { return DayPilot.Locale.find(s.locale); }, l.ei = function () { return "Auto" !== s.timeFormat ? s.timeFormat : l.Te().timeFormat; }, l.fa = function () { if ("Auto" === s.weekStarts) {
4128
4199
  var e = l.Te();
4129
4200
  return e ? e.weekStarts : 0;
4130
- } return s.weekStarts || 0; }, l.Kg = function () { var e = navigator.userAgent.toLowerCase(); return e.indexOf("mobile") !== -1 || e.indexOf("android") != -1; }, l.rg = function (e) { return "Always" === s.useEventBoxes || "Never" !== s.useEventBoxes && e < 60 * s.Ze() * 1e3; }, l.Ih = function () { var e = s.dynamicEventRenderingMarginX; if ("number" == typeof e)
4131
- return e; var t = s.dynamicEventRenderingMargin; return "number" == typeof t ? t : 0; }, l.Ch = function () { var e = s.dynamicEventRenderingMarginY; if ("number" == typeof e)
4132
- return e; var t = s.dynamicEventRenderingMargin; return "number" == typeof t ? t : 0; }, this.wi = function (e, t) { var n = e + "_" + t, a = s.rowlist; if (this.cellProperties || (this.cellProperties = {}), this.cellProperties[n])
4201
+ } return s.weekStarts || 0; }, l.Mg = function () { var e = navigator.userAgent.toLowerCase(); return e.indexOf("mobile") !== -1 || e.indexOf("android") != -1; }, l.tg = function (e) { return "Always" === s.useEventBoxes || "Never" !== s.useEventBoxes && e < 60 * s.Ze() * 1e3; }, l.Kh = function () { var e = s.dynamicEventRenderingMarginX; if ("number" == typeof e)
4202
+ return e; var t = s.dynamicEventRenderingMargin; return "number" == typeof t ? t : 0; }, l.Eh = function () { var e = s.dynamicEventRenderingMarginY; if ("number" == typeof e)
4203
+ return e; var t = s.dynamicEventRenderingMargin; return "number" == typeof t ? t : 0; }, this.zi = function (e, t) { var n = e + "_" + t, a = s.rowlist; if (this.cellProperties || (this.cellProperties = {}), this.cellProperties[n])
4133
4204
  return this.cellProperties[n]; if (!this.cellProperties[n]) {
4134
4205
  var i = a[t], r = i.id, o = s.We(e), l = o.start, d = o.end, c = {};
4135
4206
  c.start = l, c.end = d, c.resource = r;
@@ -4150,7 +4221,7 @@ var DayPilot = { Global: {} };
4150
4221
  return !0;
4151
4222
  if (r >= l)
4152
4223
  return !1;
4153
- } return !0; }, this.z = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.Bi = function (e) { this.heightSpec = "Fixed", this.height = e - (this.Pe() + 2), this.na(); }, this.setHeight = this.Bi, this.ve = function (e) { return s.Rg(e)[0]; }, this.Hb = function () { if (this.id && this.id.tagName)
4224
+ } return !0; }, this.z = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.Ei = function (e) { this.heightSpec = "Fixed", this.height = e - (this.Pe() + 2), this.na(); }, this.setHeight = this.Ei, this.ve = function (e) { return s.Tg(e)[0]; }, this.Hb = function () { if (this.id && this.id.tagName)
4154
4225
  this.nav.top = this.id;
4155
4226
  else {
4156
4227
  if ("string" != typeof this.id)
@@ -4162,7 +4233,7 @@ var DayPilot = { Global: {} };
4162
4233
  if (this.nav.top.dp === s)
4163
4234
  return s;
4164
4235
  throw new DayPilot.Exception("The target placeholder was already initialized by another DayPilot component instance.");
4165
- } return this.Ci(), this.lh(), this; }, this.Ci = function () { this.Zg(), this.Ab(), this.ca(), this.xh(), s.zoomLevels && s.zoomLevels[s.zoom.active] && s.zoom.setActive(s.zoom.active), this.Bb(); var angular = s.Me.enabled; s.scrollToDate ? s.scrollTo(s.scrollToDate) : s.scrollX || s.scrollY ? s.setScroll(s.scrollX, s.scrollY) : angular || s.sf(), s.scrollToResourceId && (s.scrollToResource(s.scrollToResourceId), s.scrollToResourceId = null); var e = function () { s.scrollY && s.setScroll(s.scrollX, s.scrollY); }; setTimeout(e, 200), this.qf(), this.Gb(), this.Ra = !0; var t = s.qe; t ? s.scrollTo(t) : s.sf(); }, this.Fb = null, this.Db = function (e) { if (e) {
4236
+ } return this.Fi(), this.nh(), this; }, this.Fi = function () { this._g(), this.Ab(), this.ca(), this.zh(), s.zoomLevels && s.zoomLevels[s.zoom.active] && s.zoom.setActive(s.zoom.active), this.Bb(); var angular = s.Me.enabled; s.scrollToDate ? s.scrollTo(s.scrollToDate) : s.scrollX || s.scrollY ? s.setScroll(s.scrollX, s.scrollY) : angular || s.sf(), s.scrollToResourceId && (s.scrollToResource(s.scrollToResourceId), s.scrollToResourceId = null); var e = function () { s.scrollY && s.setScroll(s.scrollX, s.scrollY); }; setTimeout(e, 200), this.qf(), this.Gb(), this.Ra = !0; var t = s.qe; t ? s.scrollTo(t) : s.sf(); }, this.Fb = null, this.Db = function (e) { if (e) {
4166
4237
  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.pe(this.data); } }, "scrollX": { "postInit": function () { this.data && s.te(this.data); } }, "scrollY": { "postInit": function () { this.data && s.Oe(this.data); } }, "zoom": { "preInit": function () { var e = this.data; if ("string" == typeof e) {
4167
4238
  var t = e;
4168
4239
  e = s.zoom.Oa(t);
@@ -4194,44 +4265,44 @@ var DayPilot = { Global: {} };
4194
4265
  } }, this.Ya.eb = function (e, t) { var n = s.Ya.Xa; if ("function" == typeof n.render) {
4195
4266
  var a = e;
4196
4267
  DayPilot.isArray(e) && (a = n.h("div", null, e)), n.render(a, t);
4197
- } }, this.Ya.ab = function (e) { var t = s.Ya.Xa; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.adjustEndIn = s.Ef, this.internal.adjustEndNormalize = s.Ff, this.internal.xssTextHtml = s.jb, this.internal.touch = s.ne, this.internal.skipUpdate = s.Me.skipUpdate, this.internal.skipped = s.Me.skipped, this.internal.loadOptions = s.Db, this.internal.postInit = s.Gb, this.internal.enableAngular2 = function () { s.Me.enabled = !0; }, this.internal.eventsFromAttr = function () { s.Me.gg = !0; }, this.internal.resourcesFromAttr = function () { s.Me.pg = !0; }, this.internal.evImmediateRefresh = function () { s.events.If(); }, this.internal.upd = function (e) { s.update(e); }, this.internal.enableReact = function (e, t) { s.Za.react = e, s.Za.reactDOM = t; }, this.internal.reactRefs = function () { return DayPilot.Util.copyProps(s.Za, {}, ["react", "reactDOM"]); }, this.internal.enableVue = function (e) { s.Ya.Xa = e; }, this.internal.vueRef = function () { return s.Ya.Xa; }, this.internal.vueRendering = function () { return s.Ya._a; }, this.Db(o);
4268
+ } }, this.Ya.ab = function (e) { var t = s.Ya.Xa; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.adjustEndIn = s.Ef, this.internal.adjustEndNormalize = s.Ff, this.internal.xssTextHtml = s.jb, this.internal.touch = s.ne, this.internal.skipUpdate = s.Me.skipUpdate, this.internal.skipped = s.Me.skipped, this.internal.loadOptions = s.Db, this.internal.postInit = s.Gb, this.internal.enableAngular2 = function () { s.Me.enabled = !0; }, this.internal.eventsFromAttr = function () { s.Me.ig = !0; }, this.internal.resourcesFromAttr = function () { s.Me.rg = !0; }, this.internal.evImmediateRefresh = function () { s.events.If(); }, this.internal.upd = function (e) { s.update(e); }, this.internal.enableReact = function (e, t) { s.Za.react = e, s.Za.reactDOM = t; }, this.internal.reactRefs = function () { return DayPilot.Util.copyProps(s.Za, {}, ["react", "reactDOM"]); }, this.internal.enableVue = function (e) { s.Ya.Xa = e; }, this.internal.vueRef = function () { return s.Ya.Xa; }, this.internal.vueRendering = function () { return s.Ya._a; }, this.Db(o);
4198
4269
  }, a = "${v}" === (new DayPilot.Scheduler).v, DayPilot.Row = function (e, t) { if (!e)
4199
4270
  throw new DayPilot.Exception("Now row object supplied when creating DayPilot.Row"); if (!t)
4200
- throw new DayPilot.Exception("No parent control supplied when creating DayPilot.Row"); this.Di = {}; var n = this.Di; 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.Ei = 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.Ei.events.length; t++)
4201
- e.push(a.Ei.events[t]); return e; }, a.events.isEmpty = function () { return 0 === a.Ei.events.length; }, a.events.forRange = function (e, t) { return a.Ei.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.af = null, t.Ag = null, t.Sh = null, t.tg = null, t.xg = null, t._e = !1, t.uh = !1, t.ii = null, t.Fi = null, t.Ac = function () { DayPilot.ue(document, "mouseup", t.ke), DayPilot.ue(document, "touchmove", t.vh), DayPilot.ue(document, "touchend", t.wh), t.uh = !1; }, t.vh = function (e) { if (t.tg) {
4202
- var n = t.tg.event.calendar;
4203
- n.coords = n.ne.Wh(e), n.ne._h(), e.preventDefault();
4271
+ throw new DayPilot.Exception("No parent control supplied when creating DayPilot.Row"); this.Gi = {}; var n = this.Gi; 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.Hi = 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.Hi.events.length; t++)
4272
+ e.push(a.Hi.events[t]); return e; }, a.events.isEmpty = function () { return 0 === a.Hi.events.length; }, a.events.forRange = function (e, t) { return a.Hi.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.af = null, t.Cg = null, t.Uh = null, t.vg = null, t.zg = null, t._e = !1, t.wh = !1, t.ki = null, t.Ii = null, t.Ac = function () { DayPilot.ue(document, "mouseup", t.ke), DayPilot.ue(document, "touchmove", t.xh), DayPilot.ue(document, "touchend", t.yh), t.wh = !1; }, t.xh = function (e) { if (t.vg) {
4273
+ var n = t.vg.event.calendar;
4274
+ n.coords = n.ne.Yh(e), n.ne.bi(), e.preventDefault();
4204
4275
  } if (t.af) {
4205
4276
  e.preventDefault();
4206
- var n = t.Ag.calendar;
4207
- n.coords = n.ne.Wh(e), n.ne.ai();
4208
- } }, t.wh = function (e) { t.hh = !1, t.ke(e); }, t.ke = function (e) { if (t.tg) {
4209
- var a = function (e) { var n = t.xg, a = n.calendar; i().style.cursor = "", t.tg = null, t.xg = null, e || (DayPilot.de(t.wg), t.wg = null), a && (a.Gi = null); };
4210
- if (setTimeout(function () { t._e = !1; }), !t.wg)
4277
+ var n = t.Cg.calendar;
4278
+ n.coords = n.ne.Yh(e), n.ne.ci();
4279
+ } }, t.yh = function (e) { t.jh = !1, t.ke(e); }, t.ke = function (e) { if (t.vg) {
4280
+ var a = function (e) { var n = t.zg, a = n.calendar; i().style.cursor = "", t.vg = null, t.zg = null, e || (DayPilot.de(t.yg), t.yg = null), a && (a.Ji = null); };
4281
+ if (setTimeout(function () { t._e = !1; }), !t.yg)
4211
4282
  return void a();
4212
- var r = t.xg, o = r.calendar, s = t.wg.start, l = t.wg.end, d = "left" === t.tg.dpBorder ? "start" : "end";
4283
+ var r = t.zg, o = r.calendar, s = t.yg.start, l = t.yg.end, d = "left" === t.vg.dpBorder ? "start" : "end";
4213
4284
  a(!0), o.L(r, s, l, d, e);
4214
4285
  }
4215
- else if (t.Ag) {
4216
- var a = function () { DayPilot.Global.movingAreaData = null; var e = t.Bg && t.Bg.calendar; t.Bg && (DayPilot.de(t.Bg), t.Bg.calendar = null), i().style.cursor = "", t.af = null, t.Ag = null, e && (e.Gf = null); };
4217
- if (!t.Bg)
4286
+ else if (t.Cg) {
4287
+ var a = function () { DayPilot.Global.movingAreaData = null; var e = t.Dg && t.Dg.calendar; t.Dg && (DayPilot.de(t.Dg), t.Dg.calendar = null), i().style.cursor = "", t.af = null, t.Cg = null, e && (e.Gf = null); };
4288
+ if (!t.Dg)
4218
4289
  return void a();
4219
- var r = t.Ag, o = t.Bg.calendar;
4290
+ var r = t.Cg, o = t.Dg.calendar;
4220
4291
  if (!o)
4221
4292
  return void a();
4222
- if (t.Bg.source = t.af, !t.Bg.row)
4293
+ if (t.Dg.source = t.af, !t.Dg.row)
4223
4294
  return void a();
4224
- var s = t.Bg.start, l = t.Bg.end, c = t.Bg.row.id;
4225
- t.Bg.calendar = null, i().style.cursor = "", t.af = null, t.Ag = null, o.N(r, s, l, c, e), DayPilot.Global.movingAreaData = null;
4295
+ var s = t.Dg.start, l = t.Dg.end, c = t.Dg.row.id;
4296
+ t.Dg.calendar = null, i().style.cursor = "", t.af = null, t.Cg = null, o.N(r, s, l, c, e), DayPilot.Global.movingAreaData = null;
4226
4297
  }
4227
- else if (t.Zh) {
4228
- var u = DayPilot.Util.mouseButton(e), h = t.Zh, f = h.calendar, a = function () { };
4229
- if (f.Ai = null, t.ii)
4230
- return clearTimeout(t.ii), t.ii = null, void a();
4231
- f.Mf = h, t.Zh = null;
4232
- var v = function (e) { return function () { t.ii = null, f.Jf(e), "Hold" !== f.timeRangeSelectedHandling && "HoldForever" !== f.timeRangeSelectedHandling ? n() : f.Mf = e; }; }, p = f.mi(h);
4233
- return a(), u.left ? (v(p)(), e.cancelBubble = !0, !1) : void (t.ii = null);
4234
- } t.Vh = null, t.sg = null; };
4298
+ else if (t._h) {
4299
+ var u = DayPilot.Util.mouseButton(e), h = t._h, f = h.calendar, a = function () { };
4300
+ if (f.Di = null, t.ki)
4301
+ return clearTimeout(t.ki), t.ki = null, void a();
4302
+ f.Mf = h, t._h = null;
4303
+ var v = function (e) { return function () { t.ki = null, f.Jf(e), "Hold" !== f.timeRangeSelectedHandling && "HoldForever" !== f.timeRangeSelectedHandling ? n() : f.Mf = e; }; }, p = f.oi(h);
4304
+ return a(), u.left ? (v(p)(), e.cancelBubble = !0, !1) : void (t.ki = null);
4305
+ } t.Xh = null, t.ug = null; };
4235
4306
  }
4236
4307
  }(DayPilot);
4237
4308
 
@@ -4427,66 +4498,92 @@ class DayPilotSchedulerComponent {
4427
4498
  config;
4428
4499
  _requestUpdateFull = false;
4429
4500
  _requestUpdateEvents = false;
4501
+ _requestUpdateResources = false;
4430
4502
  _requestViewChange = false;
4503
+ _visibleRange = {
4504
+ start: new DayPilot.Date(),
4505
+ end: new DayPilot.Date()
4506
+ };
4431
4507
  _hashOptions = "";
4432
4508
  _hashEvents = "";
4509
+ _hashResources = "";
4433
4510
  _eventsSet = false;
4511
+ _resourcesSet = false;
4434
4512
  _events = [];
4513
+ _resources = [];
4514
+ _signalInitialized = false;
4515
+ _signalConfig = undefined;
4516
+ _signalEvents = undefined;
4517
+ _signalResources = undefined;
4518
+ _id = "dp_" + new Date().getTime() + rand();
4435
4519
  get events() {
4436
- if (typeof this._events === 'function') {
4437
- return this._events();
4438
- }
4439
4520
  return this._events;
4440
4521
  }
4441
4522
  set events(value) {
4442
4523
  this._eventsSet = true;
4443
4524
  this._events = value;
4444
4525
  }
4445
- _id = "dp_" + new Date().getTime() + rand();
4526
+ get resources() {
4527
+ return this._resources;
4528
+ }
4529
+ set resources(value) {
4530
+ this._resourcesSet = true;
4531
+ this._resources = value;
4532
+ }
4446
4533
  get configResolved() {
4447
- return typeof this.config === 'function' ? this.config() : this.config;
4534
+ return typeof this.config === "function"
4535
+ ? this.config()
4536
+ : this.config;
4537
+ }
4538
+ get eventsResolved() {
4539
+ return typeof this._events === "function"
4540
+ ? this._events()
4541
+ : this._events;
4542
+ }
4543
+ get resourcesResolved() {
4544
+ return typeof this._resources === "function"
4545
+ ? this._resources()
4546
+ : this._resources;
4448
4547
  }
4449
4548
  get id() {
4450
4549
  return this._id;
4451
4550
  }
4452
4551
  constructor() {
4453
4552
  effect(() => {
4454
- if (typeof this._events !== 'function') {
4455
- return;
4456
- }
4457
- const control = this.control;
4458
- const events = this._events();
4459
- if (control) {
4460
- control.internal.upd({ events });
4461
- }
4462
- });
4463
- effect(() => {
4464
- if (typeof this.config !== 'function') {
4553
+ const update = this.signalUpdateResolved();
4554
+ if (!update) {
4465
4555
  return;
4466
4556
  }
4467
4557
  const control = this.control;
4468
- const config = this.config();
4469
4558
  if (control) {
4470
- control.internal.upd(config);
4559
+ control.internal.upd(update);
4471
4560
  }
4472
4561
  });
4473
4562
  }
4474
- async ngOnInit() { }
4563
+ async ngOnInit() {
4564
+ }
4475
4565
  ngOnDestroy() {
4476
4566
  this.dispose();
4477
4567
  }
4478
4568
  ngAfterViewInit() {
4479
4569
  this.control = new DayPilot.Scheduler(this.id);
4570
+ const control = this.control;
4571
+ control.internal.enableAngular2();
4480
4572
  this.updateOptions();
4573
+ this.updateResources();
4481
4574
  this.updateEvents();
4482
- this._requestUpdateFull = false; // config just loaded and calling init(), no need to call update again
4483
- this._requestUpdateEvents = false; // config just loaded and calling init(), no need to call update again
4575
+ // The configuration and standalone inputs have just been loaded.
4576
+ // init() performs the initial rendering, so no additional update is needed.
4577
+ this._requestUpdateFull = false;
4578
+ this._requestUpdateResources = false;
4579
+ this._requestUpdateEvents = false;
4484
4580
  this.control.init();
4485
4581
  }
4486
4582
  ngDoCheck() {
4487
- const eventsAsSignal = typeof this._events === 'function' || !this._eventsSet;
4488
- const configAsSignal = typeof this.config === 'function' || !this.config;
4489
- if (eventsAsSignal && configAsSignal) {
4583
+ const eventsAsSignal = typeof this._events === "function" || !this._eventsSet;
4584
+ const resourcesAsSignal = typeof this._resources === "function" || !this._resourcesSet;
4585
+ const configAsSignal = typeof this.config === "function" || !this.config;
4586
+ if (eventsAsSignal && resourcesAsSignal && configAsSignal) {
4490
4587
  return;
4491
4588
  }
4492
4589
  if (!this.control) {
@@ -4495,69 +4592,219 @@ class DayPilotSchedulerComponent {
4495
4592
  if (!configAsSignal) {
4496
4593
  this.updateOptions();
4497
4594
  }
4595
+ if (!resourcesAsSignal) {
4596
+ this.updateResources();
4597
+ }
4498
4598
  if (!eventsAsSignal) {
4499
4599
  this.updateEvents();
4500
4600
  }
4501
4601
  const control = this.control;
4502
4602
  if (this._requestUpdateFull) {
4503
4603
  control.internal.upd();
4604
+ control.internal.postInit();
4504
4605
  this._requestUpdateFull = false;
4606
+ this._requestUpdateResources = false;
4505
4607
  this._requestUpdateEvents = false;
4506
4608
  }
4507
- else if (this._requestUpdateEvents) {
4508
- control.internal.upd({ "events": this.events });
4509
- this._requestUpdateEvents = false;
4609
+ else {
4610
+ const update = {};
4611
+ if (this._requestUpdateResources) {
4612
+ update.resources = this.resourcesResolved;
4613
+ }
4614
+ if (this._requestUpdateEvents) {
4615
+ update.events = this.eventsResolved;
4616
+ }
4617
+ if (this._requestUpdateResources || this._requestUpdateEvents) {
4618
+ control.internal.upd(update);
4619
+ this._requestUpdateResources = false;
4620
+ this._requestUpdateEvents = false;
4621
+ }
4510
4622
  }
4511
4623
  if (this._requestViewChange) {
4512
4624
  this._requestViewChange = false;
4513
4625
  const args = {};
4626
+ args.visibleRangeChanged =
4627
+ this._visibleRange.start !== this.control.visibleStart() ||
4628
+ this._visibleRange.end !== this.control.visibleEnd();
4629
+ this._visibleRange.start = this.control.visibleStart();
4630
+ this._visibleRange.end = this.control.visibleEnd();
4514
4631
  this.viewChange.emit(args);
4515
4632
  }
4516
4633
  }
4517
4634
  dispose() {
4518
4635
  if (this.control) {
4519
4636
  this.control.dispose();
4520
- //@ts-ignore
4637
+ // @ts-ignore
4521
4638
  this.control = null;
4522
4639
  }
4523
4640
  }
4524
- updateOptions() {
4641
+ /**
4642
+ * Resolves signal inputs and returns a single Scheduler update.
4643
+ *
4644
+ * A standalone events/resources input takes precedence over the same
4645
+ * property supplied through config.
4646
+ */
4647
+ signalUpdateResolved() {
4648
+ const configIsSignal = typeof this.config === "function";
4649
+ const eventsIsSignal = typeof this._events === "function";
4650
+ const resourcesIsSignal = typeof this._resources === "function";
4651
+ if (!configIsSignal && !eventsIsSignal && !resourcesIsSignal) {
4652
+ return null;
4653
+ }
4654
+ const config = configIsSignal
4655
+ ? this.configResolved
4656
+ : undefined;
4657
+ const events = eventsIsSignal
4658
+ ? this.eventsResolved
4659
+ : undefined;
4660
+ const resources = resourcesIsSignal
4661
+ ? this.resourcesResolved
4662
+ : undefined;
4663
+ const configChanged = configIsSignal && config !== this._signalConfig;
4664
+ const eventsChanged = eventsIsSignal && events !== this._signalEvents;
4665
+ const resourcesChanged = resourcesIsSignal && resources !== this._signalResources;
4666
+ this._signalConfig = config;
4667
+ this._signalEvents = events;
4668
+ this._signalResources = resources;
4669
+ if (!this._signalInitialized) {
4670
+ this._signalInitialized = true;
4671
+ return null;
4672
+ }
4673
+ if (!configChanged && !eventsChanged && !resourcesChanged) {
4674
+ return null;
4675
+ }
4676
+ if (configChanged) {
4677
+ return this.fullSignalUpdateResolved();
4678
+ }
4679
+ const update = {};
4680
+ if (eventsChanged) {
4681
+ update.events = events;
4682
+ }
4683
+ if (resourcesChanged) {
4684
+ update.resources = resources;
4685
+ }
4686
+ return update;
4687
+ }
4688
+ /**
4689
+ * Creates a full update when a signal-based config changes.
4690
+ *
4691
+ * Explicit standalone inputs override config.events and
4692
+ * config.resources.
4693
+ */
4694
+ fullSignalUpdateResolved() {
4695
+ const config = this.configResolved;
4696
+ const update = config ? { ...config } : {};
4697
+ if (this._eventsSet) {
4698
+ update.events = this.eventsResolved;
4699
+ }
4700
+ if (this._resourcesSet) {
4701
+ update.resources = this.resourcesResolved;
4702
+ }
4703
+ return update;
4704
+ }
4705
+ /**
4706
+ * Removes properties from config that are supplied using standalone
4707
+ * Angular inputs.
4708
+ */
4709
+ configResolvedForUpdate() {
4525
4710
  const config = this.configResolved;
4711
+ if (!config) {
4712
+ return config;
4713
+ }
4714
+ if (!this._eventsSet && !this._resourcesSet) {
4715
+ return config;
4716
+ }
4717
+ const result = { ...config };
4718
+ if (this._eventsSet) {
4719
+ delete result.events;
4720
+ }
4721
+ if (this._resourcesSet) {
4722
+ delete result.resources;
4723
+ }
4724
+ return result;
4725
+ }
4726
+ updateOptions() {
4727
+ const config = this.configResolvedForUpdate();
4526
4728
  const hash = optHash(config);
4527
4729
  if (hash !== this._hashOptions) {
4528
4730
  const control = this.control;
4529
- control.internal.loadOptions(config);
4530
- this._requestUpdateFull = true;
4531
- this._requestViewChange = true;
4731
+ if (config && config.resources && !this._resourcesSet) {
4732
+ control.internal.resourcesFromAttr();
4733
+ }
4734
+ if (control.internal.skipUpdate()) {
4735
+ control.internal.skipped();
4736
+ }
4737
+ else {
4738
+ control.internal.loadOptions(config);
4739
+ this._requestUpdateFull = true;
4740
+ this._requestViewChange = true;
4741
+ }
4532
4742
  }
4533
4743
  this._hashOptions = hash;
4534
4744
  }
4745
+ updateResources() {
4746
+ if (!this._resourcesSet) {
4747
+ return;
4748
+ }
4749
+ const resources = this.resourcesResolved;
4750
+ const hash = optHash(resources);
4751
+ if (hash === this._hashResources) {
4752
+ return;
4753
+ }
4754
+ const control = this.control;
4755
+ control.resources = resources;
4756
+ control.internal.resourcesFromAttr();
4757
+ if (control.internal.skipUpdate()) {
4758
+ control.internal.skipped();
4759
+ this._hashResources = hash;
4760
+ return;
4761
+ }
4762
+ this._requestUpdateResources = true;
4763
+ this._requestViewChange = true;
4764
+ this._hashResources = hash;
4765
+ }
4766
+ /**
4767
+ * Replaces the complete event list.
4768
+ *
4769
+ * No individual event diffing is performed. Signal inputs are detected
4770
+ * by reference in signalUpdateResolved(); ordinary array inputs are
4771
+ * checked using optHash() from ngDoCheck().
4772
+ */
4535
4773
  updateEvents() {
4536
4774
  if (!this._eventsSet) {
4537
4775
  return;
4538
4776
  }
4539
- const hash = optHash(this.events);
4540
- if (hash !== this._hashEvents) {
4541
- const control = this.control;
4542
- control.events.list = this.events;
4543
- this._requestUpdateEvents = true;
4777
+ const events = this.eventsResolved;
4778
+ const hash = optHash(events);
4779
+ if (hash === this._hashEvents) {
4780
+ return;
4544
4781
  }
4782
+ const control = this.control;
4783
+ control.events.list = events;
4784
+ if (control.internal.skipUpdate()) {
4785
+ control.internal.skipped();
4786
+ this._hashEvents = hash;
4787
+ return;
4788
+ }
4789
+ this._requestUpdateEvents = true;
4545
4790
  this._hashEvents = hash;
4546
4791
  }
4547
4792
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DayPilotSchedulerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4548
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DayPilotSchedulerComponent, selector: "daypilot-scheduler", inputs: { config: "config", events: "events" }, outputs: { viewChange: "viewChange" }, ngImport: i0, template: `
4549
- <div id='{{id}}'></div>`, isInline: true, styles: [""] });
4793
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DayPilotSchedulerComponent, selector: "daypilot-scheduler", inputs: { config: "config", events: "events", resources: "resources" }, outputs: { viewChange: "viewChange" }, ngImport: i0, template: `
4794
+ <div id="{{id}}"></div>`, isInline: true, styles: [""] });
4550
4795
  }
4551
4796
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DayPilotSchedulerComponent, decorators: [{
4552
4797
  type: Component,
4553
- args: [{ selector: 'daypilot-scheduler', template: `
4554
- <div id='{{id}}'></div>` }]
4798
+ args: [{ selector: "daypilot-scheduler", template: `
4799
+ <div id="{{id}}"></div>` }]
4555
4800
  }], ctorParameters: function () { return []; }, propDecorators: { viewChange: [{
4556
4801
  type: Output
4557
4802
  }], config: [{
4558
4803
  type: Input
4559
4804
  }], events: [{
4560
4805
  type: Input
4806
+ }], resources: [{
4807
+ type: Input
4561
4808
  }] } });
4562
4809
 
4563
4810
  class DayPilotMonthComponent {