@daypilot/daypilot-lite-angular 3.27.0 → 3.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -130,7 +130,7 @@ DayPilot Lite
130
130
  Copyright (c) 2005 - 2024 Annpoint s.r.o.
131
131
  https://www.daypilot.org/
132
132
  Licensed under Apache Software License 2.0
133
- Version: 2024.4.566-lite
133
+ Version: 2024.4.609-lite
134
134
  */
135
135
  var DayPilot = {};
136
136
  if ("undefined" == typeof DayPilot)
@@ -225,7 +225,7 @@ if (function () {
225
225
  }, 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 () {
226
226
  if (!DayPilot.Global.defaultCss) {
227
227
  var e = DayPilot.sheet();
228
- e.add(".calendar_default_main", "border: 1px solid #c0c0c0; font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px;"), e.add(".calendar_default_main *, .calendar_default_main *:before, .calendar_default_main *:after", "box-sizing: content-box;"), e.add(".calendar_default_rowheader_inner,.calendar_default_cornerright_inner,.calendar_default_corner_inner,.calendar_default_colheader_inner,.calendar_default_alldayheader_inner", "color: #333;background: #f3f3f3;"), e.add(".calendar_default_cornerright_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;\tborder-bottom: 1px solid #c0c0c0;"), e.add(".calendar_default_direction_rtl .calendar_default_cornerright_inner", "border-right: 1px solid #c0c0c0;"), e.add(".calendar_default_rowheader_inner", "font-size: 16pt;text-align: right; position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0; padding: 3px;"), e.add(".calendar_default_direction_rtl .calendar_default_rowheader_inner", "border-right: none;"), e.add(".calendar_default_corner_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;"), e.add(".calendar_default_direction_rtl .calendar_default_corner_inner", "border-right: none;"), e.add(".calendar_default_rowheader_minutes", "font-size:10px;vertical-align: super;padding-left: 2px;padding-right: 2px;"), e.add(".calendar_default_colheader_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0; display: flex; align-items: center; justify-content: center; font-size: 13px;"), e.add(".calendar_default_cell_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #ddd;border-bottom: 1px solid #ddd; background: #f9f9f9;"), e.add(".calendar_default_cell_business .calendar_default_cell_inner", "background: #fff"), e.add(".calendar_default_alldayheader_inner", "text-align: center;position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;"), e.add(".calendar_default_message", "opacity: 0.9; padding: 10px; color: #ffffff;background: #ffa216;"), e.add(".calendar_default_alldayevent_inner,.calendar_default_event_inner", "color: #333; border: 1px solid #999;"), e.add(".calendar_default_event_bar", "top: 0px;bottom: 0px;left: 0px;width: 6px;background-color: #9dc8e8;"), e.add(".calendar_default_event_bar_inner", "position: absolute;width: 6px;background-color: #1066a8;"), e.add(".calendar_default_alldayevent_inner,.calendar_default_event_inner", 'background: #fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".calendar_default_selected .calendar_default_event_inner", "background: #ddd;"), e.add(".calendar_default_alldayevent_inner", "position: absolute;top: 2px;bottom: 2px;left: 2px;right: 2px;overflow:hidden;padding: 2px;margin-right: 1px; font-size: 13px;"), e.add(".calendar_default_event_withheader .calendar_default_event_inner", "padding-top: 15px;"), e.add(".calendar_default_event", "cursor: default;"), e.add(".calendar_default_event_inner", "position: absolute;overflow: hidden;top: 0px;bottom: 0px;left: 0px;right: 0px;padding: 2px 2px 2px 8px; font-size: 13px;"), e.add(".calendar_default_event_delete", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAACprHcmAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAI5JREFUKFNtkLERgCAMRbmzdK8s4gAUlhYOYEHJEJYOYOEwDmGBPxC4kOPfvePy84MGR0RJ2N1A8H3N6DATwSQ57m2ql8NBG+AEM7D+UW+wjdfUPgerYNgB5gOLRHqhcasg84C2QxPMtrUhSqQIhg7ypy9VM2EUZPI/4rQ7rGxqo9sadTegw+UdjeDLAKUfhbaQUVPIfJYAAAAASUVORK5CYII=) center center no-repeat; opacity: 0.6; cursor: pointer;"), e.add(".calendar_default_event_delete:hover", "opacity: 1;-ms-filter: none;"), e.add(".calendar_default_scroll_up", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAB3RJTUUH2wESDiYcrhwCiQAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAARnQU1BAACxjwv8YQUAAACcSURBVHjaY2AgF9wWsTW6yGMlhi7OhC7AyMDQzMnBXIpFHAFuCtuaMTP+P8nA8P/b1x//FfW/HHuF1UQmxv+NUP1c3OxMVVhNvCVi683E8H8LXOY/w9+fTH81tF8fv4NiIpBRj+YoZtZ/LDUoJmKYhsVUpv0MDiyMDP96sIYV0FS2/8z9ICaLlOhvS4b/jC//MzC8xBG0vJeF7GQBlK0xdiUzCtsAAAAASUVORK5CYII=);"), e.add(".calendar_default_scroll_down", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAALiMAAC4jAXilP3YAAACqSURBVChTY7wpam3L9J+xmQEP+PGPKZZxP4MDi4zI78uMDIwa2NT+Z2DYovrmiC+TI8OBP/8ZmEqwGvif4e8vxr+FIDkmEKH25vBWBgbG0+iK/zEwLtF+ffwOXCGI8Y+BoRFFIdC030x/WmBiYBNhpgLdswNJ8RSYaSgmgk39z1gPUfj/29ef/9rwhQTDHRHbrbdEbLvRFcGthkkAra/9/uMvhkK8piNLAgCRpTnNn4AEmAAAAABJRU5ErkJggg==);"), e.add(".calendar_default_now", "background-color: red;"), e.add(".calendar_default_now:before", "content: ''; top: -5px; border-width: 5px; border-color: transparent transparent transparent red; border-style: solid; width: 0px; height:0px; position: absolute; -moz-transform: scale(.9999);"), e.add(".calendar_default_shadow_top", 'box-sizing: border-box; padding:2px;border:1px solid #ccc;background:#fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".calendar_default_shadow_bottom", 'box-sizing: border-box; padding:2px;border:1px solid #ccc;background:#fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".calendar_default_crosshair_vertical, .calendar_default_crosshair_horizontal, .calendar_default_crosshair_left, .calendar_default_crosshair_top", "background-color: gray; opacity: 0.2;"), e.add(".calendar_default_loading", "background-color: orange; color: white; padding: 2px;"), e.add(".calendar_default_scroll", "background-color: #f3f3f3;"), e.add(".calendar_default_event_moving_source", "opacity: 0.5;"), e.add(".calendar_default_shadow_inner", "box-sizing: border-box; background-color: #bbbbbb;border: 1px solid #888888;opacity: 0.5;height: 100%;"), e.add(".calendar_default_shadow", "box-shadow: 0 2px 5px rgba(0,0,0,.2);"), e.add(".menu_default_main", "user-select:none; font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;font-size: 13px;border: 1px solid #dddddd;background-color: white;padding: 0px;cursor: default;background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAABCAIAAABG0om7AAAAKXRFWHRDcmVhdGlvbiBUaW1lAHBvIDEwIDUgMjAxMCAyMjozMzo1OSArMDEwMGzy7+IAAAAHdElNRQfaBQoUJAesj4VUAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAABGdBTUEAALGPC/xhBQAAABVJREFUeNpj/P//PwO1weMnT2RlZAAYuwX/4oA3BgAAAABJRU5ErkJggg==);background-repeat: repeat-y;xborder-radius: 5px;-moz-box-shadow:0px 2px 3px rgba(000,000,000,0.3),inset 0px 0px 2px rgba(255,255,255,0.8);-webkit-box-shadow:0px 2px 3px rgba(000,000,000,0.3),inset 0px 0px 2px rgba(255,255,255,0.8);box-shadow:0px 2px 3px rgba(000,000,000,0.3),inset 0px 0px 2px rgba(255,255,255,0.8);"), e.add(".menu_default_main, .menu_default_main *, .menu_default_main *:before, .menu_default_main *:after", "box-sizing: content-box;"), e.add(".menu_default_title", "background-color: #f2f2f2;border-bottom: 1px solid gray;padding: 4px 4px 4px 37px;"), e.add(".menu_default_main a", "padding: 2px 2px 2px 35px;color: black;text-decoration: none;cursor: default;"), e.add(".menu_default_main.menu_default_withchildren a", "padding: 2px 35px 2px 35px;"), e.add(".menu_default_main a img", "margin-left: 6px;margin-top: 2px;"), e.add(".menu_default_item_text", "display: block;height: 20px;line-height: 20px; overflow:hidden;padding-left: 2px;padding-right: 20px; white-space: nowrap;"), e.add(".menu_default_main a:hover", "background-color: #f3f3f3;"), e.add(".menu_default_main div div", "border-top: 1px solid #dddddd;margin-top: 2px;margin-bottom: 2px;margin-left: 28px;"), e.add(".menu_default_main a.menu_default_item_disabled", "color: #ccc"), e.add(".menu_default_item_haschildren.menu_default_item_haschildren_active", "background-color: #f3f3f3;"), e.add(".menu_default_item_haschildren a:before", "content: ''; border-width: 5px; border-color: transparent transparent transparent #666; border-style: solid; width: 0px; height:0px; position: absolute; right: 5px; margin-top: 5px;"), e.add(".menu_default_item_icon", "position: absolute; top:0px; left: 0px; padding: 2px 2px 2px 8px;"), e.add(".menu_default_item a i", "height: 20px;line-height: 20px;"), e.add(".menu_default_item .menu_default_item_symbol", "width: 18px; height: 18px; color: #999; margin-left: 6px;margin-top: 2px;"), e.add(".menubar_default_main", "border-bottom: 1px solid #ccc; font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px; user-select:none;"), e.add(".menubar_default_item", "display: inline-block; padding: 6px 10px; cursor: default;"), e.add(".menubar_default_item:hover", "background-color: #f2f2f2;"), e.add(".menubar_default_item_active", "background-color: #f2f2f2;"), e.add(".scheduler_default_selected .scheduler_default_event_inner", "background: #ddd;"), e.add(".scheduler_default_main", "border: 1px solid #c0c0c0;font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px;"), e.add(".scheduler_default_timeheader", "cursor: default;color: #333;"), e.add(".scheduler_default_message", "opacity: 0.9;filter: alpha(opacity=90);padding: 10px; color: #ffffff;background: #ffa216;"), e.add(".scheduler_default_timeheadergroup,.scheduler_default_timeheadercol", "color: #333;background: #f3f3f3;"), e.add(".scheduler_default_rowheader,.scheduler_default_corner", "color: #333;background: #f3f3f3;"), e.add(".scheduler_default_rowheader_inner", "position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #eee;padding: 2px;"), e.add(".scheduler_default_timeheadergroup, .scheduler_default_timeheadercol", "text-align: center;"), e.add(".scheduler_default_timeheadergroup_inner", "position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;"), e.add(".scheduler_default_timeheadercol_inner", "position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #c0c0c0;"), e.add(".scheduler_default_divider", "background-color: #c0c0c0;"), e.add(".scheduler_default_divider_horizontal", "background-color: #c0c0c0;"), e.add(".scheduler_default_matrix_vertical_line", "background-color: #eee;"), e.add(".scheduler_default_matrix_vertical_break", "background-color: #000;"), e.add(".scheduler_default_matrix_horizontal_line", "background-color: #eee;"), e.add(".scheduler_default_resourcedivider", "background-color: #c0c0c0;"), e.add(".scheduler_default_shadow_inner", "background-color: #666666;opacity: 0.5;filter: alpha(opacity=50);height: 100%;xborder-radius: 5px;"), e.add(".scheduler_default_event", "color:#333; font-size: 13px;"), e.add(".scheduler_default_event_inner", "position:absolute;top:0px;left:0px;right:0px;bottom:0px;padding:5px 2px 2px 2px;overflow:hidden;border:1px solid #ccc;"), e.add(".scheduler_default_event_bar", "top:0px;left:0px;right:0px;height:4px;background-color:#9dc8e8;"), e.add(".scheduler_default_event_bar_inner", "position:absolute;height:4px;background-color:#1066a8;"), e.add(".scheduler_default_event_inner", 'background:#fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".scheduler_default_event_float_inner", "padding:6px 2px 2px 8px;"), e.add(".scheduler_default_event_float_inner:after", 'content:"";border-color: transparent #666 transparent transparent;border-style:solid;border-width:5px;width:0;height:0;position:absolute;top:8px;left:-4px;'), e.add(".scheduler_default_columnheader_inner", "font-weight: bold;"), e.add(".scheduler_default_columnheader_splitter", "background-color: #666;opacity: 0.5;filter: alpha(opacity=50);"), e.add(".scheduler_default_columnheader_cell_inner", "padding: 2px;"), e.add(".scheduler_default_cell", "background-color: #f9f9f9;"), e.add(".scheduler_default_cell.scheduler_default_cell_business", "background-color: #fff;"), e.add(".navigator_default_main", "border-left: 1px solid #c0c0c0;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;background-color: white;color: #000000; box-sizing: content-box;"), e.add(".navigator_default_main *, .navigator_default_main *:before, .navigator_default_main *:after", "box-sizing: content-box;"), e.add(".navigator_default_month", "font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 12px;"), e.add(".navigator_default_day", "color: black;"), e.add(".navigator_default_weekend", "background-color: #f0f0f0;"), e.add(".navigator_default_dayheader", "color: black;"), e.add(".navigator_default_line", "border-bottom: 1px solid #c0c0c0;"), e.add(".navigator_default_dayother", "color: gray;"), e.add(".navigator_default_todaybox", "border: 1px solid red;"), e.add(".navigator_default_title, .navigator_default_titleleft, .navigator_default_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), e.add(".navigator_default_busy", "font-weight: bold;"), e.add(".navigator_default_cell", "text-align: center;"), e.add(".navigator_default_select .navigator_default_cell_box", "background-color: #FFE794; opacity: 0.5;"), e.add(".navigator_default_title", "text-align: center;"), e.add(".navigator_default_titleleft, .navigator_default_titleright", "text-align: center;"), e.add(".navigator_default_dayheader", "text-align: center;"), e.add(".navigator_default_weeknumber", "text-align: center; color: #999;"), e.add(".navigator_default_cell_text", "cursor: pointer;"), e.add(".month_default_main", "border: 1px solid #c0c0c0;font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px;color: #333;"), e.add(".month_default_main *, .month_default_main *:before, .month_default_main *:after", "box-sizing: content-box;"), e.add(".month_default_cell_inner", "border-right: 1px solid #ddd;border-bottom: 1px solid #ddd;position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;background-color: #f9f9f9;"), e.add(".month_default_cell_business .month_default_cell_inner", "background-color: #fff;"), e.add(".month_default_cell_header", "text-align: right; padding: 4px; box-sizing: border-box;"), e.add(".month_default_header_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;cursor: default;color: #333;background: #f3f3f3; overflow:hidden; display: flex; align-items: center; justify-content: center;"), e.add(".month_default_message", "padding: 10px;opacity: 0.9; color: #ffffff;background: #ffa216;"), e.add(".month_default_event_inner", "position: absolute;top: 0px;bottom: 0px;left: 1px;right: 1px;overflow:hidden;padding: 2px;padding-left: 10px;color: #333;background: #fff;background: linear-gradient(to bottom, #ffffff 0%, #eeeeee);border: 1px solid #999;border-radius: 0px;display: flex; align-items: center; font-size: 13px;"), e.add(".month_default_event_continueright .month_default_event_inner", "border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-right-style: dotted;"), e.add(".month_default_event_continueleft .month_default_event_inner", "border-top-left-radius: 0px;border-bottom-left-radius: 0px;border-left-style: dotted;"), e.add(".month_default_event_bar", "top: 0px;bottom: 0px;left: 0px;width: 6px;"), e.add(".month_default_event_bar_inner", "position: absolute;width: 6px;background-color: #1066a8;"), e.add(".month_default_event_continueleft .month_default_event_bar", "display: none;"), e.add(".month_default_selected .month_default_event_inner", "background: #ddd;"), e.add(".month_default_event_delete", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAACprHcmAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAI5JREFUKFNtkLERgCAMRbmzdK8s4gAUlhYOYEHJEJYOYOEwDmGBPxC4kOPfvePy84MGR0RJ2N1A8H3N6DATwSQ57m2ql8NBG+AEM7D+UW+wjdfUPgerYNgB5gOLRHqhcasg84C2QxPMtrUhSqQIhg7ypy9VM2EUZPI/4rQ7rGxqo9sadTegw+UdjeDLAKUfhbaQUVPIfJYAAAAASUVORK5CYII=) center center no-repeat; opacity: 0.6; cursor: pointer;"), e.add(".month_default_event_delete:hover", "opacity: 1;-ms-filter: none;"), e.add(".month_default_event_timeleft", "color: #ccc; font-size: 8pt"), e.add(".month_default_event_timeright", "color: #ccc; font-size: 8pt; text-align: right;"), e.add(".month_default_loading", "background-color: orange; color: white; padding: 2px;"), e.add(".month_default_shadow_inner", "box-sizing: border-box; background-color: #bbbbbb;border: 1px solid #888888;opacity: 0.5;height: 100%;"), e.add(".month_default_shadow", "box-shadow: 0 2px 5px rgba(0,0,0,.2);"), e.commit(), DayPilot.Global.defaultCss = !0;
228
+ e.add(".calendar_default_main", "border: 1px solid #c0c0c0; font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px;"), e.add(".calendar_default_main *, .calendar_default_main *:before, .calendar_default_main *:after", "box-sizing: content-box;"), e.add(".calendar_default_rowheader_inner,.calendar_default_cornerright_inner,.calendar_default_corner_inner,.calendar_default_colheader_inner,.calendar_default_alldayheader_inner", "color: #333;background: #f3f3f3;"), e.add(".calendar_default_cornerright_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;\tborder-bottom: 1px solid #c0c0c0;"), e.add(".calendar_default_direction_rtl .calendar_default_cornerright_inner", "border-right: 1px solid #c0c0c0;"), e.add(".calendar_default_rowheader_inner", "font-size: 16pt;text-align: right; position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0; padding: 3px;"), e.add(".calendar_default_direction_rtl .calendar_default_rowheader_inner", "border-right: none;"), e.add(".calendar_default_corner_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;"), e.add(".calendar_default_direction_rtl .calendar_default_corner_inner", "border-right: none;"), e.add(".calendar_default_rowheader_minutes", "font-size:10px;vertical-align: super;padding-left: 2px;padding-right: 2px;"), e.add(".calendar_default_colheader_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0; display: flex; align-items: center; justify-content: center; font-size: 13px;"), e.add(".calendar_default_cell_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #ddd;border-bottom: 1px solid #ddd; background: #f9f9f9;"), e.add(".calendar_default_cell_business .calendar_default_cell_inner", "background: #fff"), e.add(".calendar_default_alldayheader_inner", "text-align: center;position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;"), e.add(".calendar_default_message", "opacity: 0.9; padding: 10px; color: #ffffff;background: #ffa216;"), e.add(".calendar_default_alldayevent_inner,.calendar_default_event_inner", "color: #333; border: 1px solid #999;"), e.add(".calendar_default_event_bar", "top: 0px;bottom: 0px;left: 0px;width: 6px;background-color: #9dc8e8;"), e.add(".calendar_default_event_bar_inner", "position: absolute;width: 6px;background-color: #1066a8;"), e.add(".calendar_default_alldayevent_inner,.calendar_default_event_inner", 'background: #fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".calendar_default_selected .calendar_default_event_inner", "background: #ddd;"), e.add(".calendar_default_alldayevent_inner", "position: absolute;top: 2px;bottom: 2px;left: 2px;right: 2px;overflow:hidden;padding: 2px;margin-right: 1px; font-size: 13px;"), e.add(".calendar_default_event_withheader .calendar_default_event_inner", "padding-top: 15px;"), e.add(".calendar_default_event", "cursor: default;"), e.add(".calendar_default_event_inner", "position: absolute;overflow: hidden;top: 0px;bottom: 0px;left: 0px;right: 0px;padding: 2px 2px 2px 8px; font-size: 13px;"), e.add(".calendar_default_event_delete", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAACprHcmAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAI5JREFUKFNtkLERgCAMRbmzdK8s4gAUlhYOYEHJEJYOYOEwDmGBPxC4kOPfvePy84MGR0RJ2N1A8H3N6DATwSQ57m2ql8NBG+AEM7D+UW+wjdfUPgerYNgB5gOLRHqhcasg84C2QxPMtrUhSqQIhg7ypy9VM2EUZPI/4rQ7rGxqo9sadTegw+UdjeDLAKUfhbaQUVPIfJYAAAAASUVORK5CYII=) center center no-repeat; opacity: 0.6; cursor: pointer;"), e.add(".calendar_default_event_delete:hover", "opacity: 1;-ms-filter: none;"), e.add(".calendar_default_scroll_up", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAB3RJTUUH2wESDiYcrhwCiQAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAARnQU1BAACxjwv8YQUAAACcSURBVHjaY2AgF9wWsTW6yGMlhi7OhC7AyMDQzMnBXIpFHAFuCtuaMTP+P8nA8P/b1x//FfW/HHuF1UQmxv+NUP1c3OxMVVhNvCVi683E8H8LXOY/w9+fTH81tF8fv4NiIpBRj+YoZtZ/LDUoJmKYhsVUpv0MDiyMDP96sIYV0FS2/8z9ICaLlOhvS4b/jC//MzC8xBG0vJeF7GQBlK0xdiUzCtsAAAAASUVORK5CYII=);"), e.add(".calendar_default_scroll_down", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAALiMAAC4jAXilP3YAAACqSURBVChTY7wpam3L9J+xmQEP+PGPKZZxP4MDi4zI78uMDIwa2NT+Z2DYovrmiC+TI8OBP/8ZmEqwGvif4e8vxr+FIDkmEKH25vBWBgbG0+iK/zEwLtF+ffwOXCGI8Y+BoRFFIdC030x/WmBiYBNhpgLdswNJ8RSYaSgmgk39z1gPUfj/29ef/9rwhQTDHRHbrbdEbLvRFcGthkkAra/9/uMvhkK8piNLAgCRpTnNn4AEmAAAAABJRU5ErkJggg==);"), e.add(".calendar_default_now", "background-color: red;"), e.add(".calendar_default_now:before", "content: ''; top: -5px; border-width: 5px; border-color: transparent transparent transparent red; border-style: solid; width: 0px; height:0px; position: absolute; -moz-transform: scale(.9999);"), e.add(".calendar_default_shadow_top", 'box-sizing: border-box; padding:2px;border:1px solid #ccc;background:#fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".calendar_default_shadow_bottom", 'box-sizing: border-box; padding:2px;border:1px solid #ccc;background:#fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".calendar_default_crosshair_vertical, .calendar_default_crosshair_horizontal, .calendar_default_crosshair_left, .calendar_default_crosshair_top", "background-color: gray; opacity: 0.2;"), e.add(".calendar_default_loading", "background-color: orange; color: white; padding: 2px;"), e.add(".calendar_default_scroll", "background-color: #f3f3f3;"), e.add(".calendar_default_event_moving_source", "opacity: 0.5;"), e.add(".calendar_default_shadow_inner", "box-sizing: border-box; background-color: #bbbbbb;border: 1px solid #888888;opacity: 0.5;height: 100%;"), e.add(".calendar_default_shadow", "box-shadow: 0 2px 5px rgba(0,0,0,.2);"), e.add(".menu_default_main", "user-select:none; font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;font-size: 13px;border: 1px solid #dddddd;background-color: white;padding: 0px;cursor: default;background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAABCAIAAABG0om7AAAAKXRFWHRDcmVhdGlvbiBUaW1lAHBvIDEwIDUgMjAxMCAyMjozMzo1OSArMDEwMGzy7+IAAAAHdElNRQfaBQoUJAesj4VUAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAABGdBTUEAALGPC/xhBQAAABVJREFUeNpj/P//PwO1weMnT2RlZAAYuwX/4oA3BgAAAABJRU5ErkJggg==);background-repeat: repeat-y;xborder-radius: 5px;-moz-box-shadow:0px 2px 3px rgba(000,000,000,0.3),inset 0px 0px 2px rgba(255,255,255,0.8);-webkit-box-shadow:0px 2px 3px rgba(000,000,000,0.3),inset 0px 0px 2px rgba(255,255,255,0.8);box-shadow:0px 2px 3px rgba(000,000,000,0.3),inset 0px 0px 2px rgba(255,255,255,0.8);"), e.add(".menu_default_main, .menu_default_main *, .menu_default_main *:before, .menu_default_main *:after", "box-sizing: content-box;"), e.add(".menu_default_title", "background-color: #f2f2f2;border-bottom: 1px solid gray;padding: 4px 4px 4px 37px;"), e.add(".menu_default_main a", "padding: 2px 2px 2px 35px;color: black;text-decoration: none;cursor: default;"), e.add(".menu_default_main.menu_default_withchildren a", "padding: 2px 35px 2px 35px;"), e.add(".menu_default_main a img", "margin-left: 6px;margin-top: 2px;"), e.add(".menu_default_item_text", "display: block;height: 20px;line-height: 20px; overflow:hidden;padding-left: 2px;padding-right: 20px; white-space: nowrap;"), e.add(".menu_default_main a:hover", "background-color: #f3f3f3;"), e.add(".menu_default_main div div", "border-top: 1px solid #dddddd;margin-top: 2px;margin-bottom: 2px;margin-left: 28px;"), e.add(".menu_default_main a.menu_default_item_disabled", "color: #ccc"), e.add(".menu_default_item_haschildren.menu_default_item_haschildren_active", "background-color: #f3f3f3;"), e.add(".menu_default_item_haschildren a:before", "content: ''; border-width: 5px; border-color: transparent transparent transparent #666; border-style: solid; width: 0px; height:0px; position: absolute; right: 5px; margin-top: 5px;"), e.add(".menu_default_item_icon", "position: absolute; top:0px; left: 0px; padding: 2px 2px 2px 8px;"), e.add(".menu_default_item a i", "height: 20px;line-height: 20px;"), e.add(".menu_default_item .menu_default_item_symbol", "width: 18px; height: 18px; color: #999; margin-left: 6px;margin-top: 2px;"), e.add(".menubar_default_main", "border-bottom: 1px solid #ccc; font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px; user-select:none;"), e.add(".menubar_default_item", "display: inline-block; padding: 6px 10px; cursor: default;"), e.add(".menubar_default_item:hover", "background-color: #f2f2f2;"), e.add(".menubar_default_item_active", "background-color: #f2f2f2;"), e.add(".scheduler_default_selected .scheduler_default_event_inner", "background: #ddd;"), e.add(".scheduler_default_main", "border: 1px solid #c0c0c0;font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px;"), e.add(".scheduler_default_timeheader", "cursor: default;color: #333;"), e.add(".scheduler_default_message", "opacity: 0.9;filter: alpha(opacity=90);padding: 10px; color: #ffffff;background: #ffa216;"), e.add(".scheduler_default_timeheadergroup,.scheduler_default_timeheadercol", "color: #333;background: #f3f3f3;"), e.add(".scheduler_default_rowheader,.scheduler_default_corner", "color: #333;background: #f3f3f3;"), e.add(".scheduler_default_rowheader_inner", "position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #eee;padding: 2px;"), e.add(".scheduler_default_timeheadergroup, .scheduler_default_timeheadercol", "text-align: center;"), e.add(".scheduler_default_timeheadergroup_inner", "position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;"), e.add(".scheduler_default_timeheadercol_inner", "position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #c0c0c0;"), e.add(".scheduler_default_divider", "background-color: #c0c0c0;"), e.add(".scheduler_default_divider_horizontal", "background-color: #c0c0c0;"), e.add(".scheduler_default_matrix_vertical_line", "background-color: #eee;"), e.add(".scheduler_default_matrix_vertical_break", "background-color: #000;"), e.add(".scheduler_default_matrix_horizontal_line", "background-color: #eee;"), e.add(".scheduler_default_resourcedivider", "background-color: #c0c0c0;"), e.add(".scheduler_default_shadow_inner", "background-color: #666666;opacity: 0.5;filter: alpha(opacity=50);height: 100%;xborder-radius: 5px;"), e.add(".scheduler_default_event", "color:#333; font-size: 13px;"), e.add(".scheduler_default_event_inner", "position:absolute;top:0px;left:0px;right:0px;bottom:0px;padding:5px 2px 2px 2px;overflow:hidden;border:1px solid #ccc;"), e.add(".scheduler_default_event_bar", "top:0px;left:0px;right:0px;height:4px;background-color:#9dc8e8;"), e.add(".scheduler_default_event_bar_inner", "position:absolute;height:4px;background-color:#1066a8;"), e.add(".scheduler_default_event_inner", 'background:#fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".scheduler_default_event_float_inner", "padding:6px 2px 2px 8px;"), e.add(".scheduler_default_event_float_inner:after", 'content:"";border-color: transparent #666 transparent transparent;border-style:solid;border-width:5px;width:0;height:0;position:absolute;top:8px;left:-4px;'), e.add(".scheduler_default_columnheader_inner", "font-weight: bold;"), e.add(".scheduler_default_columnheader_splitter", "background-color: #666;opacity: 0.5;filter: alpha(opacity=50);"), e.add(".scheduler_default_columnheader_cell_inner", "padding: 2px;"), e.add(".scheduler_default_cell", "background-color: #f9f9f9;"), e.add(".scheduler_default_cell.scheduler_default_cell_business", "background-color: #fff;"), e.add(".navigator_default_main", "border-left: 1px solid #c0c0c0;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;background-color: white;color: #000000; box-sizing: content-box;"), e.add(".navigator_default_main *, .navigator_default_main *:before, .navigator_default_main *:after", "box-sizing: content-box;"), e.add(".navigator_default_month", "font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 12px;"), e.add(".navigator_default_day", "color: black;"), e.add(".navigator_default_weekend", "background-color: #f0f0f0;"), e.add(".navigator_default_dayheader", "color: black;"), e.add(".navigator_default_line", "border-bottom: 1px solid #c0c0c0;"), e.add(".navigator_default_dayother", "color: gray;"), e.add(".navigator_default_todaybox", "border: 1px solid red;"), e.add(".navigator_default_title, .navigator_default_titleleft, .navigator_default_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), e.add(".navigator_default_busy", "font-weight: bold;"), e.add(".navigator_default_cell", "text-align: center;"), e.add(".navigator_default_select .navigator_default_cell_box", "background-color: #FFE794; opacity: 0.5;"), e.add(".navigator_default_title", "text-align: center;"), e.add(".navigator_default_titleleft, .navigator_default_titleright", "text-align: center;"), e.add(".navigator_default_dayheader", "text-align: center;"), e.add(".navigator_default_weeknumber", "text-align: center; color: #999;"), e.add(".navigator_default_cell_text", "cursor: pointer;"), e.add(".month_default_main", "border: 1px solid #c0c0c0;font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px;color: #333;"), e.add(".month_default_main *, .month_default_main *:before, .month_default_main *:after", "box-sizing: content-box;"), e.add(".month_default_cell_inner", "border-right: 1px solid #ddd;border-bottom: 1px solid #ddd;position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;background-color: #f9f9f9;"), e.add(".month_default_cell_business .month_default_cell_inner", "background-color: #fff;"), e.add(".month_default_cell_header", "text-align: right; padding: 4px; box-sizing: border-box;"), e.add(".month_default_header_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;cursor: default;color: #333;background: #f3f3f3; overflow:hidden; display: flex; align-items: center; justify-content: center;"), e.add(".month_default_message", "padding: 10px;opacity: 0.9; color: #ffffff;background: #ffa216;"), e.add(".month_default_event_inner", "position: absolute;top: 0px;bottom: 0px;left: 1px;right: 1px;overflow:hidden;padding: 2px;padding-left: 10px;color: #333;background: #fff;background: linear-gradient(to bottom, #ffffff 0%, #eeeeee);border: 1px solid #999;border-radius: 0px;display: flex; align-items: center; font-size: 13px;"), e.add(".month_default_event_continueright .month_default_event_inner", "border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-right-style: dotted;"), e.add(".month_default_event_continueleft .month_default_event_inner", "border-top-left-radius: 0px;border-bottom-left-radius: 0px;border-left-style: dotted;"), e.add(".month_default_event_bar", "top: 1px;bottom: 1px;left: 2px;width: 6px;"), e.add(".month_default_event_bar_inner", "position: absolute;width: 6px;background-color: #1066a8;"), e.add(".month_default_event_continueleft .month_default_event_bar", "display: none;"), e.add(".month_default_selected .month_default_event_inner", "background: #ddd;"), e.add(".month_default_event_delete", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAACprHcmAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAI5JREFUKFNtkLERgCAMRbmzdK8s4gAUlhYOYEHJEJYOYOEwDmGBPxC4kOPfvePy84MGR0RJ2N1A8H3N6DATwSQ57m2ql8NBG+AEM7D+UW+wjdfUPgerYNgB5gOLRHqhcasg84C2QxPMtrUhSqQIhg7ypy9VM2EUZPI/4rQ7rGxqo9sadTegw+UdjeDLAKUfhbaQUVPIfJYAAAAASUVORK5CYII=) center center no-repeat; opacity: 0.6; cursor: pointer;"), e.add(".month_default_event_delete:hover", "opacity: 1;-ms-filter: none;"), e.add(".month_default_event_timeleft", "color: #ccc; font-size: 8pt"), e.add(".month_default_event_timeright", "color: #ccc; font-size: 8pt; text-align: right;"), e.add(".month_default_loading", "background-color: orange; color: white; padding: 2px;"), e.add(".month_default_shadow_inner", "box-sizing: border-box; background-color: #bbbbbb;border: 1px solid #888888;opacity: 0.5;height: 100%;"), e.add(".month_default_shadow", "box-shadow: 0 2px 5px rgba(0,0,0,.2);"), e.commit(), DayPilot.Global.defaultCss = !0;
229
229
  }
230
230
  }(), DayPilot.doc = function () { var e = document.documentElement; return e && e.clientHeight ? e : document.body; }, DayPilot.guid = function () { var e = function () { return (65536 * (1 + Math.random()) | 0).toString(16).substring(1); }; return "" + e() + e() + "-" + e() + "-" + e() + "-" + e() + "-" + e() + e() + e(); }, DayPilot.pageOffset = function () {
231
231
  if ("undefined" != typeof pageXOffset)
@@ -322,7 +322,7 @@ if (function () {
322
322
  a.key = i, a.val = e[i], t.push(a);
323
323
  }
324
324
  return t;
325
- }, DayPilot.Util.replaceCharAt = function (e, t, i) { return e.substr(0, t) + i + e.substr(t + i.length); }, DayPilot.Util.isNullOrUndefined = function (e) { return null === e || "undefined" == typeof e; }, DayPilot.Util.escapeHtml = function (e) { var t = document.createElement("div"); return t.innerText = e, t.innerHTML; }, DayPilot.Util.escapeTextHtml = function (e, t) { return DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : DayPilot.Util.escapeHtml(e) : t; }, DayPilot.Util.overlaps = function (e, t, i, a) { return !(t <= i || e >= a); }, DayPilot.Areas = {}, DayPilot.Areas.attach = function (e, t, i) {
325
+ }, DayPilot.Util.replaceCharAt = function (e, t, i) { return e.substr(0, t) + i + e.substr(t + i.length); }, DayPilot.Util.isNullOrUndefined = function (e) { return null === e || "undefined" == typeof e; }, DayPilot.Util.escapeHtml = function (e) { var t = document.createElement("div"); return t.innerText = e, t.innerHTML; }, DayPilot.Util.escapeTextHtml = function (e, t) { return DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : DayPilot.Util.escapeHtml(e) : t; }, DayPilot.Util.overlaps = function (e, t, i, a) { return !(t <= i || e >= a); }, DayPilot.Util.isVueVNode = function (e) { return !!e && (DayPilot.isArray(e) ? DayPilot.Util.isVueVNode(e[0]) : e["__v_isVNode"]); }, DayPilot.Areas = {}, DayPilot.Areas.attach = function (e, t, i) {
326
326
  var i = i || {}, n = i.areas, o = i.allowed || function () { return !0; }, r = i.offsetX || 0;
327
327
  n = a(t, n), n && DayPilot.isArray(n) && 0 !== n.length && (DayPilot.re(e, "mousemove", function (a) { e.active || e.areasDisabled || !o() || DayPilot.Areas.showAreas(e, t, a, n, { "offsetX": r, "eventDiv": i.eventDiv }); }), DayPilot.re(e, "mouseleave", function (t) { DayPilot.Areas.hideAreas(e, t); }), n.forEach(function (a) {
328
328
  if (DayPilot.Areas.isVisible(a)) {
@@ -357,9 +357,9 @@ if (function () {
357
357
  function r(e, t, i, a) {
358
358
  DayPilot.Menu && DayPilot.Menu.touchPosition(a);
359
359
  var n = i.contextMenu || i.menu;
360
- if (n instanceof DayPilot.Menu || (t.isEvent && t.client.contextMenu() ? n = t.client.contextMenu() : t.isEvent && t.calendar.contextMenu && (n = t.calendar.contextMenu)), n && n.show) {
361
- var o = { "type": "area", "div": e, "e": t, "area": i,
362
- "a": d };
360
+ if (n instanceof DayPilot.Menu || (t.isEvent && t.client.contextMenu() ? n = t.client.contextMenu() : t.isEvent && t.calendar.contextMenu && (n = t.calendar.contextMenu)),
361
+ n && n.show) {
362
+ var o = { "type": "area", "div": e, "e": t, "area": i, "a": d };
363
363
  n.show(t, { "initiator": o });
364
364
  }
365
365
  }
@@ -367,7 +367,7 @@ if (function () {
367
367
  var a = a || {}, l = (a.offsetX || 0, a.eventDiv || e), d = document.createElement("div");
368
368
  d.isActiveArea = !0, d.area = i, d.setAttribute("unselectable", "on");
369
369
  var c = i.w || i.width, u = i.h || i.height, h = i.cssClass || i.css || i.className;
370
- if ("undefined" != typeof i.style && d.setAttribute("style", i.style), d.style.position = "absolute", d.style.width = s(c), d.style.height = s(u), d.style.right = s(i.right), d.style.top = s(i.top), d.style.left = s(i.left), d.style.bottom = s(i.bottom), "undefined" != typeof i.html || "undefined" != typeof i.text)
370
+ if ("undefined" != typeof i.style && d.setAttribute("style", i.style), d.style.position = "absolute", d.style.width = s(c), d.style.height = s(u), d.style.right = s(i.right), d.style.top = s(i.top), d.style.left = s(i.left), d.style.bottom = s(i.bottom), d.style.borderRadius = s(i.borderRadius), "undefined" != typeof i.html || "undefined" != typeof i.text)
371
371
  d.innerHTML = DayPilot.Util.escapeTextHtml(i.text, i.html);
372
372
  else if (i.icon) {
373
373
  var f = document.createElement("i");
@@ -579,8 +579,7 @@ if (function () {
579
579
  var a, n;
580
580
  if (e.B)
581
581
  n = e, a = n.D;
582
- else if (a = e.n ? e : this.A(e),
583
- this.k === a)
582
+ else if (a = e.n ? e : this.A(e), this.k === a)
584
583
  return;
585
584
  if (i.onSelect) {
586
585
  var o = {};
@@ -986,27 +985,31 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
986
985
  }
987
986
  else
988
987
  t.selecting = !1;
989
- }, t.deleteShadow = function (e) { e && e.parentNode && e.parentNode.removeChild(e); }, t.moveShadow = function (e) { var i = t.movingShadow, a = i.parentNode; a.style.display = "none", i.parentNode.removeChild(i), e.firstChild.appendChild(i), i.style.left = "0px", a.style.display = "", i.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px"; }, t.Calendar = function (e, i) {
990
- var a = !1;
991
- if (this instanceof t.Calendar && !this.N && (a = !0, this.N = !0), !a)
988
+ }, t.deleteShadow = function (e) { e && e.parentNode && e.parentNode.removeChild(e); }, t.moveShadow = function (e) { var i = t.movingShadow, a = i.parentNode; a.style.display = "none", i.parentNode.removeChild(i), e.firstChild.appendChild(i), i.style.left = "0px", a.style.display = "", i.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px"; };
989
+ var i = DayPilot.Util.isVueVNode, a = DayPilot.Util.overlaps;
990
+ t.Calendar = function (e, n) {
991
+ var o = !1;
992
+ if (this instanceof t.Calendar && !this.N && (o = !0, this.N = !0), !o)
992
993
  throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
993
- var n = this;
994
- this.uniqueID = null, this.isCalendar = !0, this.v = "2024.4.566-lite", this.id = e, this.clientName = e, this.cache = {}, this.cache.pixels = {}, this.elements = {}, this.elements.events = [], this.elements.selection = [], this.nav = {}, this.afterRender = function () { }, this.fasterDispose = !0, this.angularAutoApply = !1, this.api = 2, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.cellHeight = 30, this.columnMarginLeft = 0, this.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.contextMenu = null, this.days = 1, this.durationBarVisible = !0, this.eventsLoadMethod = "GET", this.headerDateFormat = null, this.headerHeight = 30, this.headerTextWrappingEnabled = !1, this.height = 300, this.heightSpec = "BusinessHours", this.hideUntilInit = !0, this.hourWidth = 60, this.initScrollPos = "Auto", this.loadingLabelHtml = null, this.loadingLabelText = "Loading...", this.loadingLabelVisible = !0, this.locale = "en-us", this.showToolTip = !0, this.startDate = (new DayPilot.Date).getDatePart(), this.cssClassPrefix = "calendar_default", this.theme = null, this.timeFormat = "Auto", this.viewType = "Days", this.visible = !0, this.xssProtection = "Enabled", this.headerClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.eventMoveHandling = "Update", this.eventDeleteHandling = "Disabled", this.timeRangeSelectedHandling = "Enabled", this.onBeforeCellRender = null, this.onBeforeEventRender = null, this.onBeforeHeaderRender = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onHeaderClick = null, this.onHeaderClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.O = !1, this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.P(); }, this.P = function () { DayPilot.de(n.elements.selection), n.elements.selection = [], n.nav.activeSelection = null; }, this.cleanSelection = this.clearSelection, this.Q = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.R(); var o = "JSON" + DayPilot.JSON.stringify(a); __doPostBack(n.uniqueID, o); }, this.S = function (e, t, i) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.callbackTimeout = window.setTimeout(function () { n.loadingStart(); }, 100); var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.R(); var o = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.T, o, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, o, this.U, this.clientName, this.onCallbackError, !0); }, this.onCallbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.dispose = function () { var e = n; e.O || (e.O = !0, clearInterval(e.V), e.W(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.X(), e.Y(), e.nav.select = null, e.nav.cornerRight = null, e.nav.scrollable = null, e.nav.zoom = null, e.nav.loading = null, e.nav.header = null, e.nav.hourTable = null, e.nav.scrolltop = null, e.nav.scroll.onscroll = null, e.nav.scroll = null, e.nav.main = null, e.nav.message = null, e.nav.messageClose = null, e.nav.top = null, t.unregister(e)); }, this.disposed = function () { return this.O; }, this.Z = function () { this.nav.top.dispose = this.dispose; }, this.T = function (e) { n.U(e.responseText); }, this.R = function () { var e = {}; return e.control = "dpc", e.id = this.id, e.v = this.v, e.days = n.days, e.startDate = n.startDate, e.heightSpec = n.heightSpec, e.businessBeginsHour = n.businessBeginsHour, e.businessEndsHour = n.businessEndsHour, e.hashes = n.hashes, e.timeFormat = n.timeFormat, e.viewType = n.viewType, e.locale = n.locale, e; }, this._ = function (e, t) {
994
+ var r = this;
995
+ this.uniqueID = null, this.isCalendar = !0, this.v = "2024.4.609-lite", this.id = e, this.clientName = e, this.cache = {}, this.cache.pixels = {}, this.elements = {}, this.elements.events = [], this.elements.selection = [], this.nav = {}, this.afterRender = function () { }, this.fasterDispose = !0, this.angularAutoApply = !1, this.api = 2, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.cellHeight = 30, this.columnMarginLeft = 0, this.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.contextMenu = null, this.days = 1, this.durationBarVisible = !0, this.eventBorderRadius = null, this.eventsLoadMethod = "GET", this.headerDateFormat = null, this.headerHeight = 30, this.headerTextWrappingEnabled = !1, this.height = 300, this.heightSpec = "BusinessHours", this.hideUntilInit = !0, this.hourWidth = 60, this.initScrollPos = "Auto", this.loadingLabelHtml = null, this.loadingLabelText = "Loading...", this.loadingLabelVisible = !0, this.locale = "en-us", this.showToolTip = !0, this.startDate = (new DayPilot.Date).getDatePart(), this.cssClassPrefix = "calendar_default", this.theme = null, this.timeFormat = "Auto", this.viewType = "Days", this.visible = !0, this.xssProtection = "Enabled", this.headerClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.eventMoveHandling = "Update", this.eventDeleteHandling = "Disabled", this.timeRangeSelectedHandling = "Enabled", this.onBeforeCellRender = null, this.onBeforeEventRender = null, this.onBeforeHeaderRender = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onHeaderClick = null, this.onHeaderClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.O = !1, this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.P(); }, this.P = function () { DayPilot.de(r.elements.selection), r.elements.selection = [], r.nav.activeSelection = null; }, this.cleanSelection = this.clearSelection, this.Q = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.R(); var n = "JSON" + DayPilot.JSON.stringify(a); __doPostBack(r.uniqueID, n); }, this.S = function (e, t, i) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.callbackTimeout = window.setTimeout(function () { r.loadingStart(); }, 100); var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.R(); var n = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.T, n, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, n, this.U, this.clientName, this.onCallbackError, !0); }, this.onCallbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.dispose = function () { var e = r; e.O || (e.O = !0, clearInterval(e.V), e.W(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.X(), e.Y(), e.nav.select = null, e.nav.cornerRight = null, e.nav.scrollable = null, e.nav.zoom = null, e.nav.loading = null, e.nav.header = null, e.nav.hourTable = null, e.nav.scrolltop = null, e.nav.scroll.onscroll = null, e.nav.scroll = null, e.nav.main = null, e.nav.message = null, e.nav.messageClose = null, e.nav.top = null, t.unregister(e)); }, this.disposed = function () { return this.O; }, this.Z = function () { this.nav.top.dispose = this.dispose; }, this.T = function (e) { r.U(e.responseText); }, this.R = function () { var e = {}; return e.control = "dpc", e.id = this.id, e.v = this.v, e.days = r.days, e.startDate = r.startDate, e.heightSpec = r.heightSpec, e.businessBeginsHour = r.businessBeginsHour, e.businessEndsHour = r.businessEndsHour, e.hashes = r.hashes, e.timeFormat = r.timeFormat, e.viewType = r.viewType, e.locale = r.locale, e; }, this._ = function (e, t) {
995
996
  for (var i = e.parentNode; i && "TD" !== i.tagName;)
996
997
  i = i.parentNode;
997
- var a = document.createElement("div");
998
- a.setAttribute("unselectable", "on"), a.style.position = "absolute", a.style.width = e.offsetWidth + "px", a.style.height = e.offsetHeight + "px", a.style.left = e.offsetLeft + "px", a.style.top = e.offsetTop + "px", a.style.boxSizing = "border-box", a.style.zIndex = 101, a.className = n.K("_shadow");
998
+ var a = r.eventBorderRadius;
999
+ "number" == typeof a && (a += "px");
1000
+ var n = document.createElement("div");
1001
+ n.setAttribute("unselectable", "on"), n.style.position = "absolute", n.style.width = e.offsetWidth + "px",
1002
+ n.style.height = e.offsetHeight + "px", n.style.left = e.offsetLeft + "px", n.style.top = e.offsetTop + "px", n.style.boxSizing = "border-box", n.style.zIndex = 101, n.className = r.K("_shadow");
999
1003
  var o = document.createElement("div");
1000
- return o.className = n.K("_shadow_inner"),
1001
- a.appendChild(o), i.firstChild.appendChild(a), a;
1002
- }, this.aa = {}, this.aa.locale = function () { var e = DayPilot.Locale.find(n.locale); return e ? e : DayPilot.Locale.US; }, this.aa.timeFormat = function () { return "Auto" !== n.timeFormat ? n.timeFormat : this.locale().timeFormat; }, this.aa.ba = function () { return "Disabled" !== n.xssProtection; }, this.aa.ca = function () {
1003
- if ("Auto" === n.weekStarts) {
1004
- var e = o.locale();
1004
+ return o.className = r.K("_shadow_inner"), a && (o.style.borderRadius = a, n.style.borderRadius = a), n.appendChild(o), i.firstChild.appendChild(n), n;
1005
+ }, this.aa = {}, this.aa.locale = function () { var e = DayPilot.Locale.find(r.locale); return e ? e : DayPilot.Locale.US; }, this.aa.timeFormat = function () { return "Auto" !== r.timeFormat ? r.timeFormat : this.locale().timeFormat; }, this.aa.ba = function () { return "Disabled" !== r.xssProtection; }, this.aa.ca = function () {
1006
+ if ("Auto" === r.weekStarts) {
1007
+ var e = s.locale();
1005
1008
  return e ? e.weekStarts : 0;
1006
1009
  }
1007
- return n.weekStarts || 0;
1010
+ return r.weekStarts || 0;
1008
1011
  };
1009
- var o = this.aa;
1012
+ var s = this.aa;
1010
1013
  this.U = function (e, t) {
1011
1014
  if (e && 0 === e.indexOf("$$$")) {
1012
1015
  if (!window.console)
@@ -1017,78 +1020,79 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1017
1020
  if (e.CallBackRedirect)
1018
1021
  return void (document.location.href = e.CallBackRedirect);
1019
1022
  if ("None" === e.UpdateType)
1020
- return n.loadingStop(), void n.t();
1021
- if (n.W(), "Full" === e.UpdateType && (n.columns = e.Columns, n.days = e.Days, n.startDate = new DayPilot.Date(e.StartDate), n.heightSpec = e.HeightSpec ? e.HeightSpec : n.heightSpec, n.businessBeginsHour = e.BusinessBeginsHour ? e.BusinessBeginsHour : n.businessBeginsHour, n.businessEndsHour = e.BusinessEndsHour ? e.BusinessEndsHour : n.businessEndsHour, n.headerDateFormat = e.HeaderDateFormat ? e.HeaderDateFormat : n.headerDateFormat, n.viewType = e.ViewType, n.backColor = e.BackColor ? e.BackColor : n.backColor, n.eventHeaderVisible = e.EventHeaderVisible ? e.EventHeaderVisible : n.eventHeaderVisible, n.timeFormat = e.TimeFormat ? e.TimeFormat : n.timeFormat, n.locale = e.Locale ? e.Locale : n.locale, n.da()), e.Hashes)
1023
+ return r.loadingStop(), void r.t();
1024
+ if (r.W(), "Full" === e.UpdateType && (r.columns = e.Columns, r.days = e.Days, r.startDate = new DayPilot.Date(e.StartDate), r.heightSpec = e.HeightSpec ? e.HeightSpec : r.heightSpec, r.businessBeginsHour = e.BusinessBeginsHour ? e.BusinessBeginsHour : r.businessBeginsHour, r.businessEndsHour = e.BusinessEndsHour ? e.BusinessEndsHour : r.businessEndsHour, r.headerDateFormat = e.HeaderDateFormat ? e.HeaderDateFormat : r.headerDateFormat, r.viewType = e.ViewType, r.backColor = e.BackColor ? e.BackColor : r.backColor, r.eventHeaderVisible = e.EventHeaderVisible ? e.EventHeaderVisible : r.eventHeaderVisible, r.timeFormat = e.TimeFormat ? e.TimeFormat : r.timeFormat, r.locale = e.Locale ? e.Locale : r.locale, r.da()), e.Hashes)
1022
1025
  for (var i in e.Hashes)
1023
- n.hashes[i] = e.Hashes[i];
1024
- n.events.list = e.Events, n.ea(), n.fa(), "Full" === e.UpdateType && (n.ga(), n.ha(), n.ia(), n.ja()), n.t(), n.ka(), n.clearSelection(), n.afterRender(e.CallBackData, !0), n.loadingStop();
1025
- }, this.la = function () { return this.ma() / 36e5; }, this.na = function () { return this.businessBeginsHour > this.businessEndsHour ? 24 - this.businessBeginsHour + this.businessEndsHour : this.businessEndsHour - this.businessBeginsHour; }, this.oa = function () { return this.ma() / 18e5; }, this.ma = function () { var e = 0; return e = "BusinessHoursNoScroll" === this.heightSpec ? this.na() : 24, 60 * e * 60 * 1e3; }, this.pa = function () { return "BusinessHoursNoScroll" === this.heightSpec ? this.businessBeginsHour : 0; }, this.qa = function () { return 2 === n.api; }, this.eventClickCallBack = function (e, t) { this.S("EventClick", t, e); }, this.eventClickPostBack = function (e, t) { this.Q("EventClick", t, e); }, this.ra = function (e) {
1026
+ r.hashes[i] = e.Hashes[i];
1027
+ r.events.list = e.Events, r.ea(), r.fa(), "Full" === e.UpdateType && (r.ga(), r.ha(), r.ia(), r.ja()), r.t(), r.ka(), r.clearSelection(), r.afterRender(e.CallBackData, !0), r.loadingStop();
1028
+ }, this.la = function () { return this.ma() / 36e5; }, this.na = function () { return this.businessBeginsHour > this.businessEndsHour ? 24 - this.businessBeginsHour + this.businessEndsHour : this.businessEndsHour - this.businessBeginsHour; }, this.oa = function () { return this.ma() / 18e5; }, this.ma = function () { var e = 0; return e = "BusinessHoursNoScroll" === this.heightSpec ? this.na() : 24, 60 * e * 60 * 1e3; }, this.pa = function () { return "BusinessHoursNoScroll" === this.heightSpec ? this.businessBeginsHour : 0; }, this.qa = function () { return 2 === r.api; }, this.eventClickCallBack = function (e, t) { this.S("EventClick", t, e); }, this.eventClickPostBack = function (e, t) { this.Q("EventClick", t, e); }, this.ra = function (e) {
1026
1029
  var t = this, i = t.event;
1027
- if (n.qa()) {
1028
- var a = {};
1029
- if (a.e = i, a.originalEvent = e, a.meta = e.metaKey, a.ctrl = e.ctrlKey, a.control = n, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventClick && (n.sa.apply(function () { n.onEventClick(a); }), a.preventDefault.value))
1030
- return;
1031
- switch (n.eventClickHandling) {
1032
- case "CallBack":
1033
- n.eventClickCallBack(i);
1034
- break;
1035
- case "PostBack":
1036
- n.eventClickPostBack(i);
1037
- break;
1038
- case "ContextMenu":
1039
- var o = i.client.contextMenu();
1040
- o ? o.show(i) : n.contextMenu && n.contextMenu.show(i);
1041
- }
1042
- "function" == typeof n.onEventClicked && n.sa.apply(function () { n.onEventClicked(a); });
1043
- }
1044
- else
1045
- switch (n.eventClickHandling) {
1046
- case "PostBack":
1047
- n.eventClickPostBack(i);
1048
- break;
1049
- case "CallBack":
1050
- n.eventClickCallBack(i);
1051
- break;
1052
- case "JavaScript": n.onEventClick(i);
1030
+ if (i.client.clickEnabled())
1031
+ if (r.qa()) {
1032
+ var a = {};
1033
+ if (a.e = i, a.originalEvent = e, a.meta = e.metaKey, a.ctrl = e.ctrlKey, a.control = r, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onEventClick && (r.sa.apply(function () { r.onEventClick(a); }), a.preventDefault.value))
1034
+ return;
1035
+ switch (r.eventClickHandling) {
1036
+ case "CallBack":
1037
+ r.eventClickCallBack(i);
1038
+ break;
1039
+ case "PostBack":
1040
+ r.eventClickPostBack(i);
1041
+ break;
1042
+ case "ContextMenu":
1043
+ var n = i.client.contextMenu();
1044
+ n ? n.show(i) : r.contextMenu && r.contextMenu.show(i);
1045
+ }
1046
+ "function" == typeof r.onEventClicked && r.sa.apply(function () { r.onEventClicked(a); });
1053
1047
  }
1048
+ else
1049
+ switch (r.eventClickHandling) {
1050
+ case "PostBack":
1051
+ r.eventClickPostBack(i);
1052
+ break;
1053
+ case "CallBack":
1054
+ r.eventClickCallBack(i);
1055
+ break;
1056
+ case "JavaScript": r.onEventClick(i);
1057
+ }
1054
1058
  }, this.ta = function (e) {
1055
1059
  var t = this.event;
1056
1060
  if (e.stopPropagation && e.stopPropagation(), !t.client.rightClickEnabled())
1057
1061
  return !1;
1058
1062
  var i = {};
1059
- if (i.e = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventRightClick && (n.onEventRightClick(i), i.preventDefault.value))
1063
+ if (i.e = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onEventRightClick && (r.onEventRightClick(i), i.preventDefault.value))
1060
1064
  return !1;
1061
- switch (n.eventRightClickHandling) {
1065
+ switch (r.eventRightClickHandling) {
1062
1066
  case "ContextMenu":
1063
1067
  var a = t.client.contextMenu();
1064
- a ? a.show(t) : n.contextMenu && n.contextMenu.show(this.event);
1068
+ a ? a.show(t) : r.contextMenu && r.contextMenu.show(this.event);
1065
1069
  }
1066
- return "function" == typeof n.onEventRightClicked && n.onEventRightClicked(i), e.preventDefault && e.preventDefault(), !1;
1070
+ return "function" == typeof r.onEventRightClicked && r.onEventRightClicked(i), e.preventDefault && e.preventDefault(), !1;
1067
1071
  }, this.eventDeleteCallBack = function (e, t) { this.S("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.Q("EventDelete", t, e); }, this.ua = function (e) {
1068
- if (n.qa()) {
1072
+ if (r.qa()) {
1069
1073
  var t = {};
1070
- if (t.e = e, t.control = n, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventDelete && (n.sa.apply(function () { n.onEventDelete(t); }), t.preventDefault.value))
1074
+ if (t.e = e, t.control = r, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onEventDelete && (r.sa.apply(function () { r.onEventDelete(t); }), t.preventDefault.value))
1071
1075
  return;
1072
- switch (n.eventDeleteHandling) {
1076
+ switch (r.eventDeleteHandling) {
1073
1077
  case "CallBack":
1074
- n.eventDeleteCallBack(e);
1078
+ r.eventDeleteCallBack(e);
1075
1079
  break;
1076
1080
  case "PostBack":
1077
- n.eventDeletePostBack(e);
1081
+ r.eventDeletePostBack(e);
1078
1082
  break;
1079
- case "Update": n.events.remove(e);
1083
+ case "Update": r.events.remove(e);
1080
1084
  }
1081
- "function" == typeof n.onEventDeleted && n.sa.apply(function () { n.onEventDeleted(t); });
1085
+ "function" == typeof r.onEventDeleted && r.sa.apply(function () { r.onEventDeleted(t); });
1082
1086
  }
1083
1087
  else
1084
- switch (n.eventDeleteHandling) {
1088
+ switch (r.eventDeleteHandling) {
1085
1089
  case "PostBack":
1086
- n.eventDeletePostBack(e);
1090
+ r.eventDeletePostBack(e);
1087
1091
  break;
1088
1092
  case "CallBack":
1089
- n.eventDeleteCallBack(e);
1093
+ r.eventDeleteCallBack(e);
1090
1094
  break;
1091
- case "JavaScript": n.onEventDelete(e);
1095
+ case "JavaScript": r.onEventDelete(e);
1092
1096
  }
1093
1097
  }, this.eventResizeCallBack = function (e, t, i, a) {
1094
1098
  if (!t)
@@ -1105,39 +1109,39 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1105
1109
  var n = {};
1106
1110
  n.e = e, n.newStart = t, n.newEnd = i, this.Q("EventResize", a, n);
1107
1111
  }, this.J = function (e, t, i, a) {
1108
- var o = 1, r = new Date, s = new Date, l = e.start(), d = e.end();
1112
+ var n = 1, o = new Date, s = new Date, l = e.start(), d = e.end();
1109
1113
  if ("top" === a) {
1110
- var c = l.getDatePart(), u = Math.floor((i - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.pa() * 60 * 1e3;
1111
- r = c.addTime(f + m), s = e.end();
1114
+ var c = l.getDatePart(), u = Math.floor((i - n) / r.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * r.pa() * 60 * 1e3;
1115
+ o = c.addTime(f + m), s = e.end();
1112
1116
  }
1113
1117
  else if ("bottom" === a) {
1114
- var c = d.getDatePart(), u = Math.floor((i + t - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.pa() * 60 * 1e3;
1115
- r = l, s = c.addTime(f + m);
1118
+ var c = d.getDatePart(), u = Math.floor((i + t - n) / r.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * r.pa() * 60 * 1e3;
1119
+ o = l, s = c.addTime(f + m);
1116
1120
  }
1117
- if (n.qa()) {
1121
+ if (r.qa()) {
1118
1122
  var p = {};
1119
- if (p.e = e, p.control = n, p.newStart = r, p.newEnd = s, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventResize && (n.sa.apply(function () { n.onEventResize(p); }), p.preventDefault.value))
1123
+ if (p.e = e, p.control = r, p.newStart = o, p.newEnd = s, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onEventResize && (r.sa.apply(function () { r.onEventResize(p); }), p.preventDefault.value))
1120
1124
  return;
1121
- switch (n.eventResizeHandling) {
1125
+ switch (r.eventResizeHandling) {
1122
1126
  case "PostBack":
1123
- n.eventResizePostBack(e, r, s);
1127
+ r.eventResizePostBack(e, o, s);
1124
1128
  break;
1125
1129
  case "CallBack":
1126
- n.eventResizeCallBack(e, r, s);
1130
+ r.eventResizeCallBack(e, o, s);
1127
1131
  break;
1128
- case "Update": e.start(r), e.end(s), n.events.update(e);
1132
+ case "Update": e.start(o), e.end(s), r.events.update(e);
1129
1133
  }
1130
- "function" == typeof n.onEventResized && n.sa.apply(function () { n.onEventResized(p); });
1134
+ "function" == typeof r.onEventResized && r.sa.apply(function () { r.onEventResized(p); });
1131
1135
  }
1132
1136
  else
1133
- switch (n.eventResizeHandling) {
1137
+ switch (r.eventResizeHandling) {
1134
1138
  case "PostBack":
1135
- n.eventResizePostBack(e, r, s);
1139
+ r.eventResizePostBack(e, o, s);
1136
1140
  break;
1137
1141
  case "CallBack":
1138
- n.eventResizeCallBack(e, r, s);
1142
+ r.eventResizeCallBack(e, o, s);
1139
1143
  break;
1140
- case "JavaScript": n.onEventResize(e, r, s);
1144
+ case "JavaScript": r.onEventResize(e, o, s);
1141
1145
  }
1142
1146
  }, this.eventMovePostBack = function (e, t, i, a, n) {
1143
1147
  if (!t)
@@ -1154,64 +1158,64 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1154
1158
  var o = {};
1155
1159
  o.e = e, o.newStart = t, o.newEnd = i, this.S("EventMove", n, o);
1156
1160
  }, this.L = function (e, t, i, a) {
1157
- var o = 1, r = Math.floor((i - o) / n.cellHeight), s = 30 * r * 60 * 1e3, l = e.start(), d = e.end(), c = new Date;
1161
+ var n = 1, o = Math.floor((i - n) / r.cellHeight), s = 30 * o * 60 * 1e3, l = e.start(), d = e.end(), c = new Date;
1158
1162
  l instanceof DayPilot.Date && (l = l.toDate()), c.setTime(Date.UTC(l.getUTCFullYear(), l.getUTCMonth(), l.getUTCDate()));
1159
1163
  var u = l.getTime() - (c.getTime() + 3600 * l.getUTCHours() * 1e3 + 30 * Math.floor(l.getUTCMinutes() / 30) * 60 * 1e3), h = d.getTime() - l.getTime(), f = this.va[t], m = f.id, p = f.start.getTime(), v = new Date;
1160
1164
  v.setTime(p + s + u);
1161
1165
  var y = new DayPilot.Date(v), g = y.addTime(h);
1162
- if (n.qa()) {
1166
+ if (r.qa()) {
1163
1167
  var b = {};
1164
- if (b.e = e, b.newStart = y, b.newEnd = g, b.newResource = m, b.ctrl = a.ctrlKey, b.shift = a.shiftKey, b.control = n, b.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventMove && (n.sa.apply(function () { n.onEventMove(b); }), b.preventDefault.value))
1168
+ if (b.e = e, b.newStart = y, b.newEnd = g, b.newResource = m, b.ctrl = a.ctrlKey, b.shift = a.shiftKey, b.control = r, b.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onEventMove && (r.sa.apply(function () { r.onEventMove(b); }), b.preventDefault.value))
1165
1169
  return;
1166
- switch (n.eventMoveHandling) {
1170
+ switch (r.eventMoveHandling) {
1167
1171
  case "PostBack":
1168
- n.eventMovePostBack(e, y, g, f.id);
1172
+ r.eventMovePostBack(e, y, g, f.id);
1169
1173
  break;
1170
1174
  case "CallBack":
1171
- n.eventMoveCallBack(e, y, g, f.id);
1175
+ r.eventMoveCallBack(e, y, g, f.id);
1172
1176
  break;
1173
- case "Update": e.start(y), e.end(g), e.resource(m), n.events.update(e);
1177
+ case "Update": e.start(y), e.end(g), e.resource(m), r.events.update(e);
1174
1178
  }
1175
- "function" == typeof n.onEventMoved && n.sa.apply(function () { n.onEventMoved(b); });
1179
+ "function" == typeof r.onEventMoved && r.sa.apply(function () { r.onEventMoved(b); });
1176
1180
  }
1177
1181
  else
1178
- switch (n.eventMoveHandling) {
1182
+ switch (r.eventMoveHandling) {
1179
1183
  case "PostBack":
1180
- n.eventMovePostBack(e, y, g, f.id);
1184
+ r.eventMovePostBack(e, y, g, f.id);
1181
1185
  break;
1182
1186
  case "CallBack":
1183
- n.eventMoveCallBack(e, y, g, f.id);
1187
+ r.eventMoveCallBack(e, y, g, f.id);
1184
1188
  break;
1185
- case "JavaScript": n.onEventMove(e, y, g, f.id, !1);
1189
+ case "JavaScript": r.onEventMove(e, y, g, f.id, !1);
1186
1190
  }
1187
1191
  }, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, this.Q("TimeRangeSelected", a, n); }, this.timeRangeSelectedCallBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, this.S("TimeRangeSelected", a, n); }, this.M = function (e, t, i) {
1188
1192
  if (e = new DayPilot.Date(e), t = new DayPilot.Date(t), this.qa()) {
1189
1193
  var a = {};
1190
- if (a.start = e, a.end = t, a.resource = i, a.control = n, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.sa.apply(function () { n.onTimeRangeSelect(a); }), a.preventDefault.value))
1194
+ if (a.start = e, a.end = t, a.resource = i, a.control = r, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onTimeRangeSelect && (r.sa.apply(function () { r.onTimeRangeSelect(a); }), a.preventDefault.value))
1191
1195
  return;
1192
- switch (n.timeRangeSelectedHandling) {
1196
+ switch (r.timeRangeSelectedHandling) {
1193
1197
  case "PostBack":
1194
- n.timeRangeSelectedPostBack(e, t);
1198
+ r.timeRangeSelectedPostBack(e, t);
1195
1199
  break;
1196
- case "CallBack": n.timeRangeSelectedCallBack(e, t);
1200
+ case "CallBack": r.timeRangeSelectedCallBack(e, t);
1197
1201
  }
1198
- "function" == typeof n.onTimeRangeSelected && n.sa.apply(function () { n.onTimeRangeSelected(a); });
1202
+ "function" == typeof r.onTimeRangeSelected && r.sa.apply(function () { r.onTimeRangeSelected(a); });
1199
1203
  }
1200
1204
  else
1201
- switch (n.timeRangeSelectedHandling) {
1205
+ switch (r.timeRangeSelectedHandling) {
1202
1206
  case "PostBack":
1203
- n.timeRangeSelectedPostBack(e, t);
1207
+ r.timeRangeSelectedPostBack(e, t);
1204
1208
  break;
1205
1209
  case "CallBack":
1206
- n.timeRangeSelectedCallBack(e, t);
1210
+ r.timeRangeSelectedCallBack(e, t);
1207
1211
  break;
1208
- case "JavaScript": n.onTimeRangeSelected(e, t);
1212
+ case "JavaScript": r.onTimeRangeSelected(e, t);
1209
1213
  }
1210
1214
  }, this.wa = function (e) {
1211
- if (!t.selecting && "Disabled" !== n.timeRangeSelectedHandling) {
1215
+ if (!t.selecting && "Disabled" !== r.timeRangeSelectedHandling) {
1212
1216
  var i = e.which;
1213
1217
  if (1 === i || 0 === i)
1214
- return t.firstMousePos = DayPilot.mc(e), t.selecting = {}, t.selecting.calendar = n, t.selectedCells && (n.clearSelection(), t.selectedCells = []), t.column = t.getColumn(this), t.selectedCells.push(this), t.firstSelected = this, t.topSelectedCell = this, t.bottomSelectedCell = this, n.xa(), !1;
1218
+ return t.firstMousePos = DayPilot.mc(e), t.selecting = {}, t.selecting.calendar = r, t.selectedCells && (r.clearSelection(), t.selectedCells = []), t.column = t.getColumn(this), t.selectedCells.push(this), t.firstSelected = this, t.topSelectedCell = this, t.bottomSelectedCell = this, r.xa(), !1;
1215
1219
  }
1216
1220
  }, this.xa = function () {
1217
1221
  this.getSelection();
@@ -1223,69 +1227,71 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1223
1227
  if (t[i] === e)
1224
1228
  return i;
1225
1229
  return -1;
1226
- }(), o = n.va[a];
1227
- if (o) {
1228
- var r = o.start, s = n.getPixels(e.start, r).boxTop, l = n.getPixels(i.end, r).boxBottom, d = l - s, c = function () {
1229
- if (n.nav.activeSelection)
1230
- return n.nav.activeSelection;
1230
+ }(), n = r.va[a];
1231
+ if (n) {
1232
+ var o = n.start, s = r.getPixels(e.start, o).boxTop, l = r.getPixels(i.end, o).boxBottom, d = l - s, c = r.eventBorderRadius;
1233
+ "number" == typeof c && (c += "px");
1234
+ var u = function () {
1235
+ if (r.nav.activeSelection)
1236
+ return r.nav.activeSelection;
1231
1237
  var e = document.createElement("div");
1232
1238
  e.setAttribute("unselectable", "on"), e.style.position = "absolute", e.style.left = "0px", e.style.width = "100%";
1233
1239
  var t = document.createElement("div");
1234
- return t.setAttribute("unselectable", "on"), t.className = n.K("_shadow_inner"), e.appendChild(t), n.nav.events.rows[0].cells[a].selection.appendChild(e), n.elements.selection.push(e), n.nav.activeSelection = e, e;
1240
+ return t.setAttribute("unselectable", "on"), t.className = r.K("_shadow_inner"), c && (t.style.borderRadius = c, e.style.borderRadius = c), e.appendChild(t), r.nav.events.rows[0].cells[a].selection.appendChild(e), r.elements.selection.push(e), r.nav.activeSelection = e, e;
1235
1241
  }();
1236
- c.className = n.K("_shadow"), c.firstChild.innerHTML = "", c.style.top = s + "px", c.style.height = d + "px";
1242
+ u.className = r.K("_shadow"), u.firstChild.innerHTML = "", u.style.top = s + "px", u.style.height = d + "px";
1237
1243
  }
1238
1244
  }();
1239
1245
  }, this.ya = function (e) {
1240
1246
  if ("undefined" != typeof t && t.selecting) {
1241
1247
  var i = DayPilot.mc(e);
1242
- t.getColumn(this) === t.column && (n.clearSelection(), i.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(this), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(this), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), n.xa());
1248
+ t.getColumn(this) === t.column && (r.clearSelection(), i.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(this), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(this), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), r.xa());
1243
1249
  }
1244
- }, this.getSelection = function () { var e = t.topSelectedCell.start, i = t.bottomSelectedCell.end, a = t.topSelectedCell.resource; return new DayPilot.Selection(e, i, a, n); }, this.za = function (e) {
1250
+ }, this.getSelection = function () { var e = t.topSelectedCell.start, i = t.bottomSelectedCell.end, a = t.topSelectedCell.resource; return new DayPilot.Selection(e, i, a, r); }, this.za = function (e) {
1245
1251
  if (e < 0)
1246
1252
  return null;
1247
- for (var t = 0, i = n.nav.events.rows[0].cells, a = 0; a < i.length; a++) {
1253
+ for (var t = 0, i = r.nav.events.rows[0].cells, a = 0; a < i.length; a++) {
1248
1254
  if (t += i[a].offsetWidth, e < t)
1249
1255
  return a;
1250
1256
  }
1251
1257
  return null;
1252
1258
  }, this.Aa = {}, this.Aa.getCellCoords = function () {
1253
1259
  var e = {};
1254
- if (e.x = 0, e.y = 0, !n.coords)
1260
+ if (e.x = 0, e.y = 0, !r.coords)
1255
1261
  return null;
1256
- e.x = n.za(n.coords.x);
1257
- var t = 0, i = Math.floor((n.coords.y - t) / n.cellHeight);
1262
+ e.x = r.za(r.coords.x);
1263
+ var t = 0, i = Math.floor((r.coords.y - t) / r.cellHeight);
1258
1264
  return e.y = i, e.x < 0 ? null : e;
1259
1265
  }, this.columns = {}, this.columns.list = [], this.columns.load = function (e, t, i) {
1260
1266
  if (!e)
1261
1267
  throw new DayPilot.Exception("columns.load(): 'url' parameter required");
1262
- var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) {
1263
- var i, o = e.request;
1268
+ var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, n = function (e) {
1269
+ var i, n = e.request;
1264
1270
  try {
1265
- i = JSON.parse(o.responseText);
1271
+ i = JSON.parse(n.responseText);
1266
1272
  }
1267
1273
  catch (e) {
1268
- var r = {};
1269
- return r.exception = e, void a(r);
1274
+ var o = {};
1275
+ return o.exception = e, void a(o);
1270
1276
  }
1271
1277
  if (DayPilot.isArray(i)) {
1272
1278
  var s = {};
1273
1279
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
1274
1280
  return;
1275
- n.columns.list = i, n.Ba && n.update();
1281
+ r.columns.list = i, r.Ba && r.update();
1276
1282
  }
1277
1283
  };
1278
- n.columnsLoadMethod && "POST" === n.columnsLoadMethod.toUpperCase() ? DayPilot.ajax({ "method": "POST", "url": e, "success": o, "error": a }) : DayPilot.ajax({ "method": "GET", "url": e, "success": o, "error": a });
1284
+ r.columnsLoadMethod && "POST" === r.columnsLoadMethod.toUpperCase() ? DayPilot.ajax({ "method": "POST", "url": e, "success": n, "error": a }) : DayPilot.ajax({ "method": "GET", "url": e, "success": n, "error": a });
1279
1285
  }, this.da = function () {
1280
1286
  var e;
1281
- e = "Resources" !== n.viewType ? this.Ca() : n.columns.list, this.va = [];
1287
+ e = "Resources" !== r.viewType ? this.Ca() : r.columns.list, this.va = [];
1282
1288
  for (var t = 0; t < e.length; t++) {
1283
1289
  var i = this.Da(e[t]);
1284
1290
  this.va.push(i);
1285
1291
  }
1286
1292
  }, this.Da = function (e) {
1287
1293
  var t = {};
1288
- return t.name = e.name, t.html = e.html, t.id = e.id, t.toolTip = e.toolTip, t.data = e, e.start ? t.start = new DayPilot.Date(e.start) : t.start = new DayPilot.Date(n.startDate), t.putIntoBlock = function (e) {
1294
+ return t.name = e.name, t.html = e.html, t.id = e.id, t.toolTip = e.toolTip, t.data = e, e.start ? t.start = new DayPilot.Date(e.start) : t.start = new DayPilot.Date(r.startDate), t.putIntoBlock = function (e) {
1289
1295
  for (var t = 0; t < this.blocks.length; t++) {
1290
1296
  var i = this.blocks[t];
1291
1297
  if (i.overlapsWith(e.part.top, e.part.height))
@@ -1332,30 +1338,30 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1332
1338
  break;
1333
1339
  case "Week":
1334
1340
  i = 7;
1335
- var a = o.ca();
1341
+ var a = s.ca();
1336
1342
  t = t.firstDayOfWeek(a);
1337
1343
  break;
1338
1344
  case "WorkWeek": i = 5, t = t.firstDayOfWeek(1);
1339
1345
  }
1340
1346
  "BusinessHoursNoScroll" === this.heightSpec && (t = t.addHours(this.businessBeginsHour));
1341
- for (var r = 0; r < i; r++) {
1342
- var s = n.headerDateFormat ? n.headerDateFormat : o.locale().datePattern, l = {};
1343
- l.start = t.addDays(r), l.name = l.start.toString(s, o.locale()), e.push(l);
1347
+ for (var n = 0; n < i; n++) {
1348
+ var o = r.headerDateFormat ? r.headerDateFormat : s.locale().datePattern, l = {};
1349
+ l.start = t.addDays(n), l.name = l.start.toString(o, s.locale()), e.push(l);
1344
1350
  }
1345
1351
  return e;
1346
1352
  }, this.visibleStart = function () {
1347
- if ("Resources" === n.viewType) {
1348
- if (0 === n.va.length)
1353
+ if ("Resources" === r.viewType) {
1354
+ if (0 === r.va.length)
1349
1355
  return DayPilot.Date.today();
1350
- var e = n.va.map(function (e) { return e.start.getTime(); }), t = Math.min.apply(null, e);
1356
+ var e = r.va.map(function (e) { return e.start.getTime(); }), t = Math.min.apply(null, e);
1351
1357
  return new DayPilot.Date(t);
1352
1358
  }
1353
1359
  return this.va[0].start;
1354
1360
  }, this.visibleEnd = function () {
1355
- if ("Resources" === n.viewType) {
1356
- if (0 === n.va.length)
1361
+ if ("Resources" === r.viewType) {
1362
+ if (0 === r.va.length)
1357
1363
  return DayPilot.Date.today().addDays(1);
1358
- var e = n.va.map(function (e) { return e.start.getTime(); }), t = Math.max.apply(null, e);
1364
+ var e = r.va.map(function (e) { return e.start.getTime(); }), t = Math.max.apply(null, e);
1359
1365
  return new DayPilot.Date(t).addDays(1);
1360
1366
  }
1361
1367
  var t = this.va.length - 1;
@@ -1363,66 +1369,97 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1363
1369
  }, this.K = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.W = function () {
1364
1370
  if (this.elements.events)
1365
1371
  for (var e = 0; e < this.elements.events.length; e++) {
1366
- var t = this.elements.events[e], i = t.event;
1367
- if (i && (i.calendar = null), t.onclick = null, t.onclickSave = null, t.onmouseover = null, t.onmouseout = null, t.onmousemove = null, t.onmousedown = null, t.firstChild && t.firstChild.firstChild && t.firstChild.firstChild.tagName && "IMG" === t.firstChild.firstChild.tagName.toUpperCase()) {
1368
- var a = t.firstChild.firstChild;
1369
- a.onmousedown = null, a.onmousemove = null, a.onclick = null;
1370
- }
1371
- t.helper = null, t.data = null, t.event = null, DayPilot.de(t);
1372
+ var t = this.elements.events[e];
1373
+ r.Ea(t);
1372
1374
  }
1373
1375
  this.elements.events = [];
1374
1376
  }, this.Ea = function (e) {
1375
- var i = e.cache || e.data, a = this.nav.events, o = document.createElement("div");
1376
- o.style.position = "absolute", o.style.left = e.part.left + "%", o.style.top = e.part.top + "px", o.style.width = e.part.width + "%", o.style.height = Math.max(e.part.height, 2) + "px", o.style.overflow = "hidden", o.data = e, o.event = e, o.unselectable = "on", o.style.MozUserSelect = "none", o.style.KhtmlUserSelect = "none", o.className = this.K("_event"), i.cssClass && DayPilot.Util.addClass(o, i.cssClass), n.showToolTip && e.client.toolTip() && (o.title = e.client.toolTip()), o.isFirst = e.part.start.getTime() === e.start().getTime(), o.isLast = e.part.end.getTime() === e.end().getTime(), o.onclick = this.ra, DayPilot.re(o, "contextmenu", this.ta), o.onmouseout = function (e) { o.deleteIcon && (o.deleteIcon.style.display = "none"); }, o.onmousemove = function (i) {
1377
+ !function () {
1378
+ var t = e.domArgs;
1379
+ if (e.domArgs = null, t && "function" == typeof r.onBeforeEventDomRemove && r.onBeforeEventDomRemove(t), t && "function" == typeof r.onBeforeEventDomAdd) {
1380
+ var a = t && t.Fa;
1381
+ if (a) {
1382
+ r.Ha.Ga && i(t.element) && (r.Ha.Ia = !0, r.Ha.Ja(a), r.Ha.Ia = !1);
1383
+ }
1384
+ }
1385
+ }();
1386
+ var t = e.event;
1387
+ if (t && (t.calendar = null), e.onclick = null, e.onclickSave = null, e.onmouseover = null, e.onmouseout = null, e.onmousemove = null, e.onmousedown = null, e.firstChild && e.firstChild.firstChild && e.firstChild.firstChild.tagName && "IMG" === e.firstChild.firstChild.tagName.toUpperCase()) {
1388
+ var a = e.firstChild.firstChild;
1389
+ a.onmousedown = null, a.onmousemove = null, a.onclick = null;
1390
+ }
1391
+ e.helper = null, e.data = null, e.event = null, DayPilot.de(e);
1392
+ }, this.Ka = function (e) {
1393
+ var a = e.cache || e.data, n = this.nav.events, o = a.borderRadius || r.eventBorderRadius;
1394
+ "number" == typeof o && (o += "px");
1395
+ var s = document.createElement("div");
1396
+ s.style.position = "absolute", s.style.left = e.part.left + "%", s.style.top = e.part.top + "px", s.style.width = e.part.width + "%", s.style.height = Math.max(e.part.height, 2) + "px", s.style.overflow = "hidden", s.data = e, s.event = e, s.unselectable = "on", s.style.MozUserSelect = "none", s.style.KhtmlUserSelect = "none", s.className = this.K("_event"), a.cssClass && DayPilot.Util.addClass(s, a.cssClass), r.showToolTip && e.client.toolTip() && (s.title = e.client.toolTip()), s.isFirst = e.part.start.getTime() === e.start().getTime(), s.isLast = e.part.end.getTime() === e.end().getTime(), s.onclick = this.ra, DayPilot.re(s, "contextmenu", this.ta), s.onmouseout = function (e) { s.deleteIcon && (s.deleteIcon.style.display = "none"); }, s.onmousemove = function (i) {
1377
1397
  var a = 5;
1378
1398
  if ("undefined" != typeof t) {
1379
- var r = DayPilot.mo3(o, i);
1380
- if (r && !t.resizing && !t.moving) {
1381
- o.deleteIcon && (o.deleteIcon.style.display = "");
1382
- var s = this.isLast;
1383
- r.y <= a && e.client.resizeEnabled() ? (this.style.cursor = "n-resize", this.dpBorder = "top") : this.offsetHeight - r.y <= a && e.client.resizeEnabled() ? s ? (this.style.cursor = "s-resize", this.dpBorder = "bottom") : this.style.cursor = "not-allowed" : t.resizing || t.moving || ("Disabled" !== n.eventClickHandling ? this.style.cursor = "pointer" : this.style.cursor = "default");
1399
+ var n = DayPilot.mo3(s, i);
1400
+ if (n && !t.resizing && !t.moving) {
1401
+ s.deleteIcon && (s.deleteIcon.style.display = "");
1402
+ var o = this.isLast;
1403
+ n.y <= a && e.client.resizeEnabled() ? (this.style.cursor = "n-resize", this.dpBorder = "top") : this.offsetHeight - n.y <= a && e.client.resizeEnabled() ? o ? (this.style.cursor = "s-resize", this.dpBorder = "bottom") : this.style.cursor = "not-allowed" : t.resizing || t.moving || ("Disabled" !== r.eventClickHandling ? this.style.cursor = "pointer" : this.style.cursor = "default");
1384
1404
  }
1385
1405
  }
1386
- }, o.onmousedown = function (i) {
1406
+ }, s.onmousedown = function (i) {
1387
1407
  var a = i.which || i.button;
1388
1408
  if ("n-resize" !== this.style.cursor && "s-resize" !== this.style.cursor || 1 !== a) {
1389
1409
  if (1 === a && e.client.moveEnabled()) {
1390
1410
  t.moving = this, DayPilot.Global.moving = this, t.moving.event = this.event;
1391
- var o = t.moving.helper = {};
1392
- o.oldColumn = n.va[this.data.part.dayIndex].id, t.originalMouse = DayPilot.mc(i), t.originalTop = this.offsetTop;
1393
- var r = DayPilot.mo3(this, i);
1394
- r ? t.moveOffsetY = r.y : t.moveOffsetY = 0, n.nav.top.style.cursor = "move";
1411
+ var n = t.moving.helper = {};
1412
+ n.oldColumn = r.va[this.data.part.dayIndex].id, t.originalMouse = DayPilot.mc(i), t.originalTop = this.offsetTop;
1413
+ var o = DayPilot.mo3(this, i);
1414
+ o ? t.moveOffsetY = o.y : t.moveOffsetY = 0, r.nav.top.style.cursor = "move";
1395
1415
  }
1396
1416
  }
1397
1417
  else
1398
- t.resizing = this, DayPilot.Global.resizing = this, t.originalMouse = DayPilot.mc(i), t.originalHeight = this.offsetHeight, t.originalTop = this.offsetTop, n.nav.top.style.cursor = this.style.cursor;
1418
+ t.resizing = this, DayPilot.Global.resizing = this, t.originalMouse = DayPilot.mc(i), t.originalHeight = this.offsetHeight, t.originalTop = this.offsetTop, r.nav.top.style.cursor = this.style.cursor;
1399
1419
  return !1;
1400
1420
  };
1401
- var r = document.createElement("div");
1402
- if (r.setAttribute("unselectable", "on"), r.className = n.K("_event_inner"), r.innerHTML = e.client.html(), "darker" === i.borderColor && i.backColor ? r.style.borderColor = DayPilot.ColorUtil.darker(i.backColor, 2) : r.style.borderColor = i.borderColor, i.backColor && (r.style.background = i.backColor), i.fontColor && (r.style.color = i.fontColor), o.appendChild(r), e.client.barVisible()) {
1403
- var s = e.part.height - 2, l = 100 * e.part.barTop / s, d = Math.ceil(100 * e.part.barHeight / s), c = document.createElement("div");
1404
- c.setAttribute("unselectable", "on"), c.className = this.K("_event_bar"), c.style.position = "absolute", i.barBackColor && (c.style.backgroundColor = i.barBackColor);
1405
- var u = document.createElement("div");
1406
- u.setAttribute("unselectable", "on"), u.className = this.K("_event_bar_inner"), u.style.top = l + "%", 0 < d && d <= 1 ? u.style.height = "1px" : u.style.height = d + "%", i.barColor && (u.style.backgroundColor = i.barColor), c.appendChild(u), o.appendChild(c);
1421
+ var l = document.createElement("div");
1422
+ if (l.setAttribute("unselectable", "on"), l.className = r.K("_event_inner"), "darker" === a.borderColor && a.backColor ? l.style.borderColor = DayPilot.ColorUtil.darker(a.backColor, 2) : l.style.borderColor = a.borderColor, a.backColor && (l.style.background = a.backColor), a.fontColor && (l.style.color = a.fontColor), o && (s.style.borderRadius = o, l.style.borderRadius = o), s.appendChild(l), e.client.barVisible()) {
1423
+ var d = e.part.height - 2, c = 100 * e.part.barTop / d, u = Math.ceil(100 * e.part.barHeight / d), h = document.createElement("div");
1424
+ h.setAttribute("unselectable", "on"), h.className = this.K("_event_bar"), h.style.position = "absolute", a.barBackColor && (h.style.backgroundColor = a.barBackColor);
1425
+ var f = document.createElement("div");
1426
+ f.setAttribute("unselectable", "on"), f.className = this.K("_event_bar_inner"), f.style.top = c + "%", 0 < u && u <= 1 ? f.style.height = "1px" : f.style.height = u + "%", a.barColor && (f.style.backgroundColor = a.barColor), h.appendChild(f), s.appendChild(h);
1407
1427
  }
1408
1428
  if (e.client.deleteEnabled()) {
1409
- var h = document.createElement("div");
1410
- h.style.position = "absolute", h.style.right = "2px", h.style.top = "2px", h.style.width = "17px", h.style.height = "17px", h.className = n.K("_event_delete"), h.onmousedown = function (e) { e.stopPropagation(); }, h.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && n.ua(t); }, h.style.display = "none", o.deleteIcon = h, o.appendChild(h);
1429
+ var m = document.createElement("div");
1430
+ m.style.position = "absolute", m.style.right = "2px", m.style.top = "2px", m.style.width = "17px", m.style.height = "17px", m.className = r.K("_event_delete"), m.onmousedown = function (e) { e.stopPropagation(); }, m.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && r.ua(t); }, m.style.display = "none", s.deleteIcon = m, s.appendChild(m);
1411
1431
  }
1412
- var f = i.areas ? DayPilot.Areas.copy(i.areas) : [];
1413
- if (DayPilot.Areas.attach(o, e, { "areas": f }), a.rows[0].cells[e.part.dayIndex]) {
1414
- a.rows[0].cells[e.part.dayIndex].firstChild.appendChild(o), n.Fa(o);
1432
+ var p = a.areas ? DayPilot.Areas.copy(a.areas) : [];
1433
+ if (DayPilot.Areas.attach(s, e, { "areas": p }), "function" == typeof r.onAfterEventRender) {
1434
+ var v = {};
1435
+ v.e = s.event, v.div = s, r.onAfterEventRender(v);
1415
1436
  }
1416
- if ("function" == typeof n.onAfterEventRender) {
1417
- var m = {};
1418
- m.e = o.event, m.div = o, n.onAfterEventRender(m);
1437
+ if (function () {
1438
+ var t = {};
1439
+ if (t.control = r, t.e = e, t.element = null, s.domArgs = t, "function" == typeof r.onBeforeEventDomAdd && r.onBeforeEventDomAdd(t), t.element) {
1440
+ var a = l;
1441
+ if (a) {
1442
+ t.Fa = a;
1443
+ if (i(t.element)) {
1444
+ if (!r.Ha.Ga)
1445
+ throw new DayPilot.Exception("Can't reach Vue");
1446
+ r.Ha.Ia = !0, r.Ha.La(t.element, a), r.Ha.Ia = !1;
1447
+ }
1448
+ else
1449
+ a.appendChild(t.element);
1450
+ }
1451
+ }
1452
+ else
1453
+ l.innerHTML = e.client.innerHTML();
1454
+ }(), n.rows[0].cells[e.part.dayIndex]) {
1455
+ n.rows[0].cells[e.part.dayIndex].firstChild.appendChild(s), r.Ma(s);
1419
1456
  }
1420
- n.elements.events.push(o);
1421
- }, this.Fa = function (e) {
1457
+ r.elements.events.push(s);
1458
+ }, this.Ma = function (e) {
1422
1459
  for (var t = e && e.childNodes ? e.childNodes.length : 0, i = 0; i < t; i++)
1423
1460
  try {
1424
1461
  var a = e.childNodes[i];
1425
- 1 === a.nodeType && (a.unselectable = "on", this.Fa(a));
1462
+ 1 === a.nodeType && (a.unselectable = "on", this.Ma(a));
1426
1463
  }
1427
1464
  catch (e) { }
1428
1465
  }, this.ka = function () {
@@ -1435,28 +1472,28 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1435
1472
  var s = o[r];
1436
1473
  s.part.width = 100 / a.lines.length, s.part.left = s.part.width * n;
1437
1474
  var l = n === a.lines.length - 1;
1438
- l || (s.part.width = 1.5 * s.part.width), this.Ea(s);
1475
+ l || (s.part.width = 1.5 * s.part.width), this.Ka(s);
1439
1476
  }
1440
1477
  }
1441
- }, this.Ga = function () { this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.K("_main")), this.nav.top.style.MozUserSelect = "none", this.nav.top.style.KhtmlUserSelect = "none", this.nav.top.style.position = "relative", this.nav.top.style.width = this.width ? this.width : "100%", this.hideUntilInit && (this.nav.top.style.visibility = "hidden"), this.visible || (this.nav.top.style.display = "none"), this.nav.scroll = document.createElement("div"), this.nav.scroll.style.height = this.Ha() + "px", "BusinessHours" === this.heightSpec ? this.nav.scroll.style.overflow = "auto" : this.nav.scroll.style.overflow = "hidden", this.nav.scroll.style.position = "relative"; var e = this.Ia(); this.nav.top.appendChild(e), this.nav.scroll.style.zoom = 1; var t = this.Ja(); this.nav.scrollable = t.firstChild, this.nav.scroll.appendChild(t), this.nav.top.appendChild(this.nav.scroll), this.nav.scrollLayer = document.createElement("div"), this.nav.scrollLayer.style.position = "absolute", this.nav.scrollLayer.style.top = "0px", this.nav.scrollLayer.style.left = "0px", this.nav.top.appendChild(this.nav.scrollLayer), this.nav.loading = document.createElement("div"), this.nav.loading.style.position = "absolute", this.nav.loading.style.top = "0px", this.nav.loading.style.left = this.hourWidth + 5 + "px", this.nav.loading.innerHTML = n.Ka(n.loadingLabelText, n.loadingLabelHtml), this.nav.loading.style.display = "none", this.nav.top.appendChild(this.nav.loading); }, this.ia = function () { this.fasterDispose || DayPilot.pu(this.nav.hourTable), this.nav.scrollable.rows[0].cells[0].innerHTML = "", this.nav.hourTable = this.La(), this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable); }, this.Ja = function () { var e = document.createElement("div"); e.style.zoom = 1, e.style.position = "relative"; var t = document.createElement("table"); t.cellSpacing = "0", t.cellPadding = "0", t.border = "0", t.style.border = "0px none", t.style.width = "100%", t.style.position = "absolute"; var i, a = t.insertRow(-1); i = a.insertCell(-1), i.valign = "top", i.style.padding = "0px", i.style.border = "0px none", this.nav.hourTable = this.La(), i.appendChild(this.nav.hourTable), i = a.insertCell(-1), i.valign = "top", i.width = "100%", i.style.padding = "0px", i.style.border = "0px none"; var n = document.createElement("div"); return n.style.position = "relative", i.appendChild(n), n.appendChild(this.Ma()), n.appendChild(this.Na()), e.appendChild(t), this.nav.zoom = e, e; }, this.Ma = function () { var e = document.createElement("table"); return e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.nav.main = e, this.nav.events = e, e; }, this.Na = function () {
1478
+ }, this.Na = function () { this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.K("_main")), this.nav.top.style.MozUserSelect = "none", this.nav.top.style.KhtmlUserSelect = "none", this.nav.top.style.position = "relative", this.nav.top.style.width = this.width ? this.width : "100%", this.hideUntilInit && (this.nav.top.style.visibility = "hidden"), this.visible || (this.nav.top.style.display = "none"), this.nav.scroll = document.createElement("div"), this.nav.scroll.style.height = this.Oa() + "px", "BusinessHours" === this.heightSpec ? this.nav.scroll.style.overflow = "auto" : this.nav.scroll.style.overflow = "hidden", this.nav.scroll.style.position = "relative"; var e = this.Pa(); this.nav.top.appendChild(e), this.nav.scroll.style.zoom = 1; var t = this.Qa(); this.nav.scrollable = t.firstChild, this.nav.scroll.appendChild(t), this.nav.top.appendChild(this.nav.scroll), this.nav.scrollLayer = document.createElement("div"), this.nav.scrollLayer.style.position = "absolute", this.nav.scrollLayer.style.top = "0px", this.nav.scrollLayer.style.left = "0px", this.nav.top.appendChild(this.nav.scrollLayer), this.nav.loading = document.createElement("div"), this.nav.loading.style.position = "absolute", this.nav.loading.style.top = "0px", this.nav.loading.style.left = this.hourWidth + 5 + "px", this.nav.loading.innerHTML = r.Ra(r.loadingLabelText, r.loadingLabelHtml), this.nav.loading.style.display = "none", this.nav.top.appendChild(this.nav.loading); }, this.ia = function () { this.fasterDispose || DayPilot.pu(this.nav.hourTable), this.nav.scrollable.rows[0].cells[0].innerHTML = "", this.nav.hourTable = this.Sa(), this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable); }, this.Qa = function () { var e = document.createElement("div"); e.style.zoom = 1, e.style.position = "relative"; var t = document.createElement("table"); t.cellSpacing = "0", t.cellPadding = "0", t.border = "0", t.style.border = "0px none", t.style.width = "100%", t.style.position = "absolute"; var i, a = t.insertRow(-1); i = a.insertCell(-1), i.valign = "top", i.style.padding = "0px", i.style.border = "0px none", this.nav.hourTable = this.Sa(), i.appendChild(this.nav.hourTable), i = a.insertCell(-1), i.valign = "top", i.width = "100%", i.style.padding = "0px", i.style.border = "0px none"; var n = document.createElement("div"); return n.style.position = "relative", i.appendChild(n), n.appendChild(this.Ta()), n.appendChild(this.Ua()), e.appendChild(t), this.nav.zoom = e, e; }, this.Ta = function () { var e = document.createElement("table"); return e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.nav.main = e, this.nav.events = e, e; }, this.Ua = function () {
1442
1479
  var e = document.createElement("table");
1443
1480
  e.style.top = "0px", e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.position = "absolute", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.nav.events = e;
1444
- for (var t = this.va, i = t.length, a = e.insertRow(-1), o = 0; o < i; o++) {
1445
- var r = a.insertCell(-1);
1446
- r.style.padding = "0px", r.style.border = "0px none", r.style.height = "0px", r.style.overflow = "visible", n.rtl || (r.style.textAlign = "left");
1481
+ for (var t = this.va, i = t.length, a = e.insertRow(-1), n = 0; n < i; n++) {
1482
+ var o = a.insertCell(-1);
1483
+ o.style.padding = "0px", o.style.border = "0px none", o.style.height = "0px", o.style.overflow = "visible", r.rtl || (o.style.textAlign = "left");
1447
1484
  var s = document.createElement("div");
1448
- s.style.marginRight = n.columnMarginRight + "px", s.style.marginLeft = n.columnMarginLeft + "px", s.style.position = "relative", s.style.height = "1px", s.style.marginTop = "-1px";
1485
+ s.style.marginRight = r.columnMarginRight + "px", s.style.marginLeft = r.columnMarginLeft + "px", s.style.position = "relative", s.style.height = "1px", s.style.marginTop = "-1px";
1449
1486
  var l = document.createElement("div");
1450
- r.selection = l, r.appendChild(s), r.appendChild(l);
1487
+ o.selection = l, o.appendChild(s), o.appendChild(l);
1451
1488
  }
1452
1489
  return e;
1453
- }, this.La = function () {
1490
+ }, this.Sa = function () {
1454
1491
  var e = document.createElement("table");
1455
1492
  e.cellSpacing = "0", e.cellPadding = "0", e.border = "0", e.style.border = "0px none", e.style.width = this.hourWidth + "px", e.oncontextmenu = function () { return !1; };
1456
- for (var t = n.la(), i = 0; i < t; i++)
1457
- this.Oa(e, i);
1493
+ for (var t = r.la(), i = 0; i < t; i++)
1494
+ this.Va(e, i);
1458
1495
  return e;
1459
- }, this.Oa = function (e, t) { var i = 2 * this.cellHeight, a = e.insertRow(-1); a.style.height = i + "px"; var r = a.insertCell(-1); r.valign = "bottom", r.unselectable = "on", r.style.cursor = "default", r.style.padding = "0px", r.style.border = "0px none"; var s = document.createElement("div"); s.style.position = "relative", s.className = this.K("_rowheader"), s.style.width = this.hourWidth + "px", s.style.height = i + "px", s.style.overflow = "hidden", s.unselectable = "on"; var l = document.createElement("div"); l.className = this.K("_rowheader_inner"), l.unselectable = "on"; var d = document.createElement("div"); d.unselectable = "on"; var c = this.startDate.addHours(t).addHours(n.pa()), u = c.getHours(), h = u < 12, f = o.timeFormat(); "Clock12Hours" === f && (u %= 12, 0 === u && (u = 12)), d.innerHTML = u; var m = document.createElement("span"); m.unselectable = "on", m.className = this.K("_rowheader_minutes"); var p; p = "Clock12Hours" === f ? h ? "AM" : "PM" : "00", m.innerHTML = p, d.appendChild(m), l.appendChild(d), s.appendChild(l), r.appendChild(s); }, this.Ha = function () {
1496
+ }, this.Va = function (e, t) { var i = 2 * this.cellHeight, a = e.insertRow(-1); a.style.height = i + "px"; var n = a.insertCell(-1); n.valign = "bottom", n.unselectable = "on", n.style.cursor = "default", n.style.padding = "0px", n.style.border = "0px none"; var o = document.createElement("div"); o.style.position = "relative", o.className = this.K("_rowheader"), o.style.width = this.hourWidth + "px", o.style.height = i + "px", o.style.overflow = "hidden", o.unselectable = "on"; var l = document.createElement("div"); l.className = this.K("_rowheader_inner"), l.unselectable = "on"; var d = document.createElement("div"); d.unselectable = "on"; var c = this.startDate.addHours(t).addHours(r.pa()), u = c.getHours(), h = u < 12, f = s.timeFormat(); "Clock12Hours" === f && (u %= 12, 0 === u && (u = 12)), d.innerHTML = u; var m = document.createElement("span"); m.unselectable = "on", m.className = this.K("_rowheader_minutes"); var p; p = "Clock12Hours" === f ? h ? "AM" : "PM" : "00", m.innerHTML = p, d.appendChild(m), l.appendChild(d), o.appendChild(l), n.appendChild(o); }, this.Oa = function () {
1460
1497
  switch (this.heightSpec) {
1461
1498
  case "Full": return 48 * this.cellHeight;
1462
1499
  case "BusinessHours":
@@ -1467,21 +1504,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1467
1504
  return e * this.cellHeight * 2;
1468
1505
  default: throw "DayPilot.Calendar: Unexpected 'heightSpec' value.";
1469
1506
  }
1470
- }, this.Pa = function () {
1471
- var e = n.nav.corner ? n.nav.corner.parentNode : null;
1507
+ }, this.Wa = function () {
1508
+ var e = r.nav.corner ? r.nav.corner.parentNode : null;
1472
1509
  if (e) {
1473
1510
  e.innerHTML = "";
1474
- var t = this.Qa();
1475
- e.appendChild(t), n.nav.corner = t;
1511
+ var t = this.Xa();
1512
+ e.appendChild(t), r.nav.corner = t;
1476
1513
  }
1477
- }, this.Ia = function () {
1514
+ }, this.Pa = function () {
1478
1515
  var e = document.createElement("div");
1479
1516
  e.style.overflow = "auto";
1480
1517
  var t = document.createElement("table");
1481
1518
  t.cellPadding = "0", t.cellSpacing = "0", t.border = "0", t.style.width = "100%", t.style.borderCollapse = "separate", t.style.border = "0px none";
1482
1519
  var i = t.insertRow(-1), a = i.insertCell(-1);
1483
1520
  a.style.padding = "0px", a.style.border = "0px none";
1484
- var n = this.Qa();
1521
+ var n = this.Xa();
1485
1522
  a.appendChild(n), this.nav.corner = n, a = i.insertCell(-1), a.style.width = "100%", a.valign = "top", a.style.position = "relative", a.style.padding = "0px", a.style.border = "0px none", this.nav.header = document.createElement("table"), this.nav.header.cellPadding = "0", this.nav.header.cellSpacing = "0", this.nav.header.border = "0", this.nav.header.width = "100%", this.nav.header.style.tableLayout = "fixed", this.nav.header.oncontextmenu = function () { return !1; };
1486
1523
  var o = "hidden" !== this.nav.scroll.style.overflow;
1487
1524
  if (a.appendChild(this.nav.header), o) {
@@ -1492,95 +1529,122 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1492
1529
  s.className = this.K("_cornerright_inner"), r.appendChild(s), a.appendChild(r), this.nav.cornerRight = r;
1493
1530
  }
1494
1531
  return e.appendChild(t), e;
1495
- }, this.Qa = function () { var e = document.createElement("div"); e.style.position = "relative", e.className = this.K("_corner"), e.style.width = this.hourWidth + "px", e.style.height = this.headerHeight + "px", e.oncontextmenu = function () { return !1; }; var t = document.createElement("div"); return t.unselectable = "on", t.className = this.K("_corner_inner"), e.appendChild(t), e; }, this.X = function () {
1532
+ }, this.Xa = function () { var e = document.createElement("div"); e.style.position = "relative", e.className = this.K("_corner"), e.style.width = this.hourWidth + "px", e.style.height = this.headerHeight + "px", e.oncontextmenu = function () { return !1; }; var t = document.createElement("div"); return t.unselectable = "on", t.className = this.K("_corner_inner"), e.appendChild(t), e; }, this.X = function () {
1496
1533
  var e = this.nav.main;
1497
1534
  e.root = null, e.onmouseup = null;
1498
1535
  for (var t = 0; t < e.rows.length; t++)
1499
1536
  for (var i = e.rows[t], a = 0; a < i.cells.length; a++) {
1500
1537
  var n = i.cells[a];
1501
- n.root = null, n.onmousedown = null, n.onmousemove = null, n.onmouseout = null, n.onmouseup = null;
1538
+ r.Ya(n);
1502
1539
  }
1503
1540
  this.fasterDispose || DayPilot.pu(e);
1541
+ }, this.Ya = function (e) {
1542
+ e && (!function () {
1543
+ var t = e, a = t.domArgs;
1544
+ if (t.domArgs = null, a && "function" == typeof r.onBeforeCellDomRemove && r.onBeforeCellDomRemove(a), a && "function" == typeof r.onBeforeCellDomAdd) {
1545
+ var n = a && a.Fa;
1546
+ if (n) {
1547
+ r.Ha.Ga && i(a.element) && (r.Ha.Ia = !0, r.Ha.Ja(n), r.Ha.Ia = !1);
1548
+ }
1549
+ }
1550
+ }(), e.root = null, e.onmousedown = null, e.onmousemove = null, e.onmouseout = null, e.onmouseup = null);
1504
1551
  }, this.ha = function () {
1505
- var e = this.nav.main, i = 18e5, a = this.oa(), o = n.va;
1552
+ var e = this.nav.main, a = 18e5, n = this.oa(), o = r.va;
1506
1553
  for (e && this.X(); e && e.rows && e.rows.length > 0;)
1507
1554
  this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
1508
1555
  this.tableCreated = !0;
1509
- for (var r = o.length, s = this.nav.events; s && s.rows && s.rows.length > 0;)
1510
- this.fasterDispose || DayPilot.pu(s.rows[0]), s.deleteRow(0);
1511
- for (var r = o.length, l = s.insertRow(-1), d = 0; d < r; d++) {
1512
- var c = l.insertCell(-1);
1513
- c.style.padding = "0px", c.style.border = "0px none", c.style.height = "0px", c.style.overflow = "visible", n.rtl || (c.style.textAlign = "left");
1514
- var u = document.createElement("div");
1515
- u.style.marginRight = n.columnMarginRight + "px", u.style.marginLeft = n.columnMarginLeft + "px", u.style.position = "relative", u.style.height = "1px", u.style.marginTop = "-1px";
1556
+ for (var s = o.length, l = this.nav.events; l && l.rows && l.rows.length > 0;)
1557
+ this.fasterDispose || DayPilot.pu(l.rows[0]), l.deleteRow(0);
1558
+ for (var s = o.length, d = l.insertRow(-1), c = 0; c < s; c++) {
1559
+ var u = d.insertCell(-1);
1560
+ u.style.padding = "0px", u.style.border = "0px none", u.style.height = "0px", u.style.overflow = "visible", r.rtl || (u.style.textAlign = "left");
1516
1561
  var h = document.createElement("div");
1517
- h.style.position = "relative", c.selection = h, c.appendChild(u), c.appendChild(h);
1518
- }
1519
- for (var f = 0; f < a; f++) {
1520
- var l = e.insertRow(-1);
1521
- l.style.MozUserSelect = "none", l.style.KhtmlUserSelect = "none";
1522
- for (var d = 0; d < r; d++) {
1523
- var m = this.va[d], c = l.insertCell(-1);
1524
- c.start = m.start.addTime(f * i), c.end = c.start.addTime(i), c.resource = m.id, c.onmousedown = this.wa, c.onmouseup = function () { return !1; }, c.onclick = function () { return !1; }, c.root = this, c.style.padding = "0px", c.style.border = "0px none", c.style.verticalAlign = "top", c.style.height = n.cellHeight + "px", c.style.overflow = "hidden", c.unselectable = "on";
1525
- var u = document.createElement("div");
1526
- u.unselectable = "on", u.style.height = n.cellHeight + "px", u.style.position = "relative", u.className = this.K("_cell");
1527
- var p = this.Ra(c.start, c.end), v = { "business": p, "text": null, "html": null, "cssClass": null, "backColor": null, "backImage": null, "backRepeat": null };
1562
+ h.style.marginRight = r.columnMarginRight + "px", h.style.marginLeft = r.columnMarginLeft + "px", h.style.position = "relative", h.style.height = "1px", h.style.marginTop = "-1px";
1563
+ var f = document.createElement("div");
1564
+ f.style.position = "relative", u.selection = f, u.appendChild(h), u.appendChild(f);
1565
+ }
1566
+ for (var m = 0; m < n; m++) {
1567
+ var d = e.insertRow(-1);
1568
+ d.style.MozUserSelect = "none", d.style.KhtmlUserSelect = "none";
1569
+ for (var c = 0; c < s; c++) {
1570
+ var p = this.va[c], u = d.insertCell(-1);
1571
+ u.start = p.start.addTime(m * a), u.end = u.start.addTime(a), u.resource = p.id, u.onmousedown = this.wa, u.onmouseup = function () { return !1; }, u.onclick = function () { return !1; }, u.root = this, u.style.padding = "0px", u.style.border = "0px none", u.style.verticalAlign = "top", u.style.height = r.cellHeight + "px", u.style.overflow = "hidden", u.unselectable = "on";
1572
+ var h = document.createElement("div");
1573
+ h.unselectable = "on", h.style.height = r.cellHeight + "px", h.style.position = "relative", h.className = this.K("_cell");
1574
+ var v = this.Za(u.start, u.end), y = { "business": v, "text": null, "html": null, "cssClass": null, "backColor": null, "backImage": null, "backRepeat": null }, g = { "start": u.start, "end": u.end, "resource": u.resource, "properties": y };
1528
1575
  !function () {
1529
- if ("function" == typeof n.onBeforeCellRender) {
1576
+ if ("function" == typeof r.onBeforeCellRender) {
1530
1577
  var e = {};
1531
- e.cell = { "start": c.start, "end": c.end, "resource": c.resource, "properties": v }, n.onBeforeCellRender(e);
1578
+ e.cell = g, r.onBeforeCellRender(e);
1532
1579
  }
1533
- }(), v.business && DayPilot.Util.addClass(u, n.K("_cell_business")), v.cssClass && DayPilot.Util.addClass(u, v.cssClass);
1534
- var y = document.createElement("div");
1535
- y.setAttribute("unselectable", "on"), y.className = this.K("_cell_inner");
1536
- var g = DayPilot.Util.escapeTextHtml(v.text, v.html);
1537
- g && (y.innerHTML = g), v.backColor && (y.style.backgroundColor = v.backColor), v.backImage && (y.style.backgroundImage = "url(" + v.backImage + ")"), v.backRepeat && (y.style.backgroundRepeat = v.backRepeat), u.appendChild(y), c.appendChild(u), c.appendChild(u);
1580
+ }(), y.business && DayPilot.Util.addClass(h, r.K("_cell_business")), y.cssClass && DayPilot.Util.addClass(h, y.cssClass);
1581
+ var b = document.createElement("div");
1582
+ b.setAttribute("unselectable", "on"), b.className = this.K("_cell_inner");
1583
+ var D = DayPilot.Util.escapeTextHtml(y.text, y.html);
1584
+ D && (b.innerHTML = D), y.backColor && (b.style.backgroundColor = y.backColor), y.backImage && (b.style.backgroundImage = "url(" + y.backImage + ")"), y.backRepeat && (b.style.backgroundRepeat = y.backRepeat), h.appendChild(b), function () {
1585
+ if ("function" == typeof r.onBeforeCellDomAdd || "function" == typeof r.onBeforeCellDomRemove) {
1586
+ var e = {};
1587
+ if (e.control = r, e.cell = g, e.element = null, u.domArgs = e, "function" == typeof r.onBeforeCellDomAdd && r.onBeforeCellDomAdd(e), e.element) {
1588
+ var t = b;
1589
+ if (t) {
1590
+ e.Fa = t;
1591
+ if (i(e.element)) {
1592
+ if (!r.Ha.Ga)
1593
+ throw new DayPilot.Exception("Can't reach Vue");
1594
+ r.Ha.Ia = !0, r.Ha.La(e.element, t), r.Ha.Ia = !1;
1595
+ }
1596
+ else
1597
+ t.appendChild(e.element);
1598
+ }
1599
+ }
1600
+ }
1601
+ }(), u.appendChild(h);
1538
1602
  }
1539
1603
  }
1540
- e.root = this, n.nav.scrollable.onmousemove = function (e) {
1541
- var i = n.nav.scrollable;
1542
- n.coords = DayPilot.mo3(i, e);
1604
+ e.root = this, r.nav.scrollable.onmousemove = function (e) {
1605
+ var i = r.nav.scrollable;
1606
+ r.coords = DayPilot.mo3(i, e);
1543
1607
  var a = DayPilot.mc(e);
1544
1608
  if (t.resizing) {
1545
- t.resizingShadow || (t.resizingShadow = n._(t.resizing, !1, n.shadow));
1546
- var o = n.cellHeight, r = 1, s = a.y - t.originalMouse.y;
1609
+ t.resizingShadow || (t.resizingShadow = r._(t.resizing, !1, r.shadow));
1610
+ var n = r.cellHeight, o = 1, s = a.y - t.originalMouse.y;
1547
1611
  if ("bottom" === t.resizing.dpBorder) {
1548
- var l = Math.floor((t.originalHeight + t.originalTop + s + o / 2) / o) * o - t.originalTop + r;
1549
- l < o && (l = o);
1550
- var d = n.nav.main.clientHeight;
1612
+ var l = Math.floor((t.originalHeight + t.originalTop + s + n / 2) / n) * n - t.originalTop + o;
1613
+ l < n && (l = n);
1614
+ var d = r.nav.main.clientHeight;
1551
1615
  t.originalTop + l > d && (l = d - t.originalTop), t.resizingShadow.style.height = l + "px";
1552
1616
  }
1553
1617
  else if ("top" === t.resizing.dpBorder) {
1554
- var c = Math.floor((t.originalTop + s - r + o / 2) / o) * o + r;
1555
- c < r && (c = r), c > t.originalTop + t.originalHeight - o && (c = t.originalTop + t.originalHeight - o);
1618
+ var c = Math.floor((t.originalTop + s - o + n / 2) / n) * n + o;
1619
+ c < o && (c = o), c > t.originalTop + t.originalHeight - n && (c = t.originalTop + t.originalHeight - n);
1556
1620
  var l = t.originalHeight - (c - t.originalTop);
1557
- l < o ? l = o : t.resizingShadow.style.top = c + "px", t.resizingShadow.style.height = l + "px";
1621
+ l < n ? l = n : t.resizingShadow.style.top = c + "px", t.resizingShadow.style.height = l + "px";
1558
1622
  }
1559
1623
  }
1560
1624
  else if (t.moving) {
1561
- if (!n.coords)
1625
+ if (!r.coords)
1562
1626
  return;
1563
1627
  if (!t.movingShadow) {
1564
1628
  var u = 3, a = DayPilot.mc(e), h = Math.abs(a.x - t.originalMouse.x) + Math.abs(a.y - t.originalMouse.y);
1565
1629
  if (h <= u)
1566
1630
  return;
1567
- t.movingShadow = n._(t.moving, !0, n.shadow), t.movingShadow.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px";
1631
+ t.movingShadow = r._(t.moving, !0, r.shadow), t.movingShadow.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px";
1568
1632
  }
1569
- var o = n.cellHeight, r = 1, f = t.moveOffsetY;
1570
- f || (f = o / 2);
1571
- var c = Math.floor((n.coords.y - f - r + o / 2) / o) * o + r;
1572
- c < r && (c = r);
1573
- var m = n.nav.events, d = n.nav.main.clientHeight + r, p = parseInt(t.movingShadow.style.height);
1574
- c + p > d && (c = d - p), DayPilot.Util.addClass(t.moving, n.K("_event_moving_source")), t.movingShadow.parentNode.style.display = "none", t.movingShadow.style.top = c + "px", t.movingShadow.parentNode.style.display = "";
1575
- var v = m.clientWidth / m.rows[0].cells.length, y = Math.floor((n.coords.x - 45) / v);
1633
+ var n = r.cellHeight, o = 1, f = t.moveOffsetY;
1634
+ f || (f = n / 2);
1635
+ var c = Math.floor((r.coords.y - f - o + n / 2) / n) * n + o;
1636
+ c < o && (c = o);
1637
+ var m = r.nav.events, d = r.nav.main.clientHeight + o, p = parseInt(t.movingShadow.style.height);
1638
+ c + p > d && (c = d - p), DayPilot.Util.addClass(t.moving, r.K("_event_moving_source")), t.movingShadow.parentNode.style.display = "none", t.movingShadow.style.top = c + "px", t.movingShadow.parentNode.style.display = "";
1639
+ var v = m.clientWidth / m.rows[0].cells.length, y = Math.floor((r.coords.x - 45) / v);
1576
1640
  y < 0 && (y = 0), y < m.rows[0].cells.length && y >= 0 && t.movingShadow.column !== y && (t.movingShadow.column = y, t.moveShadow(m.rows[0].cells[y]));
1577
1641
  }
1578
1642
  else if (t.selecting) {
1579
- var a = DayPilot.mc(e), g = n.Aa.getCellCoords(), b = t.column, D = n.nav.main.rows[g.y].cells[b];
1580
- a.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(D), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(D), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), n.xa();
1643
+ var a = DayPilot.mc(e), g = r.Aa.getCellCoords(), b = t.column, D = r.nav.main.rows[g.y].cells[b];
1644
+ a.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(D), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(D), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), r.xa();
1581
1645
  }
1582
- }, n.nav.scrollable.style.display = "";
1583
- }, this.Ra = function (e, t) { return this.businessBeginsHour < this.businessEndsHour ? !(e.getHours() < this.businessBeginsHour || e.getHours() >= this.businessEndsHour || 6 === e.getDayOfWeek() || 0 === e.getDayOfWeek()) : e.getHours() >= this.businessBeginsHour || e.getHours() < this.businessEndsHour; }, this.Y = function () {
1646
+ }, r.nav.scrollable.style.display = "";
1647
+ }, this.Za = function (e, t) { return this.businessBeginsHour < this.businessEndsHour ? !(e.getHours() < this.businessBeginsHour || e.getHours() >= this.businessEndsHour || 6 === e.getDayOfWeek() || 0 === e.getDayOfWeek()) : e.getHours() >= this.businessBeginsHour || e.getHours() < this.businessEndsHour; }, this.Y = function () {
1584
1648
  var e = this.nav.header;
1585
1649
  if (e && e.rows)
1586
1650
  for (var t = 0; t < e.rows.length; t++)
@@ -1589,15 +1653,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1589
1653
  n.onclick = null, n.onmousemove = null, n.onmouseout = null;
1590
1654
  }
1591
1655
  this.fasterDispose || DayPilot.pu(e);
1592
- }, this.Sa = function (e) {
1656
+ }, this.$a = function (e) {
1593
1657
  function t(t) {
1594
- var o = a[t], r = e ? i.insertCell(-1) : i.cells[t];
1595
- r.data = o, r.style.overflow = "hidden", r.style.padding = "0px", r.style.border = "0px none", r.style.height = n.headerHeight + "px", r.onclick = n.Ta;
1596
- var s, l = e ? document.createElement("div") : r.firstChild;
1597
- e ? (l.unselectable = "on", l.style.MozUserSelect = "none", l.style.cursor = "default", l.style.position = "relative", l.className = n.K("_colheader"), l.style.height = n.headerHeight + "px", n.headerTextWrappingEnabled || (l.style.whiteSpace = "nowrap"), s = document.createElement("div"), s.className = n.K("_colheader_inner"), s.unselectable = "on", l.appendChild(s), r.appendChild(l)) : s = l.firstChild;
1658
+ var n = a[t], o = e ? i.insertCell(-1) : i.cells[t];
1659
+ o.data = n, o.style.overflow = "hidden", o.style.padding = "0px", o.style.border = "0px none", o.style.height = r.headerHeight + "px", o.onclick = r._a;
1660
+ var s, l = e ? document.createElement("div") : o.firstChild;
1661
+ e ? (l.unselectable = "on", l.style.MozUserSelect = "none", l.style.cursor = "default", l.style.position = "relative",
1662
+ l.className = r.K("_colheader"), l.style.height = r.headerHeight + "px", r.headerTextWrappingEnabled || (l.style.whiteSpace = "nowrap"), s = document.createElement("div"), s.className = r.K("_colheader_inner"), s.unselectable = "on", l.appendChild(s), o.appendChild(l)) : s = l.firstChild;
1598
1663
  var d = {};
1599
- d.header = {}, d.header.cssClass = null, d.header.verticalAlignment = "center", d.column = n.Ua(o, n), "function" == typeof n.onBeforeHeaderRender && (DayPilot.Util.copyProps(o, d.header, ["id", "start", "name", "html", "backColor", "toolTip", "areas"]), n.onBeforeHeaderRender(d), DayPilot.Util.copyProps(d.header, o, ["html", "backColor", "toolTip", "areas", "cssClass", "verticalAlignment"])), o.toolTip && (s.title = o.toolTip), o.cssClass && DayPilot.Util.addClass(l, o.cssClass), o.backColor && (s.style.background = o.backColor), o.areas && DayPilot.Areas.attach(l, o);
1600
- var c = o.verticalAlignment;
1664
+ d.header = {}, d.header.cssClass = null, d.header.verticalAlignment = "center", d.column = r.ab(n, r), "function" == typeof r.onBeforeHeaderRender && (DayPilot.Util.copyProps(n, d.header, ["id", "start", "name", "html", "backColor", "toolTip", "areas"]), r.onBeforeHeaderRender(d), DayPilot.Util.copyProps(d.header, n, ["html", "backColor", "toolTip", "areas", "cssClass", "verticalAlignment"])), n.toolTip && (s.title = n.toolTip), n.cssClass && DayPilot.Util.addClass(l, n.cssClass), n.backColor && (s.style.background = n.backColor), n.areas && DayPilot.Areas.attach(l, n);
1665
+ var c = n.verticalAlignment;
1601
1666
  if (c)
1602
1667
  switch (s.style.display = "flex", c) {
1603
1668
  case "center":
@@ -1608,23 +1673,22 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1608
1673
  break;
1609
1674
  case "bottom": s.style.alignItems = "flex-end";
1610
1675
  }
1611
- l.firstChild.innerHTML = n.Ka(o.name, o.html);
1676
+ l.firstChild.innerHTML = r.Ra(n.name, n.html);
1612
1677
  }
1613
- for (var i = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], a = this.va, o = a.length, r = 0; r < o; r++)
1614
- t(r);
1615
- }, this.Ta = function (e) {
1616
- if ("Disabled" !== n.headerClickHandling) {
1617
- var t = this.data, i = n.Ua(t), a = {};
1618
- a.header = {}, a.header.id = t.id, a.header.name = t.name, a.header.start = t.start, a.column = i, a.originalEvent = e, a.shift = e.shiftKey, a.ctrl = e.ctrlKey, a.meta = e.metaKey, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onHeaderClick && (n.onHeaderClick(a), a.preventDefault.value) || "function" == typeof n.onHeaderClicked && n.onHeaderClicked(a);
1678
+ for (var i = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], a = this.va, n = a.length, o = 0; o < n; o++)
1679
+ t(o);
1680
+ }, this._a = function (e) {
1681
+ if ("Disabled" !== r.headerClickHandling) {
1682
+ var t = this.data, i = r.ab(t), a = {};
1683
+ a.header = {}, a.header.id = t.id, a.header.name = t.name, a.header.start = t.start, a.column = i, a.originalEvent = e, a.shift = e.shiftKey, a.ctrl = e.ctrlKey, a.meta = e.metaKey, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onHeaderClick && (r.onHeaderClick(a), a.preventDefault.value) || "function" == typeof r.onHeaderClicked && r.onHeaderClicked(a);
1619
1684
  }
1620
- }, this.Ua = function (e) { return new DayPilot.CalendarColumn(e, n); }, this.Va = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.ga = function () {
1685
+ }, this.ab = function (e) { return new DayPilot.CalendarColumn(e, r); }, this.bb = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.ga = function () {
1621
1686
  var e = this.nav.header, t = !0, i = this.va;
1622
1687
  for (i.length; this.headerCreated && e && e.rows && e.rows.length > 0;)
1623
- this.fasterDispose || DayPilot.pu(e.rows[0]),
1624
- e.deleteRow(0);
1688
+ this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
1625
1689
  this.headerCreated = !0;
1626
- this.Sa(t);
1627
- }, this.loadingStart = function () { this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = ""); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.S("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.Wa = function () { var e = this.nav.scroll; e.onscroll || (e.onscroll = function () { n.Xa(); }); var t = "undefined" != typeof this.Ya.scrollpos ? this.Ya.scrollpos : this.initScrollPos; t && ("Auto" === t && (t = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), e.root = this, 0 === e.scrollTop && (e.scrollTop = t)); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.Za = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.$a = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp), DayPilot.re(window, "unload", t.gUnload)); }, this.events = {}, this.events.add = function (e) {
1690
+ this.$a(t);
1691
+ }, this.loadingStart = function () { this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = ""); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.S("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.cb = function () { var e = this.nav.scroll; e.onscroll || (e.onscroll = function () { r.db(); }); var t = "undefined" != typeof this.eb.scrollpos ? this.eb.scrollpos : this.initScrollPos; t && ("Auto" === t && (t = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), e.root = this, 0 === e.scrollTop && (e.scrollTop = t)); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.fb = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.gb = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp), DayPilot.re(window, "unload", t.gUnload)); }, this.events = {}, this.events.add = function (e) {
1628
1692
  var t = null;
1629
1693
  if (e instanceof DayPilot.Event)
1630
1694
  t = e.data;
@@ -1633,108 +1697,108 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1633
1697
  throw "DayPilot.Calendar.events.add() expects an object or DayPilot.Event instance.";
1634
1698
  t = e;
1635
1699
  }
1636
- n.events.list || (n.events.list = []), n.events.list.push(t), n._a({ "eventsOnly": !0 }), n.sa.notify();
1700
+ r.events.list || (r.events.list = []), r.events.list.push(t), r.hb({ "eventsOnly": !0 }), r.sa.notify();
1637
1701
  }, this.events.find = function (e) {
1638
- if (!n.events.list)
1702
+ if (!r.events.list)
1639
1703
  return null;
1640
1704
  if ("function" == typeof e) {
1641
- for (var t = e, i = 0; i < n.events.list.length; i++) {
1642
- var a = new DayPilot.Event(n.events.list[i], n);
1705
+ for (var t = e, i = 0; i < r.events.list.length; i++) {
1706
+ var a = new DayPilot.Event(r.events.list[i], r);
1643
1707
  if (t(a))
1644
1708
  return a;
1645
1709
  }
1646
1710
  return null;
1647
1711
  }
1648
- for (var i = 0; i < n.events.list.length; i++) {
1649
- var o = n.events.list[i];
1650
- if (o.id === e)
1651
- return new DayPilot.Event(o, n);
1712
+ for (var i = 0; i < r.events.list.length; i++) {
1713
+ var n = r.events.list[i];
1714
+ if (n.id === e)
1715
+ return new DayPilot.Event(n, r);
1652
1716
  }
1653
1717
  return null;
1654
- }, this.events.update = function (e) {
1718
+ }, this.events.forRange = function (e, t) { return e = new DayPilot.Date(e), t = new DayPilot.Date(t), (r.events.list || []).filter(function (i) { return a(e, t, new DayPilot.Date(i.start), new DayPilot.Date(i.end)); }).map(function (e) { return new DayPilot.Event(e, r); }); }, this.events.update = function (e) {
1655
1719
  if (e instanceof DayPilot.Event)
1656
1720
  e.commit();
1657
1721
  else if ("object" == typeof e) {
1658
- var t = n.events.find(e.id);
1722
+ var t = r.events.find(e.id);
1659
1723
  if (t) {
1660
- var i = DayPilot.indexOf(n.events.list, t.data);
1661
- n.events.list.splice(i, 1, e);
1724
+ var i = DayPilot.indexOf(r.events.list, t.data);
1725
+ r.events.list.splice(i, 1, e);
1662
1726
  }
1663
1727
  }
1664
- n._a({ "eventsOnly": !0 }), n.sa.notify();
1728
+ r.hb({ "eventsOnly": !0 }), r.sa.notify();
1665
1729
  }, this.events.remove = function (e) {
1666
1730
  var t;
1667
1731
  if (e instanceof DayPilot.Event)
1668
1732
  t = e.data;
1669
1733
  else if ("object" == typeof e) {
1670
- var i = n.events.find(e.id);
1734
+ var i = r.events.find(e.id);
1671
1735
  i && (t = i.data);
1672
1736
  }
1673
1737
  else if ("string" == typeof e || "number" == typeof e) {
1674
- var i = n.events.find(e);
1738
+ var i = r.events.find(e);
1675
1739
  i && (t = i.data);
1676
1740
  }
1677
- var a = DayPilot.indexOf(n.events.list, t);
1678
- n.events.list.splice(a, 1), n._a({ "eventsOnly": !0 }), n.sa.notify();
1741
+ var a = DayPilot.indexOf(r.events.list, t);
1742
+ r.events.list.splice(a, 1), r.hb({ "eventsOnly": !0 }), r.sa.notify();
1679
1743
  }, this.events.load = function (e, t, i) {
1680
- var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) {
1681
- var i, o = e.request;
1744
+ var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, n = function (e) {
1745
+ var i, n = e.request;
1682
1746
  try {
1683
- i = JSON.parse(o.responseText);
1747
+ i = JSON.parse(n.responseText);
1684
1748
  }
1685
1749
  catch (e) {
1686
- var r = {};
1687
- return r.exception = e, void a(r);
1750
+ var o = {};
1751
+ return o.exception = e, void a(o);
1688
1752
  }
1689
1753
  if (DayPilot.isArray(i)) {
1690
1754
  var s = {};
1691
1755
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
1692
1756
  return;
1693
- n.events.list = i, n.Ba && n._a({ "eventsOnly": !0 });
1757
+ r.events.list = i, r.Ba && r.hb({ "eventsOnly": !0 });
1694
1758
  }
1695
1759
  };
1696
- if (n.eventsLoadMethod && "POST" === n.eventsLoadMethod.toUpperCase())
1697
- DayPilot.Http.ajax({ "method": "POST", "data": { "start": n.visibleStart().toString(), "end": n.visibleEnd().toString() }, "url": e, "success": o, "error": a });
1760
+ if (r.eventsLoadMethod && "POST" === r.eventsLoadMethod.toUpperCase())
1761
+ DayPilot.Http.ajax({ "method": "POST", "data": { "start": r.visibleStart().toString(), "end": r.visibleEnd().toString() }, "url": e, "success": n, "error": a });
1698
1762
  else {
1699
- var r = e, s = "start=" + n.visibleStart().toString() + "&end=" + n.visibleEnd().toString();
1700
- r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": a });
1763
+ var o = e, s = "start=" + r.visibleStart().toString() + "&end=" + r.visibleEnd().toString();
1764
+ o += o.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": o, "success": n, "error": a });
1701
1765
  }
1702
- }, this.ab = function () {
1703
- if (n.nav.top.className !== n.K("_main")) {
1704
- n.nav.top.className = n.K("_main");
1705
- var e = n.nav.corner;
1706
- e.className = n.K("_corner"), e.firstChild.className = n.K("_corner_inner");
1707
- var t = n.nav.cornerRight;
1708
- t && (t.className = n.K("_cornerright"), t.firstChild.className = n.K("_cornerright_inner"));
1766
+ }, this.ib = function () {
1767
+ if (r.nav.top.className !== r.K("_main")) {
1768
+ r.nav.top.className = r.K("_main");
1769
+ var e = r.nav.corner;
1770
+ e.className = r.K("_corner"), e.firstChild.className = r.K("_corner_inner");
1771
+ var t = r.nav.cornerRight;
1772
+ t && (t.className = r.K("_cornerright"), t.firstChild.className = r.K("_cornerright_inner"));
1709
1773
  }
1710
1774
  }, this.update = function (e) {
1711
- if (n.O)
1775
+ if (r.O)
1712
1776
  throw new DayPilot.Exception("You are trying to update a DayPilot.Calendar instance that has been disposed.");
1713
- n.bb(e), n._a();
1714
- }, this._a = function (e) {
1777
+ r.jb(e), r.hb();
1778
+ }, this.hb = function (e) {
1715
1779
  if (this.Ba) {
1716
1780
  var e = e || {}, t = !e.eventsOnly;
1717
- n.cb(), n.W(), n.nav.top.style.cursor = "auto", t && (n.da(), n.ga(), n.ha(), n.ia(), n.ja(), n.Pa(), n.Za(), n.ab(), n.db()), n.ea(), n.fa(), n.ka(), n.clearSelection(), this.visible ? this.show() : this.hide();
1781
+ r.kb(), r.W(), r.nav.top.style.cursor = "auto", t && (r.da(), r.ga(), r.ha(), r.ia(), r.ja(), r.Wa(), r.fb(), r.ib(), r.lb()), r.ea(), r.fa(), r.ka(), r.clearSelection(), this.visible ? this.show() : this.hide();
1718
1782
  }
1719
- }, this.eb = null, this.bb = function (e) {
1783
+ }, this.mb = null, this.jb = function (e) {
1720
1784
  if (e) {
1721
- var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? n.events.list = e.list : n.events.list = e; } }, "columns": { "preInit": function () { n.columns.list = this.data; } } };
1722
- this.eb = t;
1785
+ var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? r.events.list = e.list : r.events.list = e; } }, "columns": { "preInit": function () { r.columns.list = this.data; } } };
1786
+ this.mb = t;
1723
1787
  for (var i in e)
1724
1788
  if (t[i]) {
1725
1789
  var a = t[i];
1726
1790
  a.data = e[i], a.preInit && a.preInit();
1727
1791
  }
1728
1792
  else
1729
- n[i] = e[i];
1793
+ r[i] = e[i];
1730
1794
  }
1731
- }, this.fb = function () {
1732
- var e = this.eb;
1795
+ }, this.nb = function () {
1796
+ var e = this.mb;
1733
1797
  for (var t in e) {
1734
1798
  var i = e[t];
1735
1799
  i.postInit && i.postInit();
1736
1800
  }
1737
- }, this.gb = function () {
1801
+ }, this.ob = function () {
1738
1802
  if (this.id && this.id.tagName)
1739
1803
  this.nav.top = this.id;
1740
1804
  else {
@@ -1743,26 +1807,26 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1743
1807
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
1744
1808
  throw "DayPilot.Calendar: The placeholder element not found: '" + e + "'.";
1745
1809
  }
1746
- }, this.hb = {}, this.hb.events = [], this.ib = function (e) {
1747
- var t = this.hb.events, i = this.events.list[e], a = {};
1748
- for (var o in i)
1749
- a[o] = i[o];
1750
- if ("function" == typeof this.onBeforeEventRender) {
1751
- var r = {};
1752
- r.control = n, r.data = a, this.onBeforeEventRender(r);
1810
+ }, this.pb = {}, this.pb.events = [], this.qb = function (e) {
1811
+ var t = this.pb.events, i = this.events.list[e], a = {};
1812
+ for (var n in i)
1813
+ a[n] = i[n];
1814
+ if (a.start = new DayPilot.Date(i.start), a.end = new DayPilot.Date(i.end), "function" == typeof this.onBeforeEventRender) {
1815
+ var o = {};
1816
+ o.control = r, o.data = a, this.onBeforeEventRender(o);
1753
1817
  }
1754
1818
  t[e] = a;
1755
1819
  }, this.ea = function () {
1756
1820
  var e = this.events.list;
1757
- if (n.hb.events = [], e) {
1821
+ if (r.pb.events = [], e) {
1758
1822
  if (!DayPilot.isArray(e))
1759
1823
  throw new DayPilot.Exception("DayPilot.Calendar.events.list expects an array object. You supplied: " + typeof e);
1760
1824
  var t = e.length, i = 864e5;
1761
1825
  this.cache.pixels = {};
1762
1826
  var a = [];
1763
1827
  this.scrollLabels = [], this.minStart = 1e4, this.maxEnd = 0;
1764
- for (var o = 0; o < t; o++) {
1765
- var r = e[o], s = r;
1828
+ for (var n = 0; n < t; n++) {
1829
+ var o = e[n], s = o;
1766
1830
  if ("object" != typeof s)
1767
1831
  throw new DayPilot.Exception("Event data item must be an object");
1768
1832
  if (!s.start)
@@ -1771,58 +1835,57 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1771
1835
  throw new DayPilot.Exception("Event data item must specify 'end' property");
1772
1836
  if (s instanceof DayPilot.Event)
1773
1837
  throw new DayPilot.Exception("DayPilot.Calendar: DayPilot.Event object detected in events.list array. Use raw event data instead.");
1774
- r.start = new DayPilot.Date(r.start), r.end = new DayPilot.Date(r.end);
1775
1838
  }
1776
1839
  if ("function" == typeof this.onBeforeEventRender)
1777
- for (var o = 0; o < t; o++)
1778
- this.ib(o);
1779
- for (var o = 0; o < this.va.length; o++) {
1840
+ for (var n = 0; n < t; n++)
1841
+ this.qb(n);
1842
+ for (var n = 0; n < this.va.length; n++) {
1780
1843
  var l = {};
1781
1844
  l.minEnd = 1e6, l.maxStart = -1, this.scrollLabels.push(l);
1782
- var d = this.va[o];
1845
+ var d = this.va[n];
1783
1846
  d.events = [], d.lines = [], d.blocks = [];
1784
1847
  for (var c = new DayPilot.Date(d.start), u = c.getTime(), h = c.addTime(i), f = h.getTime(), m = 0; m < t; m++)
1785
1848
  if (!a[m]) {
1786
- var r = e[m], p = r.start, v = r.end, y = p.getTime(), g = v.getTime();
1849
+ var o = e[m], p = new DayPilot.Date(o.start), v = new DayPilot.Date(o.end), y = p.getTime(), g = v.getTime();
1787
1850
  if (!(g < y)) {
1788
1851
  var b = !(g <= u || y >= f);
1789
- if ("Resources" === n.viewType && (b = b && d.id === r.resource), b) {
1790
- var D = new DayPilot.Event(r, n);
1791
- D.part.dayIndex = o, D.part.start = u < y ? r.start : c, D.part.end = f > g ? r.end : h;
1792
- var x = this.getPixels(D.part.start, d.start), w = this.getPixels(D.part.end, d.start), C = x.top, P = w.top;
1793
- if (C === P && (x.cut || w.cut))
1852
+ if ("Resources" === r.viewType && (b = b && d.id === o.resource), b) {
1853
+ var D = new DayPilot.Event(o, r);
1854
+ D.part.dayIndex = n, D.part.start = u < y ? p : c, D.part.end = f > g ? v : h;
1855
+ var w = this.getPixels(D.part.start, d.start), x = this.getPixels(D.part.end, d.start), C = w.top, P = x.top;
1856
+ if (C === P && (w.cut || x.cut))
1794
1857
  continue;
1795
- var k = w.boxBottom;
1858
+ var k = x.boxBottom;
1796
1859
  D.part.top = Math.floor(C / this.cellHeight) * this.cellHeight + 1, D.part.height = Math.max(Math.ceil(k / this.cellHeight) * this.cellHeight - D.part.top, this.cellHeight - 1) + 1, D.part.barTop = Math.max(C - D.part.top - 1, 0), D.part.barHeight = Math.max(P - C - 2, 1);
1797
1860
  var p = D.part.top, v = D.part.top + D.part.height;
1798
- p > l.maxStart && (l.maxStart = p), v < l.minEnd && (l.minEnd = v), p < this.minStart && (this.minStart = p), v > this.maxEnd && (this.maxEnd = v), d.events.push(D), "function" == typeof this.onBeforeEventRender && (D.cache = this.hb.events[m]), D.part.start.getTime() === y && D.part.end.getTime() === g && (a[m] = !0);
1861
+ p > l.maxStart && (l.maxStart = p), v < l.minEnd && (l.minEnd = v), p < this.minStart && (this.minStart = p), v > this.maxEnd && (this.maxEnd = v), d.events.push(D), "function" == typeof this.onBeforeEventRender && (D.cache = this.pb.events[m]), D.part.start.getTime() === y && D.part.end.getTime() === g && (a[m] = !0);
1799
1862
  }
1800
1863
  }
1801
1864
  }
1802
1865
  }
1803
- for (var o = 0; o < this.va.length; o++) {
1804
- var d = this.va[o];
1805
- d.events.sort(this.jb);
1866
+ for (var n = 0; n < this.va.length; n++) {
1867
+ var d = this.va[n];
1868
+ d.events.sort(this.rb);
1806
1869
  for (var m = 0; m < d.events.length; m++) {
1807
- var r = d.events[m];
1808
- d.putIntoBlock(r);
1870
+ var o = d.events[m];
1871
+ d.putIntoBlock(o);
1809
1872
  }
1810
1873
  for (var m = 0; m < d.blocks.length; m++) {
1811
1874
  var _ = d.blocks[m];
1812
- _.events.sort(this.jb);
1875
+ _.events.sort(this.rb);
1813
1876
  for (var S = 0; S < _.events.length; S++) {
1814
- var r = _.events[S];
1815
- _.putIntoLine(r);
1877
+ var o = _.events[S];
1878
+ _.putIntoLine(o);
1816
1879
  }
1817
1880
  }
1818
1881
  }
1819
1882
  }
1820
- }, this.jb = function (e, t) {
1883
+ }, this.rb = function (e, t) {
1821
1884
  if (!(e && t && e.start && t.start))
1822
1885
  return 0;
1823
1886
  var i = e.start().getTime() - t.start().getTime();
1824
1887
  return 0 !== i ? i : t.end().getTime() - e.end().getTime();
1825
- }, this.debug = function (e, t) { this.debuggingEnabled && (n.debugMessages || (n.debugMessages = []), n.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.getPixels = function (e, t) {
1888
+ }, this.debug = function (e, t) { this.debuggingEnabled && (r.debugMessages || (r.debugMessages = []), r.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.getPixels = function (e, t) {
1826
1889
  t || (t = this.startDate);
1827
1890
  var i = t.getTime(), a = e.getTime(), n = this.cache.pixels[a + "_" + i];
1828
1891
  if (n)
@@ -1831,30 +1894,42 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1831
1894
  var o = 18e5, r = a - i, s = r % o, l = r - s, d = l + o;
1832
1895
  0 === s && (d = l);
1833
1896
  var c = {};
1834
- return c.cut = !1, c.top = this.kb(r), c.boxTop = this.kb(l), c.boxBottom = this.kb(d), this.cache.pixels[a + "_" + i] = c, c;
1835
- }, this.kb = function (e) { return Math.floor(this.cellHeight * e / 18e5); }, this.cb = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.fa = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.ja = function () { var e = this.Ha(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.sa = {}, this.sa.scope = null, this.sa.notify = function () { n.sa.scope && n.sa.scope["$apply"](); }, this.sa.apply = function (e) { e(); }, this.Xa = function () {
1836
- if (n.nav.scroll) {
1837
- var e = n.nav.scroll.scrollTop, t = e / (2 * n.cellHeight);
1838
- n.Ya.scrollHour = t;
1839
- }
1840
- }, this.db = function () { var e = 0; "number" == typeof n.Ya.scrollHour ? e = 2 * n.cellHeight * n.Ya.scrollHour : "Auto" === n.initScrollPos && (e = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), n.nav.scroll.scrollTop = e; }, this.getScrollY = function () { return n.nav.scroll.scrollTop; }, this.setScrollY = function (e) { n.nav.scroll.scrollTop = e, n.Xa(); }, this.lb = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof n.events.list || !n.events.list); }, this.t = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { n.visible = !0, n.nav.top.style.display = "", this.Za(); }, this.hide = function () { n.visible = !1, n.nav.top.style.display = "none"; }, this.mb = function () { this.cb(), this.da(), this.Ga(), this.ga(), this.ha(), this.Za(), this.Wa(), this.$a(), t.register(this), this.nb(), this.S("Init"); }, this.Ya = {}, this.ob = function () { this.Ya.themes = [], this.Ya.themes.push(this.theme || this.cssClassPrefix); }, this.pb = function () {
1841
- for (var e = this.Ya.themes, t = 0; t < e.length; t++) {
1897
+ return c.cut = !1, c.top = this.sb(r), c.boxTop = this.sb(l), c.boxBottom = this.sb(d), this.cache.pixels[a + "_" + i] = c, c;
1898
+ }, this.sb = function (e) { return Math.floor(this.cellHeight * e / 18e5); }, this.kb = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.fa = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.ja = function () { var e = this.Oa(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.sa = {}, this.sa.scope = null, this.sa.notify = function () { r.sa.scope && r.sa.scope["$apply"](); }, this.sa.apply = function (e) { e(); }, this.db = function () {
1899
+ if (r.nav.scroll) {
1900
+ var e = r.nav.scroll.scrollTop, t = e / (2 * r.cellHeight);
1901
+ r.eb.scrollHour = t;
1902
+ }
1903
+ }, this.lb = function () { var e = 0; "number" == typeof r.eb.scrollHour ? e = 2 * r.cellHeight * r.eb.scrollHour : "Auto" === r.initScrollPos && (e = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), r.nav.scroll.scrollTop = e; }, this.getScrollY = function () { return r.nav.scroll.scrollTop; }, this.setScrollY = function (e) { r.nav.scroll.scrollTop = e, r.db(); }, this.tb = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof r.events.list || !r.events.list); }, this.t = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { r.visible = !0, r.nav.top.style.display = "", this.fb(); }, this.hide = function () { r.visible = !1, r.nav.top.style.display = "none"; }, this.ub = function () { this.kb(), this.da(), this.Na(), this.ga(), this.ha(), this.fb(), this.cb(), this.gb(), t.register(this), this.vb(), this.S("Init"); }, this.eb = {}, this.wb = function () { this.eb.themes = [], this.eb.themes.push(this.theme || this.cssClassPrefix); }, this.xb = function () {
1904
+ for (var e = this.eb.themes, t = 0; t < e.length; t++) {
1842
1905
  var i = e[t];
1843
1906
  DayPilot.Util.removeClass(this.nav.top, i + "_main");
1844
1907
  }
1845
- this.Ya.themes = [];
1846
- }, this.qb = function () {
1908
+ this.eb.themes = [];
1909
+ }, this.yb = function () {
1847
1910
  if (this.afterRender(null, !1), "function" == typeof this.onAfterRender) {
1848
1911
  var e = {};
1849
1912
  e.isCallBack = !1, this.onAfterRender(e);
1850
1913
  }
1851
- }, this.rb = function () {
1852
- if ("function" == typeof this.onInit && !this.sb) {
1853
- this.sb = !0;
1914
+ }, this.zb = function () {
1915
+ if ("function" == typeof this.onInit && !this.Ab) {
1916
+ this.Ab = !0;
1854
1917
  var e = {};
1855
1918
  this.onInit(e);
1856
1919
  }
1857
- }, this.tb = function () { var e = n.nav.top; return !!e && (e.offsetWidth > 0 && e.offsetHeight > 0); }, this.nb = function () { var e = n.tb; e() || (n.V = setInterval(function () { e() && (n.Wa(), n.Za(), clearInterval(n.V)); }, 100)); }, this.Ka = function (e, t) { return n.aa.ba() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.loadOptions = n.bb, this.internal.xssTextHtml = n.Ka, this.init = function () { this.gb(); var e = this.lb(); return this.ob(), e ? void this.mb() : (this.cb(), this.da(), this.ea(), this.Ga(), this.ga(), this.ha(), this.t(), this.Za(), this.Wa(), this.$a(), t.register(this), this.events && (this.fa(), this.ka()), this.qb(), this.rb(), this.nb(), this.Ba = !0, this); }, this.Init = this.init, this.bb(i);
1920
+ }, this.Bb = function () { var e = r.nav.top; return !!e && (e.offsetWidth > 0 && e.offsetHeight > 0); }, this.vb = function () { var e = r.Bb; e() || (r.V = setInterval(function () { e() && (r.cb(), r.fb(), clearInterval(r.V)); }, 100)); }, this.Ra = function (e, t) { return r.aa.ba() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Ha = {}, this.Ha.Ga = null, this.Ha.Cb = function (e, t, i) {
1921
+ var a = r.Ha.Ga;
1922
+ if ("function" == typeof a.createVNode && "function" == typeof a.render) {
1923
+ var n = a.createVNode(e, i);
1924
+ a.render(n, t);
1925
+ }
1926
+ }, this.Ha.La = function (e, t) {
1927
+ var i = r.Ha.Ga;
1928
+ if ("function" == typeof i.render) {
1929
+ var a = e;
1930
+ DayPilot.isArray(e) && (a = i.h("div", null, e)), i.render(a, t);
1931
+ }
1932
+ }, this.Ha.Ja = function (e) { var t = r.Ha.Ga; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = r.jb, this.internal.xssTextHtml = r.Ra, this.internal.enableVue = function (e) { r.Ha.Ga = e; }, this.internal.vueRef = function () { return r.Ha.Ga; }, this.internal.vueRendering = function () { return r.Ha.Ia; }, this.init = function () { this.ob(); var e = this.tb(); return this.wb(), e ? void this.ub() : (this.kb(), this.da(), this.ea(), this.Na(), this.ga(), this.ha(), this.t(), this.fb(), this.cb(), this.gb(), t.register(this), this.events && (this.fa(), this.ka()), this.yb(), this.zb(), this.vb(), this.Ba = !0, this); }, this.Init = this.init, this.jb(n);
1858
1933
  }, DayPilot.CalendarColumn = function (e, t) { var i = this; i.id = e.id, i.name = e.name, i.data = e.data, i.start = new DayPilot.Date(e.start), i.calendar = t, i.toJSON = function () { var e = {}; return e.id = this.id, this.start && (e.start = this.start.toString()), e.name = this.name, e; }; }, DayPilot.Calendar = t.Calendar, "undefined" != typeof jQuery && !function (e) {
1859
1934
  e.fn.daypilotCalendar = function (e) {
1860
1935
  var t = null, i = this.each(function () {
@@ -1886,7 +1961,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1886
1961
  l.call(t, d, function (e) {
1887
1962
  for (var t in e)
1888
1963
  n[t] = e[t];
1889
- n.update(), n.rb();
1964
+ n.update(), n.zb();
1890
1965
  }, !0), l.call(t, c, function (e) { n.events.list = e, n.update(); }, !0);
1891
1966
  } };
1892
1967
  }]);
@@ -1896,13 +1971,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1896
1971
  var DayPilot = {};
1897
1972
  if (function () {
1898
1973
  "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) {
1899
- this.v = "2024.4.566-lite";
1974
+ this.v = "2024.4.609-lite";
1900
1975
  var t = "navigator_" + (new Date).getTime(), i = this;
1901
1976
  this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () {
1902
1977
  if (this.locale = "en-us", this.target = null, this.targetAlignment = "left", this.resetTarget = !0, this.pattern = this.aa.locale().datePattern, this.theme = "navigator_default", this.patterns = [], this.zIndex = null, e)
1903
1978
  for (var t in e)
1904
1979
  this[t] = e[t];
1905
- }, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.ub(); this.resetTarget && !e ? this.vb(this.date) : this.resetTarget || (i.date = e); var t = this.C(); return t && t.addEventListener("input", function () { i.date = i.ub(), i.date && i.navigator.select(i.date, { dontNotify: !0 }); }), document.addEventListener("mousedown", function () { i.close(); }), this; }, this.close = function () { this.tb && (this.tb = !1, this.navigator && this.navigator.dispose(), this.div.innerHTML = "", this.div && this.div.parentNode === document.body && document.body.removeChild(this.div)); }, this.setDate = function (e) { this.date = new DayPilot.Date(e), this.vb(this.date); }, this.ub = function () {
1980
+ }, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.Db(); this.resetTarget && !e ? this.Eb(this.date) : this.resetTarget || (i.date = e); var t = this.C(); return t && t.addEventListener("input", function () { i.date = i.Db(), i.date && i.navigator.select(i.date, { dontNotify: !0 }); }), document.addEventListener("mousedown", function () { i.close(); }), this; }, this.close = function () { this.Bb && (this.Bb = !1, this.navigator && this.navigator.dispose(), this.div.innerHTML = "", this.div && this.div.parentNode === document.body && document.body.removeChild(this.div)); }, this.setDate = function (e) { this.date = new DayPilot.Date(e), this.Eb(this.date); }, this.Db = function () {
1906
1981
  var e = this.C();
1907
1982
  if (!e)
1908
1983
  return this.date;
@@ -1915,26 +1990,26 @@ if (function () {
1915
1990
  a = DayPilot.Date.parse(t, i.patterns[n]);
1916
1991
  }
1917
1992
  return a;
1918
- }, this.vb = function (e) {
1993
+ }, this.Eb = function (e) {
1919
1994
  var t = this.C();
1920
1995
  if (t) {
1921
1996
  var a = e.toString(i.pattern, i.locale);
1922
1997
  "INPUT" === t.tagName ? t.value = a : t.innerHTML = a;
1923
1998
  }
1924
- }, this.aa = {}, this.aa.locale = function () { return DayPilot.Locale.find(i.locale); }, this.C = function () { var e = this.target; return e && e.nodeType && 1 === e.nodeType ? e : document.getElementById(e); }, Object.defineProperty(this, "visible", { get: function () { return i.tb; } }), this.show = function () {
1925
- if (!this.tb) {
1999
+ }, this.aa = {}, this.aa.locale = function () { return DayPilot.Locale.find(i.locale); }, this.C = function () { var e = this.target; return e && e.nodeType && 1 === e.nodeType ? e : document.getElementById(e); }, Object.defineProperty(this, "visible", { get: function () { return i.Bb; } }), this.show = function () {
2000
+ if (!this.Bb) {
1926
2001
  var e = this.C(), a = this.navigator, a = new DayPilot.Navigator(t);
1927
- a.api = 2, a.cssOnly = !0, a.theme = i.theme, a.weekStarts = "Auto", a.locale = i.locale, a.onTimeRangeSelected = function (e) { i.date = e.start; var t = e.start.addTime(a.wb), n = t.toString(i.pattern, i.locale), e = {}; e.start = t, e.date = t, e.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(e), e.preventDefault.value) || (i.vb(n), i.close(), "function" == typeof i.onTimeRangeSelected && i.onTimeRangeSelected(e)); }, this.navigator = a;
2002
+ a.api = 2, a.cssOnly = !0, a.theme = i.theme, a.weekStarts = "Auto", a.locale = i.locale, a.onTimeRangeSelected = function (e) { i.date = e.start; var t = e.start.addTime(a.Fb), n = t.toString(i.pattern, i.locale), e = {}; e.start = t, e.date = t, e.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(e), e.preventDefault.value) || (i.Eb(n), i.close(), "function" == typeof i.onTimeRangeSelected && i.onTimeRangeSelected(e)); }, this.navigator = a;
1928
2003
  var n = DayPilot.abs(e), o = e.offsetHeight, r = i.targetAlignment, s = document.createElement("div");
1929
2004
  s.style.position = "absolute", "left" === r && (s.style.left = n.x + "px"), s.style.top = n.y + o + "px", i.zIndex && (s.style.zIndex = i.zIndex);
1930
2005
  var l = document.createElement("div");
1931
2006
  l.id = t, s.appendChild(l), s.addEventListener("mousedown", function (e) { var e = e || window.event; e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(); }), document.body.appendChild(s), this.div = s;
1932
- var d = i.ub() || (new DayPilot.Date).getDatePart();
1933
- if (a.startDate = d, a.wb = d.getTimePart(), a.selectionDay = d.getDatePart(), a.init(), "right" === r) {
2007
+ var d = i.Db() || (new DayPilot.Date).getDatePart();
2008
+ if (a.startDate = d, a.Fb = d.getTimePart(), a.selectionDay = d.getDatePart(), a.init(), "right" === r) {
1934
2009
  var c = n.x + e.offsetWidth - a.nav.top.offsetWidth;
1935
2010
  s.style.left = c + "px";
1936
2011
  }
1937
- this.tb = !0, this.onShow && this.onShow();
2012
+ this.Bb = !0, this.onShow && this.onShow();
1938
2013
  }
1939
2014
  }, this.prepare(), this.init();
1940
2015
  });
@@ -1946,10 +2021,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1946
2021
  var e = function () { }, t = {};
1947
2022
  t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) {
1948
2023
  var a = this, n = null;
1949
- this.v = "2024.4.566-lite", this.zIndex = 120, this.cssClassPrefix = "menu_default", this.cssOnly = !0, this.menuTitle = null, this.showMenuTitle = !1, this.hideOnMouseOut = !1, this.hideAfter = 200, this.theme = null, this.onShow = null, this.xb = function () { }, i && DayPilot.isArray(i) && (this.items = i), this.toJSON = function () { return null; }, this.show = function (i, o) {
2024
+ this.v = "2024.4.609-lite", this.zIndex = 120, this.cssClassPrefix = "menu_default", this.cssOnly = !0, this.menuTitle = null, this.showMenuTitle = !1, this.hideOnMouseOut = !1, this.hideAfter = 200, this.theme = null, this.onShow = null, this.Gb = function () { }, i && DayPilot.isArray(i) && (this.items = i), this.toJSON = function () { return null; }, this.show = function (i, o) {
1950
2025
  o = o || {};
1951
2026
  var r = null;
1952
- if (i ? "string" == typeof i.id || "number" == typeof i.id ? r = i.id : "function" == typeof i.id ? r = i.id() : "function" == typeof i.value && (r = i.value()) : r = null, "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), o.submenu || t.menuClean(), this.xb.submenu = null, null !== t.mouse) {
2027
+ if (i ? "string" == typeof i.id || "number" == typeof i.id ? r = i.id : "function" == typeof i.id ? r = i.id() : "function" == typeof i.value && (r = i.value()) : r = null, "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), o.submenu || t.menuClean(), this.Gb.submenu = null, null !== t.mouse) {
1953
2028
  a.cssOnly || (a.cssOnly = !0);
1954
2029
  var s = null;
1955
2030
  if (i && i.isRow && i.$.row.task ? (s = new DayPilot.Task(i.$.row.task, i.calendar), s.menuType = "resource") : s = i && i.isEvent && i.data.task ? new DayPilot.Task(i, i.calendar) : i, "function" == typeof a.onShow) {
@@ -1958,15 +2033,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1958
2033
  return;
1959
2034
  }
1960
2035
  var d = document.createElement("div");
1961
- if (d.style.position = "absolute", d.style.top = "0px", d.style.left = "0px", d.style.display = "none", d.style.overflow = "hidden", d.style.zIndex = this.zIndex + 1, d.className = this.yb("main"), d.onclick = function (e) { e.cancelBubble = !0, this.parentNode.removeChild(this); }, this.hideOnMouseOut && (d.onmousemove = function (e) { clearTimeout(t.hideTimeout); }, d.onmouseleave = function (e) { a.delayedHide({ "hideParent": !0 }); }), !this.items || 0 === this.items.length)
2036
+ if (d.style.position = "absolute", d.style.top = "0px", d.style.left = "0px", d.style.display = "none", d.style.overflow = "hidden", d.style.zIndex = this.zIndex + 1, d.className = this.Hb("main"), d.onclick = function (e) { e.cancelBubble = !0, this.parentNode.removeChild(this); }, this.hideOnMouseOut && (d.onmousemove = function (e) { clearTimeout(t.hideTimeout); }, d.onmouseleave = function (e) { a.delayedHide({ "hideParent": !0 }); }), !this.items || 0 === this.items.length)
1962
2037
  throw "No menu items defined.";
1963
2038
  if (this.showMenuTitle) {
1964
2039
  var c = document.createElement("div");
1965
- c.innerHTML = this.menuTitle, c.className = this.yb("title"), d.appendChild(c);
2040
+ c.innerHTML = this.menuTitle, c.className = this.Hb("title"), d.appendChild(c);
1966
2041
  }
1967
2042
  for (var u = 0; u < this.items.length; u++) {
1968
2043
  var h = this.items[u], f = document.createElement("div");
1969
- if (DayPilot.Util.addClass(f, this.yb("item")), h.items && (DayPilot.Util.addClass(f, this.yb("item_haschildren")), DayPilot.Util.addClass(d, this.yb("withchildren"))), "undefined" != typeof h && !h.hidden) {
2044
+ if (DayPilot.Util.addClass(f, this.Hb("item")), h.items && (DayPilot.Util.addClass(f, this.Hb("item_haschildren")), DayPilot.Util.addClass(d, this.Hb("withchildren"))), "undefined" != typeof h && !h.hidden) {
1970
2045
  if ("-" === h.text) {
1971
2046
  var m = document.createElement("div");
1972
2047
  m.addEventListener("click", function (e) { e.stopPropagation(); }), f.appendChild(m);
@@ -1974,7 +2049,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1974
2049
  else {
1975
2050
  var p = document.createElement("a");
1976
2051
  if (p.style.position = "relative", p.style.display = "block", h.cssClass && DayPilot.Util.addClass(p, h.cssClass), h.disabled)
1977
- DayPilot.Util.addClass(p, a.yb("item_disabled"));
2052
+ DayPilot.Util.addClass(p, a.Hb("item_disabled"));
1978
2053
  else {
1979
2054
  if (h.onclick || h.onClick) {
1980
2055
  p.item = h, p.onclick = function (e, t) {
@@ -2002,7 +2077,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2002
2077
  DayPilot.reNonPassive(p, "touchstart", function (e) { e.stopPropagation(), e.preventDefault(), p.source.calendar.internal.touch.active = !0; }), DayPilot.reNonPassive(p, "touchend", v(h, p));
2003
2078
  }
2004
2079
  if (h.items && !h.disabled) {
2005
- var y = function (e, t) { return function (i) { i.preventDefault(), i.stopPropagation(), a.zb(e, t); }; };
2080
+ var y = function (e, t) { return function (i) { i.preventDefault(), i.stopPropagation(), a.Ib(e, t); }; };
2006
2081
  p.ontouchend = y(h, p);
2007
2082
  }
2008
2083
  if (h.onclick)
@@ -2038,23 +2113,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2038
2113
  }
2039
2114
  h.items && p.addEventListener("click", function (e) { e.stopPropagation(); }), p.source = s, p.menuSource = i;
2040
2115
  var g = document.createElement("span");
2041
- if (g.className = a.yb("item_text"), g.innerHTML = DayPilot.Util.escapeTextHtml(h.text, h.html), p.appendChild(g), h.image) {
2116
+ if (g.className = a.Hb("item_text"), g.innerHTML = DayPilot.Util.escapeTextHtml(h.text, h.html), p.appendChild(g), h.image) {
2042
2117
  var b = document.createElement("img");
2043
2118
  b.src = h.image, b.style.position = "absolute", b.style.top = "0px", b.style.left = "0px", p.appendChild(b);
2044
2119
  }
2045
2120
  if (h.icon) {
2046
2121
  var D = document.createElement("span");
2047
- D.className = a.yb("item_icon");
2048
- var x = document.createElement("i");
2049
- x.className = h.icon, D.appendChild(x), p.appendChild(D);
2122
+ D.className = a.Hb("item_icon");
2123
+ var w = document.createElement("i");
2124
+ w.className = h.icon, D.appendChild(w), p.appendChild(D);
2050
2125
  }
2051
2126
  if (h.symbol) {
2052
- var w = "http://www.w3.org/2000/svg", C = document.createElementNS(w, "svg");
2127
+ var x = "http://www.w3.org/2000/svg", C = document.createElementNS(x, "svg");
2053
2128
  C.setAttribute("width", "100%"), C.setAttribute("height", "100%");
2054
- var P = document.createElementNS(w, "use");
2129
+ var P = document.createElementNS(x, "use");
2055
2130
  P.setAttribute("href", h.symbol), C.appendChild(P);
2056
2131
  var k = document.createElement("span");
2057
- k.className = a.yb("item_symbol"), k.style.position = "absolute", k.style.top = "0px", k.style.left = "0px", k.appendChild(C), p.appendChild(k);
2132
+ k.className = a.Hb("item_symbol"), k.style.position = "absolute", k.style.top = "0px", k.style.left = "0px", k.appendChild(C), p.appendChild(k);
2058
2133
  }
2059
2134
  var _ = function (e, i) {
2060
2135
  return function () {
@@ -2064,7 +2139,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2064
2139
  return;
2065
2140
  clearTimeout(o.timeout), t.waitingSubmenu = null;
2066
2141
  }
2067
- e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = n, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, a.zb(n, i); }, 300));
2142
+ e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = n, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, a.Ib(n, i); }, 300));
2068
2143
  };
2069
2144
  };
2070
2145
  p.onmouseover = _(h, p), f.appendChild(p);
@@ -2073,10 +2148,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2073
2148
  }
2074
2149
  }
2075
2150
  var S = function (e) { window.setTimeout(function () { t.menuClean(), DayPilot.MenuBar.deactivate(); }, 100); };
2076
- d.onclick = S, d.ontouchend = S, d.onmousedown = function (e) { e = e || window.event, e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(); }, d.oncontextmenu = function () { return !1; }, document.body.appendChild(d), a.xb.visible = !0, a.xb.source = i, d.style.display = "";
2077
- var M = d.offsetHeight, T = d.offsetWidth;
2151
+ d.onclick = S, d.ontouchend = S, d.onmousedown = function (e) { e = e || window.event, e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(); }, d.oncontextmenu = function () { return !1; }, document.body.appendChild(d), a.Gb.visible = !0, a.Gb.source = i, d.style.display = "";
2152
+ var M = d.offsetHeight, H = d.offsetWidth;
2078
2153
  d.style.display = "none";
2079
- var A = document.documentElement.clientHeight, H = window.innerWidth, E = "number" == typeof o.windowMargin ? o.windowMargin : 5;
2154
+ var A = document.documentElement.clientHeight, T = window.innerWidth, E = "number" == typeof o.windowMargin ? o.windowMargin : 5;
2080
2155
  if (function () {
2081
2156
  var e = o.initiator;
2082
2157
  if (e) {
@@ -2094,30 +2169,30 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2094
2169
  }
2095
2170
  else
2096
2171
  d.style.top = i + "px";
2097
- if ("right" === o.align && (e -= T), e - n > H - T && 0 !== H) {
2098
- var s = e - n - (H - T) + E;
2172
+ if ("right" === o.align && (e -= H), e - n > T - H && 0 !== T) {
2173
+ var s = e - n - (T - H) + E;
2099
2174
  d.style.left = e - s + "px";
2100
2175
  }
2101
2176
  else
2102
2177
  d.style.left = e + "px";
2103
2178
  }(), o.parentLink) {
2104
- var N = o.parentLink, I = parseInt(new DayPilot.StyleReader(d).get("border-top-width")), O = DayPilot.abs(o.parentLink.parentNode), U = O.x + N.offsetWidth, z = O.y - I;
2105
- U + T > H && (U = Math.max(0, O.x - T));
2106
- var R = document.body.scrollTop + document.documentElement.scrollTop;
2107
- z + M - R > A && (z = Math.max(0, A - M + R)), d.style.left = U + "px", d.style.top = z + "px";
2179
+ var N = o.parentLink, I = parseInt(new DayPilot.StyleReader(d).get("border-top-width")), R = DayPilot.abs(o.parentLink.parentNode), B = R.x + N.offsetWidth, z = R.y - I;
2180
+ B + H > T && (B = Math.max(0, R.x - H));
2181
+ var O = document.body.scrollTop + document.documentElement.scrollTop;
2182
+ z + M - O > A && (z = Math.max(0, A - M + O)), d.style.left = B + "px", d.style.top = z + "px";
2108
2183
  }
2109
- d.style.display = "", this.addShadow(d), this.xb.div = d, o.submenu || (DayPilot.Menu.active = this);
2184
+ d.style.display = "", this.addShadow(d), this.Gb.div = d, o.submenu || (DayPilot.Menu.active = this);
2110
2185
  }
2111
- }, this.zb = function (e, t) {
2186
+ }, this.Ib = function (e, t) {
2112
2187
  var i = e, n = t.source;
2113
- if ((!a.xb.submenu || a.xb.submenu.item !== e) && (a.xb.submenu && a.xb.submenu.item !== e && (DayPilot.Util.removeClass(a.xb.submenu.link.parentNode, a.yb("item_haschildren_active")), a.xb.submenu.menu.hide(), a.xb.submenu = null), e.items)) {
2188
+ if ((!a.Gb.submenu || a.Gb.submenu.item !== e) && (a.Gb.submenu && a.Gb.submenu.item !== e && (DayPilot.Util.removeClass(a.Gb.submenu.link.parentNode, a.Hb("item_haschildren_active")), a.Gb.submenu.menu.hide(), a.Gb.submenu = null), e.items)) {
2114
2189
  var o = a.cloneOptions();
2115
- o.items = e.items, a.xb.submenu = {}, a.xb.submenu.menu = new DayPilot.Menu(o), a.xb.submenu.menu.Ab = a, a.xb.submenu.menu.show(n, { "submenu": !0, "parentLink": t, "parentItem": i }), a.xb.submenu.item = e, a.xb.submenu.link = t, DayPilot.Util.addClass(t.parentNode, a.yb("item_haschildren_active"));
2190
+ o.items = e.items, a.Gb.submenu = {}, a.Gb.submenu.menu = new DayPilot.Menu(o), a.Gb.submenu.menu.Jb = a, a.Gb.submenu.menu.show(n, { "submenu": !0, "parentLink": t, "parentItem": i }), a.Gb.submenu.item = e, a.Gb.submenu.link = t, DayPilot.Util.addClass(t.parentNode, a.Hb("item_haschildren_active"));
2116
2191
  }
2117
- }, this.yb = function (e) { var t = this.theme || this.cssClassPrefix, i = this.cssOnly ? "_" : ""; return t ? t + i + e : ""; }, this.cloneOptions = function () { return DayPilot.Util.copyProps(o, {}, ["cssClassPrefix", "theme", "hideAfter", "hideOnMouseOut", "zIndex"]); }, this.hide = function (e) {
2118
- e = e || {}, this.xb.submenu && this.xb.submenu.menu.hide();
2192
+ }, this.Hb = function (e) { var t = this.theme || this.cssClassPrefix, i = this.cssOnly ? "_" : ""; return t ? t + i + e : ""; }, this.cloneOptions = function () { return DayPilot.Util.copyProps(o, {}, ["cssClassPrefix", "theme", "hideAfter", "hideOnMouseOut", "zIndex"]); }, this.hide = function (e) {
2193
+ e = e || {}, this.Gb.submenu && this.Gb.submenu.menu.hide();
2119
2194
  var i = t.waitingSubmenu;
2120
- if (i && (t.waitingSubmenu = null, clearTimeout(i.timeout)), this.removeShadow(), this.xb.div && this.xb.div.parentNode === document.body && document.body.removeChild(this.xb.div), n && (DayPilot.de(n), n = null), a.xb.visible = !1, a.xb.source = null, a.Ab && e.hideParent && a.Ab.hide(e), DayPilot.Menu.active === a && (DayPilot.Menu.active = null), "function" == typeof this.onHide) {
2195
+ if (i && (t.waitingSubmenu = null, clearTimeout(i.timeout)), this.removeShadow(), this.Gb.div && this.Gb.div.parentNode === document.body && document.body.removeChild(this.Gb.div), n && (DayPilot.de(n), n = null), a.Gb.visible = !1, a.Gb.source = null, a.Jb && e.hideParent && a.Jb.hide(e), DayPilot.Menu.active === a && (DayPilot.Menu.active = null), "function" == typeof this.onHide) {
2121
2196
  var o = {};
2122
2197
  this.onHide(o);
2123
2198
  }
@@ -2131,28 +2206,28 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2131
2206
  t = t || {}, this.items = [], this.theme = "menubar_default", this.windowMargin = 0, this.nav = {}, this.elements = {}, this.elements.items = DayPilot.list(), this.k = null, this.Ba = !1;
2132
2207
  for (var a in t)
2133
2208
  this[a] = t[a];
2134
- this.Bb = function (e) { return this.theme + "_" + e; }, this.t = function () {
2209
+ this.Kb = function (e) { return this.theme + "_" + e; }, this.t = function () {
2135
2210
  this.nav.top = document.getElementById(e);
2136
2211
  var t = this.nav.top;
2137
- t.className = this.Bb("main"), DayPilot.list(i.items).forEach(function (e) {
2212
+ t.className = this.Kb("main"), DayPilot.list(i.items).forEach(function (e) {
2138
2213
  var a = document.createElement("span");
2139
- a.innerHTML = DayPilot.Util.escapeTextHtml(e.text, e.html), a.className = i.Bb("item"), e.cssClass && a.classList.add(e.cssClass), a.data = e, a.onclick = function (t) {
2214
+ a.innerHTML = DayPilot.Util.escapeTextHtml(e.text, e.html), a.className = i.Kb("item"), e.cssClass && a.classList.add(e.cssClass), a.data = e, a.onclick = function (t) {
2140
2215
  if (i.active && i.active.item === e)
2141
- i.Cb();
2216
+ i.Lb();
2142
2217
  else if (e.children)
2143
- return void i.Db(a);
2218
+ return void i.Mb(a);
2144
2219
  if ("function" == typeof e.onClick) {
2145
2220
  var n = {};
2146
2221
  n.item = e, n.originalEvent = t, e.onClick(n);
2147
2222
  }
2148
- }, a.onmousedown = function (e) { e.stopPropagation(); }, a.onmouseover = function () { i.active && i.active.item !== e && i.Db(a); }, t.appendChild(a), i.elements.items.push(a);
2223
+ }, a.onmousedown = function (e) { e.stopPropagation(); }, a.onmouseover = function () { i.active && i.active.item !== e && i.Mb(a); }, t.appendChild(a), i.elements.items.push(a);
2149
2224
  });
2150
- }, this.Cb = function () { var e = i.Bb("item_active"); i.elements.items.forEach(function (t) { DayPilot.Util.removeClass(t, e); }), i.active && i.active.menu && i.active.menu.hide(), i.active = null; }, this.Eb = function (e) { return !!i.active && i.active.item === e.data; }, this.Db = function (e) {
2151
- if (!i.Eb(e)) {
2152
- i.Cb();
2225
+ }, this.Lb = function () { var e = i.Kb("item_active"); i.elements.items.forEach(function (t) { DayPilot.Util.removeClass(t, e); }), i.active && i.active.menu && i.active.menu.hide(), i.active = null; }, this.Nb = function (e) { return !!i.active && i.active.item === e.data; }, this.Mb = function (e) {
2226
+ if (!i.Nb(e)) {
2227
+ i.Lb();
2153
2228
  var t = e.data, a = i.active = {};
2154
2229
  a.item = t, a.div = e;
2155
- var n = i.Bb("item_active");
2230
+ var n = i.Kb("item_active");
2156
2231
  DayPilot.Util.addClass(e, n);
2157
2232
  var o = DayPilot.abs(e);
2158
2233
  if (t.children) {
@@ -2163,7 +2238,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2163
2238
  DayPilot.MenuBar.active = i;
2164
2239
  }
2165
2240
  }, this.init = function () { return this.t(), this.Ba = !0, this; }, this.dispose = function () { this.Ba && (this.nav.top.innerHTML = "", this.elements.items = []); };
2166
- }, DayPilot.MenuBar.deactivate = function () { DayPilot.MenuBar.active && (DayPilot.MenuBar.active.Cb(), DayPilot.MenuBar.active = null); }, t.menuClean = function () { "undefined" != typeof DayPilot.Menu.active && DayPilot.Menu.active && (DayPilot.Menu.active.hide(), DayPilot.Menu.active = null); }, t.mouseDown = function (e) { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.wheel = function (e) { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.mouseMove = function (e) { "undefined" != typeof t && (t.mouse = t.mousePosition(e)); }, t.touchMove = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchStart = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchEnd = function (e) { }, t.touchPosition = function (e) {
2241
+ }, DayPilot.MenuBar.deactivate = function () { DayPilot.MenuBar.active && (DayPilot.MenuBar.active.Lb(), DayPilot.MenuBar.active = null); }, t.menuClean = function () { "undefined" != typeof DayPilot.Menu.active && DayPilot.Menu.active && (DayPilot.Menu.active.hide(), DayPilot.Menu.active = null); }, t.mouseDown = function (e) { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.wheel = function (e) { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.mouseMove = function (e) { "undefined" != typeof t && (t.mouse = t.mousePosition(e)); }, t.touchMove = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchStart = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchEnd = function (e) { }, t.touchPosition = function (e) {
2167
2242
  if (!e || !e.touches)
2168
2243
  return null;
2169
2244
  var t = e.touches[0], i = {};
@@ -2172,7 +2247,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2172
2247
  if (e = e || {}, e.calendar) {
2173
2248
  var i = DayPilot.Menu.active;
2174
2249
  if (i) {
2175
- var a = i.xb.source;
2250
+ var a = i.Gb.source;
2176
2251
  a && a.calendar === e.calendar && t.menuClean();
2177
2252
  }
2178
2253
  }
@@ -2246,36 +2321,35 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2246
2321
  }
2247
2322
  }, e;
2248
2323
  }, a = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxwYXRoCiAgICAgICBpZD0icGF0aDMxNzMiCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojOTk5OTk5O3N0cm9rZS13aWR0aDoxLjg1MTk2ODUzO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZSIKICAgICAgIGQ9Ik0gMC45NTQxNDgzOCwwLjY4MTYwMzEgNS4wMzkwNjI1LDUuNDExNTM4NiA5LjEyMzk3NjYsMC42ODE2MDMxIgogICAgICAgIC8+CiAgPC9nPgo8L3N2Zz4K", n = new i;
2249
- n.add(".modal_default_main", "border: 10px solid #ccc; max-width: 90%;"), n.add(".modal_default_main:focus", "outline: none;"), n.add(".modal_default_content", "padding: 10px 0px;"), n.add(".modal_default_inner", "padding: 20px;"), n.add(".modal_default_input", "padding: 10px 0px;"), n.add(".modal_default_buttons", "margin-top: 10px;"), n.add(".modal_default_buttons", "padding: 10px 0px;"), n.add(".modal_default_form_item", "padding: 10px 0px; position: relative;"), n.add(".modal_default_form_item_level1", "border-left: 2px solid #ccc; margin-left: 10px; padding-left: 20px;"), n.add(".modal_default_form_item.modal_default_form_title", "font-size: 1.5rem; font-weight: bold;"), n.add(".modal_default_form_item input[type=text]", "width: 100%; box-sizing: border-box;"), n.add(".modal_default_form_item textarea", "width: 100%; height: 200px; box-sizing: border-box;"), n.add(".modal_default_form_item input[type=select]", "width: 100%; box-sizing: border-box;"), n.add(".modal_default_form_item label", "display: block;"), n.add(".modal_default_form_item select", "width: 100%; box-sizing: border-box;"), n.add(".modal_default_form_item_label", "margin: 2px 0px;"), n.add(".modal_default_form_item_image img", "max-width: 100%; height: auto;"), n.add(".modal_default_form_item_invalid", ""), n.add(".modal_default_form_item_invalid_message", "position: absolute; right: 0px; top: 9px; background-color: red; color: #ffffff; padding: 2px; border-radius: 2px;"), n.add(".modal_default_background", "opacity: 0.5; background-color: #000;"), n.add(".modal_default_ok", "padding: 3px; width: 80px;"), n.add(".modal_default_cancel", "padding: 3px; width: 80px;"), n.add(".modal_default_form_item_date", "position: relative;"), n.add(".modal_default_form_item_date:after", "content: ''; position: absolute; right: 7px; top: 50%; margin-top: 3px; width: 10px; height: 15px; background-image:url(" + "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojY2NjY2NjO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjM4MDM3MzM2O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDE5MjgiCiAgICAgICB3aWR0aD0iOS45MTUzMDYxIgogICAgICAgaGVpZ2h0PSIxMS4zNjkzNyIKICAgICAgIHg9IjAuMTE3MTg3NSIKICAgICAgIHk9Ii0zLjAwOTk5NTciCiAgICAgICByeT0iMS4zMTE4NTA1IiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNjY2NjY2M7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNTk4MTQwMTI7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MTkzMCIKICAgICAgIHdpZHRoPSIxLjUzNDQxMzYiCiAgICAgICBoZWlnaHQ9IjIuMjE5ODI1IgogICAgICAgeD0iMi4xNTU4NDgzIgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHJ5PSIwLjY3MTc4OTE3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iMS41MjM5NTA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QxOTQ4IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjY3MTc4OTE3IgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHg9IjYuNDUyNzIzNSIKICAgICAgIGhlaWdodD0iMi4yMTk4MjUiCiAgICAgICB3aWR0aD0iMS41MzQ0MTM2IgogICAgICAgaWQ9InJlY3QyMDAzIgogICAgICAgc3R5bGU9ImZpbGw6I2NjY2NjYztmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS41OTgxNDAxMjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAwNSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIHk9Ii0xLjE2NTg0NjYiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iNi45OTI3MDA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDA3IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAxMyIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjEuNTIzOTUwNiIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHJ5PSIwLjI5NjAxNDciIC8+CiAgICA8cmVjdAogICAgICAgcnk9IjAuMjk2MDE0NyIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGlkPSJyZWN0MjAxNSIKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIgLz4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDIwMTciCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB4PSI2Ljk5MjcwMDYiCiAgICAgICB5PSIxLjgwMjkwMzQiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSI0LjczMjU5MDciCiAgICAgICB4PSIxLjU2MzAxMzEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBpZD0icmVjdDIwMTkiCiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiIC8+CiAgICA8cmVjdAogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgaWQ9InJlY3QyMDIxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgeD0iNC4yNTgzMjU2IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgcnk9IjAuMjk2MDE0NyIgLz4KICAgIDxyZWN0CiAgICAgICByeT0iMC4yOTYwMTQ3IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgeD0iNy4wMzE3NjMxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDIzIgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogIDwvZz4KPC9zdmc+Cg==" + ")"),
2250
- "undefined" != typeof navigator && navigator.userAgent.indexOf("Edge") !== -1 && n.add(".modal_default_form_item_date input::-ms-clear", "display: none;"), n.add(".modal_default_form_item_scrollable_scroll", "width: 100%; height: 200px; box-sizing: border-box; border: 1px solid #ccc; overflow-y: auto;"), n.add(".modal_default_form_item_scrollable_scroll_content", "padding: 5px;"), n.add(".modal_default_form_item_searchable", "position: relative;"), n.add(".modal_default_form_item_searchable_icon", ""), n.add(".modal_default_form_item_searchable_icon:after", "content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url(" + a + ");"), n.add(".modal_default_form_item_searchable_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), n.add(".modal_default_form_item_searchable_list_item", "background: white; padding: 2px; cursor: default;"), n.add(".modal_default_form_item_searchable_list_item_highlight", "background: #ccc;"), n.add(".modal_default_form_item_time", "position: relative;"), n.add(".modal_default_form_item_time_icon", ""), n.add(".modal_default_form_item_time_icon:after", "content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url(" + a + ");"), n.add(".modal_default_form_item_time_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), n.add(".modal_default_form_item_time_list_item", "background: white; padding: 2px; cursor: default;"), n.add(".modal_default_form_item_time_list_item_highlight", "background: #ccc;"), n.add(".modal_default_form_item_datetime_parent", "display: flex;"), n.add(".modal_default_form_item_datetime .modal_default_form_item_time_main", "margin-left: 5px;"), n.add(".modal_default_form_item_datetime input[type='text'].modal_default_input_date ", ""), n.add(".modal_default_form_item_tabular_main", "margin-top: 10px;"), n.add(".modal_default_form_item_tabular_table", "display: table; width: 100%; xbackground-color: #fff; border-collapse: collapse;"), n.add(".modal_default_form_item_tabular_tbody", "display: table-row-group;"), n.add(".modal_default_form_item_tabular_row", "display: table-row;"), n.add(".modal_default_form_item_tabular_row.modal_default_form_item_tabular_header", ""), n.add(".modal_default_form_item_tabular_cell.modal_default_form_item_tabular_rowaction", "padding: 0px; width: 23px;"), n.add(".modal_default_form_item_tabular_cell", "display: table-cell; border: 0px; padding: 2px 2px 2px 0px; cursor: default; vertical-align: bottom;"), n.add(".modal_default_form_item_tabular_header .modal_default_form_item_tabular_cell", "padding-left: 0px; padding-bottom: 0px;"), n.add(".modal_default_form_item_tabular_table input[type=text], .modal_default_form_item_tabular_table input[type=number]", "width:100%; box-sizing: border-box;"), n.add(".modal_default_form_item_tabular_table select", "width:100%; height:100%; box-sizing: border-box;"), n.add(".modal_default_form_item_tabular_plus", "display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"), n.add(".modal_default_form_item_tabular_plus:after", "content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSA1LjAgMC41IEwgNS4wIDkuNSBNIDAuNSA1LjAgTCA5LjUgNS4wJyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"), n.add(".modal_default_form_item_tabular_delete", "display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"), n.add(".modal_default_form_item_tabular_delete:after", "content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgOS41IDkuNSBNIDAuNSA5LjUgTCA5LjUgMC41JyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"), n.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_plus", "display: none;"), n.add(".modal_default_form_item_tabular_plus_max.modal_default_form_item_tabular_plus", "display: none;"), n.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_delete", "visibility: hidden;"), n.add(".modal_default_form_item_tabular_empty", "height: 1px; margin: 5px 23px 5px 0px; background-color: #ccc;"), n.add(".modal_default_form_item_tabular_spacer .modal_default_form_item_tabular_cell", "padding: 0px;"), n.add(".modal_min_main", "border: 1px solid #ccc; max-width: 90%;"), n.add(".modal_min_background", "opacity: 0.5; background-color: #000;"), n.add(".modal_min_ok", "padding: 3px 10px;"), n.add(".modal_min_cancel", "padding: 3px 10px;"), n.add(".navigator_modal_main", "border-left: 1px solid #c0c0c0;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;background-color: white;color: #000000; box-sizing: content-box;"), n.add(".navigator_modal_main *, .navigator_modal_main *:before, .navigator_modal_main *:after", "box-sizing: content-box;"), n.add(".navigator_modal_month", "font-size: 11px;"), n.add(".navigator_modal_day", "color: black;"), n.add(".navigator_modal_weekend", "background-color: #f0f0f0;"), n.add(".navigator_modal_dayheader", "color: black;"), n.add(".navigator_modal_line", "border-bottom: 1px solid #c0c0c0;"), n.add(".navigator_modal_dayother", "color: gray;"), n.add(".navigator_modal_todaybox", "border: 1px solid red;"), n.add(".navigator_modal_title, .navigator_modal_titleleft, .navigator_modal_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), n.add(".navigator_modal_busy", "font-weight: bold;"), n.add(".navigator_modal_cell", "text-align: center;"), n.add(".navigator_modal_select .navigator_modal_cell_box", "background-color: #FFE794; opacity: 0.5;"), n.add(".navigator_modal_title", "text-align: center;"), n.add(".navigator_modal_titleleft, .navigator_modal_titleright", "text-align: center;"), n.add(".navigator_modal_dayheader", "text-align: center;"), n.add(".navigator_modal_weeknumber", "text-align: center;"), n.add(".navigator_modal_cell_text", "cursor: pointer;"), n.commit(), DayPilot.Modal = function (e) {
2324
+ n.add(".modal_default_main", "border: 10px solid #ccc; max-width: 90%;"), n.add(".modal_default_main:focus", "outline: none;"), n.add(".modal_default_content", "padding: 10px 0px;"), n.add(".modal_default_inner", "padding: 20px;"), n.add(".modal_default_input", "padding: 10px 0px;"), n.add(".modal_default_buttons", "margin-top: 10px;"), n.add(".modal_default_buttons", "padding: 10px 0px;"), n.add(".modal_default_form_item", "padding: 10px 0px; position: relative;"), n.add(".modal_default_form_item_level1", "border-left: 2px solid #ccc; margin-left: 10px; padding-left: 20px;"), n.add(".modal_default_form_item.modal_default_form_title", "font-size: 1.5rem; font-weight: bold;"), n.add(".modal_default_form_item input[type=text]", "width: 100%; box-sizing: border-box;"), n.add(".modal_default_form_item textarea", "width: 100%; height: 200px; box-sizing: border-box;"), n.add(".modal_default_form_item input[type=select]", "width: 100%; box-sizing: border-box;"), n.add(".modal_default_form_item label", "display: block;"), n.add(".modal_default_form_item select", "width: 100%; box-sizing: border-box;"), n.add(".modal_default_form_item_label", "margin: 2px 0px;"), n.add(".modal_default_form_item_image img", "max-width: 100%; height: auto;"), n.add(".modal_default_form_item_invalid", ""), n.add(".modal_default_form_item_invalid_message", "position: absolute; right: 0px; top: 9px; background-color: red; color: #ffffff; padding: 2px; border-radius: 2px;"), n.add(".modal_default_background", "opacity: 0.5; background-color: #000;"), n.add(".modal_default_ok", "padding: 3px; width: 80px;"), n.add(".modal_default_cancel", "padding: 3px; width: 80px;"), n.add(".modal_default_form_item_date", "position: relative;"), n.add(".modal_default_form_item_date:after", "content: ''; position: absolute; right: 7px; top: 50%; margin-top: 3px; width: 10px; height: 15px; background-image:url(" + "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojY2NjY2NjO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjM4MDM3MzM2O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDE5MjgiCiAgICAgICB3aWR0aD0iOS45MTUzMDYxIgogICAgICAgaGVpZ2h0PSIxMS4zNjkzNyIKICAgICAgIHg9IjAuMTE3MTg3NSIKICAgICAgIHk9Ii0zLjAwOTk5NTciCiAgICAgICByeT0iMS4zMTE4NTA1IiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNjY2NjY2M7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNTk4MTQwMTI7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MTkzMCIKICAgICAgIHdpZHRoPSIxLjUzNDQxMzYiCiAgICAgICBoZWlnaHQ9IjIuMjE5ODI1IgogICAgICAgeD0iMi4xNTU4NDgzIgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHJ5PSIwLjY3MTc4OTE3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iMS41MjM5NTA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QxOTQ4IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjY3MTc4OTE3IgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHg9IjYuNDUyNzIzNSIKICAgICAgIGhlaWdodD0iMi4yMTk4MjUiCiAgICAgICB3aWR0aD0iMS41MzQ0MTM2IgogICAgICAgaWQ9InJlY3QyMDAzIgogICAgICAgc3R5bGU9ImZpbGw6I2NjY2NjYztmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS41OTgxNDAxMjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAwNSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIHk9Ii0xLjE2NTg0NjYiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iNi45OTI3MDA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDA3IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAxMyIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjEuNTIzOTUwNiIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHJ5PSIwLjI5NjAxNDciIC8+CiAgICA8cmVjdAogICAgICAgcnk9IjAuMjk2MDE0NyIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGlkPSJyZWN0MjAxNSIKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIgLz4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDIwMTciCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB4PSI2Ljk5MjcwMDYiCiAgICAgICB5PSIxLjgwMjkwMzQiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSI0LjczMjU5MDciCiAgICAgICB4PSIxLjU2MzAxMzEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBpZD0icmVjdDIwMTkiCiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiIC8+CiAgICA8cmVjdAogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgaWQ9InJlY3QyMDIxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgeD0iNC4yNTgzMjU2IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgcnk9IjAuMjk2MDE0NyIgLz4KICAgIDxyZWN0CiAgICAgICByeT0iMC4yOTYwMTQ3IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgeD0iNy4wMzE3NjMxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDIzIgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogIDwvZz4KPC9zdmc+Cg==" + ")"), "undefined" != typeof navigator && navigator.userAgent.indexOf("Edge") !== -1 && n.add(".modal_default_form_item_date input::-ms-clear", "display: none;"), n.add(".modal_default_form_item_scrollable_scroll", "width: 100%; height: 200px; box-sizing: border-box; border: 1px solid #ccc; overflow-y: auto;"), n.add(".modal_default_form_item_scrollable_scroll_content", "padding: 5px;"), n.add(".modal_default_form_item_searchable", "position: relative;"), n.add(".modal_default_form_item_searchable_icon", ""), n.add(".modal_default_form_item_searchable_icon:after", "content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url(" + a + ");"), n.add(".modal_default_form_item_searchable_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), n.add(".modal_default_form_item_searchable_list_item", "background: white; padding: 2px; cursor: default;"), n.add(".modal_default_form_item_searchable_list_item_highlight", "background: #ccc;"), n.add(".modal_default_form_item_time", "position: relative;"), n.add(".modal_default_form_item_time_icon", ""), n.add(".modal_default_form_item_time_icon:after", "content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url(" + a + ");"), n.add(".modal_default_form_item_time_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), n.add(".modal_default_form_item_time_list_item", "background: white; padding: 2px; cursor: default;"), n.add(".modal_default_form_item_time_list_item_highlight", "background: #ccc;"), n.add(".modal_default_form_item_datetime_parent", "display: flex;"), n.add(".modal_default_form_item_datetime .modal_default_form_item_time_main", "margin-left: 5px;"), n.add(".modal_default_form_item_datetime input[type='text'].modal_default_input_date ", ""), n.add(".modal_default_form_item_tabular_main", "margin-top: 10px;"), n.add(".modal_default_form_item_tabular_table", "display: table; width: 100%; xbackground-color: #fff; border-collapse: collapse;"), n.add(".modal_default_form_item_tabular_tbody", "display: table-row-group;"), n.add(".modal_default_form_item_tabular_row", "display: table-row;"), n.add(".modal_default_form_item_tabular_row.modal_default_form_item_tabular_header", ""), n.add(".modal_default_form_item_tabular_cell.modal_default_form_item_tabular_rowaction", "padding: 0px; width: 23px;"), n.add(".modal_default_form_item_tabular_cell", "display: table-cell; border: 0px; padding: 2px 2px 2px 0px; cursor: default; vertical-align: bottom;"), n.add(".modal_default_form_item_tabular_header .modal_default_form_item_tabular_cell", "padding-left: 0px; padding-bottom: 0px;"), n.add(".modal_default_form_item_tabular_table input[type=text], .modal_default_form_item_tabular_table input[type=number]", "width:100%; box-sizing: border-box;"), n.add(".modal_default_form_item_tabular_table select", "width:100%; height:100%; box-sizing: border-box;"), n.add(".modal_default_form_item_tabular_plus", "display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"), n.add(".modal_default_form_item_tabular_plus:after", "content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSA1LjAgMC41IEwgNS4wIDkuNSBNIDAuNSA1LjAgTCA5LjUgNS4wJyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"), n.add(".modal_default_form_item_tabular_delete", "display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"), n.add(".modal_default_form_item_tabular_delete:after", "content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgOS41IDkuNSBNIDAuNSA5LjUgTCA5LjUgMC41JyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"), n.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_plus", "display: none;"), n.add(".modal_default_form_item_tabular_plus_max.modal_default_form_item_tabular_plus", "display: none;"), n.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_delete", "visibility: hidden;"), n.add(".modal_default_form_item_tabular_empty", "height: 1px; margin: 5px 23px 5px 0px; background-color: #ccc;"), n.add(".modal_default_form_item_tabular_spacer .modal_default_form_item_tabular_cell", "padding: 0px;"), n.add(".modal_min_main", "border: 1px solid #ccc; max-width: 90%;"), n.add(".modal_min_background", "opacity: 0.5; background-color: #000;"), n.add(".modal_min_ok", "padding: 3px 10px;"), n.add(".modal_min_cancel", "padding: 3px 10px;"), n.add(".navigator_modal_main", "border-left: 1px solid #c0c0c0;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;background-color: white;color: #000000; box-sizing: content-box;"), n.add(".navigator_modal_main *, .navigator_modal_main *:before, .navigator_modal_main *:after", "box-sizing: content-box;"), n.add(".navigator_modal_month", "font-size: 11px;"), n.add(".navigator_modal_day", "color: black;"), n.add(".navigator_modal_weekend", "background-color: #f0f0f0;"), n.add(".navigator_modal_dayheader", "color: black;"), n.add(".navigator_modal_line", "border-bottom: 1px solid #c0c0c0;"), n.add(".navigator_modal_dayother", "color: gray;"), n.add(".navigator_modal_todaybox", "border: 1px solid red;"), n.add(".navigator_modal_title, .navigator_modal_titleleft, .navigator_modal_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), n.add(".navigator_modal_busy", "font-weight: bold;"), n.add(".navigator_modal_cell", "text-align: center;"), n.add(".navigator_modal_select .navigator_modal_cell_box", "background-color: #FFE794; opacity: 0.5;"), n.add(".navigator_modal_title", "text-align: center;"), n.add(".navigator_modal_titleleft, .navigator_modal_titleright", "text-align: center;"), n.add(".navigator_modal_dayheader", "text-align: center;"), n.add(".navigator_modal_weeknumber", "text-align: center;"), n.add(".navigator_modal_cell_text", "cursor: pointer;"), n.commit(), DayPilot.Modal = function (e) {
2251
2325
  this.autoFocus = !0, this.focus = null, this.autoStretch = !0, this.autoStretchFirstLoadOnly = !1, this.className = null, this.theme = "modal_default", this.disposeOnClose = !0, this.dragDrop = !0, this.loadingHtml = null, this.maxHeight = null, this.scrollWithPage = !0, this.useIframe = !0, this.zIndex = 99999, this.left = null, this.width = 600, this.top = 20, this.height = 200, this.locale = null, this.closed = null, this.onClose = null, this.onClosed = null, this.onShow = null;
2252
2326
  var t = this;
2253
- this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.Fb = !1, this.Gb = null, this.Hb = null, this.showHtml = function (e) {
2327
+ this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.Ob = !1, this.Pb = null, this.Qb = null, this.showHtml = function (e) {
2254
2328
  if (DayPilot.ModalStatic.displayed(this))
2255
2329
  throw "This modal dialog is already displayed.";
2256
- if (this.div || this.Ib(), this._a(), this.useIframe) {
2330
+ if (this.div || this.Rb(), this.hb(), this.useIframe) {
2257
2331
  var t = function (e, t) { return function () { e.setInnerHTML(e.id + "iframe", t); }; };
2258
2332
  window.setTimeout(t(this, e), 0);
2259
2333
  }
2260
2334
  else
2261
2335
  e.nodeType ? this.div.appendChild(e) : this.div.innerHTML = e;
2262
- this._a(), this.Jb(), this.Kb();
2336
+ this.hb(), this.Sb(), this.Tb();
2263
2337
  }, this.showUrl = function (e) {
2264
2338
  if (DayPilot.ModalStatic.displayed(this))
2265
2339
  throw "This modal dialog is already displayed.";
2266
2340
  if (this.useIframe) {
2267
- this.div || this.Ib();
2341
+ this.div || this.Rb();
2268
2342
  var i = this.loadingHtml;
2269
- i && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", i)), this.re(this.iframe, "load", this.Lb), this.iframe.src = e, this._a(), this.Jb(), this.Kb();
2343
+ i && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", i)), this.re(this.iframe, "load", this.Ub), this.iframe.src = e, this.hb(), this.Sb(), this.Tb();
2270
2344
  }
2271
2345
  else
2272
- t.Mb({ "url": e, "success": function (e) { var i = e.request.responseText; t.showHtml(i); }, "error": function (e) { t.showHtml("Error loading the modal dialog"); } });
2273
- }, this.Kb = function () {
2346
+ t.Vb({ "url": e, "success": function (e) { var i = e.request.responseText; t.showHtml(i); }, "error": function (e) { t.showHtml("Error loading the modal dialog"); } });
2347
+ }, this.Tb = function () {
2274
2348
  if ("function" == typeof t.onShow) {
2275
2349
  var e = {};
2276
- e.root = t.Nb(), e.modal = t, t.onShow(e);
2350
+ e.root = t.Wb(), e.modal = t, t.onShow(e);
2277
2351
  }
2278
- }, this.Nb = function () { return t.iframe ? t.iframe.contentWindow.document : t.div; }, this.Mb = function (e) {
2352
+ }, this.Wb = function () { return t.iframe ? t.iframe.contentWindow.document : t.div; }, this.Vb = function (e) {
2279
2353
  var t = new XMLHttpRequest;
2280
2354
  if (t) {
2281
2355
  var i = e.method || "GET", a = e.success || function () { }, n = e.error || function () { }, o = e.data, r = e.url;
@@ -2293,30 +2367,30 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2293
2367
  window.console && console.log("HTTP error " + t.status);
2294
2368
  }, 4 !== t.readyState && ("object" == typeof o && (o = JSON.stringify(o)), t.send(o));
2295
2369
  }
2296
- }, this._a = function () { delete this.result; var e = window, i = document, a = e.pageYOffset ? e.pageYOffset : i.documentElement && i.documentElement.scrollTop ? i.documentElement.scrollTop : i.body.scrollTop; this.theme && (this.hideDiv.className = this.theme + "_background"), this.zIndex && (this.hideDiv.style.zIndex = this.zIndex), this.hideDiv.style.display = "", window.setTimeout(function () { t.hideDiv && (t.hideDiv.onclick = function () { t.hide({ "backgroundClick": !0 }); }); }, 500), this.theme ? this.div.className = this.theme + "_main" : this.div.className = "", this.className && (this.div.className += " " + this.className), this.left ? this.div.style.left = this.left + "px" : this.div.style.marginLeft = "-" + Math.floor(this.width / 2) + "px", this.div.style.position = "absolute", this.div.style.boxSizing = "content-box", this.div.style.top = a + this.top + "px", this.div.style.width = this.width + "px", this.zIndex && (this.div.style.zIndex = this.zIndex), this.height && (this.useIframe || !this.autoStretch ? this.div.style.height = this.height + "px" : this.div.style.height = ""), this.useIframe && this.height && (this.iframe.style.height = this.height + "px"), this.div.style.display = "", this.Pb(), DayPilot.ModalStatic.remove(this), DayPilot.ModalStatic.list.push(this); }, this.Lb = function () { t.iframe.contentWindow.modal = t, t.autoStretch && t.stretch(); }, this.stretch = function () {
2297
- var e = function () { return t.Ob().y; }, i = function () { return t.Ob().x; };
2370
+ }, this.hb = function () { delete this.result; var e = window, i = document, a = e.pageYOffset ? e.pageYOffset : i.documentElement && i.documentElement.scrollTop ? i.documentElement.scrollTop : i.body.scrollTop; this.theme && (this.hideDiv.className = this.theme + "_background"), this.zIndex && (this.hideDiv.style.zIndex = this.zIndex), this.hideDiv.style.display = "", window.setTimeout(function () { t.hideDiv && (t.hideDiv.onclick = function () { t.hide({ "backgroundClick": !0 }); }); }, 500), this.theme ? this.div.className = this.theme + "_main" : this.div.className = "", this.className && (this.div.className += " " + this.className), this.left ? this.div.style.left = this.left + "px" : this.div.style.marginLeft = "-" + Math.floor(this.width / 2) + "px", this.div.style.position = "absolute", this.div.style.boxSizing = "content-box", this.div.style.top = a + this.top + "px", this.div.style.width = this.width + "px", this.zIndex && (this.div.style.zIndex = this.zIndex), this.height && (this.useIframe || !this.autoStretch ? this.div.style.height = this.height + "px" : this.div.style.height = ""), this.useIframe && this.height && (this.iframe.style.height = this.height + "px"), this.div.style.display = "", this.Yb(), DayPilot.ModalStatic.remove(this), DayPilot.ModalStatic.list.push(this); }, this.Ub = function () { t.iframe.contentWindow.modal = t, t.autoStretch && t.stretch(); }, this.stretch = function () {
2371
+ var e = function () { return t.Xb().y; }, i = function () { return t.Xb().x; };
2298
2372
  if (this.useIframe) {
2299
- for (var a = i() - 40, n = this.width; n < a && this.Qb(); n += 10)
2373
+ for (var a = i() - 40, n = this.width; n < a && this.Zb(); n += 10)
2300
2374
  this.div.style.width = n + "px", this.div.style.marginLeft = "-" + Math.floor(n / 2) + "px";
2301
- for (var o = this.maxHeight || e() - 2 * this.top, r = this.height; r < o && this.Rb(); r += 10)
2375
+ for (var o = this.maxHeight || e() - 2 * this.top, r = this.height; r < o && this.$b(); r += 10)
2302
2376
  this.iframe.style.height = r + "px", this.div.style.height = r + "px";
2303
- this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.Lb);
2377
+ this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.Ub);
2304
2378
  }
2305
2379
  else
2306
2380
  this.div.style.height = "";
2307
- }, this.Qb = function () {
2381
+ }, this.Zb = function () {
2308
2382
  for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement, i = t.scrollWidth, a = e.body.children, n = 0; n < a.length; n++) {
2309
2383
  var o = a[n].offsetLeft + a[n].offsetWidth;
2310
2384
  i = Math.max(i, o);
2311
2385
  }
2312
2386
  return i > t.clientWidth;
2313
- }, this.Rb = function () {
2387
+ }, this.$b = function () {
2314
2388
  for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement, i = t.scrollHeight, a = e.body.children, n = 0; n < a.length; n++) {
2315
2389
  var o = a[n].offsetTop + a[n].offsetHeight;
2316
2390
  i = Math.max(i, o);
2317
2391
  }
2318
2392
  return i > t.clientHeight;
2319
- }, this.Ob = function () {
2393
+ }, this.Xb = function () {
2320
2394
  var e = document;
2321
2395
  if ("CSS1Compat" === e.compatMode && e.documentElement && e.documentElement.clientWidth) {
2322
2396
  var t = e.documentElement.clientWidth, i = e.documentElement.clientHeight;
@@ -2324,32 +2398,32 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2324
2398
  }
2325
2399
  var t = e.body.clientWidth, i = e.body.clientHeight;
2326
2400
  return { x: t, y: i };
2327
- }, this.Jb = function () { this.Fb || (this.re(window, "resize", this.Sb), this.re(window, "scroll", this.Tb), this.dragDrop && (this.re(document, "mousemove", this.Ub), this.re(document, "mouseup", this.Vb)), this.Fb = !0); }, this.Wb = function () { this.ue(window, "resize", this.Sb), this.ue(window, "scroll", this.Tb), this.dragDrop && (this.ue(document, "mousemove", this.Ub), this.ue(document, "mouseup", this.Vb)), this.Fb = !1; }, this.Xb = function (e) { e.target === t.div && (e.preventDefault(), t.div.style.cursor = "move", t.Yb(), t.Hb = t.mc(e || window.event), t.Gb = { x: t.div.offsetLeft, y: t.div.offsetTop }); }, this.Ub = function (e) {
2328
- if (t.Hb) {
2329
- var e = e || window.event, i = t.mc(e), a = i.x - t.Hb.x, n = i.y - t.Hb.y;
2330
- t.div.style.marginLeft = "0px", t.div.style.top = t.Gb.y + n + "px", t.div.style.left = t.Gb.x + a + "px";
2401
+ }, this.Sb = function () { this.Ob || (this.re(window, "resize", this._b), this.re(window, "scroll", this.bc), this.dragDrop && (this.re(document, "mousemove", this.cc), this.re(document, "mouseup", this.dc)), this.Ob = !0); }, this.ec = function () { this.ue(window, "resize", this._b), this.ue(window, "scroll", this.bc), this.dragDrop && (this.ue(document, "mousemove", this.cc), this.ue(document, "mouseup", this.dc)), this.Ob = !1; }, this.fc = function (e) { e.target === t.div && (e.preventDefault(), t.div.style.cursor = "move", t.gc(), t.Qb = t.mc(e || window.event), t.Pb = { x: t.div.offsetLeft, y: t.div.offsetTop }); }, this.cc = function (e) {
2402
+ if (t.Qb) {
2403
+ var e = e || window.event, i = t.mc(e), a = i.x - t.Qb.x, n = i.y - t.Qb.y;
2404
+ t.div.style.marginLeft = "0px", t.div.style.top = t.Pb.y + n + "px", t.div.style.left = t.Pb.x + a + "px";
2331
2405
  }
2332
- }, this.Vb = function (e) { t.Hb && (t.Zb(), t.div.style.cursor = null, t.Hb = null); }, this.Yb = function () {
2406
+ }, this.dc = function (e) { t.Qb && (t.hc(), t.div.style.cursor = null, t.Qb = null); }, this.gc = function () {
2333
2407
  if (this.useIframe) {
2334
2408
  var e = document.createElement("div");
2335
2409
  e.style.backgroundColor = "#ffffff", e.style.filter = "alpha(opacity=80)", e.style.opacity = "0.80", e.style.width = "100%", e.style.height = this.height + "px", e.style.position = "absolute", e.style.left = "0px", e.style.top = "0px", this.div.appendChild(e), this.mask = e;
2336
2410
  }
2337
- }, this.Zb = function () { this.useIframe && (this.div.removeChild(this.mask), this.mask = null); }, this.Sb = function () { t.$b(), t.Pb(); }, this.Tb = function () { t.$b(); }, this.Pb = function () {
2411
+ }, this.hc = function () { this.useIframe && (this.div.removeChild(this.mask), this.mask = null); }, this._b = function () { t.ic(), t.Yb(); }, this.bc = function () { t.ic(); }, this.Yb = function () {
2338
2412
  if (!t.left && t.div) {
2339
2413
  var e = t.div.offsetWidth;
2340
2414
  t.div.style.marginLeft = "-" + Math.floor(e / 2) + "px";
2341
2415
  }
2342
- }, this.$b = function () {
2416
+ }, this.ic = function () {
2343
2417
  if (t.hideDiv && t.div && "none" !== t.hideDiv.style.display && "none" !== t.div.style.display) {
2344
- var e = t._b.scrollY();
2418
+ var e = t.jc.scrollY();
2345
2419
  t.scrollWithPage || (t.div.style.top = e + t.top + "px");
2346
2420
  }
2347
- }, this._b = {}, this._b.container = function () { return t.container || document.body; }, this._b.scrollY = function () { var e = t._b.container(); return e === document.body ? window.pageYOffset ? window.pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop : e.scrollTop; }, this.re = function (e, t, i) { e.addEventListener ? e.addEventListener(t, i, !1) : e.attachEvent && e.attachEvent("on" + t, i); }, this.ue = function (e, t, i) { e.removeEventListener ? e.removeEventListener(t, i, !1) : e.detachEvent && e.detachEvent("on" + t, i); }, this.mc = function (e) { return e.pageX || e.pageY ? { x: e.pageX, y: e.pageY } : { x: e.clientX + document.documentElement.scrollLeft, y: e.clientY + document.documentElement.scrollTop }; }, this.abs = function (e) {
2421
+ }, this.jc = {}, this.jc.container = function () { return t.container || document.body; }, this.jc.scrollY = function () { var e = t.jc.container(); return e === document.body ? window.pageYOffset ? window.pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop : e.scrollTop; }, this.re = function (e, t, i) { e.addEventListener ? e.addEventListener(t, i, !1) : e.attachEvent && e.attachEvent("on" + t, i); }, this.ue = function (e, t, i) { e.removeEventListener ? e.removeEventListener(t, i, !1) : e.detachEvent && e.detachEvent("on" + t, i); }, this.mc = function (e) { return e.pageX || e.pageY ? { x: e.pageX, y: e.pageY } : { x: e.clientX + document.documentElement.scrollLeft, y: e.clientY + document.documentElement.scrollTop }; }, this.abs = function (e) {
2348
2422
  for (var t = { x: e.offsetLeft, y: e.offsetTop }; e.offsetParent;)
2349
2423
  e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop;
2350
2424
  return t;
2351
- }, this.Ib = function () { var e = t._b.container(), i = e === document.body, a = i ? "fixed" : "absolute", n = document.createElement("div"); n.id = this.id + "hide", n.style.position = a, n.style.left = "0px", n.style.top = "0px", n.style.right = "0px", n.style.bottom = "0px", n.oncontextmenu = function () { return !1; }, n.onmousedown = function () { return !1; }, e.appendChild(n); var o = document.createElement("div"); o.id = this.id + "popup", o.style.position = a, o.style.left = "50%", o.style.top = "0px", o.style.backgroundColor = "white", o.style.width = "50px", o.style.height = "50px", this.dragDrop && (o.onmousedown = this.Xb), o.addEventListener("keydown", function (e) { e.stopPropagation(); }); var r = null; this.useIframe && (r = document.createElement("iframe"), r.id = this.id + "iframe", r.name = this.id + "iframe", r.frameBorder = "0", r.style.width = "100%", r.style.height = "50px", o.appendChild(r)), e.appendChild(o), this.div = o, this.iframe = r, this.hideDiv = n; }, this.setInnerHTML = function (e, i) { var a = window.frames[e], n = a.contentWindow || a.document || a.contentDocument; n.document && (n = n.document), null == n.body && n.write("<body></body>"), i.nodeType ? n.body.appendChild(i) : n.body.innerHTML = i, t.autoStretch && (t.autoStretchFirstLoadOnly && t.bc || (t.stretch(), t.bc = !0)); }, this.close = function (e) { this.result = e, this.hide(); }, this.closeSerialized = function () {
2352
- for (var e = t.Nb(), i = e.querySelectorAll("input, textarea, select"), a = {}, n = 0; n < i.length; n++) {
2425
+ }, this.Rb = function () { var e = t.jc.container(), i = e === document.body, a = i ? "fixed" : "absolute", n = document.createElement("div"); n.id = this.id + "hide", n.style.position = a, n.style.left = "0px", n.style.top = "0px", n.style.right = "0px", n.style.bottom = "0px", n.oncontextmenu = function () { return !1; }, n.onmousedown = function () { return !1; }, e.appendChild(n); var o = document.createElement("div"); o.id = this.id + "popup", o.style.position = a, o.style.left = "50%", o.style.top = "0px", o.style.backgroundColor = "white", o.style.width = "50px", o.style.height = "50px", this.dragDrop && (o.onmousedown = this.fc), o.addEventListener("keydown", function (e) { e.stopPropagation(); }); var r = null; this.useIframe && (r = document.createElement("iframe"), r.id = this.id + "iframe", r.name = this.id + "iframe", r.frameBorder = "0", r.style.width = "100%", r.style.height = "50px", o.appendChild(r)), e.appendChild(o), this.div = o, this.iframe = r, this.hideDiv = n; }, this.setInnerHTML = function (e, i) { var a = window.frames[e], n = a.contentWindow || a.document || a.contentDocument; n.document && (n = n.document), null == n.body && n.write("<body></body>"), i.nodeType ? n.body.appendChild(i) : n.body.innerHTML = i, t.autoStretch && (t.autoStretchFirstLoadOnly && t.kc || (t.stretch(), t.kc = !0)); }, this.close = function (e) { this.result = e, this.hide(); }, this.closeSerialized = function () {
2426
+ for (var e = t.Wb(), i = e.querySelectorAll("input, textarea, select"), a = {}, n = 0; n < i.length; n++) {
2353
2427
  var o = i[n], r = o.name;
2354
2428
  if (r) {
2355
2429
  var s = o.value;
@@ -2357,11 +2431,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2357
2431
  }
2358
2432
  }
2359
2433
  t.close(a);
2360
- }, this.hide = function (e) { e = e || {}; var i = {}; i.backgroundClick = !!e.backgroundClick, i.result = this.result, i.canceled = "undefined" == typeof this.result, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof this.onClose && (this.onClose(i), i.preventDefault.value) || (this.div && (this.div.style.display = "none", this.hideDiv.style.display = "none", this.useIframe || (this.div.innerHTML = null)), window.focus(), DayPilot.ModalStatic.remove(this), "function" == typeof this.onClosed ? this.onClosed(i) : this.closed && this.closed(), delete this.result, this.disposeOnClose && (t.Wb(), t.cc(t.div), t.cc(t.hideDiv), t.div = null, t.hideDiv = null, t.iframe = null)); }, this.cc = function (e) { e && e.parentNode && e.parentNode.removeChild(e); }, this.dc = function () {
2434
+ }, this.hide = function (e) { e = e || {}; var i = {}; i.backgroundClick = !!e.backgroundClick, i.result = this.result, i.canceled = "undefined" == typeof this.result, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof this.onClose && (this.onClose(i), i.preventDefault.value) || (this.div && (this.div.style.display = "none", this.hideDiv.style.display = "none", this.useIframe || (this.div.innerHTML = null)), window.focus(), DayPilot.ModalStatic.remove(this), "function" == typeof this.onClosed ? this.onClosed(i) : this.closed && this.closed(), delete this.result, this.disposeOnClose && (t.ec(), t.lc(t.div), t.lc(t.hideDiv), t.div = null, t.hideDiv = null, t.iframe = null)); }, this.lc = function (e) { e && e.parentNode && e.parentNode.removeChild(e); }, this.nc = function () {
2361
2435
  if (e)
2362
2436
  for (var t in e)
2363
2437
  this[t] = e[t];
2364
- }, this.dc();
2438
+ }, this.nc();
2365
2439
  }, DayPilot.Modal.alert = function (e, t) { t = t || {}, t.height = t.height || 40, t.useIframe = !1; var i = t.okText || "OK"; t.cancelText || "Cancel"; return DayPilot.getPromise(function (a, n) { t.onClosed = function (e) { a(e); }; var o = new DayPilot.Modal(t), r = document.createElement("div"); r.className = o.theme + "_inner"; var s = document.createElement("div"); s.className = o.theme + "_content", s.innerHTML = e; var l = document.createElement("div"); l.className = o.theme + "_buttons"; var d = document.createElement("button"); d.innerText = i, d.className = o.theme + "_ok", d.onclick = function (e) { DayPilot.ModalStatic.close("OK"); }, l.appendChild(d), r.appendChild(s), r.appendChild(l), o.showHtml(r), o.autoFocus && d.focus(); }); }, DayPilot.Modal.confirm = function (e, t) { t = t || {}, t.height = t.height || 40, t.useIframe = !1; var i = t.okText || "OK", a = t.cancelText || "Cancel"; return DayPilot.getPromise(function (n, o) { t.onClosed = function (e) { n(e); }; var r = new DayPilot.Modal(t), s = document.createElement("div"); s.className = r.theme + "_inner"; var l = document.createElement("div"); l.className = r.theme + "_content", l.innerHTML = e; var d = document.createElement("div"); d.className = r.theme + "_buttons"; var c = document.createElement("button"); c.innerText = i, c.className = r.theme + "_ok", c.onclick = function (e) { DayPilot.ModalStatic.close("OK"); }; var u = document.createTextNode(" "), h = document.createElement("button"); h.innerText = a, h.className = r.theme + "_cancel", h.onclick = function (e) { DayPilot.ModalStatic.close(); }, d.appendChild(c), d.appendChild(u), d.appendChild(h), s.appendChild(l), s.appendChild(d), r.showHtml(s), r.autoFocus && c.focus(); }); }, DayPilot.Modal.prompt = function (e, t, i) {
2366
2440
  "object" == typeof t && (i = t, t = ""), i = i || {}, i.height = i.height || 40, i.useIframe = !1;
2367
2441
  var a = i.okText || "OK", n = i.cancelText || "Cancel", o = t || "";
@@ -2462,8 +2536,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2462
2536
  g && g.focus();
2463
2537
  }
2464
2538
  else {
2465
- var x = h.firstFocusable();
2466
- o.autoFocus && x ? x.focus() : o.div.focus();
2539
+ var w = h.firstFocusable();
2540
+ o.autoFocus && w ? w.focus() : o.div.focus();
2467
2541
  }
2468
2542
  });
2469
2543
  }, DayPilot.Modal.close = function (e) { var t = DayPilot.Modal.opener(); t && t.close(e); }, DayPilot.Modal.stretch = function (e) {
@@ -2473,11 +2547,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2473
2547
  t.stretch();
2474
2548
  }, DayPilot.Modal.closeSerialized = function () { var e = DayPilot.Modal.opener() || DayPilot.ModalStatic.last(); e && e.closeSerialized(); }, DayPilot.Modal.opener = function () { return "undefined" != typeof DayPilot && "undefined" != typeof DayPilot.ModalStatic && DayPilot.ModalStatic.list.length > 0 ? DayPilot.ModalStatic.list[DayPilot.ModalStatic.list.length - 1] : parent && parent.DayPilot && parent.DayPilot.ModalStatic && parent.DayPilot.ModalStatic.list[parent.DayPilot.ModalStatic.list.length - 1]; }, DayPilot.Modal.Experimental = {}, DayPilot.Modal.Experimental.Form = r, "undefined" == typeof DayPilot.getPromise && (DayPilot.getPromise = function (e) { return "undefined" != typeof Promise ? new Promise(e) : (DayPilot.Promise = function (e) { var t = this; this.then = function (t, i) { return t = t || function () { }, i = i || function () { }, e(t, i), DayPilot.getPromise(e); }, this["catch"] = function (i) { return t.then(null, i), DayPilot.getPromise(e); }; }, new DayPilot.Promise(e)); });
2475
2549
  var r = function (e) {
2476
- this.form = [], this.data = {}, this.theme = "form_default", this.zIndex = 99999, this.locale = "en-us", this.plugins = {}, this.onKey = null, this.ec = [], this.fc = null, this.canceling = !1, this.gc = [], this.f = [], this.hc = null, e = e || {};
2550
+ this.form = [], this.data = {}, this.theme = "form_default", this.zIndex = 99999, this.locale = "en-us", this.plugins = {}, this.onKey = null, this.oc = [], this.pc = null, this.canceling = !1, this.qc = [], this.f = [], this.rc = null, e = e || {};
2477
2551
  for (var t in e)
2478
2552
  this[t] = e[t];
2479
2553
  };
2480
- r.prototype.create = function () { return this.load(), this.render(), this.hc; }, r.prototype.render = function () { var e = this; this.hc = document.createElement("div"), this.ec.forEach(function (t) { e.createView(t); }), this.applyState(); }, r.prototype.createView = function (e) {
2554
+ r.prototype.create = function () { return this.load(), this.render(), this.rc; }, r.prototype.render = function () { var e = this; this.rc = document.createElement("div"), this.oc.forEach(function (t) { e.createView(t); }), this.applyState(); }, r.prototype.createView = function (e) {
2481
2555
  var t = this.theme, i = this, a = document.createElement("div");
2482
2556
  if (a.className = t + "_form_item " + t + "_form_item_level" + e.level, e.interactive || "title" !== e.type ? a.className += " " + t + "_form_item_" + e.type : a.className += " " + t + "_form_title", e.data.cssClass && (a.className += " " + e.data.cssClass), !e.isValue) {
2483
2557
  var n = document.createElement("div");
@@ -2485,13 +2559,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2485
2559
  }
2486
2560
  var o = this.createInteractive(e);
2487
2561
  o.onInput = function (e) {
2488
- if (e = e || {}, i.ic(o, { "debounce": !e.immediate }), "function" == typeof i.onChange) {
2562
+ if (e = e || {}, i.sc(o, { "debounce": !e.immediate }), "function" == typeof i.onChange) {
2489
2563
  var t = {};
2490
2564
  t.result = i.serialize(), i.onChange(t);
2491
2565
  }
2492
- }, o.onBlur = function () { i.canceling || i.ic(o); }, o.apply(e), o.hc = a, o.row = e, o.element && a.appendChild(o.element), this.f.push(o), this.hc.appendChild(a);
2493
- }, r.prototype.validate = function () { var e = this, t = !0; return this.f.forEach(function (i) { var a = e.ic(i); t = t && a; }), t; }, r.prototype.ic = function (e, t) {
2494
- function i() { e.jc && (e.jc.remove(), e.jc = null), e.hc.classList.add(u); var t = document.createElement("div"); t.classList.add(h), t.innerText = c.message, e.jc = t, e.hc.appendChild(t); }
2566
+ }, o.onBlur = function () { i.canceling || i.sc(o); }, o.apply(e), o.rc = a, o.row = e, o.element && a.appendChild(o.element), this.f.push(o), this.rc.appendChild(a);
2567
+ }, r.prototype.validate = function () { var e = this, t = !0; return this.f.forEach(function (i) { var a = e.sc(i); t = t && a; }), t; }, r.prototype.sc = function (e, t) {
2568
+ function i() { e.tc && (e.tc.remove(), e.tc = null), e.rc.classList.add(u); var t = document.createElement("div"); t.classList.add(h), t.innerText = c.message, e.tc = t, e.rc.appendChild(t); }
2495
2569
  t = t || {};
2496
2570
  var a = t.debounce, n = t.silent, o = e.row, r = !0, s = "function" == typeof o.data.onValidate ? o.data.onValidate : null, l = "function" == typeof o.data.validate ? o.data.validate : null, d = s || l;
2497
2571
  if (d) {
@@ -2499,11 +2573,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2499
2573
  c.valid = !0, c.value = e.save()[o.field], c.message = "Error", c.values = this.serialize(), c.result = this.serialize(), d(c);
2500
2574
  var u = this.theme + "_form_item_invalid", h = this.theme + "_form_item_invalid_message";
2501
2575
  if (c.valid)
2502
- clearTimeout(this.gc[o.field]), e.jc && (e.jc.remove(), e.jc = null), e.hc.classList.remove(u);
2576
+ clearTimeout(this.qc[o.field]), e.tc && (e.tc.remove(), e.tc = null), e.rc.classList.remove(u);
2503
2577
  else if (!n)
2504
2578
  if (a) {
2505
2579
  var f = 1e3;
2506
- clearTimeout(this.gc[o.field]), this.gc[o.field] = setTimeout(function () { i(); }, f);
2580
+ clearTimeout(this.qc[o.field]), this.qc[o.field] = setTimeout(function () { i(); }, f);
2507
2581
  }
2508
2582
  else
2509
2583
  i();
@@ -2523,34 +2597,38 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2523
2597
  }
2524
2598
  for (var n in i)
2525
2599
  this.setValue(n, i[n]);
2526
- }, r.prototype.setValue = function (e, t) { this.ec.forEach(function (i) { i.applyValue(e, t); }); }, r.prototype.updateDependentState = function () { var e = this, t = [!0]; (this.fc ? this.fc : this.ec).forEach(function (i) { var a = e.updateState(i, { enabled: t[i.level] && !i.data.disabled }); a.isValue && (t[a.level + 1] = a.enabled && a.checked); }); }, r.prototype.processFormItem = function (e, t) {
2600
+ }, r.prototype.setValue = function (e, t) { this.oc.forEach(function (i) { i.applyValue(e, t); }); }, r.prototype.updateDependentState = function () { var e = this, t = [!0]; (this.pc ? this.pc : this.oc).forEach(function (i) { var a = e.updateState(i, { enabled: t[i.level] && !i.data.disabled }); a.isValue && (t[a.level + 1] = a.enabled && a.checked); }); }, r.prototype.processFormItem = function (e, t) {
2527
2601
  var i = this, a = this.getFieldType(e), n = [];
2528
2602
  if ("radio" === a) {
2529
2603
  if (e.name) {
2530
2604
  var o = new s;
2531
- o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, i.ec.push(o), n.push(o);
2605
+ o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, i.oc.push(o), n.push(o);
2532
2606
  }
2533
- e.options.forEach(function (o) { var r = new s; r.field = e.id, r.data = o, r.level = t, r.type = a, r.isValue = !0, r.text = o.name, r.resolved = o.id, i.ec.push(r), n.push(r), o.children && o.children.forEach(function (e) { var a = i.processFormItem(e, t + 1); n = n.concat(a); }); });
2607
+ e.options.forEach(function (o) {
2608
+ var r = new s;
2609
+ r.field = e.id, r.data = o, r.level = t, r.type = a, r.isValue = !0, r.text = o.name, r.resolved = o.id, i.oc.push(r),
2610
+ n.push(r), o.children && o.children.forEach(function (e) { var a = i.processFormItem(e, t + 1); n = n.concat(a); });
2611
+ });
2534
2612
  }
2535
2613
  else if ("title" === a) {
2536
2614
  var o = new s;
2537
- o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = e.name, i.ec.push(o), n.push(o);
2615
+ o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = e.name, i.oc.push(o), n.push(o);
2538
2616
  }
2539
2617
  else if ("image" === a) {
2540
2618
  var o = new s;
2541
- o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.ec.push(o), n.push(o);
2619
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.oc.push(o), n.push(o);
2542
2620
  }
2543
2621
  else if ("html" === a) {
2544
2622
  var o = new s;
2545
- o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.ec.push(o), n.push(o);
2623
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.oc.push(o), n.push(o);
2546
2624
  }
2547
2625
  else if ("scrollable" === a) {
2548
2626
  var o = new s;
2549
- o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.ec.push(o), n.push(o);
2627
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.oc.push(o), n.push(o);
2550
2628
  }
2551
2629
  else {
2552
2630
  var o = new s;
2553
- o.field = e.id, o.data = e, o.level = t, o.type = a, o.text = e.name, o.children = [], i.ec.push(o), n.push(o);
2631
+ o.field = e.id, o.data = e, o.level = t, o.type = a, o.text = e.name, o.children = [], i.oc.push(o), n.push(o);
2554
2632
  }
2555
2633
  return "checkbox" === a && (o.isValue = !0, o.resolved = !0, e.children && e.children.forEach(function (e) { var a = i.processFormItem(e, t + 1); n = n.concat(a); })), n;
2556
2634
  }, r.prototype.doOnKey = function (e) {
@@ -2615,21 +2693,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2615
2693
  }
2616
2694
  i || (e.preventDefault(), e.stopPropagation());
2617
2695
  }, a.onfocus = function () { n.show(); }, a.onclick = function () { n.show(); }, a.oninput = function (e) { i.onInput(); }, a.onblur = function (e) { i.onBlur(); }, i.element = a, i.picker = n, i.canFocus = function () { return !i.element.disabled; }, i.focus = function () { i.element.focus(); }, i.save = function () { var t = n.date ? n.date.toString() : null, i = {}; return i[e.field] = t, i; }, i;
2618
- }, "time": function () { return t.kc(e); }, "datetime": function () { return t.lc(e); }, "select": function () { var t = new l; t.apply = function (e) { t.row = e; var i = t.element; i.value = e.value, i.disabled = !e.enabled; }; var i = document.createElement("select"); return i.name = e.field, e.data.options && e.data.options.forEach && e.data.options.forEach(function (e) { var t = document.createElement("option"); t.innerText = e.name || e.id, t.value = e.id, t.nc = e.id, i.appendChild(t); }), i.onchange = function (e) { t.onInput({ "immediate": !0 }); }, i.onblur = function (e) { t.onBlur(); }, t.element = i, t.canFocus = function () { return !t.element.disabled; }, t.focus = function () { t.element.focus(); }, t.save = function () { var t = null, a = i.options[i.selectedIndex]; a && "undefined" != typeof a.nc && (t = a.nc); var n = {}; return n[e.field] = t, n; }, t; }, "searchable": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.searchable; t.disabled = !e.enabled, t.select(e.value); }; var a = new d({ data: e.data.options || [], name: e.field, theme: t.theme + "_form_item_searchable", listZIndex: t.zIndex + 1, onSelect: function (e) { e.ui && i.onInput({ "immediate": !0 }); } }), n = a.create(); return i.element = n, i.searchable = a, i.canFocus = function () { return !i.searchable.disabled; }, i.focus = function () { i.searchable.focus(); }, i.save = function () { var t = a.selected && a.selected.id, i = {}; return i[e.field] = t, i; }, i; }, "radio": function () {
2696
+ }, "time": function () { return t.uc(e); }, "datetime": function () { return t.vc(e); }, "select": function () { var t = new l; t.apply = function (e) { t.row = e; var i = t.element; i.value = e.value, i.disabled = !e.enabled; }; var i = document.createElement("select"); return i.name = e.field, e.data.options && e.data.options.forEach && e.data.options.forEach(function (e) { var t = document.createElement("option"); t.innerText = e.name || e.id, t.value = e.id, t.wc = e.id, i.appendChild(t); }), i.onchange = function (e) { t.onInput({ "immediate": !0 }); }, i.onblur = function (e) { t.onBlur(); }, t.element = i, t.canFocus = function () { return !t.element.disabled; }, t.focus = function () { t.element.focus(); }, t.save = function () { var t = null, a = i.options[i.selectedIndex]; a && "undefined" != typeof a.wc && (t = a.wc); var n = {}; return n[e.field] = t, n; }, t; }, "searchable": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.searchable; t.disabled = !e.enabled, t.select(e.value); }; var a = new d({ data: e.data.options || [], name: e.field, theme: t.theme + "_form_item_searchable", listZIndex: t.zIndex + 1, onSelect: function (e) { e.ui && i.onInput({ "immediate": !0 }); } }), n = a.create(); return i.element = n, i.searchable = a, i.canFocus = function () { return !i.searchable.disabled; }, i.focus = function () { i.searchable.focus(); }, i.save = function () { var t = a.selected && a.selected.id, i = {}; return i[e.field] = t, i; }, i; }, "radio": function () {
2619
2697
  var i = new l;
2620
2698
  i.apply = function (e) { i.row = e; var t = i.radio; t.checked = e.checked, t.disabled = !e.enabled; };
2621
2699
  var a = document.createElement("label"), n = document.createElement("input");
2622
- n.type = "radio", n.name = e.field, n.nc = e.resolved, n.onchange = function (e) { var a = i.row; t.findRowsByField(a.field).forEach(function (e) { t.updateState(e, { checked: !1 }); }), t.updateState(a, { checked: !0 }), t.applyState(), i.onInput({ "immediate": !0 }); }, n.onblur = function (e) { i.onBlur(); }, a.appendChild(n);
2700
+ n.type = "radio", n.name = e.field, n.wc = e.resolved, n.onchange = function (e) { var a = i.row; t.findRowsByField(a.field).forEach(function (e) { t.updateState(e, { checked: !1 }); }), t.updateState(a, { checked: !0 }), t.applyState(), i.onInput({ "immediate": !0 }); }, n.onblur = function (e) { i.onBlur(); }, a.appendChild(n);
2623
2701
  var o = document.createTextNode(e.text);
2624
2702
  return a.append(o), i.element = a, i.radio = n, i.canFocus = function () { return !1; }, i.focus = function () { i.radio.focus(); }, i.save = function () {
2625
2703
  if (!n.checked)
2626
2704
  return {};
2627
- var t = n.nc, i = {};
2705
+ var t = n.wc, i = {};
2628
2706
  return i[e.field] = t, i;
2629
2707
  }, i;
2630
- }, "checkbox": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.checkbox; t.checked = e.checked, t.disabled = !e.enabled; }; var a = document.createElement("label"), n = document.createElement("input"); n.type = "checkbox", n.name = e.field, n.nc = e.resolved, n.onchange = function (e) { var a = i.row; t.updateState(a, { checked: this.checked }), t.applyState(), i.onInput({ "immediate": !0 }); }, n.onblur = function (e) { i.onBlur(); }, a.appendChild(n); var o = document.createTextNode(e.text); return a.append(o), i.element = a, i.checkbox = n, i.canFocus = function () { return !1; }, i.focus = function () { i.checkbox.focus(); }, i.save = function () { var t = n.checked, i = {}; return i[e.field] = t, i; }, i; }, "table": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.table; t.disabled = !e.enabled, t.load(e.value || []); }; var a = new c({ name: e.field, form: t, theme: t.theme + "_form_item_tabular", item: e.data, onInput: function (e) { i.onInput(); } }), n = a.create(); return i.element = n, i.table = a, i.canFocus = function () { return !1; }, i.focus = function () { i.table.focus(); }, i.save = function () { var t = a.save(), i = {}; return i[e.field] = t, i; }, i; } };
2708
+ }, "checkbox": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.checkbox; t.checked = e.checked, t.disabled = !e.enabled; }; var a = document.createElement("label"), n = document.createElement("input"); n.type = "checkbox", n.name = e.field, n.wc = e.resolved, n.onchange = function (e) { var a = i.row; t.updateState(a, { checked: this.checked }), t.applyState(), i.onInput({ "immediate": !0 }); }, n.onblur = function (e) { i.onBlur(); }, a.appendChild(n); var o = document.createTextNode(e.text); return a.append(o), i.element = a, i.checkbox = n, i.canFocus = function () { return !1; }, i.focus = function () { i.checkbox.focus(); }, i.save = function () { var t = n.checked, i = {}; return i[e.field] = t, i; }, i; }, "table": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.table; t.disabled = !e.enabled, t.load(e.value || []); }; var a = new c({ name: e.field, form: t, theme: t.theme + "_form_item_tabular", item: e.data, onInput: function (e) { i.onInput(); } }), n = a.create(); return i.element = n, i.table = a, i.canFocus = function () { return !1; }, i.focus = function () { i.table.focus(); }, i.save = function () { var t = a.save(), i = {}; return i[e.field] = t, i; }, i; } };
2631
2709
  return t.plugins && t.plugins[e.type] ? t.plugins[e.type](e) : i[e.type]();
2632
- }, r.prototype.kc = function (e) {
2710
+ }, r.prototype.uc = function (e) {
2633
2711
  var t = this, i = new l;
2634
2712
  i.apply = function (e) { i.row = e; var t = i.searchable; t.disabled = !e.enabled, t.select(e.value); };
2635
2713
  var a = [], n = e.data.timeInterval || 15;
@@ -2640,7 +2718,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2640
2718
  }
2641
2719
  var m = new d({ data: a, name: e.field, theme: t.theme + "_form_item_time", listZIndex: t.zIndex + 1, strategy: "startsWith", onSelect: function (e) { e.ui && i.onInput({ "immediate": !0 }); } }), p = m.create();
2642
2720
  return i.element = p, i.searchable = m, i.canFocus = function () { return !i.searchable.disabled; }, i.focus = function () { i.searchable.focus(); }, i.save = function () { var t = m.selected && m.selected.id, i = {}; return i[e.field] = t, i; }, i;
2643
- }, r.prototype.lc = function (e) {
2721
+ }, r.prototype.vc = function (e) {
2644
2722
  var t = this, i = new l;
2645
2723
  i.apply = function (e) {
2646
2724
  i.row = e;
@@ -2690,9 +2768,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2690
2768
  return i.searchable = f, f.create();
2691
2769
  }(), o = document.createElement("div");
2692
2770
  return o.className = t.theme + "_form_item_datetime_parent", o.appendChild(a), o.appendChild(n), i.element = o, i.canFocus = function () { return !i.searchable.disabled; }, i.focus = function () { i.dateInput.focus(); }, i.save = function () { var t = i.searchable.selected && i.searchable.selected.id, a = i.picker.date ? i.picker.date.toString() : null, n = new DayPilot.Date(a).getDatePart(), o = DayPilot.Date.parse(n.toString("yyyy-dd-MM ") + t, "yyyy-dd-MM HH:mm"), r = {}; return r[e.field] = o, r; }, i;
2693
- }, r.prototype.findRowsByField = function (e) { return this.ec.filter(function (t) { return t.field === e; }); }, r.prototype.findViewById = function (e, t) { return this.f.find(function (i) { return i.row.field === e && ("radio" !== i.row.type || i.row.resolved === t); }); }, r.prototype.firstFocusable = function () { return this.f.find(function (e) { return e.canFocus && e.canFocus(); }); }, r.prototype.updateState = function (e, t) {
2694
- var i = this.fc ? this.fc : this.ec, a = i.indexOf(e);
2695
- return this.fc = i.map(function (i) {
2771
+ }, r.prototype.findRowsByField = function (e) { return this.oc.filter(function (t) { return t.field === e; }); }, r.prototype.findViewById = function (e, t) { return this.f.find(function (i) { return i.row.field === e && ("radio" !== i.row.type || i.row.resolved === t); }); }, r.prototype.firstFocusable = function () { return this.f.find(function (e) { return e.canFocus && e.canFocus(); }); }, r.prototype.updateState = function (e, t) {
2772
+ var i = this.pc ? this.pc : this.oc, a = i.indexOf(e);
2773
+ return this.pc = i.map(function (i) {
2696
2774
  if (i !== e)
2697
2775
  return i;
2698
2776
  if (e.propsEqual(t))
@@ -2701,11 +2779,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2701
2779
  for (var n in t)
2702
2780
  a[n] = t[n];
2703
2781
  return a;
2704
- }), this.fc[a];
2705
- }, r.prototype.updateInteractive = function (e) { var t = this.fc.indexOf(e); this.f[t].apply(e); }, r.prototype.applyState = function () {
2782
+ }), this.pc[a];
2783
+ }, r.prototype.updateInteractive = function (e) { var t = this.pc.indexOf(e); this.f[t].apply(e); }, r.prototype.applyState = function () {
2706
2784
  var e = this;
2707
- if (this.updateDependentState(), this.fc) {
2708
- this.fc.filter(function (t, i) { return e.ec[i] !== t; }).forEach(function (t) { e.updateInteractive(t); }), this.ec = this.fc, this.fc = null;
2785
+ if (this.updateDependentState(), this.pc) {
2786
+ this.pc.filter(function (t, i) { return e.oc[i] !== t; }).forEach(function (t) { e.updateInteractive(t); }), this.oc = this.pc, this.pc = null;
2709
2787
  }
2710
2788
  }, r.prototype.getFieldType = function (e) { return ["text", "date", "select", "searchable", "radio", "checkbox", "table", "title", "image", "html", "textarea", "scrollable", "time", "datetime"].indexOf(e.type) !== -1 ? e.type : e.type && this.plugins && this.plugins[e.type] ? e.type : e.image ? "image" : e.html || e.text ? "html" : e.id ? e.options ? "searchable" : e.dateFormat ? "date" : e.columns ? "table" : "text" : "title"; }, r.prototype.serialize = function () {
2711
2789
  var e = {};
@@ -2728,18 +2806,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2728
2806
  return !0;
2729
2807
  }, s.prototype.guid = function () { var e = function () { return (65536 * (1 + Math.random()) | 0).toString(16).substring(1); }; return "" + e() + e() + "-" + e() + "-" + e() + "-" + e() + "-" + e() + e() + e(); }, s.prototype.applyValue = function (e, t) { this.field === e && (this.value = t, this.isValue && t === this.resolved && (this.checked = !0)); };
2730
2808
  var l = function () { this.element = null, this.canFocus = function () { return !1; }, this.apply = function (e) { }, this.focus = function () { }, this.save = function () { return {}; }; }, d = function (e) {
2731
- this.data = [], this.name = null, this.theme = "searchable_default", this.oc = !1, this.listZIndex = 1e5, this.onSelect = null, this.pc = null, this.qc = null, this.rc = !1, this.sc = null, this.tc = null, this.p = [], this.uc = null, e = e || {};
2732
- var t = this, i = { "selected": { post: function (e) { "object" == typeof e && e.id ? t.pc = e : "string" != typeof e && "number" != typeof e || t.select(e); } } };
2733
- Object.defineProperty(this, "selected", { get: function () { return this.pc; } }), Object.defineProperty(this, "disabled", { get: function () { return this.oc; }, set: function (e) { this.oc = e, this.sc && (this.sc.disabled = e, e && this.vc()); } });
2809
+ this.data = [], this.name = null, this.theme = "searchable_default", this.xc = !1, this.listZIndex = 1e5, this.onSelect = null, this.yc = null, this.zc = null, this.Ac = !1, this.Bc = null, this.Cc = null, this.p = [], this.Dc = null, e = e || {};
2810
+ var t = this, i = { "selected": { post: function (e) { "object" == typeof e && e.id ? t.yc = e : "string" != typeof e && "number" != typeof e || t.select(e); } } };
2811
+ Object.defineProperty(this, "selected", { get: function () { return this.yc; } }), Object.defineProperty(this, "disabled", { get: function () { return this.xc; }, set: function (e) { this.xc = e, this.Bc && (this.Bc.disabled = e, e && this.Ec()); } });
2734
2812
  for (var a in e)
2735
2813
  i[a] || (this[a] = e[a]);
2736
2814
  for (var a in e)
2737
2815
  i[a] && i[a].post(e[a]);
2738
2816
  };
2739
- d.prototype.select = function (e) { return this.pc = this.data.find(function (t) { return t.id === e; }), this.wc(!1), this; }, d.prototype.create = function () {
2817
+ d.prototype.select = function (e) { return this.yc = this.data.find(function (t) { return t.id === e; }), this.Fc(!1), this; }, d.prototype.create = function () {
2740
2818
  function e(e) {
2741
2819
  var i = l.strategy;
2742
- "includes" !== l.strategy && "startsWith" !== l.strategy && (i = "includes"), e = e || i || "includes", h.style.display = "", h.style.top = m.offsetHeight + "px", h.style.left = "0px", h.style.width = m.offsetWidth + "px", h.innerHTML = "", h.addEventListener("mousedown", function (e) { e.preventDefault(); }), l.qc = null, l.p = [];
2820
+ "includes" !== l.strategy && "startsWith" !== l.strategy && (i = "includes"), e = e || i || "includes", h.style.display = "", h.style.top = m.offsetHeight + "px", h.style.left = "0px", h.style.width = m.offsetWidth + "px", h.innerHTML = "", h.addEventListener("mousedown", function (e) { e.preventDefault(); }), l.zc = null, l.p = [];
2743
2821
  var n = null;
2744
2822
  l.data.forEach(function (i) {
2745
2823
  var o = i.name || i.id;
@@ -2750,27 +2828,27 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2750
2828
  else if ("startsWith" === e && 0 !== o.toLowerCase().indexOf(m.value.toLowerCase()))
2751
2829
  return;
2752
2830
  var r = document.createElement("div");
2753
- r.className = l.theme + "_list_item", r.innerText = o, r.item = i, i === l.pc && (l.qc = r), n || (n = r), r.addEventListener("mousedown", function (e) { a(r), e.preventDefault(); }), r.addEventListener("mousemove", function (e) { l.qc !== r && (l.qc = r, t({ dontScroll: !0 })); }), h.appendChild(r), l.p.push(r);
2754
- }), l.qc || (l.qc = n), t();
2831
+ r.className = l.theme + "_list_item", r.innerText = o, r.item = i, i === l.yc && (l.zc = r), n || (n = r), r.addEventListener("mousedown", function (e) { a(r), e.preventDefault(); }), r.addEventListener("mousemove", function (e) { l.zc !== r && (l.zc = r, t({ dontScroll: !0 })); }), h.appendChild(r), l.p.push(r);
2832
+ }), l.zc || (l.zc = n), t();
2755
2833
  }
2756
- function t(e) { e = e || {}; var t = !e.dontScroll; document.querySelectorAll("." + l.theme + "_list_item_highlight").forEach(function (e) { e.className = e.className.replace(l.theme + "_list_item_highlight", ""); }), l.qc && (l.qc.className += " " + l.theme + "_list_item_highlight", t && !i(l.qc, h) && l.qc.scrollIntoView()); }
2834
+ function t(e) { e = e || {}; var t = !e.dontScroll; document.querySelectorAll("." + l.theme + "_list_item_highlight").forEach(function (e) { e.className = e.className.replace(l.theme + "_list_item_highlight", ""); }), l.zc && (l.zc.className += " " + l.theme + "_list_item_highlight", t && !i(l.zc, h) && l.zc.scrollIntoView()); }
2757
2835
  function i(e, t) { var i = e.getBoundingClientRect(), a = t.getBoundingClientRect(); return i.top >= a.top && i.bottom <= a.bottom; }
2758
- function a(e) { var t = e.item; l.pc = t, l.wc(!0), o(), r(); }
2759
- function n() { l.vc(); }
2836
+ function a(e) { var t = e.item; l.yc = t, l.Fc(!0), o(), r(); }
2837
+ function n() { l.Ec(); }
2760
2838
  function o() { l.q(); }
2761
- function r() { l.rc = !0, m.setAttribute("readonly", "readonly"), m.focus(); }
2762
- function s() { l.rc = !1, m.removeAttribute("readonly"), m.select(), e("all"); }
2839
+ function r() { l.Ac = !0, m.setAttribute("readonly", "readonly"), m.focus(); }
2840
+ function s() { l.Ac = !1, m.removeAttribute("readonly"), m.select(), e("all"); }
2763
2841
  var l = this, d = this, c = document.createElement("div");
2764
2842
  c.className = this.theme + "_main", c.style.position = "relative";
2765
2843
  var u = document.createElement("div");
2766
- u.className = this.theme + "_icon", u.style.position = "absolute", u.style.right = "0", u.style.top = "0", u.style.bottom = "0", u.style.width = "20px", u.addEventListener("mousedown", function (e) { e.preventDefault(), l.rc ? (l.focus(), s()) : (n(), r()); });
2844
+ u.className = this.theme + "_icon", u.style.position = "absolute", u.style.right = "0", u.style.top = "0", u.style.bottom = "0", u.style.width = "20px", u.addEventListener("mousedown", function (e) { e.preventDefault(), l.Ac ? (l.focus(), s()) : (n(), r()); });
2767
2845
  var h = document.createElement("div");
2768
2846
  h.className = this.theme + "_list", h.style.display = "none", h.style.position = "absolute", h.style.zIndex = this.listZIndex;
2769
2847
  var f = document.createElement("input");
2770
- f.type = "hidden", f.name = this.name, f.searchable = d, this.uc = f;
2848
+ f.type = "hidden", f.name = this.name, f.searchable = d, this.Dc = f;
2771
2849
  var m = document.createElement("input");
2772
- return m.type = "text", m.className = this.theme + "_input", m.disabled = this.oc, m.addEventListener("click", function (e) { s(); }), m.addEventListener("focus", function (t) { e("all"); }), m.addEventListener("input", function (t) { e(); }), m.addEventListener("blur", function (e) { m.removeAttribute("readonly"), n(); }), m.addEventListener("keydown", function (e) {
2773
- if (l.rc) {
2850
+ return m.type = "text", m.className = this.theme + "_input", m.disabled = this.xc, m.addEventListener("click", function (e) { s(); }), m.addEventListener("focus", function (t) { e("all"); }), m.addEventListener("input", function (t) { e(); }), m.addEventListener("blur", function (e) { m.removeAttribute("readonly"), n(); }), m.addEventListener("keydown", function (e) {
2851
+ if (l.Ac) {
2774
2852
  if ("Enter" === e.key)
2775
2853
  return;
2776
2854
  if ("Esc" === e.key || "Escape" === e.key)
@@ -2778,24 +2856,24 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2778
2856
  s();
2779
2857
  }
2780
2858
  if ("ArrowDown" === e.key) {
2781
- var i = d.p.indexOf(d.qc);
2782
- i + 1 < d.p.length && (d.qc = d.p[i + 1]), t();
2859
+ var i = d.p.indexOf(d.zc);
2860
+ i + 1 < d.p.length && (d.zc = d.p[i + 1]), t();
2783
2861
  }
2784
2862
  else if ("ArrowUp" === e.key) {
2785
- var i = d.p.indexOf(d.qc);
2786
- i - 1 >= 0 && (d.qc = d.p[i - 1]), t();
2863
+ var i = d.p.indexOf(d.zc);
2864
+ i - 1 >= 0 && (d.zc = d.p[i - 1]), t();
2787
2865
  }
2788
2866
  else
2789
- "Enter" === e.key ? l.qc ? (e.stopPropagation(), a(l.qc)) : (e.stopPropagation(), n(), r()) : "Esc" !== e.key && "Escape" !== e.key || (e.stopPropagation(), n(), r());
2790
- }), this.sc = m, this.tc = h, this.pc || (this.pc = this.data[0], this.pc && (m.value = this.pc.name)), c.appendChild(m), c.appendChild(u), c.appendChild(f), c.appendChild(h), c;
2791
- }, d.prototype.vc = function () { this.q(), this.pc ? this.sc.value = this.pc.name : (this.sc.value = "", this.wc(!0)); }, d.prototype.focus = function () { this.rc = !0, this.sc.setAttribute("readonly", "readonly"), this.sc.focus(), this.vc(); }, d.prototype.q = function () { this.tc.style.display = "none"; }, d.prototype.wc = function (e) {
2792
- if (this.uc.value = this.selected ? this.selected.id : null, this.pc ? this.sc.value = this.pc.name : this.sc.value = "", "function" == typeof this.onSelect) {
2867
+ "Enter" === e.key ? l.zc ? (e.stopPropagation(), a(l.zc)) : (e.stopPropagation(), n(), r()) : "Esc" !== e.key && "Escape" !== e.key || (e.stopPropagation(), n(), r());
2868
+ }), this.Bc = m, this.Cc = h, this.yc || (this.yc = this.data[0], this.yc && (m.value = this.yc.name)), c.appendChild(m), c.appendChild(u), c.appendChild(f), c.appendChild(h), c;
2869
+ }, d.prototype.Ec = function () { this.q(), this.yc ? this.Bc.value = this.yc.name : (this.Bc.value = "", this.Fc(!0)); }, d.prototype.focus = function () { this.Ac = !0, this.Bc.setAttribute("readonly", "readonly"), this.Bc.focus(), this.Ec(); }, d.prototype.q = function () { this.Cc.style.display = "none"; }, d.prototype.Fc = function (e) {
2870
+ if (this.Dc.value = this.selected ? this.selected.id : null, this.yc ? this.Bc.value = this.yc.name : this.Bc.value = "", "function" == typeof this.onSelect) {
2793
2871
  var t = { control: this, ui: e };
2794
2872
  this.onSelect(t);
2795
2873
  }
2796
2874
  };
2797
2875
  var c = function (e) {
2798
- this.form = null, this.item = null, this.data = null, this.name = null, this.theme = "edit_table_default", this.onInput = null, this.nav = {}, this.xc = null, this.ec = [], e = e || {};
2876
+ this.form = null, this.item = null, this.data = null, this.name = null, this.theme = "edit_table_default", this.onInput = null, this.nav = {}, this.Gc = null, this.oc = [], e = e || {};
2799
2877
  for (var t in e)
2800
2878
  this[t] = e[t];
2801
2879
  };
@@ -2806,11 +2884,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2806
2884
  i.type = "hidden", i.name = e.name, i.table = this, t.appendChild(i);
2807
2885
  var a = document.createElement("div");
2808
2886
  a.className = this.theme + "_table";
2809
- var n = this.yc();
2887
+ var n = this.Hc();
2810
2888
  a.appendChild(n);
2811
- var o = e.zc({});
2889
+ var o = e.Ic({});
2812
2890
  o.spacer = !0;
2813
- var r = this.Ac(o);
2891
+ var r = this.Jc(o);
2814
2892
  r.classList.add(e.theme + "_spacer"), a.appendChild(r);
2815
2893
  var s = document.createElement("div");
2816
2894
  s.className = e.theme + "_tbody", a.appendChild(s), t.appendChild(a);
@@ -2824,18 +2902,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2824
2902
  var n = {};
2825
2903
  n.result = e.form.serialize(), n.value = {}, i(n), a = n.value;
2826
2904
  }
2827
- var o = e.zc(a);
2828
- e.ec.push(o), e.Bc(), e.Cc();
2905
+ var o = e.Ic(a);
2906
+ e.oc.push(o), e.Kc(), e.Lc();
2829
2907
  }
2830
2908
  }), this.nav.plus = c, d.appendChild(c), t.appendChild(d), t;
2831
- }, c.prototype.yc = function () { var e = this, t = document.createElement("div"); return t.classList.add(this.theme + "_row"), t.classList.add(this.theme + "_header"), this.item.columns.forEach(function (i) { var a = document.createElement("div"); a.classList.add(e.theme + "_cell"), a.innerText = i.name, t.appendChild(a); }), t; }, c.prototype.Dc = function () { var e = this.item.max || 0; return !!(e && this.ec.length >= e); }, c.prototype.save = function () { var e = this, t = []; return e.ec.forEach(function (e) { var i = {}; e.cells.forEach(function (e) { i[e.id] = e.value; }), t.push(i); }), t; }, c.prototype.load = function (e) {
2909
+ }, c.prototype.Hc = function () { var e = this, t = document.createElement("div"); return t.classList.add(this.theme + "_row"), t.classList.add(this.theme + "_header"), this.item.columns.forEach(function (i) { var a = document.createElement("div"); a.classList.add(e.theme + "_cell"), a.innerText = i.name, t.appendChild(a); }), t; }, c.prototype.Mc = function () { var e = this.item.max || 0; return !!(e && this.oc.length >= e); }, c.prototype.save = function () { var e = this, t = []; return e.oc.forEach(function (e) { var i = {}; e.cells.forEach(function (e) { i[e.id] = e.value; }), t.push(i); }), t; }, c.prototype.load = function (e) {
2832
2910
  if ("[object Array]" !== Object.prototype.toString.call(e))
2833
2911
  throw new Error("Array expected");
2834
- this.data = e, this.Ec(), this.Bc();
2835
- }, c.prototype.Fc = function () { this.disabled ? this.nav.main.classList.add(this.theme + "_disabled") : this.nav.main.classList.remove(this.theme + "_disabled"), this.Dc() ? this.nav.plus.classList.add(this.theme + "_plus_max") : this.nav.plus.classList.remove(this.theme + "_plus_max"); }, c.prototype.Ec = function () { var e = this; this.ec = [], this.data.forEach(function (t) { var i = e.zc(t); e.ec.push(i); }); }, c.prototype.Gc = function (e) { var t = this, i = t.ec.indexOf(e); t.ec.splice(i, 1); }, c.prototype.zc = function (e) {
2912
+ this.data = e, this.Nc(), this.Kc();
2913
+ }, c.prototype.Oc = function () { this.disabled ? this.nav.main.classList.add(this.theme + "_disabled") : this.nav.main.classList.remove(this.theme + "_disabled"), this.Mc() ? this.nav.plus.classList.add(this.theme + "_plus_max") : this.nav.plus.classList.remove(this.theme + "_plus_max"); }, c.prototype.Nc = function () { var e = this; this.oc = [], this.data.forEach(function (t) { var i = e.Ic(t); e.oc.push(i); }); }, c.prototype.Pc = function (e) { var t = this, i = t.oc.indexOf(e); t.oc.splice(i, 1); }, c.prototype.Ic = function (e) {
2836
2914
  var t = this, i = {};
2837
2915
  return i.data = e, i.cells = [], t.item.columns.forEach(function (a) {
2838
- var n = a.id, o = e[n], r = t.Hc(a);
2916
+ var n = a.id, o = e[n], r = t.Qc(a);
2839
2917
  if ("undefined" == typeof o)
2840
2918
  if ("text" === r)
2841
2919
  o = "";
@@ -2848,19 +2926,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2848
2926
  var l = {};
2849
2927
  l.id = n, l.value = o, l.type = r, l.data = a, i.cells.push(l);
2850
2928
  }), i;
2851
- }, c.prototype.Hc = function (e) { var t = e.type; return t || (t = e.options ? "select" : "text"), t; }, c.prototype.Bc = function () {
2929
+ }, c.prototype.Qc = function (e) { var t = e.type; return t || (t = e.options ? "select" : "text"), t; }, c.prototype.Kc = function () {
2852
2930
  var e = this;
2853
- if (this.nav.body.innerHTML = "", this.nav.after.innerHTML = "", this.ec.forEach(function (t) { var i = e.Ac(t); e.nav.body.appendChild(i); }), 0 === this.ec.length) {
2854
- var t = e.Ic();
2931
+ if (this.nav.body.innerHTML = "", this.nav.after.innerHTML = "", this.oc.forEach(function (t) { var i = e.Jc(t); e.nav.body.appendChild(i); }), 0 === this.oc.length) {
2932
+ var t = e.Rc();
2855
2933
  e.nav.after.appendChild(t);
2856
2934
  }
2857
- this.Fc();
2858
- }, c.prototype.Ic = function () { var e = document.createElement("div"); return e.className = this.theme + "_empty", e; }, c.prototype.Ac = function (e) {
2935
+ this.Oc();
2936
+ }, c.prototype.Rc = function () { var e = document.createElement("div"); return e.className = this.theme + "_empty", e; }, c.prototype.Jc = function (e) {
2859
2937
  var t = this, i = document.createElement("div");
2860
2938
  i.className = t.theme + "_row", e.cells.forEach(function (a) {
2861
2939
  var n = document.createElement("div");
2862
2940
  n.className = t.theme + "_cell";
2863
- var o = t.Jc(a);
2941
+ var o = t.Sc(a);
2864
2942
  if (e.spacer) {
2865
2943
  var r = document.createElement("div");
2866
2944
  r.style.height = "0px", r.style.overflow = "hidden", r.appendChild(o), n.appendChild(r);
@@ -2872,22 +2950,22 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2872
2950
  var a = document.createElement("div");
2873
2951
  a.classList.add(t.theme + "_cell"), a.classList.add(t.theme + "_rowaction");
2874
2952
  var n = document.createElement("span");
2875
- return n.className = this.theme + "_delete", n.addEventListener("click", function (i) { t.disabled || (t.Gc(e), t.Bc(), t.Cc()); }), e.spacer || a.appendChild(n), i.appendChild(a), i;
2876
- }, c.prototype.Cc = function () {
2953
+ return n.className = this.theme + "_delete", n.addEventListener("click", function (i) { t.disabled || (t.Pc(e), t.Kc(), t.Lc()); }), e.spacer || a.appendChild(n), i.appendChild(a), i;
2954
+ }, c.prototype.Lc = function () {
2877
2955
  var e = this;
2878
2956
  if ("function" == typeof e.onInput) {
2879
2957
  var t = {};
2880
2958
  e.onInput(t);
2881
2959
  }
2882
- }, c.prototype.Jc = function (e) {
2960
+ }, c.prototype.Sc = function (e) {
2883
2961
  var t = this, i = e.type;
2884
2962
  if ("text" === i || "number" === i) {
2885
2963
  var a = document.createElement("input");
2886
- return a.type = i, t.disabled && (a.disabled = !0), e.value && (a.value = e.value), a.addEventListener("keyup", function (a) { "number" === i ? e.value = Number(this.value) : e.value = this.value, t.Cc(); }), a;
2964
+ return a.type = i, t.disabled && (a.disabled = !0), e.value && (a.value = e.value), a.addEventListener("keyup", function (a) { "number" === i ? e.value = Number(this.value) : e.value = this.value, t.Lc(); }), a;
2887
2965
  }
2888
2966
  if ("select" === i) {
2889
2967
  var n = document.createElement("select");
2890
- return t.disabled && (n.disabled = !0), e.data.options.forEach(function (t) { var i = document.createElement("option"); i.innerText = t.name, i.value = t.id, i.nc = t.id, n.appendChild(i), e.value === t.id && i.setAttribute("selected", !0); }), n.addEventListener("change", function (i) { var a = n.options[n.selectedIndex]; a && "undefined" != typeof a.nc && (e.value = a.nc), t.Cc(); }), n;
2968
+ return t.disabled && (n.disabled = !0), e.data.options.forEach(function (t) { var i = document.createElement("option"); i.innerText = t.name, i.value = t.id, i.wc = t.id, n.appendChild(i), e.value === t.id && i.setAttribute("selected", !0); }), n.addEventListener("change", function (i) { var a = n.options[n.selectedIndex]; a && "undefined" != typeof a.wc && (e.value = a.wc), t.Lc(); }), n;
2891
2969
  }
2892
2970
  throw new Error("Unsupported item type: " + i);
2893
2971
  }, c.prototype.focus = function () { };
@@ -2896,11 +2974,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2896
2974
  var DayPilot = {};
2897
2975
  if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () {
2898
2976
  if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
2899
- var e = {};
2900
- e.Month = function (t, i) {
2901
- this.v = "2024.4.566-lite", this.nav = {};
2902
- var a = this;
2903
- this.id = t, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, this.cellMarginBottom = 0, this.contextMenu = null, this.cssClassPrefix = "month_default", this.eventBarVisible = !0, this.eventHeight = 25, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.hideUntilInit = !0, this.lineSpace = 1, this.locale = "en-us", this.showToolTip = !0, this.startDate = new DayPilot.Date, this.theme = null, this.visible = !0, this.weekStarts = "Auto", this.width = "100%", this.xssProtection = "Enabled", this.afterRender = function () { }, this.cellHeaderClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.headerClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onCellHeaderClick = null, this.onCellHeaderClicked = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.onBeforeEventRender = null, this.onBeforeCellRender = null, this.cellEvents = [], this.elements = {}, this.elements.events = [], this.cache = {}, this.O = !1, this.U = function (e, t) { var e = JSON.parse(e); return e.CallBackRedirect ? void (document.location.href = e.CallBackRedirect) : "None" === e.UpdateType ? void a.fireAfterRenderDetached(e.CallBackData, !0) : (a.events.list = e.Events, "Full" === e.UpdateType && (a.startDate = e.StartDate, a.timeFormat = e.TimeFormat ? e.TimeFormat : a.timeFormat, "undefined" != typeof e.WeekStarts && (a.weekStarts = e.WeekStarts), a.hashes = e.Hashes), a.W(), a.Kc(), a.ea(), "Full" === e.UpdateType && (a.Lc(), a.Mc()), a.ja(), a.show(), a.ka(), void a.fireAfterRenderDetached(e.CallBackData, !0)); }, this.fireAfterRenderDetached = function (e, t) { var i = function (e, t) { return function () { a.afterRender && a.afterRender(e, t); }; }; window.setTimeout(i(e, t), 0); }, this.lineHeight = function () { return this.eventHeight + this.lineSpace; }, this.events = {}, this.events.add = function (e) {
2977
+ var e = {}, t = DayPilot.Util.isVueVNode;
2978
+ e.Month = function (i, a) {
2979
+ this.v = "2024.4.609-lite", this.nav = {};
2980
+ var n = this;
2981
+ this.id = i, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, this.cellMarginBottom = 0, this.contextMenu = null, this.cssClassPrefix = "month_default", this.eventBarVisible = !0, this.eventHeight = 25, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.hideUntilInit = !0, this.lineSpace = 1, this.locale = "en-us", this.showToolTip = !0, this.startDate = new DayPilot.Date, this.theme = null, this.visible = !0, this.weekStarts = "Auto", this.width = "100%", this.xssProtection = "Enabled", this.afterRender = function () { }, this.cellHeaderClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.headerClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onCellHeaderClick = null, this.onCellHeaderClicked = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.onBeforeEventRender = null, this.onBeforeCellRender = null, this.cellEvents = [], this.elements = {}, this.elements.events = [], this.cache = {}, this.O = !1, this.U = function (e, t) { var e = JSON.parse(e); return e.CallBackRedirect ? void (document.location.href = e.CallBackRedirect) : "None" === e.UpdateType ? void n.fireAfterRenderDetached(e.CallBackData, !0) : (n.events.list = e.Events, "Full" === e.UpdateType && (n.startDate = e.StartDate, n.timeFormat = e.TimeFormat ? e.TimeFormat : n.timeFormat, "undefined" != typeof e.WeekStarts && (n.weekStarts = e.WeekStarts), n.hashes = e.Hashes), n.W(), n.Tc(), n.ea(), "Full" === e.UpdateType && (n.Uc(), n.Vc()), n.ja(), n.show(), n.ka(), void n.fireAfterRenderDetached(e.CallBackData, !0)); }, this.fireAfterRenderDetached = function (e, t) { var i = function (e, t) { return function () { n.afterRender && n.afterRender(e, t); }; }; window.setTimeout(i(e, t), 0); }, this.lineHeight = function () { return this.eventHeight + this.lineSpace; }, this.events = {}, this.events.add = function (e) {
2904
2982
  var t = null;
2905
2983
  if (e instanceof DayPilot.Event)
2906
2984
  t = e.data;
@@ -2909,107 +2987,107 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2909
2987
  throw "DayPilot.Month.events.add() expects an object or DayPilot.Event instance.";
2910
2988
  t = e;
2911
2989
  }
2912
- a.events.list || (a.events.list = []), a.events.list.push(t), a.update(), a.sa.notify();
2990
+ n.events.list || (n.events.list = []), n.events.list.push(t), n.update(), n.sa.notify();
2913
2991
  }, this.events.find = function (e) {
2914
- if (!a.events.list)
2992
+ if (!n.events.list)
2915
2993
  return null;
2916
2994
  if ("function" == typeof e) {
2917
- for (var t = e, i = 0; i < a.events.list.length; i++) {
2918
- var n = new DayPilot.Event(a.events.list[i], a);
2919
- if (t(n))
2920
- return n;
2995
+ for (var t = e, i = 0; i < n.events.list.length; i++) {
2996
+ var a = new DayPilot.Event(n.events.list[i], n);
2997
+ if (t(a))
2998
+ return a;
2921
2999
  }
2922
3000
  return null;
2923
3001
  }
2924
- for (var i = 0; i < a.events.list.length; i++) {
2925
- var o = a.events.list[i];
3002
+ for (var i = 0; i < n.events.list.length; i++) {
3003
+ var o = n.events.list[i];
2926
3004
  if (o.id === e)
2927
- return new DayPilot.Event(o, a);
3005
+ return new DayPilot.Event(o, n);
2928
3006
  }
2929
3007
  return null;
2930
3008
  }, this.events.update = function (e) {
2931
3009
  if (e instanceof DayPilot.Event)
2932
3010
  e.commit();
2933
3011
  else if ("object" == typeof e) {
2934
- var t = a.events.find(e.id);
3012
+ var t = n.events.find(e.id);
2935
3013
  if (t) {
2936
- var i = DayPilot.indexOf(a.events.list, t.data);
2937
- a.events.list.splice(i, 1, e);
3014
+ var i = DayPilot.indexOf(n.events.list, t.data);
3015
+ n.events.list.splice(i, 1, e);
2938
3016
  }
2939
3017
  }
2940
- a.update(), a.sa.notify();
3018
+ n.update(), n.sa.notify();
2941
3019
  }, this.events.remove = function (e) {
2942
3020
  var t;
2943
3021
  if (e instanceof DayPilot.Event)
2944
3022
  t = e.data;
2945
3023
  else if ("object" == typeof e) {
2946
- var i = a.events.find(e.id);
3024
+ var i = n.events.find(e.id);
2947
3025
  i && (t = i.data);
2948
3026
  }
2949
3027
  else if ("string" == typeof e || "number" == typeof e) {
2950
- var i = a.events.find(e);
3028
+ var i = n.events.find(e);
2951
3029
  i && (t = i.data);
2952
3030
  }
2953
- var n = DayPilot.indexOf(a.events.list, t);
2954
- a.events.list.splice(n, 1), a.update(), a.sa.notify();
3031
+ var a = DayPilot.indexOf(n.events.list, t);
3032
+ n.events.list.splice(a, 1), n.update(), n.sa.notify();
2955
3033
  }, this.events.load = function (e, t, i) {
2956
- var n = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) {
3034
+ var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) {
2957
3035
  var i, o = e.request;
2958
3036
  try {
2959
3037
  i = JSON.parse(o.responseText);
2960
3038
  }
2961
3039
  catch (e) {
2962
3040
  var r = {};
2963
- return r.exception = e, void n(r);
3041
+ return r.exception = e, void a(r);
2964
3042
  }
2965
3043
  if (DayPilot.isArray(i)) {
2966
3044
  var s = {};
2967
3045
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
2968
3046
  return;
2969
- a.events.list = i, a.Ba && a.update();
3047
+ n.events.list = i, n.Ba && n.update();
2970
3048
  }
2971
3049
  };
2972
- if (a.eventsLoadMethod && "POST" === a.eventsLoadMethod.toUpperCase())
2973
- DayPilot.Http.ajax({ "method": "POST", "data": { "start": a.visibleStart().toString(), "end": a.visibleEnd().toString() }, "url": e, "success": o, "error": n });
3050
+ if (n.eventsLoadMethod && "POST" === n.eventsLoadMethod.toUpperCase())
3051
+ DayPilot.Http.ajax({ "method": "POST", "data": { "start": n.visibleStart().toString(), "end": n.visibleEnd().toString() }, "url": e, "success": o, "error": a });
2974
3052
  else {
2975
- var r = e, s = "start=" + a.visibleStart().toString() + "&end=" + a.visibleEnd().toString();
2976
- r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": n });
3053
+ var r = e, s = "start=" + n.visibleStart().toString() + "&end=" + n.visibleEnd().toString();
3054
+ r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": a });
2977
3055
  }
2978
- }, this.events.forRange = function (e, t) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var i = (a.events.list || []).map(function (e) { return new DayPilot.Event(e); }); return i.sort(a.jb), i.filter(function (i) { var a = i.start(), n = i.end(); return a === n && a === e || DayPilot.Util.overlaps(e, t, a, n); }); }, this.update = function (e) {
2979
- if (a.bb(e), this.Ba) {
2980
- if (a.O)
3056
+ }, this.events.forRange = function (e, t) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var i = (n.events.list || []).map(function (e) { return new DayPilot.Event(e); }); return i.sort(n.rb), i.filter(function (i) { var a = i.start(), n = i.end(); return a === n && a === e || DayPilot.Util.overlaps(e, t, a, n); }); }, this.update = function (e) {
3057
+ if (n.jb(e), this.Ba) {
3058
+ if (n.O)
2981
3059
  throw new DayPilot.Exception("You are trying to update a DayPilot.Month instance that has been disposed.");
2982
3060
  if (this.cells) {
2983
- a.W(), a.Kc(), a.ea(), a.Lc(), a.Mc(), a.ja(), a.t(), a.ka(), this.visible ? this.show() : this.hide();
3061
+ n.W(), n.Tc(), n.ea(), n.Uc(), n.Vc(), n.ja(), n.t(), n.ka(), this.visible ? this.show() : this.hide();
2984
3062
  }
2985
3063
  }
2986
- }, this.eb = null, this.bb = function (e) {
3064
+ }, this.mb = null, this.jb = function (e) {
2987
3065
  if (e) {
2988
- var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? a.events.list = e.list : a.events.list = e; } } };
2989
- this.eb = t;
3066
+ var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? n.events.list = e.list : n.events.list = e; } } };
3067
+ this.mb = t;
2990
3068
  for (var i in e)
2991
3069
  if (t[i]) {
2992
- var n = t[i];
2993
- n.data = e[i], n.preInit && n.preInit();
3070
+ var a = t[i];
3071
+ a.data = e[i], a.preInit && a.preInit();
2994
3072
  }
2995
3073
  else
2996
- a[i] = e[i];
3074
+ n[i] = e[i];
2997
3075
  }
2998
- }, this.fb = function () {
2999
- var e = this.eb;
3076
+ }, this.nb = function () {
3077
+ var e = this.mb;
3000
3078
  for (var t in e) {
3001
3079
  var i = e[t];
3002
3080
  i.postInit && i.postInit();
3003
3081
  }
3004
- }, this.hb = {}, this.hb.events = [], this.ib = function (e) {
3005
- var t = this.hb.events, i = this.events.list[e], n = {};
3082
+ }, this.pb = {}, this.pb.events = [], this.qb = function (e) {
3083
+ var t = this.pb.events, i = this.events.list[e], a = {};
3006
3084
  for (var o in i)
3007
- n[o] = i[o];
3085
+ a[o] = i[o];
3008
3086
  if ("function" == typeof this.onBeforeEventRender) {
3009
3087
  var r = {};
3010
- r.control = a, r.data = n, this.onBeforeEventRender(r);
3088
+ r.control = n, r.data = a, this.onBeforeEventRender(r);
3011
3089
  }
3012
- t[e] = n;
3090
+ t[e] = a;
3013
3091
  }, this.ea = function () {
3014
3092
  var e = this.events.list;
3015
3093
  if (e) {
@@ -3017,7 +3095,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3017
3095
  throw new DayPilot.Exception("DayPilot.Month.events.list expects an array object. You supplied: " + typeof e);
3018
3096
  if ("function" == typeof this.onBeforeEventRender)
3019
3097
  for (var t = 0; t < e.length; t++)
3020
- this.ib(t);
3098
+ this.qb(t);
3021
3099
  for (var i = 0; i < e.length; i++) {
3022
3100
  var a = e[i];
3023
3101
  if ("object" != typeof a)
@@ -3030,12 +3108,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3030
3108
  if (!(n.getTime() > o.getTime()))
3031
3109
  for (var t = 0; t < this.rows.length; t++) {
3032
3110
  var r = this.rows[t], s = new DayPilot.Event(a, this);
3033
- r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.hb.events[i]));
3111
+ r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.pb.events[i]));
3034
3112
  }
3035
3113
  }
3036
3114
  for (var l = 0; l < this.rows.length; l++) {
3037
3115
  var r = this.rows[l];
3038
- r.events.sort(this.jb);
3116
+ r.events.sort(this.rb);
3039
3117
  for (var d = 0; d < this.rows[l].events.length; d++) {
3040
3118
  var c = r.events[d], u = r.getStartColumn(c), h = r.getWidth(c);
3041
3119
  r.putIntoLine(c, u, h, l);
@@ -3045,21 +3123,31 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3045
3123
  }, this.W = function () {
3046
3124
  for (var e = 0; e < this.elements.events.length; e++) {
3047
3125
  var t = this.elements.events[e];
3048
- t.event = null, t.click = null, t.parentNode.removeChild(t);
3126
+ n.Ea(t);
3049
3127
  }
3050
3128
  this.elements.events = [];
3051
- }, this.ka = function () { this.Nc(); }, this.Nc = function () {
3129
+ }, this.Ea = function (e) {
3130
+ !function () {
3131
+ var i = e.domArgs;
3132
+ if (e.domArgs = null, i && "function" == typeof n.onBeforeEventDomRemove && n.onBeforeEventDomRemove(i), i && "function" == typeof n.onBeforeEventDomAdd) {
3133
+ var a = i && i.Fa;
3134
+ if (a) {
3135
+ n.Ha.Ga && t(i.element) && (n.Ha.Ia = !0, n.Ha.Ja(a), n.Ha.Ia = !1);
3136
+ }
3137
+ }
3138
+ }(), e.event = null, e.click = null, e.parentNode.removeChild(e);
3139
+ }, this.ka = function () { this.Wc(); }, this.Wc = function () {
3052
3140
  this.elements.events = [];
3053
3141
  for (var e = 0; e < this.rows.length; e++)
3054
3142
  for (var t = this.rows[e], i = 0; i < t.lines.length; i++)
3055
3143
  for (var a = t.lines[i], n = 0; n < a.length; n++)
3056
- this.Ea(a[n]);
3057
- }, this.jb = function (e, t) {
3144
+ this.Ka(a[n]);
3145
+ }, this.rb = function (e, t) {
3058
3146
  if (!(e && t && e.start && t.start))
3059
3147
  return 0;
3060
3148
  var i = e.start().getTime() - t.start().getTime();
3061
3149
  return 0 !== i ? i : t.end().getTime() - e.end().getTime();
3062
- }, this.drawShadow = function (t, i, n, o, r, s) {
3150
+ }, this.drawShadow = function (t, i, a, o, r, s) {
3063
3151
  r || (r = 0);
3064
3152
  var l = o;
3065
3153
  this.shadow = {}, this.shadow.list = [], this.shadow.start = { x: t, y: i }, this.shadow.width = o;
@@ -3076,9 +3164,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3076
3164
  var u = null;
3077
3165
  for (e.resizingEvent ? u = "w-resize" : e.movingEvent && (u = "move"), this.nav.top.style.cursor = u; l > 0 && i < this.rows.length;) {
3078
3166
  var h = Math.min(this.getColCount() - t, l), f = this.rows[i], m = this.getRowTop(i), p = f.getHeight(), v = document.createElement("div");
3079
- v.setAttribute("unselectable", "on"), v.style.position = "absolute", v.style.left = this.getCellWidth() * t + "%", v.style.width = this.getCellWidth() * h + "%", v.style.top = m + "px", v.style.height = p + "px", v.style.cursor = u, v.classList.add(a.K("_shadow"));
3167
+ v.setAttribute("unselectable", "on"), v.style.position = "absolute", v.style.left = this.getCellWidth() * t + "%", v.style.width = this.getCellWidth() * h + "%", v.style.top = m + "px", v.style.height = p + "px", v.style.cursor = u, v.classList.add(n.K("_shadow"));
3080
3168
  var y = document.createElement("div");
3081
- y.setAttribute("unselectable", "on"), v.appendChild(y), y.style.position = "absolute", y.style.top = "0px", y.style.right = "0px", y.style.left = "0px", y.style.bottom = "0px", y.classList.add(a.K("_shadow_inner")), this.nav.top.appendChild(v), this.shadow.list.push(v), l -= h + 7 - this.getColCount(), t = 0, i++;
3169
+ y.setAttribute("unselectable", "on"), v.appendChild(y), y.style.position = "absolute", y.style.top = "0px", y.style.right = "0px", y.style.left = "0px", y.style.bottom = "0px", y.classList.add(n.K("_shadow_inner")), this.nav.top.appendChild(v), this.shadow.list.push(v), l -= h + 7 - this.getColCount(), t = 0, i++;
3082
3170
  }
3083
3171
  }, this.clearShadow = function () {
3084
3172
  if (this.shadow) {
@@ -3090,60 +3178,77 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3090
3178
  for (var i = this.headerHeight, a = 0; a < e; a++)
3091
3179
  i += this.rows[a].getHeight();
3092
3180
  return i += this.cellHeaderHeight, i += t * this.lineHeight();
3093
- }, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.Ea = function (t) {
3094
- var i = t.cache || t.data, n = t.part.row, o = t.part.line, r = t.part.colStart, s = t.part.colWidth, l = this.getCellWidth() * r, d = this.getCellWidth() * s, c = this.getEventTop(n, o), u = document.createElement("div");
3095
- u.setAttribute("unselectable", "on"), u.style.height = this.eventHeight + "px", u.className = this.K("_event"), i.cssClass && DayPilot.Util.addClass(u, i.cssClass), t.part.startsHere || DayPilot.Util.addClass(u, this.K("_event_continueleft")), t.part.endsHere || DayPilot.Util.addClass(u, this.K("_event_continueright")), u.event = t, u.style.width = d + "%", u.style.position = "absolute", u.style.left = l + "%", u.style.top = c + "px", this.showToolTip && t.client.toolTip() && (u.title = t.client.toolTip()), u.onclick = a.ra, u.oncontextmenu = a.Oc, u.onmousedown = function (i) {
3096
- i = i || window.event;
3097
- var l = i.which || i.button;
3098
- if (i.cancelBubble = !0, i.stopPropagation && i.stopPropagation(), 1 === l)
3181
+ }, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.Ka = function (i) {
3182
+ var a = i.cache || i.data, o = i.part.row, r = i.part.line, s = i.part.colStart, l = i.part.colWidth, d = this.getCellWidth() * s, c = this.getCellWidth() * l, u = this.getEventTop(o, r), h = document.createElement("div");
3183
+ h.setAttribute("unselectable", "on"), h.style.height = this.eventHeight + "px", h.className = this.K("_event"), a.cssClass && DayPilot.Util.addClass(h, a.cssClass), i.part.startsHere || DayPilot.Util.addClass(h, this.K("_event_continueleft")), i.part.endsHere || DayPilot.Util.addClass(h, this.K("_event_continueright")), h.event = i, h.style.width = c + "%", h.style.position = "absolute", h.style.left = d + "%", h.style.top = u + "px", this.showToolTip && i.client.toolTip() && (h.title = i.client.toolTip()), h.onclick = n.ra, h.oncontextmenu = n.Xc, h.onmousedown = function (t) {
3184
+ t = t || window.event;
3185
+ var a = t.which || t.button;
3186
+ if (t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), 1 === a)
3099
3187
  if (e.movingEvent = null, "w-resize" === this.style.cursor || "e-resize" === this.style.cursor) {
3100
3188
  var d = {};
3101
- d.start = {}, d.start.x = r, d.start.y = n, d.event = u.event, d.width = DayPilot.DateUtil.daysSpan(d.event.start(), d.event.end()) + 1, d.direction = this.style.cursor, e.resizingEvent = d;
3189
+ d.start = {}, d.start.x = s, d.start.y = o, d.event = h.event, d.width = DayPilot.DateUtil.daysSpan(d.event.start(), d.event.end()) + 1, d.direction = this.style.cursor, e.resizingEvent = d;
3102
3190
  }
3103
- else if ("move" === this.style.cursor || t.client.moveEnabled()) {
3104
- a.clearShadow();
3105
- var c = DayPilot.mo3(a.nav.top, i);
3191
+ else if ("move" === this.style.cursor || i.client.moveEnabled()) {
3192
+ n.clearShadow();
3193
+ var c = DayPilot.mo3(n.nav.top, t);
3106
3194
  if (!c)
3107
3195
  return;
3108
- var h = a.getCellBelowPoint(c.x, c.y), f = DayPilot.DateUtil.daysDiff(t.start(), a.rows[n].start), m = 7 * h.y + h.x - (7 * n + r);
3196
+ var u = n.getCellBelowPoint(c.x, c.y), f = DayPilot.DateUtil.daysDiff(i.start(), n.rows[o].start), m = 7 * u.y + u.x - (7 * o + s);
3109
3197
  f && (m += f);
3110
3198
  var p = {};
3111
- p.start = {}, p.start.x = r, p.start.y = n, p.start.line = o, p.offset = a.eventMoveToPosition ? 0 : m, p.colWidth = s, p.event = u.event, p.coords = c, e.movingEvent = p;
3199
+ p.start = {}, p.start.x = s, p.start.y = o, p.start.line = r, p.offset = n.eventMoveToPosition ? 0 : m, p.colWidth = l, p.event = h.event, p.coords = c, e.movingEvent = p;
3112
3200
  }
3113
- }, u.onmousemove = function (i) {
3201
+ }, h.onmousemove = function (t) {
3114
3202
  if ("undefined" != typeof e && !e.movingEvent && !e.resizingEvent) {
3115
- var a = DayPilot.mo3(u, i);
3203
+ var a = DayPilot.mo3(h, t);
3116
3204
  if (a) {
3117
- u.deleteIcon && (u.deleteIcon.style.display = "");
3205
+ h.deleteIcon && (h.deleteIcon.style.display = "");
3118
3206
  var n = 6;
3119
- a.x <= n && t.client.resizeEnabled() ? t.part.startsHere ? (u.style.cursor = "w-resize", u.dpBorder = "left") : u.style.cursor = "not-allowed" : u.clientWidth - a.x <= n && t.client.resizeEnabled() ? t.part.endsHere ? (u.style.cursor = "e-resize", u.dpBorder = "right") : u.style.cursor = "not-allowed" : t.client.clickEnabled() ? u.style.cursor = "pointer" : u.style.cursor = "default";
3207
+ a.x <= n && i.client.resizeEnabled() ? i.part.startsHere ? (h.style.cursor = "w-resize", h.dpBorder = "left") : h.style.cursor = "not-allowed" : h.clientWidth - a.x <= n && i.client.resizeEnabled() ? i.part.endsHere ? (h.style.cursor = "e-resize", h.dpBorder = "right") : h.style.cursor = "not-allowed" : i.client.clickEnabled() ? h.style.cursor = "pointer" : h.style.cursor = "default";
3120
3208
  }
3121
3209
  }
3122
- }, u.onmouseleave = function (e) { u.deleteIcon && (u.deleteIcon.style.display = "none"), u.style.cursor = ""; }, u.onmouseenter = function (e) { u.deleteIcon && (u.deleteIcon.style.display = ""); };
3123
- var h = document.createElement("div");
3124
- if (h.setAttribute("unselectable", "on"), h.className = this.K("_event_inner"), "darker" === i.borderColor && i.backColor ? h.style.borderColor = DayPilot.ColorUtil.darker(i.backColor, 2) : h.style.borderColor = i.borderColor, i.backColor && (h.style.background = i.backColor), i.fontColor && (h.style.color = i.fontColor), h.innerHTML = t.client.html(), u.appendChild(h), t.client.barVisible()) {
3125
- var f = document.createElement("div");
3126
- f.setAttribute("unselectable", "on"), f.className = this.K("_event_bar"), f.style.position = "absolute";
3210
+ }, h.onmouseleave = function (e) { h.deleteIcon && (h.deleteIcon.style.display = "none"), h.style.cursor = ""; }, h.onmouseenter = function (e) { h.deleteIcon && (h.deleteIcon.style.display = ""); };
3211
+ var f = document.createElement("div");
3212
+ if (f.setAttribute("unselectable", "on"), f.className = this.K("_event_inner"), "darker" === a.borderColor && a.backColor ? f.style.borderColor = DayPilot.ColorUtil.darker(a.backColor, 2) : f.style.borderColor = a.borderColor, a.backColor && (f.style.background = a.backColor), a.fontColor && (f.style.color = a.fontColor), h.appendChild(f), i.client.barVisible()) {
3127
3213
  var m = document.createElement("div");
3128
- m.setAttribute("unselectable", "on"), m.className = this.K("_event_bar_inner"), m.style.top = "0%", m.style.height = "100%", i.barColor && (m.style.backgroundColor = i.barColor), f.appendChild(m), u.appendChild(f);
3214
+ m.setAttribute("unselectable", "on"), m.className = this.K("_event_bar"), m.style.position = "absolute";
3215
+ var p = document.createElement("div");
3216
+ p.setAttribute("unselectable", "on"), p.className = this.K("_event_bar_inner"), p.style.top = "0%", p.style.height = "100%", a.barColor && (p.style.backgroundColor = a.barColor), m.appendChild(p), h.appendChild(m);
3129
3217
  }
3130
- if (t.client.deleteEnabled()) {
3131
- var p = Math.floor(a.eventHeight / 2 - 9), v = document.createElement("div");
3132
- v.style.position = "absolute", v.style.right = "2px", v.style.top = p + "px", v.style.width = "18px", v.style.height = "18px", v.className = a.K("_event_delete"), v.onmousedown = function (e) { e.stopPropagation(); }, v.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && a.ua(t); }, v.style.display = "none", u.deleteIcon = v, u.appendChild(v);
3218
+ if (i.client.deleteEnabled()) {
3219
+ var v = Math.floor(n.eventHeight / 2 - 9), y = document.createElement("div");
3220
+ y.style.position = "absolute", y.style.right = "2px", y.style.top = v + "px", y.style.width = "18px", y.style.height = "18px", y.className = n.K("_event_delete"), y.onmousedown = function (e) { e.stopPropagation(); }, y.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && n.ua(t); }, y.style.display = "none", h.deleteIcon = y, h.appendChild(y);
3133
3221
  }
3134
- var y = i.areas ? DayPilot.Areas.copy(i.areas) : [];
3135
- if (DayPilot.Areas.attach(u, t, { "areas": y }), "function" == typeof a.onAfterEventRender) {
3136
- var g = {};
3137
- g.e = u.event, g.div = u, a.onAfterEventRender(g);
3222
+ var g = a.areas ? DayPilot.Areas.copy(a.areas) : [];
3223
+ if (DayPilot.Areas.attach(h, i, { "areas": g }), "function" == typeof n.onAfterEventRender) {
3224
+ var b = {};
3225
+ b.e = h.event, b.div = h, n.onAfterEventRender(b);
3138
3226
  }
3139
- this.elements.events.push(u), this.nav.events.appendChild(u);
3140
- }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.Kc = function () {
3227
+ !function () {
3228
+ var e = {};
3229
+ if (e.control = n, e.e = a, e.element = null, h.domArgs = e, "function" == typeof n.onBeforeEventDomAdd && n.onBeforeEventDomAdd(e), e.element) {
3230
+ var o = f;
3231
+ if (o) {
3232
+ e.Fa = o;
3233
+ if (t(e.element)) {
3234
+ if (!n.Ha.Ga)
3235
+ throw new DayPilot.Exception("Can't reach Vue");
3236
+ n.Ha.Ia = !0, n.Ha.La(e.element, o), n.Ha.Ia = !1;
3237
+ }
3238
+ else
3239
+ o.appendChild(e.element);
3240
+ }
3241
+ }
3242
+ else
3243
+ f.innerHTML = i.client.innerHTML();
3244
+ }(), this.elements.events.push(h), this.nav.events.appendChild(h);
3245
+ }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.Tc = function () {
3141
3246
  "string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart());
3142
3247
  var e, t = (this.startDate, this.lastVisibleDayOfMonth()), i = DayPilot.DateUtil.daysDiff(this.firstDate, t) + 1;
3143
3248
  e = Math.ceil(i / 7), this.days = 7 * e, this.rows = [];
3144
- for (var n = 0; n < e; n++) {
3249
+ for (var a = 0; a < e; a++) {
3145
3250
  var o = {};
3146
- o.start = this.firstDate.addDays(7 * n), o.end = o.start.addDays(this.getColCount()), o.events = [], o.lines = [], o.index = n, o.minHeight = this.cellHeight, o.calendar = this, o.belongsHere = function (e) { return e.end().getTime() === e.start().getTime() && e.start().getTime() === this.start.getTime() || !(e.end().getTime() <= this.start.getTime() || e.start().getTime() >= this.end.getTime()); }, o.getPartStart = function (e) { return DayPilot.DateUtil.max(this.start, e.start()); }, o.getPartEnd = function (e) { return DayPilot.DateUtil.min(this.end, e.end()); }, o.getStartColumn = function (e) { var t = this.getPartStart(e); return DayPilot.DateUtil.daysDiff(this.start, t); }, o.getWidth = function (e) { return DayPilot.DateUtil.daysSpan(this.getPartStart(e), this.getPartEnd(e)) + 1; }, o.putIntoLine = function (e, t, i, a) {
3251
+ o.start = this.firstDate.addDays(7 * a), o.end = o.start.addDays(this.getColCount()), o.events = [], o.lines = [], o.index = a, o.minHeight = this.cellHeight, o.calendar = this, o.belongsHere = function (e) { return e.end().getTime() === e.start().getTime() && e.start().getTime() === this.start.getTime() || !(e.end().getTime() <= this.start.getTime() || e.start().getTime() >= this.end.getTime()); }, o.getPartStart = function (e) { return DayPilot.DateUtil.max(this.start, e.start()); }, o.getPartEnd = function (e) { return DayPilot.DateUtil.min(this.end, e.end()); }, o.getStartColumn = function (e) { var t = this.getPartStart(e); return DayPilot.DateUtil.daysDiff(this.start, t); }, o.getWidth = function (e) { return DayPilot.DateUtil.daysSpan(this.getPartStart(e), this.getPartEnd(e)) + 1; }, o.putIntoLine = function (e, t, i, a) {
3147
3252
  for (var n = this, o = 0; o < this.lines.length; o++) {
3148
3253
  var r = this.lines[o];
3149
3254
  if (r.isFree(t, i))
@@ -3156,43 +3261,43 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3156
3261
  return i;
3157
3262
  }, r.addEvent = function (e, t, i, a, o) { e.part.colStart = t, e.part.colWidth = i, e.part.row = a, e.part.line = o, e.part.startsHere = n.start.getTime() <= e.start().getTime(), e.part.endsHere = n.end.getTime() >= e.end().getTime(), this.push(e); }, r.addEvent(e, t, i, a, this.lines.length), this.lines.push(r), this.lines.length - 1;
3158
3263
  }, o.getStart = function () {
3159
- for (var e = 0, t = 0; t < a.rows.length && t < this.index; t++)
3160
- e += a.rows[t].getHeight();
3161
- }, o.getHeight = function () { return Math.max(this.lines.length * a.lineHeight() + a.cellHeaderHeight + a.cellMarginBottom, this.calendar.cellHeight); }, this.rows.push(o);
3264
+ for (var e = 0, t = 0; t < n.rows.length && t < this.index; t++)
3265
+ e += n.rows[t].getHeight();
3266
+ }, o.getHeight = function () { return Math.max(this.lines.length * n.lineHeight() + n.cellHeaderHeight + n.cellMarginBottom, this.calendar.cellHeight); }, this.rows.push(o);
3162
3267
  }
3163
3268
  this.endDate = this.firstDate.addDays(7 * e);
3164
- }, this.visibleStart = function () { return a.firstDate; }, this.visibleEnd = function () { return a.endDate; }, this.getHeight = function () {
3269
+ }, this.visibleStart = function () { return n.firstDate; }, this.visibleEnd = function () { return n.endDate; }, this.getHeight = function () {
3165
3270
  for (var e = this.headerHeight, t = 0; t < this.rows.length; t++)
3166
3271
  e += this.rows[t].getHeight();
3167
3272
  return e;
3168
- }, this.getWidth = function (e, t) { return 7 * t.y + t.x - (7 * e.y + e.x) + 1; }, this.getMinCoords = function (e, t) { return 7 * e.y + e.x < 7 * t.y + t.x ? e : t; }, this.K = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Ga = function () {
3273
+ }, this.getWidth = function (e, t) { return 7 * t.y + t.x - (7 * e.y + e.x) + 1; }, this.getMinCoords = function (e, t) { return 7 * e.y + e.x < 7 * t.y + t.x ? e : t; }, this.K = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Na = function () {
3169
3274
  var t = this.nav.top;
3170
3275
  t.setAttribute("unselectable", "on"), t.style.MozUserSelect = "none", t.style.KhtmlUserSelect = "none", t.style.WebkitUserSelect = "none", t.style.position = "relative", this.width && (t.style.width = this.width), t.style.height = this.getHeight() + "px", t.onselectstart = function (e) { return !1; }, this.hideUntilInit && (t.style.visibility = "hidden"), this.visible || (t.style.display = "none"), t.className = this.K("_main");
3171
3276
  var i = document.createElement("div");
3172
3277
  this.nav.cells = i, i.style.position = "absolute", i.style.left = "0px", i.style.right = "0px", i.setAttribute("unselectable", "on"), t.appendChild(i);
3173
- var n = document.createElement("div");
3174
- this.nav.events = n, n.style.position = "absolute", n.style.left = "0px", n.style.right = "0px", n.setAttribute("unselectable", "on"), t.appendChild(n), t.onmousemove = function (t) {
3278
+ var a = document.createElement("div");
3279
+ this.nav.events = a, a.style.position = "absolute", a.style.left = "0px", a.style.right = "0px", a.setAttribute("unselectable", "on"), t.appendChild(a), t.onmousemove = function (t) {
3175
3280
  if (e.resizingEvent) {
3176
- var i = DayPilot.mo3(a.nav.top, t);
3281
+ var i = DayPilot.mo3(n.nav.top, t);
3177
3282
  if (!i)
3178
3283
  return;
3179
- var n = a.getCellBelowPoint(i.x, i.y);
3180
- a.clearShadow();
3284
+ var a = n.getCellBelowPoint(i.x, i.y);
3285
+ n.clearShadow();
3181
3286
  var o, r, s = e.resizingEvent;
3182
3287
  s.start;
3183
3288
  if ("w-resize" === s.direction) {
3184
- r = n;
3289
+ r = a;
3185
3290
  var l = s.event.end();
3186
3291
  l.getDatePart() === l && (l = l.addDays(-1));
3187
- var d = a.getCellFromDate(l);
3188
- o = a.getWidth(n, d);
3292
+ var d = n.getCellFromDate(l);
3293
+ o = n.getWidth(a, d);
3189
3294
  }
3190
3295
  else
3191
- r = a.getCellFromDate(s.event.start()), o = a.getWidth(r, n);
3192
- o < 1 && (o = 1), a.drawShadow(r.x, r.y, 0, o);
3296
+ r = n.getCellFromDate(s.event.start()), o = n.getWidth(r, a);
3297
+ o < 1 && (o = 1), n.drawShadow(r.x, r.y, 0, o);
3193
3298
  }
3194
3299
  else if (e.movingEvent) {
3195
- var i = DayPilot.mo3(a.nav.top, t);
3300
+ var i = DayPilot.mo3(n.nav.top, t);
3196
3301
  if (!i)
3197
3302
  return;
3198
3303
  if (i.x === e.movingEvent.coords.x && i.y === e.movingEvent.coords.y)
@@ -3200,21 +3305,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3200
3305
  var c = 3, u = Math.abs(i.x - e.movingEvent.coords.x) + Math.abs(i.y - e.movingEvent.coords.y);
3201
3306
  if (u <= c)
3202
3307
  return;
3203
- var n = a.getCellBelowPoint(i.x, i.y);
3204
- a.clearShadow();
3205
- var h = e.movingEvent.event, f = e.movingEvent.offset, o = a.cellMode ? 1 : DayPilot.DateUtil.daysSpan(h.start(), h.end()) + 1;
3206
- o < 1 && (o = 1), a.drawShadow(n.x, n.y, 0, o, f, h);
3308
+ var a = n.getCellBelowPoint(i.x, i.y);
3309
+ n.clearShadow();
3310
+ var h = e.movingEvent.event, f = e.movingEvent.offset, o = n.cellMode ? 1 : DayPilot.DateUtil.daysSpan(h.start(), h.end()) + 1;
3311
+ o < 1 && (o = 1), n.drawShadow(a.x, a.y, 0, o, f, h);
3207
3312
  }
3208
3313
  else if (e.timeRangeSelecting) {
3209
- var i = DayPilot.mo3(a.nav.top, t);
3314
+ var i = DayPilot.mo3(n.nav.top, t);
3210
3315
  if (!i)
3211
3316
  return;
3212
- var n = a.getCellBelowPoint(i.x, i.y);
3213
- a.clearShadow();
3214
- var r = e.timeRangeSelecting, m = 7 * r.y + r.x, p = 7 * n.y + n.x, o = Math.abs(p - m) + 1;
3317
+ var a = n.getCellBelowPoint(i.x, i.y);
3318
+ n.clearShadow();
3319
+ var r = e.timeRangeSelecting, m = 7 * r.y + r.x, p = 7 * a.y + a.x, o = Math.abs(p - m) + 1;
3215
3320
  o < 1 && (o = 1);
3216
- var v = m < p ? r : n;
3217
- e.timeRangeSelecting.from = { x: v.x, y: v.y }, e.timeRangeSelecting.width = o, e.timeRangeSelecting.moved = !0, a.drawShadow(v.x, v.y, 0, o, 0, null);
3321
+ var v = m < p ? r : a;
3322
+ e.timeRangeSelecting.from = { x: v.x, y: v.y }, e.timeRangeSelecting.width = o, e.timeRangeSelecting.moved = !0, n.drawShadow(v.x, v.y, 0, o, 0, null);
3218
3323
  }
3219
3324
  };
3220
3325
  }, this.ja = function () {
@@ -3237,7 +3342,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3237
3342
  for (var t = DayPilot.DateUtil.daysDiff(this.firstDate, e), i = { x: 0, y: 0 }; t >= 7;)
3238
3343
  i.y++, t -= 7;
3239
3344
  return i.x = t, i;
3240
- }, this.Mc = function () {
3345
+ }, this.Vc = function () {
3241
3346
  var e = document.createElement("div");
3242
3347
  e.oncontextmenu = function () { return !1; }, this.nav.cells.appendChild(e), this.cells = [];
3243
3348
  for (var t = 0; t < this.getColCount(); t++) {
@@ -3246,115 +3351,145 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3246
3351
  i.setAttribute("unselectable", "on"), i.style.position = "absolute", i.style.left = this.getCellWidth() * t + "%", i.style.width = this.getCellWidth() + "%", i.style.top = "0px", i.style.height = this.headerHeight + "px";
3247
3352
  var a = t + this.getWeekStart();
3248
3353
  a > 6 && (a -= 7), i.className = this.K("_header");
3249
- var o = document.createElement("div");
3250
- o.setAttribute("unselectable", "on"), o.innerHTML = n.locale().dayNames[a], i.appendChild(o), o.style.position = "absolute", o.style.top = "0px", o.style.bottom = "0px", o.style.left = "0px", o.style.right = "0px", o.className = this.K("_header_inner"), o.innerHTML = n.locale().dayNames[a], e.appendChild(i);
3354
+ var n = document.createElement("div");
3355
+ n.setAttribute("unselectable", "on"), n.innerHTML = o.locale().dayNames[a], i.appendChild(n), n.style.position = "absolute", n.style.top = "0px", n.style.bottom = "0px", n.style.left = "0px", n.style.right = "0px", n.className = this.K("_header_inner"), n.innerHTML = o.locale().dayNames[a], e.appendChild(i);
3251
3356
  for (var r = 0; r < this.rows.length; r++)
3252
- this.Pc(t, r, e);
3357
+ this.Yc(t, r, e);
3253
3358
  }
3254
- }, this.Lc = function () {
3359
+ }, this.Uc = function () {
3255
3360
  for (var e = 0; e < this.cells.length; e++)
3256
- for (var t = 0; t < this.cells[e].length; t++)
3257
- this.cells[e][t].onclick = null;
3361
+ for (var t = 0; t < this.cells[e].length; t++) {
3362
+ var i = n.cells[e][t];
3363
+ n.Ya(i);
3364
+ }
3258
3365
  this.nav.cells.innerHTML = "";
3259
- }, this.qa = function () { return 2 === a.api; }, this.Pc = function (t, i, o) {
3260
- var r = this.rows[i], s = this.firstDate.addDays(7 * i + t), l = s.getDay(), d = null;
3261
- d = 1 === l ? n.locale().monthNames[s.getMonth()] + " " + l : "" + l;
3262
- var c = !a.isWeekend(s), u = {};
3263
- u.control = a, u.cell = {}, u.cell.start = s, u.cell.end = s.addDays(1), u.cell.properties = { "headerHtml": d, "backColor": null, "business": c, "html": null }, "function" == typeof a.onBeforeCellRender && a.onBeforeCellRender(u);
3264
- var h = u.cell.properties, f = document.createElement("div");
3265
- if (f.setAttribute("unselectable", "on"), f.style.position = "absolute", f.style.cursor = "default", f.style.left = this.getCellWidth() * t + "%", f.style.width = this.getCellWidth() + "%", f.style.top = this.getRowTop(i) + "px", f.style.height = r.getHeight() + "px", f.className = this.K("_cell"), h.business) {
3266
- var c = this.K("_cell_business");
3267
- DayPilot.Util.addClass(f, c);
3268
- }
3269
- var m = (this.startDate.addMonths(-1).getMonth(), this.startDate.addMonths(1).getMonth(), this.startDate.getMonth(), document.createElement("div"));
3270
- m.setAttribute("unselectable", "on"), f.appendChild(m), m.style.position = "absolute", m.style.left = "0px", m.style.right = "0px", m.style.top = "0px", m.style.bottom = "0px", m.className = this.K("_cell_inner"), h.backColor && (m.style.backgroundColor = u.cell.properties.backColor), f.onmousedown = function (n) { "Disabled" !== a.timeRangeSelectedHandling && (a.clearShadow(), e.timeRangeSelecting = { "root": a, "x": t, "y": i, "from": { x: t, y: i }, "width": 1 }); }, f.onclick = function () {
3271
- var e = function (e) { var t = new DayPilot.Date(e), i = t.addDays(1); a.M(t, i); };
3272
- if ("Disabled" !== a.timeRangeSelectedHandling)
3273
- return void e(s);
3366
+ }, this.Ya = function (e) {
3367
+ !function () {
3368
+ var i = e.domArgs;
3369
+ if (e.domArgs = null, i && "function" == typeof n.onBeforeCellDomRemove && n.onBeforeCellDomRemove(i), i && "function" == typeof n.onBeforeCellDomAdd) {
3370
+ var a = i && i.Fa;
3371
+ if (a) {
3372
+ var o = n.Zc.reactDOM && isReactCmp(i.element), r = n.Ha.Ga && (isVueCmp(i.element) || t(i.element));
3373
+ o ? n.Zc.$c(a) : r && (n.Ha.Ia = !0, n.Ha.Ja(a), n.Ha.Ia = !1);
3374
+ }
3375
+ }
3376
+ }(), e.onclick = null;
3377
+ }, this.qa = function () { return 2 === n.api; }, this.Yc = function (i, a, r) {
3378
+ var s = this.rows[a], l = this.firstDate.addDays(7 * a + i), d = l.getDay(), c = null;
3379
+ c = 1 === d ? o.locale().monthNames[l.getMonth()] + " " + d : "" + d;
3380
+ var u = !n.isWeekend(l), h = { "start": l, "end": l.addDays(1), "properties": { "headerHtml": c, "backColor": null, "business": u, "html": null } }, f = {};
3381
+ f.control = n, f.cell = h, "function" == typeof n.onBeforeCellRender && n.onBeforeCellRender(f);
3382
+ var m = f.cell.properties, p = document.createElement("div");
3383
+ if (p.setAttribute("unselectable", "on"), p.style.position = "absolute", p.style.cursor = "default", p.style.left = this.getCellWidth() * i + "%", p.style.width = this.getCellWidth() + "%", p.style.top = this.getRowTop(a) + "px", p.style.height = s.getHeight() + "px", p.className = this.K("_cell"), m.business) {
3384
+ var u = this.K("_cell_business");
3385
+ DayPilot.Util.addClass(p, u);
3386
+ }
3387
+ var v = (this.startDate.addMonths(-1).getMonth(), this.startDate.addMonths(1).getMonth(), this.startDate.getMonth(), document.createElement("div"));
3388
+ v.setAttribute("unselectable", "on"), p.appendChild(v), v.style.position = "absolute", v.style.left = "0px", v.style.right = "0px", v.style.top = "0px", v.style.bottom = "0px", v.className = this.K("_cell_inner"), m.backColor && (v.style.backgroundColor = f.cell.properties.backColor), p.onmousedown = function (t) { "Disabled" !== n.timeRangeSelectedHandling && (n.clearShadow(), e.timeRangeSelecting = { "root": n, "x": i, "y": a, "from": { x: i, y: a }, "width": 1 }); }, p.onclick = function () {
3389
+ var e = function (e) { var t = new DayPilot.Date(e), i = t.addDays(1); n.M(t, i); };
3390
+ if ("Disabled" !== n.timeRangeSelectedHandling)
3391
+ return void e(l);
3274
3392
  };
3275
- var p = document.createElement("div");
3276
- if (p.setAttribute("unselectable", "on"), p.style.height = this.cellHeaderHeight + "px", p.className = this.K("_cell_header"), p.onclick = function (e) {
3277
- if ("Enabled" === a.cellHeaderClickHandling) {
3393
+ var y = document.createElement("div");
3394
+ if (y.setAttribute("unselectable", "on"), y.style.height = this.cellHeaderHeight + "px", y.className = this.K("_cell_header"), y.onclick = function (e) {
3395
+ if ("Enabled" === n.cellHeaderClickHandling) {
3278
3396
  e.stopPropagation();
3279
3397
  var t = {};
3280
- t.control = a, t.start = s, t.end = s.addDays(1), t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onCellHeaderClick && (a.onCellHeaderClick(t), t.preventDefault.value) || "function" == typeof a.onCellHeaderClicked && a.onCellHeaderClicked(t);
3398
+ t.control = n, t.start = l, t.end = l.addDays(1), t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onCellHeaderClick && (n.onCellHeaderClick(t), t.preventDefault.value) || "function" == typeof n.onCellHeaderClicked && n.onCellHeaderClicked(t);
3281
3399
  }
3282
- }, p.innerHTML = h.headerHtml, m.appendChild(p), h.html) {
3283
- var v = document.createElement("div");
3284
- v.style.height = r.getHeight() - this.cellHeaderHeight + "px", v.style.overflow = "hidden", v.innerHTML = h.html, m.appendChild(v);
3400
+ }, y.innerHTML = m.headerHtml, v.appendChild(y), m.html) {
3401
+ var g = document.createElement("div");
3402
+ g.style.height = s.getHeight() - this.cellHeaderHeight + "px", g.style.overflow = "hidden", g.innerHTML = m.html, v.appendChild(g);
3285
3403
  }
3286
- this.cells[t][i] = f, o.appendChild(f);
3404
+ !function () {
3405
+ if ("function" == typeof n.onBeforeCellDomAdd || "function" == typeof n.onBeforeCellDomRemove) {
3406
+ var e = {};
3407
+ if (e.control = n, e.cell = h, e.element = null, p.domArgs = e, "function" == typeof n.onBeforeCellDomAdd && n.onBeforeCellDomAdd(e), e.element) {
3408
+ var i = v;
3409
+ if (i) {
3410
+ e.Fa = i;
3411
+ if (t(e.element)) {
3412
+ if (!n.Ha.Ga)
3413
+ throw new DayPilot.Exception("Can't reach Vue");
3414
+ n.Ha.Ia = !0, n.Ha.La(e.element, i), n.Ha.Ia = !1;
3415
+ }
3416
+ else
3417
+ i.appendChild(e.element);
3418
+ }
3419
+ }
3420
+ }
3421
+ }(), this.cells[i][a] = p, r.appendChild(p);
3287
3422
  }, this.getWeekStart = function () {
3288
- if ("Auto" === a.weekStarts) {
3289
- var e = n.locale();
3423
+ if ("Auto" === n.weekStarts) {
3424
+ var e = o.locale();
3290
3425
  return e ? e.weekStarts : 0;
3291
3426
  }
3292
- return a.weekStarts || 0;
3427
+ return n.weekStarts || 0;
3293
3428
  }, this.getColCount = function () { return 7; }, this.getCellWidth = function () { return 14.285; }, this.getRowTop = function (e) {
3294
3429
  for (var t = this.headerHeight, i = 0; i < e; i++)
3295
3430
  t += this.rows[i].getHeight();
3296
3431
  return t;
3297
- }, this.S = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.R(); var n = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl && DayPilot.request(this.backendUrl, this.T, n, this.ajaxError); }, this.T = function (e) { a.U(e.responseText); }, this.R = function () { var e = {}; return e.control = "dpm", e.id = this.id, e.v = this.v, e.visibleStart = new DayPilot.Date(this.firstDate), e.visibleEnd = e.visibleStart.addDays(this.days), e.startDate = a.startDate, e.timeFormat = this.timeFormat, e.weekStarts = this.weekStarts, e; }, this.eventClickCallBack = function (e, t) { this.S("EventClick", t, e); }, this.ra = function (t) { e.movingEvent = null, e.resizingEvent = null; var i = this, t = t || window.event; t.ctrlKey; t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), a.eventClickSingle(i, t); }, this.eventClickSingle = function (e, t) {
3432
+ }, this.S = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.R(); var n = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl && DayPilot.request(this.backendUrl, this.T, n, this.ajaxError); }, this.T = function (e) { n.U(e.responseText); }, this.R = function () { var e = {}; return e.control = "dpm", e.id = this.id, e.v = this.v, e.visibleStart = new DayPilot.Date(this.firstDate), e.visibleEnd = e.visibleStart.addDays(this.days), e.startDate = n.startDate, e.timeFormat = this.timeFormat, e.weekStarts = this.weekStarts, e; }, this.eventClickCallBack = function (e, t) { this.S("EventClick", t, e); }, this.ra = function (t) { e.movingEvent = null, e.resizingEvent = null; var i = this, t = t || window.event; t.ctrlKey; t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), n.eventClickSingle(i, t); }, this.eventClickSingle = function (e, t) {
3298
3433
  var i = e.event;
3299
3434
  if (i && i.client.clickEnabled())
3300
- if (a.qa()) {
3301
- var n = {};
3302
- if (n.e = i, n.control = a, n.div = e, n.originalEvent = t, n.meta = t.metaKey, n.ctrl = t.ctrlKey, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventClick && (a.sa.apply(function () { a.onEventClick(n); }), n.preventDefault.value))
3435
+ if (n.qa()) {
3436
+ var a = {};
3437
+ if (a.e = i, a.control = n, a.div = e, a.originalEvent = t, a.meta = t.metaKey, a.ctrl = t.ctrlKey, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventClick && (n.sa.apply(function () { n.onEventClick(a); }), a.preventDefault.value))
3303
3438
  return;
3304
- switch (a.eventClickHandling) {
3439
+ switch (n.eventClickHandling) {
3305
3440
  case "CallBack":
3306
- a.eventClickCallBack(i);
3441
+ n.eventClickCallBack(i);
3307
3442
  break;
3308
3443
  case "ContextMenu":
3309
3444
  var o = i.client.contextMenu();
3310
- o ? o.show(i) : a.contextMenu && a.contextMenu.show(i);
3445
+ o ? o.show(i) : n.contextMenu && n.contextMenu.show(i);
3311
3446
  }
3312
- "function" == typeof a.onEventClicked && a.sa.apply(function () { a.onEventClicked(n); });
3447
+ "function" == typeof n.onEventClicked && n.sa.apply(function () { n.onEventClicked(a); });
3313
3448
  }
3314
3449
  else
3315
- switch (a.eventClickHandling) {
3450
+ switch (n.eventClickHandling) {
3316
3451
  case "CallBack":
3317
- a.eventClickCallBack(i);
3452
+ n.eventClickCallBack(i);
3318
3453
  break;
3319
- case "JavaScript": a.onEventClick(i);
3454
+ case "JavaScript": n.onEventClick(i);
3320
3455
  }
3321
- }, this.Oc = function () { var e = this; return a.ta(e.event), !1; }, this.ta = function (e) {
3456
+ }, this.Xc = function () { var e = this; return n.ta(e.event), !1; }, this.ta = function (e) {
3322
3457
  if (this.event = e, !e.client.rightClickEnabled())
3323
3458
  return !1;
3324
3459
  var t = {};
3325
- if (t.e = e, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" != typeof a.onEventRightClick || (a.onEventRightClick(t), !t.preventDefault.value)) {
3326
- switch (a.eventRightClickHandling) {
3460
+ if (t.e = e, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" != typeof n.onEventRightClick || (n.onEventRightClick(t), !t.preventDefault.value)) {
3461
+ switch (n.eventRightClickHandling) {
3327
3462
  case "ContextMenu":
3328
3463
  var i = e.client.contextMenu();
3329
- i ? i.show(e) : a.contextMenu && a.contextMenu.show(this.event);
3464
+ i ? i.show(e) : n.contextMenu && n.contextMenu.show(this.event);
3330
3465
  }
3331
- return "function" == typeof a.onEventRightClicked && a.onEventRightClicked(t), !1;
3466
+ return "function" == typeof n.onEventRightClicked && n.onEventRightClicked(t), !1;
3332
3467
  }
3333
3468
  }, this.ua = function (e) {
3334
- if (a.qa()) {
3469
+ if (n.qa()) {
3335
3470
  var t = {};
3336
- if (t.e = e, t.control = a, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventDelete && (a.sa.apply(function () { a.onEventDelete(t); }), t.preventDefault.value))
3471
+ if (t.e = e, t.control = n, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventDelete && (n.sa.apply(function () { n.onEventDelete(t); }), t.preventDefault.value))
3337
3472
  return;
3338
- switch (a.eventDeleteHandling) {
3473
+ switch (n.eventDeleteHandling) {
3339
3474
  case "CallBack":
3340
- a.eventDeleteCallBack(e);
3475
+ n.eventDeleteCallBack(e);
3341
3476
  break;
3342
3477
  case "PostBack":
3343
- a.eventDeletePostBack(e);
3478
+ n.eventDeletePostBack(e);
3344
3479
  break;
3345
- case "Update": a.events.remove(e);
3480
+ case "Update": n.events.remove(e);
3346
3481
  }
3347
- "function" == typeof a.onEventDeleted && a.sa.apply(function () { a.onEventDeleted(t); });
3482
+ "function" == typeof n.onEventDeleted && n.sa.apply(function () { n.onEventDeleted(t); });
3348
3483
  }
3349
3484
  else
3350
- switch (a.eventDeleteHandling) {
3485
+ switch (n.eventDeleteHandling) {
3351
3486
  case "PostBack":
3352
- a.eventDeletePostBack(e);
3487
+ n.eventDeletePostBack(e);
3353
3488
  break;
3354
3489
  case "CallBack":
3355
- a.eventDeleteCallBack(e);
3490
+ n.eventDeleteCallBack(e);
3356
3491
  break;
3357
- case "JavaScript": a.onEventDelete(e);
3492
+ case "JavaScript": n.onEventDelete(e);
3358
3493
  }
3359
3494
  }, this.eventDeleteCallBack = function (e, t) { this.S("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.Q("EventDelete", t, e); }, this.eventMoveCallBack = function (e, t, i, a, n) {
3360
3495
  if (!t)
@@ -3363,30 +3498,30 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3363
3498
  throw "newEnd is null";
3364
3499
  var o = {};
3365
3500
  o.e = e, o.newStart = t, o.newEnd = i, o.position = n, this.S("EventMove", a, o);
3366
- }, this.L = function (e, t, i, n, o, r) {
3501
+ }, this.L = function (e, t, i, a, o, r) {
3367
3502
  var s = e.start().getTimePart(), l = e.end().getDatePart();
3368
3503
  l.getTime() !== e.end().getTime() && (l = l.addDays(1));
3369
3504
  var d = DayPilot.DateUtil.diff(e.end(), l), c = this.getDateFromCell(t, i);
3370
- c = c.addDays(-n);
3505
+ c = c.addDays(-a);
3371
3506
  var u = DayPilot.DateUtil.daysSpan(e.start(), e.end()) + 1, h = c.addDays(u), f = c.addTime(s), m = h.addTime(d);
3372
- if (a.qa()) {
3507
+ if (n.qa()) {
3373
3508
  var p = {};
3374
- if (p.e = e, p.control = a, p.newStart = f, p.newEnd = m, p.ctrl = o.ctrlKey, p.shift = o.shiftKey, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventMove && (a.sa.apply(function () { a.onEventMove(p); }), p.preventDefault.value))
3509
+ if (p.e = e, p.control = n, p.newStart = f, p.newEnd = m, p.ctrl = o.ctrlKey, p.shift = o.shiftKey, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventMove && (n.sa.apply(function () { n.onEventMove(p); }), p.preventDefault.value))
3375
3510
  return;
3376
- switch (a.eventMoveHandling) {
3511
+ switch (n.eventMoveHandling) {
3377
3512
  case "CallBack":
3378
- a.eventMoveCallBack(e, f, m);
3513
+ n.eventMoveCallBack(e, f, m);
3379
3514
  break;
3380
- case "Update": e.start(f), e.end(m), a.events.update(e);
3515
+ case "Update": e.start(f), e.end(m), n.events.update(e);
3381
3516
  }
3382
- "function" == typeof a.onEventMoved && a.sa.apply(function () { a.onEventMoved(p); });
3517
+ "function" == typeof n.onEventMoved && n.sa.apply(function () { n.onEventMoved(p); });
3383
3518
  }
3384
3519
  else
3385
- switch (a.eventMoveHandling) {
3520
+ switch (n.eventMoveHandling) {
3386
3521
  case "CallBack":
3387
- a.eventMoveCallBack(e, f, m);
3522
+ n.eventMoveCallBack(e, f, m);
3388
3523
  break;
3389
- case "JavaScript": a.onEventMove(e, f, m);
3524
+ case "JavaScript": n.onEventMove(e, f, m);
3390
3525
  }
3391
3526
  }, this.eventResizeCallBack = function (e, t, i, a) {
3392
3527
  if (!t)
@@ -3396,48 +3531,48 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3396
3531
  var n = {};
3397
3532
  n.e = e, n.newStart = t, n.newEnd = i, this.S("EventResize", a, n);
3398
3533
  }, this.J = function (e, t, i) {
3399
- var n = e.start().getTimePart(), o = e.end().getDatePart();
3534
+ var a = e.start().getTimePart(), o = e.end().getDatePart();
3400
3535
  o.getTime() !== e.end().getTime() && (o = o.addDays(1));
3401
- var r = DayPilot.DateUtil.diff(e.end(), o), s = this.getDateFromCell(t.x, t.y), l = s.addDays(i), d = s.addTime(n), c = l.addTime(r);
3402
- if (a.qa()) {
3536
+ var r = DayPilot.DateUtil.diff(e.end(), o), s = this.getDateFromCell(t.x, t.y), l = s.addDays(i), d = s.addTime(a), c = l.addTime(r);
3537
+ if (n.qa()) {
3403
3538
  var u = {};
3404
- if (u.e = e, u.control = a, u.newStart = d, u.newEnd = c, u.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventResize && (a.sa.apply(function () { a.onEventResize(u); }), u.preventDefault.value))
3539
+ if (u.e = e, u.control = n, u.newStart = d, u.newEnd = c, u.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventResize && (n.sa.apply(function () { n.onEventResize(u); }), u.preventDefault.value))
3405
3540
  return;
3406
- switch (a.eventResizeHandling) {
3541
+ switch (n.eventResizeHandling) {
3407
3542
  case "CallBack":
3408
- a.eventResizeCallBack(e, d, c);
3543
+ n.eventResizeCallBack(e, d, c);
3409
3544
  break;
3410
- case "Update": e.start(d), e.end(c), a.events.update(e);
3545
+ case "Update": e.start(d), e.end(c), n.events.update(e);
3411
3546
  }
3412
- "function" == typeof a.onEventResized && a.sa.apply(function () { a.onEventResized(u); });
3547
+ "function" == typeof n.onEventResized && n.sa.apply(function () { n.onEventResized(u); });
3413
3548
  }
3414
3549
  else
3415
- switch (a.eventResizeHandling) {
3550
+ switch (n.eventResizeHandling) {
3416
3551
  case "CallBack":
3417
- a.eventResizeCallBack(e, d, c);
3552
+ n.eventResizeCallBack(e, d, c);
3418
3553
  break;
3419
- case "JavaScript": a.onEventResize(e, d, c);
3554
+ case "JavaScript": n.onEventResize(e, d, c);
3420
3555
  }
3421
3556
  }, this.timeRangeSelectedCallBack = function (e, t, i) { var a = {}; a.start = e, a.end = t, this.S("TimeRangeSelected", i, a); }, this.M = function (e, t) {
3422
3557
  if (this.qa()) {
3423
3558
  var i = {};
3424
- if (i.control = a, i.start = e, i.end = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onTimeRangeSelect && (a.sa.apply(function () { a.onTimeRangeSelect(i); }), i.preventDefault.value))
3559
+ if (i.control = n, i.start = e, i.end = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.sa.apply(function () { n.onTimeRangeSelect(i); }), i.preventDefault.value))
3425
3560
  return;
3426
- switch (a.timeRangeSelectedHandling) {
3427
- case "CallBack": a.timeRangeSelectedCallBack(e, t);
3561
+ switch (n.timeRangeSelectedHandling) {
3562
+ case "CallBack": n.timeRangeSelectedCallBack(e, t);
3428
3563
  }
3429
- "function" == typeof a.onTimeRangeSelected && a.sa.apply(function () { a.onTimeRangeSelected(i); });
3564
+ "function" == typeof n.onTimeRangeSelected && n.sa.apply(function () { n.onTimeRangeSelected(i); });
3430
3565
  }
3431
3566
  else
3432
- switch (a.timeRangeSelectedHandling) {
3567
+ switch (n.timeRangeSelectedHandling) {
3433
3568
  case "CallBack":
3434
- a.timeRangeSelectedCallBack(e, t);
3569
+ n.timeRangeSelectedCallBack(e, t);
3435
3570
  break;
3436
- case "JavaScript": a.onTimeRangeSelected(e, t);
3571
+ case "JavaScript": n.onTimeRangeSelected(e, t);
3437
3572
  }
3438
- }, this.sa = {}, this.sa.scope = null, this.sa.notify = function () { a.sa.scope && a.sa.scope["$apply"](); }, this.sa.apply = function (e) { e(); }, this.clearSelection = function () { a.clearShadow(); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.S("Command", t, i); }, this.isWeekend = function (e) { return e = new DayPilot.Date(e), 0 === e.dayOfWeek() || 6 === e.dayOfWeek(); }, this.aa = {}, this.aa.locale = function () { var e = DayPilot.Locale.find(a.locale); return e ? e : DayPilot.Locale.US; }, this.aa.ba = function () { return "Disabled" !== a.xssProtection; };
3439
- var n = this.aa;
3440
- this.debug = function (e, t) { this.debuggingEnabled && (a.debugMessages || (a.debugMessages = []), a.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.dispose = function () { var e = a; e.O || (e.O = !0, e.W(), e.nav.top.removeAttribute("style"), e.nav.top.removeAttribute("class"), e.nav.top.innerHTML = "", e.nav.top.dp = null, e.nav.top.onmousemove = null, e.nav.top = null); }, this.disposed = function () { return this.O; }, this.$a = function () { e.globalHandlers || (e.globalHandlers = !0, DayPilot.re(document, "mouseup", e.gMouseUp)); }, this.loadFromServer = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof a.events.list || !a.events.list); }, this.t = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { a.visible = !0, a.nav.top.style.display = ""; }, this.hide = function () { a.visible = !1, a.nav.top.style.display = "none"; }, this.gb = function () {
3573
+ }, this.sa = {}, this.sa.scope = null, this.sa.notify = function () { n.sa.scope && n.sa.scope["$apply"](); }, this.sa.apply = function (e) { e(); }, this.clearSelection = function () { n.clearShadow(); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.S("Command", t, i); }, this.isWeekend = function (e) { return e = new DayPilot.Date(e), 0 === e.dayOfWeek() || 6 === e.dayOfWeek(); }, this.aa = {}, this.aa.locale = function () { var e = DayPilot.Locale.find(n.locale); return e ? e : DayPilot.Locale.US; }, this.aa.ba = function () { return "Disabled" !== n.xssProtection; };
3574
+ var o = this.aa;
3575
+ this.debug = function (e, t) { this.debuggingEnabled && (n.debugMessages || (n.debugMessages = []), n.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.dispose = function () { var e = n; e.O || (e.O = !0, e.Uc(), e.W(), e.nav.top.removeAttribute("style"), e.nav.top.removeAttribute("class"), e.nav.top.innerHTML = "", e.nav.top.dp = null, e.nav.top.onmousemove = null, e.nav.top = null); }, this.disposed = function () { return this.O; }, this.gb = function () { e.globalHandlers || (e.globalHandlers = !0, DayPilot.re(document, "mouseup", e.gMouseUp)); }, this.loadFromServer = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof n.events.list || !n.events.list); }, this.t = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { n.visible = !0, n.nav.top.style.display = ""; }, this.hide = function () { n.visible = !1, n.nav.top.style.display = "none"; }, this.ob = function () {
3441
3576
  if (this.id && this.id.tagName)
3442
3577
  this.nav.top = this.id;
3443
3578
  else {
@@ -3446,7 +3581,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3446
3581
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
3447
3582
  throw "DayPilot.Month: The placeholder element not found: '" + id + "'.";
3448
3583
  }
3449
- }, this.mb = function () { this.Kc(), this.Ga(), this.Mc(), this.$a(), this.S("Init"); }, this.Ka = function (e, t) { return a.aa.ba() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.loadOptions = this.bb, this.internal.xssTextHtml = a.Ka, this.init = function () { return this.gb(), this.loadFromServer() ? void this.mb() : (this.Kc(), this.ea(), this.Ga(), this.Mc(), this.t(), this.ka(), this.$a(), this.fireAfterRenderDetached(null, !1), this.Ba = !0, this); }, this.Init = this.init, Object.defineProperty(this, "durationBarVisible", { get: function () { return a.eventBarVisible; } }), this.bb(i);
3584
+ }, this.ub = function () { this.Tc(), this.Na(), this.Vc(), this.gb(), this.S("Init"); }, this.Ra = function (e, t) { return n.aa.ba() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Ha = {}, this.Ha.Ga = null, this.Ha.Cb = function (e, t, i) {
3585
+ var a = n.Ha.Ga;
3586
+ if ("function" == typeof a.createVNode && "function" == typeof a.render) {
3587
+ var o = a.createVNode(e, i);
3588
+ a.render(o, t);
3589
+ }
3590
+ }, this.Ha.La = function (e, t) {
3591
+ var i = n.Ha.Ga;
3592
+ if ("function" == typeof i.render) {
3593
+ var a = e;
3594
+ DayPilot.isArray(e) && (a = i.h("div", null, e)), i.render(a, t);
3595
+ }
3596
+ }, this.Ha.Ja = function (e) { var t = n.Ha.Ga; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = this.jb, this.internal.xssTextHtml = n.Ra, this.internal.enableVue = function (e) { n.Ha.Ga = e; }, this.internal.vueRef = function () { return n.Ha.Ga; }, this.internal.vueRendering = function () { return n.Ha.Ia; }, this.init = function () { return this.ob(), this.loadFromServer() ? void this.ub() : (this.Tc(), this.ea(), this.Na(), this.Vc(), this.t(), this.ka(), this.gb(), this.fireAfterRenderDetached(null, !1), this.Ba = !0, this); }, this.Init = this.init, Object.defineProperty(this, "durationBarVisible", { get: function () { return n.eventBarVisible; } }), this.jb(a);
3450
3597
  }, e.gMouseUp = function (t) {
3451
3598
  if (e.movingEvent) {
3452
3599
  var i = e.movingEvent;
@@ -3525,107 +3672,131 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3525
3672
  "undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (DayPilot) {
3526
3673
  "use strict";
3527
3674
  if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.def) {
3528
- DayPilot.Navigator = function (e, t) {
3529
- this.v = "2024.4.566-lite";
3530
- var i = this;
3531
- this.id = e, this.api = 2, this.isNavigator = !0, this.autoFocusOnClick = !0, this.weekStarts = "Auto", this.selectMode = "Day", this.titleHeight = 30, this.dayHeaderHeight = 30, this.bound = null, this.cellWidth = 30, this.cellHeight = 30, this.cssClassPrefix = "navigator_default", this.freeHandSelectionEnabled = !1, this.selectionStart = (new DayPilot.Date).getDatePart(), this.selectionEnd = null, this.selectionDay = null, this.showMonths = 1, this.skipMonths = 1, this.command = "navigate", this.year = (new DayPilot.Date).getYear(), this.month = (new DayPilot.Date).getMonth() + 1, this.showWeekNumbers = !1, this.weekNumberAlgorithm = "Auto", this.rowsPerMonth = "Six", this.orientation = "Vertical", this.locale = "en-us", this.rtl = !1, this.visible = !0, this.timeRangeSelectedHandling = "Bind", this.visibleRangeChangedHandling = "Enabled", this.onVisibleRangeChange = null, this.onVisibleRangeChanged = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.nav = {}, this.hb = {}, this.Qc = function () { this.root.dp = this, this.root.className = this.K("_main"), "Horizontal" === this.orientation ? (o.Rc() || (this.root.style.width = this.showMonths * (7 * o.cellWidth() + this.Sc()) + "px"), this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : o.Rc() || (this.root.style.width = 7 * o.cellWidth() + this.Sc() + "px"), this.rtl && (this.root.style.direction = "rtl"), this.root.style.position = "relative", this.visible || (this.root.style.display = "none"); var e = document.createElement("input"); e.type = "hidden", e.name = i.id + "_state", e.id = e.name, this.root.appendChild(e), this.state = e, this.startDate ? this.startDate = new DayPilot.Date(this.startDate).firstDayOfMonth() : this.selectionDay ? this.startDate = new DayPilot.Date(this.selectionDay).firstDayOfMonth() : this.startDate = DayPilot.Date.fromYearMonthDay(this.year, this.month), this.calendars = [], this.selected = [], this.months = []; }, this.qa = function () { return 2 === i.api; }, this.Lc = function () { this.root.innerHTML = ""; }, this.K = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Tc = function (e, t) { var i = this.K("_" + t); DayPilot.Util.addClass(e, i); }, this.Uc = function (e, t) { var i = this.K("_" + t); DayPilot.Util.removeClass(e, i); }, this.Vc = function () {
3532
- if (!o.Rc())
3675
+ var e = DayPilot.Util.isVueVNode;
3676
+ DayPilot.Navigator = function (t, i) {
3677
+ this.v = "2024.4.609-lite";
3678
+ var a = this;
3679
+ this.id = t, this.api = 2, this.isNavigator = !0, this.autoFocusOnClick = !0, this.weekStarts = "Auto", this.selectMode = "Day", this.titleHeight = 30, this.dayHeaderHeight = 30, this.bound = null, this.cellWidth = 30, this.cellHeight = 30, this.cssClassPrefix = "navigator_default", this.freeHandSelectionEnabled = !1, this.selectionStart = (new DayPilot.Date).getDatePart(), this.selectionEnd = null, this.selectionDay = null, this.showMonths = 1, this.skipMonths = 1, this.command = "navigate", this.year = (new DayPilot.Date).getYear(), this.month = (new DayPilot.Date).getMonth() + 1, this.showWeekNumbers = !1, this.weekNumberAlgorithm = "Auto", this.rowsPerMonth = "Six", this.orientation = "Vertical", this.locale = "en-us", this.rtl = !1, this.visible = !0, this.timeRangeSelectedHandling = "Bind", this.visibleRangeChangedHandling = "Enabled", this.onVisibleRangeChange = null, this.onVisibleRangeChanged = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.nav = {}, this.pb = {}, this._c = function () { this.root.dp = this, this.root.className = this.K("_main"), "Horizontal" === this.orientation ? (r.ad() || (this.root.style.width = this.showMonths * (7 * r.cellWidth() + this.bd()) + "px"), this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : r.ad() || (this.root.style.width = 7 * r.cellWidth() + this.bd() + "px"), this.rtl && (this.root.style.direction = "rtl"), this.root.style.position = "relative", this.visible || (this.root.style.display = "none"); var e = document.createElement("input"); e.type = "hidden", e.name = a.id + "_state", e.id = e.name, this.root.appendChild(e), this.state = e, this.startDate ? this.startDate = new DayPilot.Date(this.startDate).firstDayOfMonth() : this.selectionDay ? this.startDate = new DayPilot.Date(this.selectionDay).firstDayOfMonth() : this.startDate = DayPilot.Date.fromYearMonthDay(this.year, this.month), this.calendars = [], this.selected = [], this.months = []; }, this.qa = function () { return 2 === a.api; }, this.Uc = function () { this.root.innerHTML = ""; }, this.K = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.cd = function (e, t) { var i = this.K("_" + t); DayPilot.Util.addClass(e, i); }, this.dd = function (e, t) { var i = this.K("_" + t); DayPilot.Util.removeClass(e, i); }, this.ed = function () {
3680
+ if (!r.ad())
3533
3681
  return null;
3534
3682
  var e = 7;
3535
3683
  return this.showWeekNumbers && e++, 100 / e;
3536
- }, this.Wc = function () { return o.Rc() ? null : o.cellWidth(); }, this.Xc = function (e) { return "number" != typeof e && (e = 1), o.Rc() ? this.Vc() * e : this.Wc() * e; }, this.Yc = function (e) { var t = o.Rc() ? "%" : "px"; return this.Xc(e) + t; }, this.Mc = function (e, t) {
3537
- var a = {};
3538
- a.cells = [], a.days = [], a.weeks = [];
3539
- var n = this.startDate.addMonths(e), r = t.before, s = t.after, l = n.firstDayOfMonth(), d = l.firstDayOfWeek(o.weekStarts()), c = l.addMonths(1), u = DayPilot.DateUtil.daysDiff(d, c), h = "Auto" === this.rowsPerMonth ? Math.ceil(u / 7) : 6;
3540
- a.rowCount = h;
3541
- var f = (new DayPilot.Date).getDatePart(), m = 7 * o.cellWidth() + this.Sc();
3542
- a.width = m;
3543
- var p = this.cellHeight * h + this.titleHeight + this.dayHeaderHeight;
3544
- a.height = p;
3545
- var v = document.createElement("div");
3546
- if (o.Rc() ? "Horizontal" === this.orientation && (v.style.width = 100 / i.showMonths + "%") : v.style.width = m + "px", v.style.height = p + "px", "Horizontal" === this.orientation)
3547
- v.style.position = "absolute", o.Rc() ? (v.style.left = 100 / i.showMonths * e + "%", a.leftPct = 100 / i.showMonths * e) : v.style.left = m * e + "px", v.style.top = "0px", a.top = 0, a.left = m * e;
3684
+ }, this.fd = function () { return r.ad() ? null : r.cellWidth(); }, this.gd = function (e) { return "number" != typeof e && (e = 1), r.ad() ? this.ed() * e : this.fd() * e; }, this.hd = function (e) { var t = r.ad() ? "%" : "px"; return this.gd(e) + t; }, this.Vc = function (t, i) {
3685
+ var n = {};
3686
+ n.cells = [], n.days = [], n.weeks = [];
3687
+ var o = this.startDate.addMonths(t), s = i.before, l = i.after, d = o.firstDayOfMonth(), c = d.firstDayOfWeek(r.weekStarts()), u = d.addMonths(1), h = DayPilot.DateUtil.daysDiff(c, u), f = "Auto" === this.rowsPerMonth ? Math.ceil(h / 7) : 6;
3688
+ n.rowCount = f;
3689
+ var m = (new DayPilot.Date).getDatePart(), p = 7 * r.cellWidth() + this.bd();
3690
+ n.width = p;
3691
+ var v = this.cellHeight * f + this.titleHeight + this.dayHeaderHeight;
3692
+ n.height = v;
3693
+ var y = document.createElement("div");
3694
+ if (r.ad() ? "Horizontal" === this.orientation && (y.style.width = 100 / a.showMonths + "%") : y.style.width = p + "px", y.style.height = v + "px", "Horizontal" === this.orientation)
3695
+ y.style.position = "absolute", r.ad() ? (y.style.left = 100 / a.showMonths * t + "%", n.leftPct = 100 / a.showMonths * t) : y.style.left = p * t + "px", y.style.top = "0px", n.top = 0, n.left = p * t;
3548
3696
  else {
3549
- v.style.position = "relative";
3550
- var y = e > 0 ? i.months[e - 1].top + i.months[e - 1].height : 0;
3551
- a.top = y, a.left = 0, a.leftPct = 0;
3552
- }
3553
- v.className = this.K("_month"), v.style.cursor = "default", v.style.MozUserSelect = "none", v.style.KhtmlUserSelect = "none", v.style.WebkitUserSelect = "none", v.month = a, a.div = v, this.root.appendChild(v);
3554
- var g = this.titleHeight + this.dayHeaderHeight, b = document.createElement("div");
3555
- b.style.position = "absolute", b.style.left = "0px", b.style.right = "0px", b.style.top = "0px", b.style.width = i.Yc(), b.style.height = this.titleHeight + "px", b.style.lineHeight = this.titleHeight + "px", b.setAttribute("unselectable", "on"), b.className = this.K("_titleleft"), t.left && (b.style.cursor = "pointer", b.innerHTML = "<span>&lt;</span>", b.onclick = this.Zc), v.appendChild(b), this.tl = b;
3556
- var D = document.createElement("div");
3557
- D.style.position = "absolute", D.style.left = i.Yc(), D.style.top = "0px", D.style.width = i.Yc(i.showWeekNumbers ? 6 : 5), D.style.height = this.titleHeight + "px", D.style.lineHeight = this.titleHeight + "px", D.setAttribute("unselectable", "on"), D.className = this.K("_title"), D.innerHTML = o.locale().monthNames[n.getMonth()] + " " + n.getYear(), v.appendChild(D), this.ti = D;
3697
+ y.style.position = "relative";
3698
+ var g = t > 0 ? a.months[t - 1].top + a.months[t - 1].height : 0;
3699
+ n.top = g, n.left = 0, n.leftPct = 0;
3700
+ }
3701
+ y.className = this.K("_month"), y.style.cursor = "default", y.style.MozUserSelect = "none", y.style.KhtmlUserSelect = "none", y.style.WebkitUserSelect = "none", y.month = n, n.div = y, this.root.appendChild(y);
3702
+ var b = this.titleHeight + this.dayHeaderHeight, D = document.createElement("div");
3703
+ D.style.position = "absolute", D.style.left = "0px", D.style.right = "0px", D.style.top = "0px", D.style.width = a.hd(), D.style.height = this.titleHeight + "px", D.style.lineHeight = this.titleHeight + "px", D.setAttribute("unselectable", "on"), D.className = this.K("_titleleft"), i.left && (D.style.cursor = "pointer", D.innerHTML = "<span>&lt;</span>", D.onclick = this.jd), y.appendChild(D), this.tl = D;
3704
+ var w = document.createElement("div");
3705
+ w.style.position = "absolute", w.style.left = a.hd(), w.style.top = "0px", w.style.width = a.hd(a.showWeekNumbers ? 6 : 5), w.style.height = this.titleHeight + "px", w.style.lineHeight = this.titleHeight + "px", w.setAttribute("unselectable", "on"), w.className = this.K("_title"), w.innerHTML = r.locale().monthNames[o.getMonth()] + " " + o.getYear(), y.appendChild(w), this.ti = w;
3558
3706
  var x = document.createElement("div");
3559
- x.style.position = "absolute", x.style.left = i.Yc(i.showWeekNumbers ? 7 : 6), x.style.right = i.Yc(i.showWeekNumbers ? 7 : 6), x.style.top = "0px", x.style.width = i.Yc(), x.style.height = this.titleHeight + "px", x.style.lineHeight = this.titleHeight + "px", x.setAttribute("unselectable", "on"), x.className = this.K("_titleright"), t.right && (x.style.cursor = "pointer", x.innerHTML = "<span>&gt;</span>", x.onclick = this.$c), v.appendChild(x), this.tr = x;
3560
- var w = (this.Sc(), i.showWeekNumbers ? 1 : 0);
3707
+ x.style.position = "absolute", x.style.left = a.hd(a.showWeekNumbers ? 7 : 6), x.style.right = a.hd(a.showWeekNumbers ? 7 : 6), x.style.top = "0px", x.style.width = a.hd(), x.style.height = this.titleHeight + "px", x.style.lineHeight = this.titleHeight + "px", x.setAttribute("unselectable", "on"), x.className = this.K("_titleright"), i.right && (x.style.cursor = "pointer", x.innerHTML = "<span>&gt;</span>", x.onclick = this.kd), y.appendChild(x), this.tr = x;
3708
+ var C = (this.bd(), a.showWeekNumbers ? 1 : 0);
3561
3709
  if (this.showWeekNumbers)
3562
- for (var C = 0; C < h; C++) {
3563
- var P = d.addDays(7 * C), k = null;
3710
+ for (var P = 0; P < f; P++) {
3711
+ var k = c.addDays(7 * P), _ = null;
3564
3712
  switch (this.weekNumberAlgorithm) {
3565
3713
  case "Auto":
3566
- k = 1 === o.weekStarts() ? P.weekNumberISO() : P.weekNumber();
3714
+ _ = 1 === r.weekStarts() ? k.weekNumberISO() : k.weekNumber();
3567
3715
  break;
3568
3716
  case "US":
3569
- k = P.weekNumber();
3717
+ _ = k.weekNumber();
3570
3718
  break;
3571
3719
  case "ISO8601":
3572
- k = P.weekNumberISO();
3720
+ _ = k.weekNumberISO();
3573
3721
  break;
3574
3722
  default: throw "Unknown weekNumberAlgorithm value.";
3575
3723
  }
3576
- var _ = document.createElement("div");
3577
- _.style.position = "absolute", _.style.left = "0px", _.style.right = "0px", _.style.top = C * this.cellHeight + g + "px", _.style.width = i.Yc(), _.style.height = this.cellHeight + "px", _.style.lineHeight = this.cellHeight + "px", _.setAttribute("unselectable", "on"), _.className = this.K("_weeknumber"), _.innerHTML = "<span>" + k + "</span>", v.appendChild(_), a.weeks.push(_);
3724
+ var S = document.createElement("div");
3725
+ S.style.position = "absolute", S.style.left = "0px", S.style.right = "0px", S.style.top = P * this.cellHeight + b + "px", S.style.width = a.hd(), S.style.height = this.cellHeight + "px", S.style.lineHeight = this.cellHeight + "px", S.setAttribute("unselectable", "on"), S.className = this.K("_weeknumber"), S.innerHTML = "<span>" + _ + "</span>", y.appendChild(S), n.weeks.push(S);
3578
3726
  }
3579
- for (var S = 0; S < 7; S++) {
3580
- a.cells[S] = [];
3581
- var _ = document.createElement("div");
3582
- _.style.position = "absolute", _.style.left = i.Yc(S + w), _.style.right = i.Yc(S + w), _.style.top = this.titleHeight + "px", _.style.width = i.Yc(), _.style.height = this.dayHeaderHeight + "px", _.style.lineHeight = this.dayHeaderHeight + "px", _.setAttribute("unselectable", "on"), _.className = this.K("_dayheader"), _.innerHTML = "<span>" + this._c(S) + "</span>", v.appendChild(_), a.days.push(_);
3583
- for (var C = 0; C < h; C++) {
3584
- var P = d.addDays(7 * C + S), M = this.ad(P) && "none" !== this.bd(), T = P.firstDayOfMonth() === n, A = P < n, H = P >= n.addMonths(1);
3585
- if ("month" === this.bd())
3586
- M = M && T;
3587
- else if ("day" === this.bd())
3588
- M = M && (T || r && A || s && H);
3589
- else if ("week" === this.bd()) {
3590
- var E = P.firstDayOfMonth() === n;
3591
- M = M && (E || r && A || s && H);
3727
+ for (var M = 0; M < 7; M++) {
3728
+ n.cells[M] = [];
3729
+ var S = document.createElement("div");
3730
+ S.style.position = "absolute", S.style.left = a.hd(M + C), S.style.right = a.hd(M + C), S.style.top = this.titleHeight + "px", S.style.width = a.hd(), S.style.height = this.dayHeaderHeight + "px", S.style.lineHeight = this.dayHeaderHeight + "px", S.setAttribute("unselectable", "on"), S.className = this.K("_dayheader"), S.innerHTML = "<span>" + this.ld(M) + "</span>", y.appendChild(S), n.days.push(S);
3731
+ for (var P = 0; P < f; P++) {
3732
+ var k = c.addDays(7 * P + M), H = this.md(k) && "none" !== this.nd(), A = k.firstDayOfMonth() === o, T = k < o, E = k >= o.addMonths(1);
3733
+ if ("month" === this.nd())
3734
+ H = H && A;
3735
+ else if ("day" === this.nd())
3736
+ H = H && (A || s && T || l && E);
3737
+ else if ("week" === this.nd()) {
3738
+ var N = k.firstDayOfMonth() === o;
3739
+ H = H && (N || s && T || l && E);
3592
3740
  }
3593
- var N = document.createElement("div");
3594
- a.cells[S][C] = N;
3595
- var I = i.cd(S, C), O = I.x, U = I.y, z = o.Rc() ? "%" : "px";
3596
- N.day = P, N.x = S, N.y = C, N.left = O, N.top = U, N.isCurrentMonth = T, N.isNextMonth = H, N.isPrevMonth = A, N.showBefore = r, N.showAfter = s, N.className = this.K(T ? "_day" : "_dayother"), i.Tc(N, "cell"), P.getTime() === f.getTime() && T && this.Tc(N, "today"), 0 !== P.dayOfWeek() && 6 !== P.dayOfWeek() || this.Tc(N, "weekend"), N.style.position = "absolute", N.style.left = O + z, N.style.right = O + z, N.style.top = U + "px", N.style.width = i.Yc(), N.style.height = this.cellHeight + "px", N.style.lineHeight = this.cellHeight + "px";
3597
- var R = document.createElement("div");
3598
- R.style.position = "absolute", R.className = P.getTime() === f.getTime() && T ? this.K("_todaybox") : this.K("_daybox"), i.Tc(R, "cell_box"), R.style.left = "0px", R.style.top = "0px", R.style.right = "0px", R.style.bottom = "0px", N.appendChild(R);
3599
- var B = null;
3600
- if (this.cells && this.cells[P.toStringSortable()] && (B = this.cells[P.toStringSortable()]), "function" == typeof i.onBeforeCellRender) {
3601
- var j = {};
3602
- j.cell = B || {}, j.cell.day = P, j.cell.isCurrentMonth = T, j.cell.isToday = P.getTime() === f.getTime() && T, j.cell.isWeekend = 0 === P.dayOfWeek() || 6 === P.dayOfWeek(), B ? (j.cell.html = B.html || P.getDay(), j.cell.cssClass = B.css) : (j.cell.html = P.getDay(), j.cell.cssClass = null), i.onBeforeCellRender(j), B = j.cell;
3741
+ var I = document.createElement("div");
3742
+ n.cells[M][P] = I;
3743
+ var R = a.od(M, P), B = R.x, z = R.y, O = r.ad() ? "%" : "px";
3744
+ I.day = k, I.x = M, I.y = P, I.left = B, I.top = z, I.isCurrentMonth = A, I.isNextMonth = E, I.isPrevMonth = T, I.showBefore = s, I.showAfter = l, I.className = this.K(A ? "_day" : "_dayother"), a.cd(I, "cell"), k.getTime() === m.getTime() && A && this.cd(I, "today"), 0 !== k.dayOfWeek() && 6 !== k.dayOfWeek() || this.cd(I, "weekend"), I.style.position = "absolute", I.style.left = B + O, I.style.right = B + O, I.style.top = z + "px", I.style.width = a.hd(), I.style.height = this.cellHeight + "px", I.style.lineHeight = this.cellHeight + "px";
3745
+ var U = document.createElement("div");
3746
+ U.style.position = "absolute", U.className = k.getTime() === m.getTime() && A ? this.K("_todaybox") : this.K("_daybox"), a.cd(U, "cell_box"), U.style.left = "0px", U.style.top = "0px", U.style.right = "0px", U.style.bottom = "0px", I.appendChild(U);
3747
+ var L = null;
3748
+ this.cells && this.cells[k.toStringSortable()] && (L = this.cells[k.toStringSortable()]);
3749
+ var j = L || {};
3750
+ if (j.day = k, j.isCurrentMonth = A, j.isToday = k.getTime() === m.getTime() && A, j.isWeekend = 0 === k.dayOfWeek() || 6 === k.dayOfWeek(), L ? (j.html = L.html || k.getDay(), j.cssClass = L.css) : (j.html = k.getDay(), j.cssClass = null), "function" == typeof a.onBeforeCellRender) {
3751
+ var W = {};
3752
+ W.cell = j, a.onBeforeCellRender(W), L = W.cell;
3603
3753
  }
3604
- if (B && DayPilot.Util.addClass(N, B.cssClass || B.css), T || r && A || s && H) {
3605
- var L = document.createElement("div");
3606
- L.innerHTML = P.getDay(), L.style.position = "absolute", L.style.left = "0px", L.style.top = "0px", L.style.right = "0px", L.style.bottom = "0px", i.Tc(L, "cell_text"), N.isClickable = !0, B && B.html && (L.innerHTML = B.html), N.appendChild(L);
3754
+ if (L && DayPilot.Util.addClass(I, L.cssClass || L.css), A || s && T || l && E) {
3755
+ var F = document.createElement("div");
3756
+ F.innerHTML = k.getDay(), F.style.position = "absolute", F.style.left = "0px", F.style.top = "0px", F.style.right = "0px", F.style.bottom = "0px", a.cd(F, "cell_text"), I.isClickable = !0, L && L.html && (F.innerHTML = L.html), I.appendChild(F);
3607
3757
  }
3608
- N.setAttribute("unselectable", "on"), N.onclick = this.dd, v.appendChild(N), M && (i.ed(v, S, C), this.selected.push(N));
3758
+ I.setAttribute("unselectable", "on"), I.onclick = this.pd, function () {
3759
+ if ("function" == typeof a.onBeforeCellDomAdd || "function" == typeof a.onBeforeCellDomRemove) {
3760
+ var t = {};
3761
+ if (t.control = a, t.cell = j, t.element = null, I.domArgs = t, "function" == typeof a.onBeforeCellDomAdd && a.onBeforeCellDomAdd(t), t.element) {
3762
+ var i = U;
3763
+ if (i) {
3764
+ t.Fa = i;
3765
+ if (e(t.element)) {
3766
+ if (!a.Ha.Ga)
3767
+ throw new DayPilot.Exception("Can't reach Vue");
3768
+ a.Ha.Ia = !0, a.Ha.La(t.element, i), a.Ha.Ia = !1;
3769
+ }
3770
+ else
3771
+ i.appendChild(t.element);
3772
+ }
3773
+ }
3774
+ }
3775
+ }(), y.appendChild(I), H && (a.qd(y, M, P), this.selected.push(I));
3609
3776
  }
3610
3777
  }
3611
- var W = document.createElement("div");
3612
- W.style.position = "absolute", W.style.left = "0px", W.style.top = g - 2 + "px", W.style.width = i.Yc(7 + w), W.style.height = "1px", W.style.fontSize = "1px", W.style.lineHeight = "1px", W.className = this.K("_line"), v.appendChild(W), this.months.push(a);
3613
- }, this.cd = function (e, t) { var a = this.titleHeight + this.dayHeaderHeight, n = (this.Sc(), this.showWeekNumbers ? 1 : 0); return { "x": i.Xc(e + n), "y": t * this.cellHeight + a }; }, this.ed = function (e, t, a) { var n = e.month.cells[t][a]; i.Tc(n, "select"); }, this.fd = function (e, t, a) { var n = e.month.cells[t][a]; i.Uc(n, "select"); }, this.Sc = function () { return this.showWeekNumbers ? o.cellWidth() : 0; }, this.gd = function () {
3778
+ var J = document.createElement("div");
3779
+ J.style.position = "absolute", J.style.left = "0px", J.style.top = b - 2 + "px", J.style.width = a.hd(7 + C), J.style.height = "1px", J.style.fontSize = "1px", J.style.lineHeight = "1px", J.className = this.K("_line"), y.appendChild(J), this.months.push(n);
3780
+ }, this.od = function (e, t) { var i = this.titleHeight + this.dayHeaderHeight, n = (this.bd(), this.showWeekNumbers ? 1 : 0); return { "x": a.gd(e + n), "y": t * this.cellHeight + i }; }, this.qd = function (e, t, i) { var n = e.month.cells[t][i]; a.cd(n, "select"); }, this.rd = function (e, t, i) { var n = e.month.cells[t][i]; a.dd(n, "select"); }, this.bd = function () { return this.showWeekNumbers ? r.cellWidth() : 0; }, this.sd = function () {
3614
3781
  if (this.items)
3615
3782
  for (var e = 0; e < this.showMonths; e++)
3616
3783
  for (var t = 0; t < 7; t++)
3617
3784
  for (var i = 0; i < 6; i++) {
3618
3785
  var a = this.months[e].cells[t][i];
3619
- a && (1 === this.items[a.day.toStringSortable()] ? (this.Tc(a, "busy"), this.Uc(a, "free")) : (this.Uc(a, "busy"), this.Tc(a, "free")));
3786
+ a && (1 === this.items[a.day.toStringSortable()] ? (this.cd(a, "busy"), this.dd(a, "free")) : (this.dd(a, "busy"), this.cd(a, "free")));
3620
3787
  }
3621
- }, this.hd = function () { var e = {}; e.startDate = i.startDate, e.selectionStart = i.selectionStart, e.selectionEnd = i.selectionEnd.addDays(1), i.state.value = JSON.stringify(e); }, this.bd = function () { return (this.selectMode || "").toLowerCase(); }, this.jd = function () {
3788
+ }, this.td = function () {
3789
+ var e = {};
3790
+ e.startDate = a.startDate, e.selectionStart = a.selectionStart, e.selectionEnd = a.selectionEnd.addDays(1),
3791
+ a.state.value = JSON.stringify(e);
3792
+ }, this.nd = function () { return (this.selectMode || "").toLowerCase(); }, this.ud = function () {
3622
3793
  var e = this.selectionDay || this.selectionStart;
3623
- switch (e || (e = DayPilot.Date.today()), e = new DayPilot.Date(e), this.bd()) {
3794
+ switch (e || (e = DayPilot.Date.today()), e = new DayPilot.Date(e), this.nd()) {
3624
3795
  case "day":
3625
3796
  this.selectionStart = e, this.selectionDay = e, this.selectionEnd = e;
3626
3797
  break;
3627
3798
  case "week":
3628
- this.selectionDay = e, this.selectionStart = e.firstDayOfWeek(o.weekStarts()), this.selectionEnd = this.selectionStart.addDays(6);
3799
+ this.selectionDay = e, this.selectionStart = e.firstDayOfWeek(r.weekStarts()), this.selectionEnd = this.selectionStart.addDays(6);
3629
3800
  break;
3630
3801
  case "month":
3631
3802
  this.selectionDay = e, this.selectionStart = e.firstDayOfMonth(), this.selectionEnd = this.selectionStart.lastDayOfMonth();
@@ -3635,10 +3806,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3635
3806
  break;
3636
3807
  default: throw "Unknown selectMode value.";
3637
3808
  }
3638
- }, this.kd = null, this.select = function (e, t, a) {
3639
- var n = t && (t instanceof DayPilot.Date || "string" == typeof t), o = t && "object" == typeof t || "boolean" == typeof t, r = e, s = n ? t : null, l = o ? t : a;
3809
+ }, this.vd = null, this.select = function (e, t, i) {
3810
+ var n = t && (t instanceof DayPilot.Date || "string" == typeof t), o = t && "object" == typeof t || "boolean" == typeof t, r = e, s = n ? t : null, l = o ? t : i;
3640
3811
  if (!this.Ba)
3641
- return void (this.kd = { "date1": r, "date2": s, "options": l });
3812
+ return void (this.vd = { "date1": r, "date2": s, "options": l });
3642
3813
  var d = !0, c = !0;
3643
3814
  l && "object" == typeof l ? (l.dontFocus && (d = !1), l.dontNotify && (c = !1)) : "boolean" == typeof l && (d = !l);
3644
3815
  var u = this.selectionStart, h = this.selectionEnd;
@@ -3646,158 +3817,158 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3646
3817
  var f = !1;
3647
3818
  if (d) {
3648
3819
  var m = this.startDate;
3649
- (this.selectionStart < this.ld() || this.selectionStart >= this.md()) && (m = this.selectionStart.firstDayOfMonth()), m.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = m;
3820
+ (this.selectionStart < this.wd() || this.selectionStart >= this.xd()) && (m = this.selectionStart.firstDayOfMonth()), m.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = m;
3650
3821
  }
3651
- s && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(s) : this.jd(), this.Lc(), this.Qc(), this.nd(), this.gd(), this.hd(), !c || u.equals(this.selectionStart) && h.equals(this.selectionEnd) || this.M(), f && this.od();
3822
+ s && a.freeHandSelectionEnabled ? a.selectionEnd = new DayPilot.Date(s) : this.ud(), this.Uc(), this._c(), this.yd(), this.sd(), this.td(), !c || u.equals(this.selectionStart) && h.equals(this.selectionEnd) || this.M(), f && this.zd();
3652
3823
  }, this.update = function (e) {
3653
- if (i.bb(e), this.Ba) {
3654
- if (i.O)
3824
+ if (a.jb(e), this.Ba) {
3825
+ if (a.O)
3655
3826
  throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed.");
3656
- i.pd();
3657
- var t = { "day": i.selectionDay, "start": i.selectionStart, "end": i.selectionEnd };
3658
- i._a(), t.start === i.selectionStart && t.end === i.selectionEnd && t.day === i.selectionDay || i.M();
3827
+ a.Ad();
3828
+ var t = { "day": a.selectionDay, "start": a.selectionStart, "end": a.selectionEnd };
3829
+ a.hb(), t.start === a.selectionStart && t.end === a.selectionEnd && t.day === a.selectionDay || a.M();
3659
3830
  }
3660
- }, this._a = function () { this.Lc(), this.Qc(), this.jd(), this.nd(), this.ea(), this.gd(), this.hd(), this.visible ? this.show() : this.hide(); }, this.pd = function () { i.hb = {}; }, this.eb = null, this.bb = function (e) {
3831
+ }, this.hb = function () { this.Uc(), this._c(), this.ud(), this.yd(), this.ea(), this.sd(), this.td(), this.visible ? this.show() : this.hide(); }, this.Ad = function () { a.pb = {}; }, this.mb = null, this.jb = function (e) {
3661
3832
  if (e) {
3662
- var t = { "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? i.events.list = e.list : i.events.list = e); } } };
3663
- this.eb = t;
3664
- for (var a in e)
3665
- if (t[a]) {
3666
- var n = t[a];
3667
- n.data = e[a], n.preInit && n.preInit();
3833
+ var t = { "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? a.events.list = e.list : a.events.list = e); } } };
3834
+ this.mb = t;
3835
+ for (var i in e)
3836
+ if (t[i]) {
3837
+ var n = t[i];
3838
+ n.data = e[i], n.preInit && n.preInit();
3668
3839
  }
3669
3840
  else
3670
- i[a] = e[a];
3841
+ a[i] = e[i];
3671
3842
  }
3672
- }, this.fb = function () {
3673
- var e = this.eb;
3843
+ }, this.nb = function () {
3844
+ var e = this.mb;
3674
3845
  for (var t in e) {
3675
3846
  var i = e[t];
3676
3847
  i.postInit && i.postInit();
3677
3848
  }
3678
- }, this.S = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.R(); var n = "JSON" + JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.T, n, this.qd) : WebForm_DoCallback(this.uniqueID, n, this.U, null, this.callbackError, !0); }, this.qd = function (e) {
3679
- if ("function" == typeof i.onAjaxError) {
3849
+ }, this.S = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.R(); var n = "JSON" + JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.T, n, this.Bd) : WebForm_DoCallback(this.uniqueID, n, this.U, null, this.callbackError, !0); }, this.Bd = function (e) {
3850
+ if ("function" == typeof a.onAjaxError) {
3680
3851
  var t = {};
3681
- t.request = e, i.onAjaxError(t);
3852
+ t.request = e, a.onAjaxError(t);
3682
3853
  }
3683
3854
  else
3684
- "function" == typeof i.ajaxError && i.ajaxError(e);
3685
- }, this.T = function (e) { i.U(e.responseText); }, this.Q = function (e, t, a) { var n = {}; n.action = e, n.parameters = a, n.data = t, n.header = this.R(); var o = "JSON" + JSON.stringify(n); __doPostBack(i.uniqueID, o); }, this.R = function () { var e = {}; return e.v = this.v, e.startDate = this.startDate, e.selectionStart = this.selectionStart, e.showMonths = this.showMonths, e; }, this.rd = function (e, t) { "refresh" === e && this.od(); }, this._c = function (e) { var t = e + o.weekStarts(); return t > 6 && (t -= 7), o.locale().dayNamesShort[t]; }, this.ad = function (e) { return null !== this.selectionStart && null !== this.selectionEnd && (this.selectionStart.getTime() <= e.getTime() && e.getTime() <= this.selectionEnd.getTime()); }, this.sd = function (e) {
3686
- for (var t = 0; t < i.months.length; t++) {
3687
- var a = i.months[t];
3688
- if (!a)
3855
+ "function" == typeof a.ajaxError && a.ajaxError(e);
3856
+ }, this.T = function (e) { a.U(e.responseText); }, this.Q = function (e, t, i) { var n = {}; n.action = e, n.parameters = i, n.data = t, n.header = this.R(); var o = "JSON" + JSON.stringify(n); __doPostBack(a.uniqueID, o); }, this.R = function () { var e = {}; return e.v = this.v, e.startDate = this.startDate, e.selectionStart = this.selectionStart, e.showMonths = this.showMonths, e; }, this.Cd = function (e, t) { "refresh" === e && this.zd(); }, this.ld = function (e) { var t = e + r.weekStarts(); return t > 6 && (t -= 7), r.locale().dayNamesShort[t]; }, this.md = function (e) { return null !== this.selectionStart && null !== this.selectionEnd && (this.selectionStart.getTime() <= e.getTime() && e.getTime() <= this.selectionEnd.getTime()); }, this.Dd = function (e) {
3857
+ for (var t = 0; t < a.months.length; t++) {
3858
+ var i = a.months[t];
3859
+ if (!i)
3689
3860
  return null;
3690
- if (e.x < a.left)
3861
+ if (e.x < i.left)
3691
3862
  return null;
3692
- if (!(a.left + a.width < e.x)) {
3693
- i.months[t].height;
3694
- if (a.top <= e.y && e.y < a.top + a.height)
3863
+ if (!(i.left + i.width < e.x)) {
3864
+ a.months[t].height;
3865
+ if (i.top <= e.y && e.y < i.top + i.height)
3695
3866
  return t;
3696
3867
  }
3697
3868
  }
3698
3869
  return null;
3699
- }, this.td = function (e) { }, this.ud = function () {
3700
- if (!o.Rc())
3701
- return void (i.vd = i.cellWidth);
3702
- var e = i.months[0].cells[0][0], t = e.clientWidth;
3703
- i.vd = t, i.months.forEach(function (e) { e.width = e.div.clientWidth, "Horizontal" === i.orientation && (e.left = e.div.offsetLeft), e.cells.forEach(function (e, i) { e.forEach(function (e, a) { e.width = t, e.left = i * t; }); }); });
3704
- }, this.wd = function (e) {
3705
- i.ud();
3706
- var t = DayPilot.mo3(i.nav.top, e), a = i.sd(t);
3707
- if (null === a)
3870
+ }, this.Ed = function (e) { }, this.Fd = function () {
3871
+ if (!r.ad())
3872
+ return void (a.Gd = a.cellWidth);
3873
+ var e = a.months[0].cells[0][0], t = e.clientWidth;
3874
+ a.Gd = t, a.months.forEach(function (e) { e.width = e.div.clientWidth, "Horizontal" === a.orientation && (e.left = e.div.offsetLeft), e.cells.forEach(function (e, i) { e.forEach(function (e, a) { e.width = t, e.left = i * t; }); }); });
3875
+ }, this.Hd = function (e) {
3876
+ a.Fd();
3877
+ var t = DayPilot.mo3(a.nav.top, e), i = a.Dd(t);
3878
+ if (null === i)
3708
3879
  return null;
3709
- var n = i.months[a], o = this.titleHeight + this.dayHeaderHeight;
3880
+ var n = a.months[i], o = this.titleHeight + this.dayHeaderHeight;
3710
3881
  if (n.top <= t.y && t.y < n.top + o)
3711
- return { "month": a, "x": 0, "y": 0, "coords": t, "header": !0 };
3882
+ return { "month": i, "x": 0, "y": 0, "coords": t, "header": !0 };
3712
3883
  for (var r = 0; r < n.cells.length; r++)
3713
3884
  for (var s = 0; s < n.cells[r].length; s++) {
3714
3885
  var l = n.cells[r][s], d = l.top + n.top, c = l.left + n.left;
3715
- if (c <= t.x && t.x < c + i.vd && d <= t.y && t.y < d + i.cellHeight)
3716
- return { "month": a, "x": r, "y": s, "coords": t };
3886
+ if (c <= t.x && t.x < c + a.Gd && d <= t.y && t.y < d + a.cellHeight)
3887
+ return { "month": i, "x": r, "y": s, "coords": t };
3717
3888
  }
3718
3889
  return null;
3719
- }, this.xd = function (e) {
3720
- if (i.freeHandSelectionEnabled) {
3721
- var t = i.wd(e);
3722
- t && !t.header && (a.start = t), i.months[t.month].cells[t.x][t.y], e.preventDefault();
3723
- }
3724
- }, this.yd = function (e) {
3725
- if (a.start) {
3726
- var t = i.wd(e);
3727
- if (a.end)
3728
- a.end = t;
3890
+ }, this.Id = function (e) {
3891
+ if (a.freeHandSelectionEnabled) {
3892
+ var t = a.Hd(e);
3893
+ t && !t.header && (n.start = t), a.months[t.month].cells[t.x][t.y], e.preventDefault();
3894
+ }
3895
+ }, this.Jd = function (e) {
3896
+ if (n.start) {
3897
+ var t = a.Hd(e);
3898
+ if (n.end)
3899
+ n.end = t;
3729
3900
  else if (t) {
3730
- var n = 3, o = DayPilot.distance(a.start.coords, t.coords);
3731
- o > n && (a.end = t);
3901
+ var i = 3, o = DayPilot.distance(n.start.coords, t.coords);
3902
+ o > i && (n.end = t);
3732
3903
  }
3733
- a.end && (a.clear(), a.draw());
3904
+ n.end && (n.clear(), n.draw());
3734
3905
  }
3735
- }, this.zd = {};
3736
- var a = this.zd;
3737
- a.start = null, a.drawCell = function (e) {
3738
- var t = i.months[e.month], n = i.cd(e.x, e.y), r = t.top + n.y, s = t.left + n.x, l = "px", d = i.Yc();
3739
- if (o.Rc()) {
3740
- var c = "Horizontal" === i.orientation ? i.showMonths : 1;
3741
- s = t.leftPct + n.x / c, l = "%", d = i.Yc(1 / c);
3906
+ }, this.Kd = {};
3907
+ var n = this.Kd;
3908
+ n.start = null, n.drawCell = function (e) {
3909
+ var t = a.months[e.month], i = a.od(e.x, e.y), o = t.top + i.y, s = t.left + i.x, l = "px", d = a.hd();
3910
+ if (r.ad()) {
3911
+ var c = "Horizontal" === a.orientation ? a.showMonths : 1;
3912
+ s = t.leftPct + i.x / c, l = "%", d = a.hd(1 / c);
3742
3913
  }
3743
3914
  var u = document.createElement("div");
3744
- u.style.position = "absolute", u.style.left = s + l, u.style.top = r + "px", u.style.height = i.cellHeight + "px", u.style.width = d, u.style.backgroundColor = "#ccc", u.style.opacity = .5, u.style.cursor = "default", i.nav.preselection.appendChild(u), a.cells.push(u);
3745
- }, a.clear = function () {
3746
- if (a.cells) {
3747
- for (var e = 0; e < a.cells.length; e++)
3748
- i.nav.preselection.removeChild(a.cells[e]);
3749
- a.cells = [];
3750
- }
3751
- }, a.draw = function () {
3752
- var e = a.ordered(), t = new n(e.start), o = e.end;
3753
- if (o) {
3754
- if (o === a.end && o.header && o.month > 0) {
3755
- o.month -= 1;
3756
- var r = i.months[o.month];
3757
- o.x = 6, o.y = r.rowCount - 1;
3915
+ u.style.position = "absolute", u.style.left = s + l, u.style.top = o + "px", u.style.height = a.cellHeight + "px", u.style.width = d, u.style.backgroundColor = "#ccc", u.style.opacity = .5, u.style.cursor = "default", a.nav.preselection.appendChild(u), n.cells.push(u);
3916
+ }, n.clear = function () {
3917
+ if (n.cells) {
3918
+ for (var e = 0; e < n.cells.length; e++)
3919
+ a.nav.preselection.removeChild(n.cells[e]);
3920
+ n.cells = [];
3921
+ }
3922
+ }, n.draw = function () {
3923
+ var e = n.ordered(), t = new o(e.start), i = e.end;
3924
+ if (i) {
3925
+ if (i === n.end && i.header && i.month > 0) {
3926
+ i.month -= 1;
3927
+ var r = a.months[i.month];
3928
+ i.x = 6, i.y = r.rowCount - 1;
3758
3929
  }
3759
- for (a.cells = []; !t.is(o);) {
3760
- t.visible() && a.drawCell(t);
3761
- var s = new n(t).next();
3930
+ for (n.cells = []; !t.is(i);) {
3931
+ t.visible() && n.drawCell(t);
3932
+ var s = new o(t).next();
3762
3933
  if (!s)
3763
3934
  return;
3764
3935
  t.month = s.month, t.x = s.x, t.y = s.y;
3765
3936
  }
3766
- t.visible() && a.drawCell(t);
3937
+ t.visible() && n.drawCell(t);
3767
3938
  }
3768
- }, a.ordered = function () { var e = a.start, t = a.end, i = {}; return !t || new n(e).before(t) ? (i.start = e, i.end = t) : (i.start = t, i.end = e), i; };
3769
- var n = function (e, t, a) {
3770
- if (e instanceof n)
3939
+ }, n.ordered = function () { var e = n.start, t = n.end, i = {}; return !t || new o(e).before(t) ? (i.start = e, i.end = t) : (i.start = t, i.end = e), i; };
3940
+ var o = function (e, t, i) {
3941
+ if (e instanceof o)
3771
3942
  return e;
3772
3943
  if ("object" == typeof e) {
3773
- var o = e;
3774
- this.month = o.month, this.x = o.x, this.y = o.y;
3944
+ var n = e;
3945
+ this.month = n.month, this.x = n.x, this.y = n.y;
3775
3946
  }
3776
3947
  else
3777
- this.month = e, this.x = t, this.y = a;
3948
+ this.month = e, this.x = t, this.y = i;
3778
3949
  this.is = function (e) { return this.month === e.month && this.x === e.x && this.y === e.y; }, this.next = function () {
3779
3950
  var e = this;
3780
3951
  if (e.x < 6)
3781
3952
  return { "month": e.month, "x": e.x + 1, "y": e.y };
3782
- var t = i.months[e.month];
3783
- return e.y < t.rowCount - 1 ? { "month": e.month, "x": 0, "y": e.y + 1 } : e.month < i.months.length - 1 ? { "month": e.month + 1, "x": 0, "y": 0 } : null;
3953
+ var t = a.months[e.month];
3954
+ return e.y < t.rowCount - 1 ? { "month": e.month, "x": 0, "y": e.y + 1 } : e.month < a.months.length - 1 ? { "month": e.month + 1, "x": 0, "y": 0 } : null;
3784
3955
  }, this.visible = function () { var e = this.cell(); return !!e.isCurrentMonth || (!(!e.isPrevMonth || !e.showBefore) || !(!e.isNextMonth || !e.showAfter)); }, this.nextVisible = function () {
3785
3956
  for (var e = this; !e.visible();) {
3786
3957
  var t = e.next();
3787
3958
  if (!t)
3788
3959
  return null;
3789
- e = new n(t);
3960
+ e = new o(t);
3790
3961
  }
3791
3962
  return e;
3792
3963
  }, this.previous = function () {
3793
3964
  var e = this;
3794
3965
  if (e.x > 0)
3795
3966
  return { "month": e.month, "x": e.x - 1, "y": e.y };
3796
- i.months[e.month];
3967
+ a.months[e.month];
3797
3968
  if (e.y > 0)
3798
3969
  return { "month": e.month, "x": 6, "y": e.y - 1 };
3799
3970
  if (e.month > 0) {
3800
- var t = i.months[e.month - 1];
3971
+ var t = a.months[e.month - 1];
3801
3972
  return { "month": e.month - 1, "x": 6, "y": t.rowCount - 1 };
3802
3973
  }
3803
3974
  return null;
@@ -3806,95 +3977,93 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3806
3977
  var t = e.previous();
3807
3978
  if (!t)
3808
3979
  return null;
3809
- e = new n(t);
3980
+ e = new o(t);
3810
3981
  }
3811
3982
  return e;
3812
- }, this.cell = function () { return i.months[this.month].cells[this.x][this.y]; }, this.date = function () { return this.cell().day; }, this.before = function (e) { return this.date() < new n(e).date(); };
3983
+ }, this.cell = function () { return a.months[this.month].cells[this.x][this.y]; }, this.date = function () { return this.cell().day; }, this.before = function (e) { return this.date() < new o(e).date(); };
3813
3984
  };
3814
- this.dd = function (e) {
3815
- var t = this.parentNode, a = this.parentNode.month, n = this.x, o = this.y, r = a.cells[n][o].day;
3816
- if (a.cells[n][o].isClickable) {
3817
- i.clearSelection(), i.selectionDay = r;
3818
- var r = i.selectionDay;
3819
- switch (i.bd()) {
3985
+ this.pd = function (e) {
3986
+ var t = this.parentNode, i = this.parentNode.month, n = this.x, o = this.y, r = i.cells[n][o].day;
3987
+ if (i.cells[n][o].isClickable) {
3988
+ a.clearSelection(), a.selectionDay = r;
3989
+ var r = a.selectionDay;
3990
+ switch (a.nd()) {
3820
3991
  case "none":
3821
- i.selectionStart = r, i.selectionEnd = r;
3992
+ a.selectionStart = r, a.selectionEnd = r;
3822
3993
  break;
3823
3994
  case "day":
3824
- if (i.autoFocusOnClick) {
3995
+ if (a.autoFocusOnClick) {
3825
3996
  var s = r;
3826
- if (r < i.ld() || r >= i.md())
3827
- return void i.select(r);
3997
+ if (r < a.wd() || r >= a.xd())
3998
+ return void a.select(r);
3828
3999
  }
3829
- var l = a.cells[n][o];
3830
- i.ed(t, n, o), i.selected.push(l), i.selectionStart = l.day, i.selectionEnd = l.day;
4000
+ var l = i.cells[n][o];
4001
+ a.qd(t, n, o), a.selected.push(l), a.selectionStart = l.day, a.selectionEnd = l.day;
3831
4002
  break;
3832
4003
  case "week":
3833
- if (i.autoFocusOnClick) {
3834
- var s = a.cells[0][o].day, d = a.cells[6][o].day;
3835
- if (s.firstDayOfMonth() === d.firstDayOfMonth() && (s < i.ld() || d >= i.md()))
3836
- return void i.select(r);
4004
+ if (a.autoFocusOnClick) {
4005
+ var s = i.cells[0][o].day, d = i.cells[6][o].day;
4006
+ if (s.firstDayOfMonth() === d.firstDayOfMonth() && (s < a.wd() || d >= a.xd()))
4007
+ return void a.select(r);
3837
4008
  }
3838
4009
  for (var c = 0; c < 7; c++)
3839
- i.ed(t, c, o), i.selected.push(a.cells[c][o]);
3840
- i.selectionStart = a.cells[0][o].day, i.selectionEnd = a.cells[6][o].day;
4010
+ a.qd(t, c, o), a.selected.push(i.cells[c][o]);
4011
+ a.selectionStart = i.cells[0][o].day, a.selectionEnd = i.cells[6][o].day;
3841
4012
  break;
3842
4013
  case "month":
3843
- if (i.autoFocusOnClick) {
4014
+ if (a.autoFocusOnClick) {
3844
4015
  var s = r;
3845
- if (r < i.ld() || r >= i.md())
3846
- return void i.select(r);
4016
+ if (r < a.wd() || r >= a.xd())
4017
+ return void a.select(r);
3847
4018
  }
3848
4019
  for (var s = null, d = null, o = 0; o < 6; o++)
3849
4020
  for (var n = 0; n < 7; n++) {
3850
- var l = a.cells[n][o];
3851
- l && l.day.getYear() === r.getYear() && l.day.getMonth() === r.getMonth() && (i.ed(t, n, o), i.selected.push(l), null === s && (s = l.day), d = l.day);
4021
+ var l = i.cells[n][o];
4022
+ l && l.day.getYear() === r.getYear() && l.day.getMonth() === r.getMonth() && (a.qd(t, n, o), a.selected.push(l), null === s && (s = l.day), d = l.day);
3852
4023
  }
3853
- i.selectionStart = s, i.selectionEnd = d;
4024
+ a.selectionStart = s, a.selectionEnd = d;
3854
4025
  break;
3855
4026
  default: throw "unknown selectMode";
3856
4027
  }
3857
- i.hd(), i.M();
4028
+ a.td(), a.M();
3858
4029
  }
3859
4030
  }, this.M = function (e) {
3860
- var t = i.selectionStart, a = i.selectionEnd.addDays(1), n = DayPilot.DateUtil.daysDiff(t, a), o = i.selectionDay;
3861
- if (e = e || {}, i.qa()) {
4031
+ var t = a.selectionStart, i = a.selectionEnd.addDays(1), n = DayPilot.DateUtil.daysDiff(t, i), o = a.selectionDay;
4032
+ if (e = e || {}, a.qa()) {
3862
4033
  var r = {};
3863
- if (r.start = t, r.end = a, r.day = o, r.days = n, r.mode = e.mode || i.selectMode, r.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(r), r.preventDefault.value))
4034
+ if (r.start = t, r.end = i, r.day = o, r.days = n, r.mode = e.mode || a.selectMode, r.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onTimeRangeSelect && (a.onTimeRangeSelect(r), r.preventDefault.value))
3864
4035
  return;
3865
- switch (i.timeRangeSelectedHandling) {
4036
+ switch (a.timeRangeSelectedHandling) {
3866
4037
  case "Bind":
3867
4038
  if ("object" == typeof bound) {
3868
4039
  var s = {};
3869
- s.start = t, s.end = a, s.days = n, s.day = o, bound.commandCallBack(i.command, s);
4040
+ s.start = t, s.end = i, s.days = n, s.day = o, bound.commandCallBack(a.command, s);
3870
4041
  }
3871
4042
  break;
3872
4043
  case "None": break;
3873
- case "PostBack": i.timeRangeSelectedPostBack(t, a, o);
4044
+ case "PostBack": a.timeRangeSelectedPostBack(t, i, o);
3874
4045
  }
3875
- "function" == typeof i.onTimeRangeSelected && i.onTimeRangeSelected(r);
4046
+ "function" == typeof a.onTimeRangeSelected && a.onTimeRangeSelected(r);
3876
4047
  }
3877
4048
  else
3878
- switch (i.timeRangeSelectedHandling) {
4049
+ switch (a.timeRangeSelectedHandling) {
3879
4050
  case "Bind":
3880
4051
  if ("object" == typeof bound) {
3881
4052
  var s = {};
3882
- s.start = t, s.end = a, s.days = n, s.day = o, bound.commandCallBack(i.command, s);
4053
+ s.start = t, s.end = i, s.days = n, s.day = o, bound.commandCallBack(a.command, s);
3883
4054
  }
3884
4055
  break;
3885
4056
  case "JavaScript":
3886
- i.onTimeRangeSelected(t, a, o);
4057
+ a.onTimeRangeSelected(t, i, o);
3887
4058
  break;
3888
4059
  case "None": break;
3889
- case "PostBack": i.timeRangeSelectedPostBack(t, a, o);
4060
+ case "PostBack": a.timeRangeSelectedPostBack(t, i, o);
3890
4061
  }
3891
- }, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, n.day = a, this.Q("TimeRangeSelected", i, n); }, this.$c = function (e) { i.Ad(i.skipMonths); }, this.Zc = function (e) { i.Ad(-i.skipMonths); }, this.Ad = function (e) { this.startDate = this.startDate.addMonths(e), this.Lc(), this.Qc(), this.nd(), this.hd(), this.od(), this.gd(); }, this.ld = function () { return i.startDate.firstDayOfMonth(); }, this.md = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths); }, this.visibleStart = function () { return i.startDate.firstDayOfMonth().firstDayOfWeek(o.weekStarts()); }, this.visibleEnd = function () {
3892
- return i.startDate.firstDayOfMonth().addMonths(this.showMonths - 1).firstDayOfWeek(o.weekStarts()).addDays(42);
3893
- }, this.od = function () {
4062
+ }, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, n.day = a, this.Q("TimeRangeSelected", i, n); }, this.kd = function (e) { a.Ld(a.skipMonths); }, this.jd = function (e) { a.Ld(-a.skipMonths); }, this.Ld = function (e) { this.startDate = this.startDate.addMonths(e), this.Uc(), this._c(), this.yd(), this.td(), this.zd(), this.sd(); }, this.wd = function () { return a.startDate.firstDayOfMonth(); }, this.xd = function () { return a.startDate.firstDayOfMonth().addMonths(this.showMonths); }, this.visibleStart = function () { return a.startDate.firstDayOfMonth().firstDayOfWeek(r.weekStarts()); }, this.visibleEnd = function () { return a.startDate.firstDayOfMonth().addMonths(this.showMonths - 1).firstDayOfWeek(r.weekStarts()).addDays(42); }, this.zd = function () {
3894
4063
  var e = this.visibleStart(), t = this.visibleEnd();
3895
- if (i.qa()) {
3896
- var a = {};
3897
- if (a.start = e, a.end = t, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onVisibleRangeChange && (i.onVisibleRangeChange(a), a.preventDefault.value))
4064
+ if (a.qa()) {
4065
+ var i = {};
4066
+ if (i.start = e, i.end = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onVisibleRangeChange && (a.onVisibleRangeChange(i), i.preventDefault.value))
3898
4067
  return;
3899
4068
  switch (this.visibleRangeChangedHandling) {
3900
4069
  case "CallBack":
@@ -3905,7 +4074,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3905
4074
  break;
3906
4075
  case "Disabled":
3907
4076
  }
3908
- "function" == typeof i.onVisibleRangeChanged && i.onVisibleRangeChanged(a);
4077
+ "function" == typeof a.onVisibleRangeChanged && a.onVisibleRangeChanged(i);
3909
4078
  }
3910
4079
  else
3911
4080
  switch (this.visibleRangeChangedHandling) {
@@ -3920,13 +4089,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3920
4089
  break;
3921
4090
  case "Disabled":
3922
4091
  }
3923
- }, this.visibleRangeChangedCallBack = function (e) { var t = {}; this.S("Visible", e, t); }, this.visibleRangeChangedPostBack = function (e) { var t = {}; this.Q("Visible", e, t); }, this.U = function (e, t) { var e = JSON.parse(e); i.items = e.Items, i.cells = e.Cells, i.cells ? i.update() : i.gd(); }, this.nd = function () {
4092
+ }, this.visibleRangeChangedCallBack = function (e) { var t = {}; this.S("Visible", e, t); }, this.visibleRangeChangedPostBack = function (e) { var t = {}; this.Q("Visible", e, t); }, this.U = function (e, t) { var e = JSON.parse(e); a.items = e.Items, a.cells = e.Cells, a.cells ? a.update() : a.sd(); }, this.yd = function () {
3924
4093
  for (var e = 0; e < this.showMonths; e++) {
3925
- var t = this.Bd(e);
3926
- this.Mc(e, t);
4094
+ var t = this.Md(e);
4095
+ this.Vc(e, t);
3927
4096
  }
3928
- this.root.style.height = this.Cd() + "px", this.nav.preselection = document.createElement("div"), this.nav.preselection.style.position = "absolute", this.nav.preselection.style.left = "0px", this.nav.preselection.style.right = "0px", this.nav.preselection.style.top = "0px", this.root.appendChild(this.nav.preselection);
3929
- }, this.Cd = function () {
4097
+ this.root.style.height = this.Nd() + "px", this.nav.preselection = document.createElement("div"), this.nav.preselection.style.position = "absolute", this.nav.preselection.style.left = "0px", this.nav.preselection.style.right = "0px", this.nav.preselection.style.top = "0px", this.root.appendChild(this.nav.preselection);
4098
+ }, this.Nd = function () {
3930
4099
  if ("Horizontal" === this.orientation) {
3931
4100
  for (var e = 0, t = 0; t < this.months.length; t++) {
3932
4101
  var i = this.months[t];
@@ -3939,77 +4108,89 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3939
4108
  a += i.height;
3940
4109
  }
3941
4110
  return a;
3942
- }, this.Bd = function (e) {
4111
+ }, this.Md = function (e) {
3943
4112
  if (this.internal.showLinks)
3944
4113
  return this.internal.showLinks;
3945
4114
  var t = {};
3946
4115
  return t.left = 0 === e, t.right = 0 === e, t.before = 0 === e, t.after = e === this.showMonths - 1, "Horizontal" === this.orientation && (t.right = e === this.showMonths - 1), t;
3947
- }, this.sa = {}, this.sa.scope = null, this.sa.notify = function () { i.sa.scope && i.sa.scope["$apply"](); }, this.internal = {}, this.internal.loadOptions = i.bb, this.internal.initialized = function () { return i.Ba; }, this.aa = {};
3948
- var o = this.aa;
3949
- o.locale = function () { return DayPilot.Locale.find(i.locale); }, o.weekStarts = function () {
3950
- if ("Auto" === i.weekStarts) {
3951
- var e = o.locale();
4116
+ }, this.sa = {}, this.sa.scope = null, this.sa.notify = function () { a.sa.scope && a.sa.scope["$apply"](); }, this.Ha = {}, this.Ha.Ga = null, this.Ha.Cb = function (e, t, i) {
4117
+ var n = a.Ha.Ga;
4118
+ if ("function" == typeof n.createVNode && "function" == typeof n.render) {
4119
+ var o = n.createVNode(e, i);
4120
+ n.render(o, t);
4121
+ }
4122
+ }, this.Ha.La = function (e, t) {
4123
+ var i = a.Ha.Ga;
4124
+ if ("function" == typeof i.render) {
4125
+ var n = e;
4126
+ DayPilot.isArray(e) && (n = i.h("div", null, e)), i.render(n, t);
4127
+ }
4128
+ }, this.Ha.Ja = function (e) { var t = a.Ha.Ga; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = a.jb, this.internal.initialized = function () { return a.Ba; }, this.internal.vueRendering = function () { return !1; }, this.internal.enableVue = function (e) { a.Ha.Ga = e; }, this.internal.vueRef = function () { return a.Ha.Ga; }, this.internal.vueRendering = function () { return a.Ha.Ia; }, this.aa = {};
4129
+ var r = this.aa;
4130
+ r.locale = function () { return DayPilot.Locale.find(a.locale); }, r.weekStarts = function () {
4131
+ if ("Auto" === a.weekStarts) {
4132
+ var e = r.locale();
3952
4133
  return e ? e.weekStarts : 0;
3953
4134
  }
3954
- return i.weekStarts;
3955
- }, o.cellWidth = function () {
3956
- if (i.hb.cellWidth)
3957
- return i.hb.cellWidth;
3958
- var e = i.Dd("_cell_dimensions").width;
3959
- return e || (e = i.cellWidth), i.hb.cellWidth = e, e;
3960
- }, o.Rc = function () { return "Auto" === i.aa.cellWidth(); }, this.clearSelection = function () {
4135
+ return a.weekStarts;
4136
+ }, r.cellWidth = function () {
4137
+ if (a.pb.cellWidth)
4138
+ return a.pb.cellWidth;
4139
+ var e = a.Od("_cell_dimensions").width;
4140
+ return e || (e = a.cellWidth), a.pb.cellWidth = e, e;
4141
+ }, r.ad = function () { return "Auto" === a.aa.cellWidth(); }, this.clearSelection = function () {
3961
4142
  for (var e = 0; e < this.selected.length; e++) {
3962
4143
  var t = this.selected[e];
3963
- i.fd(t.parentNode, t.x, t.y);
4144
+ a.rd(t.parentNode, t.x, t.y);
3964
4145
  }
3965
4146
  this.selected = [];
3966
- }, this.Ed = function () { return !!this.backendUrl && ("undefined" == typeof i.items || !i.items); }, this.events = {}, this.ea = function () {
4147
+ }, this.Pd = function () { return !!this.backendUrl && ("undefined" == typeof a.items || !a.items); }, this.events = {}, this.ea = function () {
3967
4148
  if (DayPilot.isArray(this.events.list)) {
3968
4149
  this.items = {};
3969
4150
  for (var e = 0; e < this.events.list.length; e++) {
3970
4151
  var t = this.events.list[e];
3971
4152
  if (!t.hidden) {
3972
- var i = this.Fd(t);
4153
+ var i = this.Qd(t);
3973
4154
  for (var a in i)
3974
4155
  this.items[a] = 1;
3975
4156
  }
3976
4157
  }
3977
4158
  }
3978
- }, this.Dd = function (e) { var t = document.createElement("div"); t.style.position = "absolute", t.style.top = "-2000px", t.style.left = "-2000px", t.className = this.K(e); var a = i.root || document.body; a.appendChild(t); var n = t.offsetHeight, o = t.offsetWidth; a.removeChild(t); var r = {}; return r.height = n, r.width = o, r; }, this.Fd = function (e) {
4159
+ }, this.Od = function (e) { var t = document.createElement("div"); t.style.position = "absolute", t.style.top = "-2000px", t.style.left = "-2000px", t.className = this.K(e); var i = a.root || document.body; i.appendChild(t); var n = t.offsetHeight, o = t.offsetWidth; i.removeChild(t); var r = {}; return r.height = n, r.width = o, r; }, this.Qd = function (e) {
3979
4160
  for (var t = new DayPilot.Date(e.start), i = new DayPilot.Date(e.end), a = {}, n = t.getDatePart(); n.getTime() <= i.getTime();)
3980
4161
  a[n.toStringSortable()] = 1, n = n.addDays(1);
3981
4162
  return a;
3982
- }, this.show = function () { i.visible = !0, i.root.style.display = ""; }, this.hide = function () { i.visible = !1, i.root.style.display = "none"; }, this.gb = function () {
4163
+ }, this.show = function () { a.visible = !0, a.root.style.display = ""; }, this.hide = function () { a.visible = !1, a.root.style.display = "none"; }, this.ob = function () {
3983
4164
  if (this.id && this.id.tagName)
3984
4165
  this.nav.top = this.id;
3985
4166
  else {
3986
4167
  if ("string" != typeof this.id)
3987
4168
  throw "DayPilot.Navigator() constructor requires the target element or its ID as a parameter";
3988
4169
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
3989
- throw "DayPilot.Navigator: The placeholder element not found: '" + e + "'.";
4170
+ throw "DayPilot.Navigator: The placeholder element not found: '" + t + "'.";
3990
4171
  }
3991
4172
  this.root = this.nav.top;
3992
4173
  }, this.init = function () {
3993
- if (this.gb(), !this.root.dp) {
3994
- this.jd(), this.Qc(), this.nd(), this.ea(), this.gd(), this.Z(), this.Gd(), this.$a();
3995
- if (this.Ed() && this.od(), this.Ba = !0, this.fb(), this.kd) {
3996
- var e = this.kd;
3997
- this.select(e.date1, e.date2, e.options), this.kd = null;
4174
+ if (this.ob(), !this.root.dp) {
4175
+ this.ud(), this._c(), this.yd(), this.ea(), this.sd(), this.Z(), this.Rd(), this.gb();
4176
+ if (this.Pd() && this.zd(), this.Ba = !0, this.nb(), this.vd) {
4177
+ var e = this.vd;
4178
+ this.select(e.date1, e.date2, e.options), this.vd = null;
3998
4179
  }
3999
4180
  return this;
4000
4181
  }
4001
- }, this.Gd = function () { i.nav.top.onmousedown = this.xd, i.nav.top.onmousemove = this.yd; }, this.$a = function () { DayPilot.re(document, "mouseup", i.Hd); }, this.Hd = function (e) {
4002
- if (a.start && a.end) {
4003
- var t = DayPilot.mo3(i.nav.top, e);
4004
- if (t.x === a.start.coords.x && t.y === a.start.coords.y)
4005
- return a.start = null, void a.clear();
4006
- a.clear();
4007
- var o = a.ordered();
4008
- o.start = new n(o.start).nextVisible(), o.end = new n(o.end).previousVisible(), i.selectionDay = new n(o.start).date(), i.selectionStart = i.selectionDay, i.selectionEnd = new n(o.end).date(), a.start = null, a.end = null, i.Lc(), i.Qc(), i.nd(), i.gd(), i.hd();
4009
- i.M({ "mode": "FreeHand" });
4010
- }
4011
- a.start = null, a.end = null;
4012
- }, this.dispose = function () { var e = i; e.root && (e.root.removeAttribute("style"), e.root.removeAttribute("class"), e.root.dp = null, e.root.innerHTML = null, e.root = null, e.O = !0); }, this.Z = function () { this.root.dispose = this.dispose; }, this.Init = this.init, this.bb(t);
4182
+ }, this.Rd = function () { a.nav.top.onmousedown = this.Id, a.nav.top.onmousemove = this.Jd; }, this.gb = function () { DayPilot.re(document, "mouseup", a.Sd); }, this.Sd = function (e) {
4183
+ if (n.start && n.end) {
4184
+ var t = DayPilot.mo3(a.nav.top, e);
4185
+ if (t.x === n.start.coords.x && t.y === n.start.coords.y)
4186
+ return n.start = null, void n.clear();
4187
+ n.clear();
4188
+ var i = n.ordered();
4189
+ i.start = new o(i.start).nextVisible(), i.end = new o(i.end).previousVisible(), a.selectionDay = new o(i.start).date(), a.selectionStart = a.selectionDay, a.selectionEnd = new o(i.end).date(), n.start = null, n.end = null, a.Uc(), a._c(), a.yd(), a.sd(), a.td();
4190
+ a.M({ "mode": "FreeHand" });
4191
+ }
4192
+ n.start = null, n.end = null;
4193
+ }, this.dispose = function () { var e = a; e.root && (e.root.removeAttribute("style"), e.root.removeAttribute("class"), e.root.dp = null, e.root.innerHTML = null, e.root = null, e.O = !0); }, this.Z = function () { this.root.dispose = this.dispose; }, this.Init = this.init, this.jb(i);
4013
4194
  }, "undefined" != typeof jQuery && !function (e) {
4014
4195
  e.fn.daypilotNavigator = function (e) {
4015
4196
  var t = null, i = this.each(function () {
@@ -4046,7 +4227,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
4046
4227
  for (var i in e)
4047
4228
  n[i] = e[i];
4048
4229
  n.update();
4049
- }, !0), d.call(t, u, function (e) { n.events.list = e, n.ea(), n.gd(); }, !0);
4230
+ }, !0), d.call(t, u, function (e) { n.events.list = e, n.ea(), n.sd(); }, !0);
4050
4231
  };
4051
4232
  } };
4052
4233
  }]);