@daypilot/daypilot-lite-angular 3.31.0 → 3.32.1

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.
@@ -3,7 +3,7 @@ import { EventEmitter, Component, Output, Input, NgModule } from '@angular/core'
3
3
 
4
4
  //@ts-nocheck
5
5
  /*
6
- Copyright © 2024 Annpoint, s.r.o.
6
+ Copyright © 2025 Annpoint, s.r.o.
7
7
 
8
8
  Licensed under the Apache License, Version 2.0 (the "License");
9
9
  you may not use this file except in compliance with the License.
@@ -127,10 +127,10 @@ var DayPilot;
127
127
  })(DayPilot || (DayPilot = {}));
128
128
  /*
129
129
  DayPilot Lite
130
- Copyright (c) 2005 - 2024 Annpoint s.r.o.
130
+ Copyright (c) 2005 - 2025 Annpoint s.r.o.
131
131
  https://www.daypilot.org/
132
132
  Licensed under Apache Software License 2.0
133
- Version: 2024.4.631-lite
133
+ Version: 2025.1.638-lite
134
134
  */
135
135
  var DayPilot = {};
136
136
  if ("undefined" == typeof DayPilot)
@@ -992,14 +992,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
992
992
  if (this instanceof t.Calendar && !this.N && (o = !0, this.N = !0), !o)
993
993
  throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
994
994
  var r = this;
995
- this.uniqueID = null, this.isCalendar = !0, this.v = "2024.4.631-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
+ this.uniqueID = null, this.isCalendar = !0, this.v = "2025.1.638-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.cellDuration = 30, this.cellHeight = 30, this.columnMarginLeft = 0, this.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.contextMenu = null, this.days = 1, this.durationBarVisible = !0, this.eventBorderRadius = null, this.eventsLoadMethod = "GET", this.headerDateFormat = null, this.headerHeight = 30, this.headerTextWrappingEnabled = !1, this.height = 300, this.heightSpec = "BusinessHours", this.hideUntilInit = !0, this.hourWidth = 60, this.initScrollPos = "Auto", this.loadingLabelHtml = null, this.loadingLabelText = "Loading...", this.loadingLabelVisible = !0, this.locale = "en-us", this.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) {
996
996
  for (var i = e.parentNode; i && "TD" !== i.tagName;)
997
997
  i = i.parentNode;
998
998
  var a = r.eventBorderRadius;
999
999
  "number" == typeof a && (a += "px");
1000
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");
1001
+ n.setAttribute("unselectable", "on"), n.style.position = "absolute",
1002
+ n.style.width = e.offsetWidth + "px", n.style.height = e.offsetHeight + "px", n.style.left = e.offsetLeft + "px", n.style.top = e.offsetTop + "px", n.style.boxSizing = "border-box", n.style.zIndex = 101, n.className = r.K("_shadow");
1003
1003
  var o = document.createElement("div");
1004
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
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 () {
@@ -1008,6 +1008,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1008
1008
  return e ? e.weekStarts : 0;
1009
1009
  }
1010
1010
  return r.weekStarts || 0;
1011
+ }, this.aa.da = function () {
1012
+ var e = r.cellDuration;
1013
+ if (e <= 1)
1014
+ return 1;
1015
+ if (e >= 60)
1016
+ return 60;
1017
+ var t = [1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60], i = Math.floor(e);
1018
+ return Math.max.apply(null, t.filter(function (e) { return e <= i; }));
1011
1019
  };
1012
1020
  var s = this.aa;
1013
1021
  this.U = function (e, t) {
@@ -1021,16 +1029,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1021
1029
  return void (document.location.href = e.CallBackRedirect);
1022
1030
  if ("None" === e.UpdateType)
1023
1031
  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)
1032
+ 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.ea()), e.Hashes)
1025
1033
  for (var i in e.Hashes)
1026
1034
  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) {
1035
+ r.events.list = e.Events, r.fa(), r.ga(), "Full" === e.UpdateType && (r.ha(), r.ia(), r.ja(), r.ka()), r.t(), r.la(), r.clearSelection(), r.afterRender(e.CallBackData, !0), r.loadingStop();
1036
+ }, this.ma = function () { return this.na() / 36e5; }, this.oa = function () { return this.businessBeginsHour > this.businessEndsHour ? 24 - this.businessBeginsHour + this.businessEndsHour : this.businessEndsHour - this.businessBeginsHour; }, this.pa = function () { return this.na() / (60 * s.da() * 1e3); }, this.na = function () { var e = 0; return e = "BusinessHoursNoScroll" === this.heightSpec ? this.oa() : 24, 60 * e * 60 * 1e3; }, this.qa = function () { return "BusinessHoursNoScroll" === this.heightSpec ? this.businessBeginsHour : 0; }, this.ra = 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.sa = function (e) {
1029
1037
  var t = this, i = t.event;
1030
1038
  if (i.client.clickEnabled())
1031
- if (r.qa()) {
1039
+ if (r.ra()) {
1032
1040
  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))
1041
+ 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.ta.apply(function () { r.onEventClick(a); }), a.preventDefault.value))
1034
1042
  return;
1035
1043
  switch (r.eventClickHandling) {
1036
1044
  case "CallBack":
@@ -1043,7 +1051,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1043
1051
  var n = i.client.contextMenu();
1044
1052
  n ? n.show(i) : r.contextMenu && r.contextMenu.show(i);
1045
1053
  }
1046
- "function" == typeof r.onEventClicked && r.sa.apply(function () { r.onEventClicked(a); });
1054
+ "function" == typeof r.onEventClicked && r.ta.apply(function () { r.onEventClicked(a); });
1047
1055
  }
1048
1056
  else
1049
1057
  switch (r.eventClickHandling) {
@@ -1055,7 +1063,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1055
1063
  break;
1056
1064
  case "JavaScript": r.onEventClick(i);
1057
1065
  }
1058
- }, this.ta = function (e) {
1066
+ }, this.ua = function (e) {
1059
1067
  var t = this.event;
1060
1068
  if (e.stopPropagation && e.stopPropagation(), !t.client.rightClickEnabled())
1061
1069
  return !1;
@@ -1068,10 +1076,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1068
1076
  a ? a.show(t) : r.contextMenu && r.contextMenu.show(this.event);
1069
1077
  }
1070
1078
  return "function" == typeof r.onEventRightClicked && r.onEventRightClicked(i), e.preventDefault && e.preventDefault(), !1;
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) {
1072
- if (r.qa()) {
1079
+ }, this.eventDeleteCallBack = function (e, t) { this.S("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.Q("EventDelete", t, e); }, this.va = function (e) {
1080
+ if (r.ra()) {
1073
1081
  var t = {};
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))
1082
+ if (t.e = e, t.control = r, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onEventDelete && (r.ta.apply(function () { r.onEventDelete(t); }), t.preventDefault.value))
1075
1083
  return;
1076
1084
  switch (r.eventDeleteHandling) {
1077
1085
  case "CallBack":
@@ -1082,7 +1090,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1082
1090
  break;
1083
1091
  case "Update": r.events.remove(e);
1084
1092
  }
1085
- "function" == typeof r.onEventDeleted && r.sa.apply(function () { r.onEventDeleted(t); });
1093
+ "function" == typeof r.onEventDeleted && r.ta.apply(function () { r.onEventDeleted(t); });
1086
1094
  }
1087
1095
  else
1088
1096
  switch (r.eventDeleteHandling) {
@@ -1109,39 +1117,40 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1109
1117
  var n = {};
1110
1118
  n.e = e, n.newStart = t, n.newEnd = i, this.Q("EventResize", a, n);
1111
1119
  }, this.J = function (e, t, i, a) {
1112
- var n = 1, o = new Date, s = new Date, l = e.start(), d = e.end();
1120
+ var n = 1, o = new Date, l = new Date, d = e.start(), c = e.end();
1121
+ s.da();
1113
1122
  if ("top" === a) {
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();
1123
+ var u = d.getDatePart(), h = Math.floor((i - n) / r.cellHeight), f = h * s.da(), m = 60 * f * 1e3, p = 60 * r.qa() * 60 * 1e3;
1124
+ o = u.addTime(m + p), l = e.end();
1116
1125
  }
1117
1126
  else if ("bottom" === a) {
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);
1127
+ var u = c.getDatePart(), h = Math.floor((i + t - n) / r.cellHeight), f = h * s.da(), m = 60 * f * 1e3, p = 60 * r.qa() * 60 * 1e3;
1128
+ o = d, l = u.addTime(m + p);
1120
1129
  }
1121
- if (r.qa()) {
1122
- var p = {};
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))
1130
+ if (r.ra()) {
1131
+ var v = {};
1132
+ if (v.e = e, v.control = r, v.newStart = o, v.newEnd = l, v.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onEventResize && (r.ta.apply(function () { r.onEventResize(v); }), v.preventDefault.value))
1124
1133
  return;
1125
1134
  switch (r.eventResizeHandling) {
1126
1135
  case "PostBack":
1127
- r.eventResizePostBack(e, o, s);
1136
+ r.eventResizePostBack(e, o, l);
1128
1137
  break;
1129
1138
  case "CallBack":
1130
- r.eventResizeCallBack(e, o, s);
1139
+ r.eventResizeCallBack(e, o, l);
1131
1140
  break;
1132
- case "Update": e.start(o), e.end(s), r.events.update(e);
1141
+ case "Update": e.start(o), e.end(l), r.events.update(e);
1133
1142
  }
1134
- "function" == typeof r.onEventResized && r.sa.apply(function () { r.onEventResized(p); });
1143
+ "function" == typeof r.onEventResized && r.ta.apply(function () { r.onEventResized(v); });
1135
1144
  }
1136
1145
  else
1137
1146
  switch (r.eventResizeHandling) {
1138
1147
  case "PostBack":
1139
- r.eventResizePostBack(e, o, s);
1148
+ r.eventResizePostBack(e, o, l);
1140
1149
  break;
1141
1150
  case "CallBack":
1142
- r.eventResizeCallBack(e, o, s);
1151
+ r.eventResizeCallBack(e, o, l);
1143
1152
  break;
1144
- case "JavaScript": r.onEventResize(e, o, s);
1153
+ case "JavaScript": r.onEventResize(e, o, l);
1145
1154
  }
1146
1155
  }, this.eventMovePostBack = function (e, t, i, a, n) {
1147
1156
  if (!t)
@@ -1158,40 +1167,40 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1158
1167
  var o = {};
1159
1168
  o.e = e, o.newStart = t, o.newEnd = i, this.S("EventMove", n, o);
1160
1169
  }, this.L = function (e, t, i, a) {
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;
1162
- l instanceof DayPilot.Date && (l = l.toDate()), c.setTime(Date.UTC(l.getUTCFullYear(), l.getUTCMonth(), l.getUTCDate()));
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;
1164
- v.setTime(p + s + u);
1165
- var y = new DayPilot.Date(v), g = y.addTime(h);
1166
- if (r.qa()) {
1167
- var b = {};
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))
1170
+ var n = 1, o = Math.floor((i - n) / r.cellHeight), l = s.da(), d = o * l * 60 * 1e3, c = e.start(), u = e.end(), h = new Date;
1171
+ c instanceof DayPilot.Date && (c = c.toDate()), h.setTime(Date.UTC(c.getUTCFullYear(), c.getUTCMonth(), c.getUTCDate()));
1172
+ var f = c.getTime() - (h.getTime() + 3600 * c.getUTCHours() * 1e3 + Math.floor(c.getUTCMinutes() / l) * l * 60 * 1e3), m = u.getTime() - c.getTime(), p = this.wa[t], v = p.id, y = p.start.getTime(), g = new Date;
1173
+ g.setTime(y + d + f);
1174
+ var b = new DayPilot.Date(g), D = b.addTime(m);
1175
+ if (r.ra()) {
1176
+ var w = {};
1177
+ if (w.e = e, w.newStart = b, w.newEnd = D, w.newResource = v, w.ctrl = a.ctrlKey, w.shift = a.shiftKey, w.control = r, w.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onEventMove && (r.ta.apply(function () { r.onEventMove(w); }), w.preventDefault.value))
1169
1178
  return;
1170
1179
  switch (r.eventMoveHandling) {
1171
1180
  case "PostBack":
1172
- r.eventMovePostBack(e, y, g, f.id);
1181
+ r.eventMovePostBack(e, b, D, p.id);
1173
1182
  break;
1174
1183
  case "CallBack":
1175
- r.eventMoveCallBack(e, y, g, f.id);
1184
+ r.eventMoveCallBack(e, b, D, p.id);
1176
1185
  break;
1177
- case "Update": e.start(y), e.end(g), e.resource(m), r.events.update(e);
1186
+ case "Update": e.start(b), e.end(D), e.resource(v), r.events.update(e);
1178
1187
  }
1179
- "function" == typeof r.onEventMoved && r.sa.apply(function () { r.onEventMoved(b); });
1188
+ "function" == typeof r.onEventMoved && r.ta.apply(function () { r.onEventMoved(w); });
1180
1189
  }
1181
1190
  else
1182
1191
  switch (r.eventMoveHandling) {
1183
1192
  case "PostBack":
1184
- r.eventMovePostBack(e, y, g, f.id);
1193
+ r.eventMovePostBack(e, b, D, p.id);
1185
1194
  break;
1186
1195
  case "CallBack":
1187
- r.eventMoveCallBack(e, y, g, f.id);
1196
+ r.eventMoveCallBack(e, b, D, p.id);
1188
1197
  break;
1189
- case "JavaScript": r.onEventMove(e, y, g, f.id, !1);
1198
+ case "JavaScript": r.onEventMove(e, b, D, p.id, !1);
1190
1199
  }
1191
1200
  }, 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) {
1192
- if (e = new DayPilot.Date(e), t = new DayPilot.Date(t), this.qa()) {
1201
+ if (e = new DayPilot.Date(e), t = new DayPilot.Date(t), this.ra()) {
1193
1202
  var a = {};
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))
1203
+ 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.ta.apply(function () { r.onTimeRangeSelect(a); }), a.preventDefault.value))
1195
1204
  return;
1196
1205
  switch (r.timeRangeSelectedHandling) {
1197
1206
  case "PostBack":
@@ -1199,7 +1208,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1199
1208
  break;
1200
1209
  case "CallBack": r.timeRangeSelectedCallBack(e, t);
1201
1210
  }
1202
- "function" == typeof r.onTimeRangeSelected && r.sa.apply(function () { r.onTimeRangeSelected(a); });
1211
+ "function" == typeof r.onTimeRangeSelected && r.ta.apply(function () { r.onTimeRangeSelected(a); });
1203
1212
  }
1204
1213
  else
1205
1214
  switch (r.timeRangeSelectedHandling) {
@@ -1211,13 +1220,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1211
1220
  break;
1212
1221
  case "JavaScript": r.onTimeRangeSelected(e, t);
1213
1222
  }
1214
- }, this.wa = function (e) {
1223
+ }, this.xa = function (e) {
1215
1224
  if (!t.selecting && "Disabled" !== r.timeRangeSelectedHandling) {
1216
1225
  var i = e.which;
1217
1226
  if (1 === i || 0 === i)
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;
1227
+ 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.ya(), !1;
1219
1228
  }
1220
- }, this.xa = function () {
1229
+ }, this.ya = function () {
1221
1230
  this.getSelection();
1222
1231
  !function () {
1223
1232
  var e = t.topSelectedCell, i = t.bottomSelectedCell, a = function () {
@@ -1227,7 +1236,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1227
1236
  if (t[i] === e)
1228
1237
  return i;
1229
1238
  return -1;
1230
- }(), n = r.va[a];
1239
+ }(), n = r.wa[a];
1231
1240
  if (n) {
1232
1241
  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
1242
  "number" == typeof c && (c += "px");
@@ -1242,12 +1251,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1242
1251
  u.className = r.K("_shadow"), u.firstChild.innerHTML = "", u.style.top = s + "px", u.style.height = d + "px";
1243
1252
  }
1244
1253
  }();
1245
- }, this.ya = function (e) {
1254
+ }, this.za = function (e) {
1246
1255
  if ("undefined" != typeof t && t.selecting) {
1247
1256
  var i = DayPilot.mc(e);
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());
1257
+ 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.ya());
1249
1258
  }
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) {
1259
+ }, 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.Aa = function (e) {
1251
1260
  if (e < 0)
1252
1261
  return null;
1253
1262
  for (var t = 0, i = r.nav.events.rows[0].cells, a = 0; a < i.length; a++) {
@@ -1255,11 +1264,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1255
1264
  return a;
1256
1265
  }
1257
1266
  return null;
1258
- }, this.Aa = {}, this.Aa.getCellCoords = function () {
1267
+ }, this.Ba = {}, this.Ba.getCellCoords = function () {
1259
1268
  var e = {};
1260
1269
  if (e.x = 0, e.y = 0, !r.coords)
1261
1270
  return null;
1262
- e.x = r.za(r.coords.x);
1271
+ e.x = r.Aa(r.coords.x);
1263
1272
  var t = 0, i = Math.floor((r.coords.y - t) / r.cellHeight);
1264
1273
  return e.y = i, e.x < 0 ? null : e;
1265
1274
  }, this.columns = {}, this.columns.list = [], this.columns.load = function (e, t, i) {
@@ -1278,20 +1287,24 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1278
1287
  var s = {};
1279
1288
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
1280
1289
  return;
1281
- r.columns.list = i, r.Ba && r.update();
1290
+ r.columns.list = i, r.Ca && r.update();
1282
1291
  }
1283
1292
  };
1284
1293
  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 });
1285
- }, this.da = function () {
1294
+ }, this.ea = function () {
1286
1295
  var e;
1287
- e = "Resources" !== r.viewType ? this.Ca() : r.columns.list, this.va = [];
1296
+ e = "Resources" !== r.viewType ? this.Da() : r.columns.list, this.wa = [];
1288
1297
  for (var t = 0; t < e.length; t++) {
1289
- var i = this.Da(e[t]);
1290
- this.va.push(i);
1298
+ var i = this.Ea(e[t]);
1299
+ this.wa.push(i);
1291
1300
  }
1292
- }, this.Da = function (e) {
1301
+ }, this.Ea = function (e) {
1293
1302
  var t = {};
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) {
1303
+ if (t.name = e.name, t.html = e.html, t.id = e.id, t.toolTip = e.toolTip, t.data = e, e.start ? t.start = new DayPilot.Date(e.start) : t.start = new DayPilot.Date(r.startDate), "BusinessHoursNoScroll" === this.heightSpec) {
1304
+ var i = t.start.getDatePart();
1305
+ t.start = i.addHours(this.businessBeginsHour);
1306
+ }
1307
+ return t.putIntoBlock = function (e) {
1295
1308
  for (var t = 0; t < this.blocks.length; t++) {
1296
1309
  var i = this.blocks[t];
1297
1310
  if (i.overlapsWith(e.part.top, e.part.height))
@@ -1330,7 +1343,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1330
1343
  return !0;
1331
1344
  }, i.push(e), this.lines.push(i), this.lines.length - 1;
1332
1345
  }, t;
1333
- }, this.Ca = function () {
1346
+ }, this.Da = function () {
1334
1347
  var e = [], t = this.startDate.getDatePart(), i = this.days;
1335
1348
  switch (this.viewType) {
1336
1349
  case "Day":
@@ -1343,7 +1356,6 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1343
1356
  break;
1344
1357
  case "WorkWeek": i = 5, t = t.firstDayOfWeek(1);
1345
1358
  }
1346
- "BusinessHoursNoScroll" === this.heightSpec && (t = t.addHours(this.businessBeginsHour));
1347
1359
  for (var n = 0; n < i; n++) {
1348
1360
  var o = r.headerDateFormat ? r.headerDateFormat : s.locale().datePattern, l = {};
1349
1361
  l.start = t.addDays(n), l.name = l.start.toString(o, s.locale()), e.push(l);
@@ -1351,35 +1363,35 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1351
1363
  return e;
1352
1364
  }, this.visibleStart = function () {
1353
1365
  if ("Resources" === r.viewType) {
1354
- if (0 === r.va.length)
1366
+ if (0 === r.wa.length)
1355
1367
  return DayPilot.Date.today();
1356
- var e = r.va.map(function (e) { return e.start.getTime(); }), t = Math.min.apply(null, e);
1368
+ var e = r.wa.map(function (e) { return e.start.getTime(); }), t = Math.min.apply(null, e);
1357
1369
  return new DayPilot.Date(t);
1358
1370
  }
1359
- return this.va[0].start;
1371
+ return this.wa[0].start;
1360
1372
  }, this.visibleEnd = function () {
1361
1373
  if ("Resources" === r.viewType) {
1362
- if (0 === r.va.length)
1374
+ if (0 === r.wa.length)
1363
1375
  return DayPilot.Date.today().addDays(1);
1364
- var e = r.va.map(function (e) { return e.start.getTime(); }), t = Math.max.apply(null, e);
1376
+ var e = r.wa.map(function (e) { return e.start.getTime(); }), t = Math.max.apply(null, e);
1365
1377
  return new DayPilot.Date(t).addDays(1);
1366
1378
  }
1367
- var t = this.va.length - 1;
1368
- return this.va[t].start.addDays(1);
1379
+ var t = this.wa.length - 1;
1380
+ return this.wa[t].start.addDays(1);
1369
1381
  }, this.K = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.W = function () {
1370
1382
  if (this.elements.events)
1371
1383
  for (var e = 0; e < this.elements.events.length; e++) {
1372
1384
  var t = this.elements.events[e];
1373
- r.Ea(t);
1385
+ r.Fa(t);
1374
1386
  }
1375
1387
  this.elements.events = [];
1376
- }, this.Ea = function (e) {
1388
+ }, this.Fa = function (e) {
1377
1389
  !function () {
1378
1390
  var t = e.domArgs;
1379
1391
  if (e.domArgs = null, t && "function" == typeof r.onBeforeEventDomRemove && r.onBeforeEventDomRemove(t), t && "function" == typeof r.onBeforeEventDomAdd) {
1380
- var a = t && t.Fa;
1392
+ var a = t && t.Ga;
1381
1393
  if (a) {
1382
- r.Ha.Ga && i(t.element) && (r.Ha.Ia = !0, r.Ha.Ja(a), r.Ha.Ia = !1);
1394
+ r.Ia.Ha && i(t.element) && (r.Ia.Ja = !0, r.Ia.Ka(a), r.Ia.Ja = !1);
1383
1395
  }
1384
1396
  }
1385
1397
  }();
@@ -1389,11 +1401,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1389
1401
  a.onmousedown = null, a.onmousemove = null, a.onclick = null;
1390
1402
  }
1391
1403
  e.helper = null, e.data = null, e.event = null, DayPilot.de(e);
1392
- }, this.Ka = function (e) {
1404
+ }, this.La = function (e) {
1393
1405
  var a = e.cache || e.data, n = this.nav.events, o = a.borderRadius || r.eventBorderRadius;
1394
1406
  "number" == typeof o && (o += "px");
1395
1407
  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) {
1408
+ 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.sa, DayPilot.re(s, "contextmenu", this.ua), s.onmouseout = function (e) { s.deleteIcon && (s.deleteIcon.style.display = "none"); }, s.onmousemove = function (i) {
1397
1409
  var a = 5;
1398
1410
  if ("undefined" != typeof t) {
1399
1411
  var n = DayPilot.mo3(s, i);
@@ -1409,7 +1421,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1409
1421
  if (1 === a && e.client.moveEnabled()) {
1410
1422
  t.moving = this, DayPilot.Global.moving = this, t.moving.event = this.event;
1411
1423
  var n = t.moving.helper = {};
1412
- n.oldColumn = r.va[this.data.part.dayIndex].id, t.originalMouse = DayPilot.mc(i), t.originalTop = this.offsetTop;
1424
+ n.oldColumn = r.wa[this.data.part.dayIndex].id, t.originalMouse = DayPilot.mc(i), t.originalTop = this.offsetTop;
1413
1425
  var o = DayPilot.mo3(this, i);
1414
1426
  o ? t.moveOffsetY = o.y : t.moveOffsetY = 0, r.nav.top.style.cursor = "move";
1415
1427
  }
@@ -1427,7 +1439,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1427
1439
  }
1428
1440
  if (e.client.deleteEnabled()) {
1429
1441
  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);
1442
+ 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.va(t); }, m.style.display = "none", s.deleteIcon = m, s.appendChild(m);
1431
1443
  }
1432
1444
  var p = a.areas ? DayPilot.Areas.copy(a.areas) : [];
1433
1445
  if (DayPilot.Areas.attach(s, e, { "areas": p }), "function" == typeof r.onAfterEventRender) {
@@ -1439,11 +1451,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1439
1451
  if (t.control = r, t.e = e, t.element = null, s.domArgs = t, "function" == typeof r.onBeforeEventDomAdd && r.onBeforeEventDomAdd(t), t.element) {
1440
1452
  var a = l;
1441
1453
  if (a) {
1442
- t.Fa = a;
1454
+ t.Ga = a;
1443
1455
  if (i(t.element)) {
1444
- if (!r.Ha.Ga)
1456
+ if (!r.Ia.Ha)
1445
1457
  throw new DayPilot.Exception("Can't reach Vue");
1446
- r.Ha.Ia = !0, r.Ha.La(t.element, a), r.Ha.Ia = !1;
1458
+ r.Ia.Ja = !0, r.Ia.Ma(t.element, a), r.Ia.Ja = !1;
1447
1459
  }
1448
1460
  else
1449
1461
  a.appendChild(t.element);
@@ -1452,19 +1464,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1452
1464
  else
1453
1465
  l.innerHTML = e.client.innerHTML();
1454
1466
  }(), n.rows[0].cells[e.part.dayIndex]) {
1455
- n.rows[0].cells[e.part.dayIndex].firstChild.appendChild(s), r.Ma(s);
1467
+ n.rows[0].cells[e.part.dayIndex].firstChild.appendChild(s), r.Na(s);
1456
1468
  }
1457
1469
  r.elements.events.push(s);
1458
- }, this.Ma = function (e) {
1470
+ }, this.Na = function (e) {
1459
1471
  for (var t = e && e.childNodes ? e.childNodes.length : 0, i = 0; i < t; i++)
1460
1472
  try {
1461
1473
  var a = e.childNodes[i];
1462
- 1 === a.nodeType && (a.unselectable = "on", this.Ma(a));
1474
+ 1 === a.nodeType && (a.unselectable = "on", this.Na(a));
1463
1475
  }
1464
1476
  catch (e) { }
1465
- }, this.ka = function () {
1466
- for (var e = 0; e < this.va.length; e++) {
1467
- var t = this.va[e];
1477
+ }, this.la = function () {
1478
+ for (var e = 0; e < this.wa.length; e++) {
1479
+ var t = this.wa[e];
1468
1480
  if (t.blocks)
1469
1481
  for (var i = 0; i < t.blocks.length; i++)
1470
1482
  for (var a = t.blocks[i], n = 0; n < a.lines.length; n++)
@@ -1472,13 +1484,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1472
1484
  var s = o[r];
1473
1485
  s.part.width = 100 / a.lines.length, s.part.left = s.part.width * n;
1474
1486
  var l = n === a.lines.length - 1;
1475
- l || (s.part.width = 1.5 * s.part.width), this.Ka(s);
1487
+ l || (s.part.width = 1.5 * s.part.width), this.La(s);
1476
1488
  }
1477
1489
  }
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 () {
1490
+ }, this.Oa = 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.Pa() + "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.Qa(); this.nav.top.appendChild(e), this.nav.scroll.style.zoom = 1; var t = this.Ra(); 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.Sa(r.loadingLabelText, r.loadingLabelHtml), this.nav.loading.style.display = "none", this.nav.top.appendChild(this.nav.loading); }, this.ja = function () { this.fasterDispose || DayPilot.pu(this.nav.hourTable), this.nav.scrollable.rows[0].cells[0].innerHTML = "", this.nav.hourTable = this.Ta(), this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable); }, this.Ra = 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.Ta(), 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.Ua()), n.appendChild(this.Va()), e.appendChild(t), this.nav.zoom = e, e; }, this.Ua = 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.Va = function () {
1479
1491
  var e = document.createElement("table");
1480
1492
  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;
1481
- for (var t = this.va, i = t.length, a = e.insertRow(-1), n = 0; n < i; n++) {
1493
+ for (var t = this.wa, i = t.length, a = e.insertRow(-1), n = 0; n < i; n++) {
1482
1494
  var o = a.insertCell(-1);
1483
1495
  o.style.padding = "0px", o.style.border = "0px none", o.style.height = "0px", o.style.overflow = "visible", r.rtl || (o.style.textAlign = "left");
1484
1496
  var s = document.createElement("div");
@@ -1487,38 +1499,39 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1487
1499
  o.selection = l, o.appendChild(s), o.appendChild(l);
1488
1500
  }
1489
1501
  return e;
1490
- }, this.Sa = function () {
1502
+ }, this.Ta = function () {
1491
1503
  var e = document.createElement("table");
1492
1504
  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; };
1493
- for (var t = r.la(), i = 0; i < t; i++)
1494
- this.Va(e, i);
1505
+ for (var t = r.ma(), i = 0; i < t; i++)
1506
+ this.Wa(e, i);
1495
1507
  return e;
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 () {
1508
+ }, this.Wa = function (e, t) { var i = 60 * r.cellHeight / s.da(), 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.qa()), 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.Pa = function () {
1509
+ var e = s.da(), t = 60 / e;
1497
1510
  switch (this.heightSpec) {
1498
- case "Full": return 48 * this.cellHeight;
1511
+ case "Full": return 24 * t * this.cellHeight;
1499
1512
  case "BusinessHours":
1500
- var e = this.na();
1501
- return e * this.cellHeight * 2;
1513
+ var i = this.oa();
1514
+ return i * this.cellHeight * t;
1502
1515
  case "BusinessHoursNoScroll":
1503
- var e = this.na();
1504
- return e * this.cellHeight * 2;
1516
+ var i = this.oa();
1517
+ return i * this.cellHeight * t;
1505
1518
  default: throw "DayPilot.Calendar: Unexpected 'heightSpec' value.";
1506
1519
  }
1507
- }, this.Wa = function () {
1520
+ }, this.Xa = function () {
1508
1521
  var e = r.nav.corner ? r.nav.corner.parentNode : null;
1509
1522
  if (e) {
1510
1523
  e.innerHTML = "";
1511
- var t = this.Xa();
1524
+ var t = this.Ya();
1512
1525
  e.appendChild(t), r.nav.corner = t;
1513
1526
  }
1514
- }, this.Pa = function () {
1527
+ }, this.Qa = function () {
1515
1528
  var e = document.createElement("div");
1516
1529
  e.style.overflow = "auto";
1517
1530
  var t = document.createElement("table");
1518
1531
  t.cellPadding = "0", t.cellSpacing = "0", t.border = "0", t.style.width = "100%", t.style.borderCollapse = "separate", t.style.border = "0px none";
1519
1532
  var i = t.insertRow(-1), a = i.insertCell(-1);
1520
1533
  a.style.padding = "0px", a.style.border = "0px none";
1521
- var n = this.Xa();
1534
+ var n = this.Ya();
1522
1535
  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; };
1523
1536
  var o = "hidden" !== this.nav.scroll.style.overflow;
1524
1537
  if (a.appendChild(this.nav.header), o) {
@@ -1529,79 +1542,79 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1529
1542
  s.className = this.K("_cornerright_inner"), r.appendChild(s), a.appendChild(r), this.nav.cornerRight = r;
1530
1543
  }
1531
1544
  return e.appendChild(t), e;
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 () {
1545
+ }, this.Ya = 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 () {
1533
1546
  var e = this.nav.main;
1534
1547
  e.root = null, e.onmouseup = null;
1535
1548
  for (var t = 0; t < e.rows.length; t++)
1536
1549
  for (var i = e.rows[t], a = 0; a < i.cells.length; a++) {
1537
1550
  var n = i.cells[a];
1538
- r.Ya(n);
1551
+ r.Za(n);
1539
1552
  }
1540
1553
  this.fasterDispose || DayPilot.pu(e);
1541
- }, this.Ya = function (e) {
1554
+ }, this.Za = function (e) {
1542
1555
  e && (!function () {
1543
1556
  var t = e, a = t.domArgs;
1544
1557
  if (t.domArgs = null, a && "function" == typeof r.onBeforeCellDomRemove && r.onBeforeCellDomRemove(a), a && "function" == typeof r.onBeforeCellDomAdd) {
1545
- var n = a && a.Fa;
1558
+ var n = a && a.Ga;
1546
1559
  if (n) {
1547
- r.Ha.Ga && i(a.element) && (r.Ha.Ia = !0, r.Ha.Ja(n), r.Ha.Ia = !1);
1560
+ r.Ia.Ha && i(a.element) && (r.Ia.Ja = !0, r.Ia.Ka(n), r.Ia.Ja = !1);
1548
1561
  }
1549
1562
  }
1550
1563
  }(), e.root = null, e.onmousedown = null, e.onmousemove = null, e.onmouseout = null, e.onmouseup = null);
1551
- }, this.ha = function () {
1552
- var e = this.nav.main, a = 18e5, n = this.oa(), o = r.va;
1553
- for (e && this.X(); e && e.rows && e.rows.length > 0;)
1554
- this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
1564
+ }, this.ia = function () {
1565
+ var e = s.da(), a = this.nav.main, n = 60 * e * 1e3, o = this.pa(), l = r.wa;
1566
+ for (a && this.X(); a && a.rows && a.rows.length > 0;)
1567
+ this.fasterDispose || DayPilot.pu(a.rows[0]), a.deleteRow(0);
1555
1568
  this.tableCreated = !0;
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");
1561
- var h = document.createElement("div");
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, "fontColor": null }, g = { "start": u.start, "end": u.end, "resource": u.resource, "properties": y, "x": c, "y": m };
1569
+ for (var d = l.length, c = this.nav.events; c && c.rows && c.rows.length > 0;)
1570
+ this.fasterDispose || DayPilot.pu(c.rows[0]), c.deleteRow(0);
1571
+ for (var d = l.length, u = c.insertRow(-1), h = 0; h < d; h++) {
1572
+ var f = u.insertCell(-1);
1573
+ f.style.padding = "0px", f.style.border = "0px none", f.style.height = "0px", f.style.overflow = "visible", r.rtl || (f.style.textAlign = "left");
1574
+ var m = document.createElement("div");
1575
+ m.style.marginRight = r.columnMarginRight + "px", m.style.marginLeft = r.columnMarginLeft + "px", m.style.position = "relative", m.style.height = "1px", m.style.marginTop = "-1px";
1576
+ var p = document.createElement("div");
1577
+ p.style.position = "relative", f.selection = p, f.appendChild(m), f.appendChild(p);
1578
+ }
1579
+ for (var v = 0; v < o; v++) {
1580
+ var u = a.insertRow(-1);
1581
+ u.style.MozUserSelect = "none", u.style.KhtmlUserSelect = "none";
1582
+ for (var h = 0; h < d; h++) {
1583
+ var y = this.wa[h], f = u.insertCell(-1);
1584
+ f.start = y.start.addTime(v * n), f.end = f.start.addTime(n), f.resource = y.id, f.onmousedown = this.xa, f.onmouseup = function () { return !1; }, f.onclick = function () { return !1; }, f.root = this, f.style.padding = "0px", f.style.border = "0px none", f.style.verticalAlign = "top", f.style.height = r.cellHeight + "px", f.style.overflow = "hidden", f.unselectable = "on";
1585
+ var m = document.createElement("div");
1586
+ m.unselectable = "on", m.style.height = r.cellHeight + "px", m.style.position = "relative", m.className = this.K("_cell");
1587
+ var g = this.$a(f.start, f.end), b = { "business": g, "text": null, "html": null, "cssClass": null, "backColor": null, "backImage": null, "backRepeat": null, "fontColor": null }, D = { "start": f.start, "end": f.end, "resource": f.resource, "properties": b, "x": h, "y": v };
1575
1588
  !function () {
1576
1589
  if ("function" == typeof r.onBeforeCellRender) {
1577
1590
  var e = {};
1578
- e.cell = g, r.onBeforeCellRender(e);
1591
+ e.cell = D, r.onBeforeCellRender(e);
1579
1592
  }
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), y.fontColor && (b.style.color = y.fontColor), h.appendChild(b), function () {
1593
+ }(), b.business && DayPilot.Util.addClass(m, r.K("_cell_business")), b.cssClass && DayPilot.Util.addClass(m, b.cssClass);
1594
+ var w = document.createElement("div");
1595
+ w.setAttribute("unselectable", "on"), w.className = this.K("_cell_inner");
1596
+ var x = DayPilot.Util.escapeTextHtml(b.text, b.html);
1597
+ x && (w.innerHTML = x), b.backColor && (w.style.backgroundColor = b.backColor), b.backImage && (w.style.backgroundImage = "url(" + b.backImage + ")"), b.backRepeat && (w.style.backgroundRepeat = b.backRepeat), b.fontColor && (w.style.color = b.fontColor), m.appendChild(w), function () {
1585
1598
  if ("function" == typeof r.onBeforeCellDomAdd || "function" == typeof r.onBeforeCellDomRemove) {
1586
1599
  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;
1600
+ if (e.control = r, e.cell = D, e.element = null, f.domArgs = e, "function" == typeof r.onBeforeCellDomAdd && r.onBeforeCellDomAdd(e), e.element) {
1601
+ var t = w;
1589
1602
  if (t) {
1590
- e.Fa = t;
1603
+ e.Ga = t;
1591
1604
  if (i(e.element)) {
1592
- if (!r.Ha.Ga)
1605
+ if (!r.Ia.Ha)
1593
1606
  throw new DayPilot.Exception("Can't reach Vue");
1594
- r.Ha.Ia = !0, r.Ha.La(e.element, t), r.Ha.Ia = !1;
1607
+ r.Ia.Ja = !0, r.Ia.Ma(e.element, t), r.Ia.Ja = !1;
1595
1608
  }
1596
1609
  else
1597
1610
  t.appendChild(e.element);
1598
1611
  }
1599
1612
  }
1600
1613
  }
1601
- }(), u.appendChild(h);
1614
+ }(), f.appendChild(m);
1602
1615
  }
1603
1616
  }
1604
- e.root = this, r.nav.scrollable.onmousemove = function (e) {
1617
+ a.root = this, r.nav.scrollable.onmousemove = function (e) {
1605
1618
  var i = r.nav.scrollable;
1606
1619
  r.coords = DayPilot.mo3(i, e);
1607
1620
  var a = DayPilot.mc(e);
@@ -1640,11 +1653,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1640
1653
  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]));
1641
1654
  }
1642
1655
  else if (t.selecting) {
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();
1656
+ var a = DayPilot.mc(e), g = r.Ba.getCellCoords(), b = t.column, D = r.nav.main.rows[g.y].cells[b];
1657
+ 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.ya();
1645
1658
  }
1646
1659
  }, 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 () {
1660
+ }, this.$a = 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 () {
1648
1661
  var e = this.nav.header;
1649
1662
  if (e && e.rows)
1650
1663
  for (var t = 0; t < e.rows.length; t++)
@@ -1653,15 +1666,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1653
1666
  n.onclick = null, n.onmousemove = null, n.onmouseout = null;
1654
1667
  }
1655
1668
  this.fasterDispose || DayPilot.pu(e);
1656
- }, this.$a = function (e) {
1669
+ }, this._a = function (e) {
1657
1670
  function t(t) {
1658
1671
  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;
1672
+ 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.ab;
1660
1673
  var s, l = e ? document.createElement("div") : o.firstChild;
1661
- e ? (l.unselectable = "on",
1662
- l.style.MozUserSelect = "none", l.style.cursor = "default", l.style.position = "relative", 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;
1674
+ e ? (l.unselectable = "on", l.style.MozUserSelect = "none", l.style.cursor = "default", l.style.position = "relative", 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;
1663
1675
  var d = {};
1664
- d.header = {}, d.header.cssClass = null, d.header.verticalAlignment = "center", d.header.horizontalAlignment = "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", "horizontalAlignment"])), 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);
1676
+ d.header = {}, d.header.cssClass = null, d.header.verticalAlignment = "center", d.header.horizontalAlignment = "center", d.column = r.bb(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", "horizontalAlignment"])), 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
1677
  var c = n.verticalAlignment;
1666
1678
  if (c)
1667
1679
  switch (s.style.display = "flex", c) {
@@ -1684,22 +1696,22 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1684
1696
  break;
1685
1697
  case "right": s.style.justifyContent = "flex-end";
1686
1698
  }
1687
- l.firstChild.innerHTML = r.Ra(n.name, n.html);
1699
+ l.firstChild.innerHTML = r.Sa(n.name, n.html);
1688
1700
  }
1689
- 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++)
1701
+ for (var i = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], a = this.wa, n = a.length, o = 0; o < n; o++)
1690
1702
  t(o);
1691
- }, this._a = function (e) {
1703
+ }, this.ab = function (e) {
1692
1704
  if ("Disabled" !== r.headerClickHandling) {
1693
- var t = this.data, i = r.ab(t), a = {};
1705
+ var t = this.data, i = r.bb(t), a = {};
1694
1706
  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);
1695
1707
  }
1696
- }, 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 () {
1697
- var e = this.nav.header, t = !0, i = this.va;
1708
+ }, this.bb = function (e) { return new DayPilot.CalendarColumn(e, r); }, this.cb = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.ha = function () {
1709
+ var e = this.nav.header, t = !0, i = this.wa;
1698
1710
  for (i.length; this.headerCreated && e && e.rows && e.rows.length > 0;)
1699
1711
  this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
1700
1712
  this.headerCreated = !0;
1701
- this.$a(t);
1702
- }, 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.root = this, r.db(), e.onscroll || (e.onscroll = function () { r.eb(); }); }, 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)); }, this.events = {}, this.events.add = function (e) {
1713
+ this._a(t);
1714
+ }, 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.db = function () { var e = this.nav.scroll; e.root = this, r.eb(), e.onscroll || (e.onscroll = function () { r.fb(); }); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.gb = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.hb = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp)); }, this.events = {}, this.events.add = function (e) {
1703
1715
  var t = null;
1704
1716
  if (e instanceof DayPilot.Event)
1705
1717
  t = e.data;
@@ -1708,7 +1720,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1708
1720
  throw "DayPilot.Calendar.events.add() expects an object or DayPilot.Event instance.";
1709
1721
  t = e;
1710
1722
  }
1711
- r.events.list || (r.events.list = []), r.events.list.push(t), r.hb({ "eventsOnly": !0 }), r.sa.notify();
1723
+ r.events.list || (r.events.list = []), r.events.list.push(t), r.ib({ "eventsOnly": !0 }), r.ta.notify();
1712
1724
  }, this.events.find = function (e) {
1713
1725
  if (!r.events.list)
1714
1726
  return null;
@@ -1736,7 +1748,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1736
1748
  r.events.list.splice(i, 1, e);
1737
1749
  }
1738
1750
  }
1739
- r.hb({ "eventsOnly": !0 }), r.sa.notify();
1751
+ r.ib({ "eventsOnly": !0 }), r.ta.notify();
1740
1752
  }, this.events.remove = function (e) {
1741
1753
  var t;
1742
1754
  if (e instanceof DayPilot.Event)
@@ -1750,7 +1762,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1750
1762
  i && (t = i.data);
1751
1763
  }
1752
1764
  var a = DayPilot.indexOf(r.events.list, t);
1753
- r.events.list.splice(a, 1), r.hb({ "eventsOnly": !0 }), r.sa.notify();
1765
+ r.events.list.splice(a, 1), r.ib({ "eventsOnly": !0 }), r.ta.notify();
1754
1766
  }, this.events.load = function (e, t, i) {
1755
1767
  var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, n = function (e) {
1756
1768
  var i, n = e.request;
@@ -1765,7 +1777,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1765
1777
  var s = {};
1766
1778
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
1767
1779
  return;
1768
- r.events.list = i, r.Ba && r.hb({ "eventsOnly": !0 });
1780
+ r.events.list = i, r.Ca && r.ib({ "eventsOnly": !0 });
1769
1781
  }
1770
1782
  };
1771
1783
  if (r.eventsLoadMethod && "POST" === r.eventsLoadMethod.toUpperCase())
@@ -1774,7 +1786,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1774
1786
  var o = e, s = "start=" + r.visibleStart().toString() + "&end=" + r.visibleEnd().toString();
1775
1787
  o += o.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": o, "success": n, "error": a });
1776
1788
  }
1777
- }, this.ib = function () {
1789
+ }, this.jb = function () {
1778
1790
  if (r.nav.top.className !== r.K("_main")) {
1779
1791
  r.nav.top.className = r.K("_main");
1780
1792
  var e = r.nav.corner;
@@ -1785,16 +1797,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1785
1797
  }, this.update = function (e) {
1786
1798
  if (r.O)
1787
1799
  throw new DayPilot.Exception("You are trying to update a DayPilot.Calendar instance that has been disposed.");
1788
- r.jb(e), r.hb();
1789
- }, this.hb = function (e) {
1790
- if (this.Ba) {
1800
+ r.kb(e), r.ib();
1801
+ }, this.ib = function (e) {
1802
+ if (this.Ca) {
1791
1803
  var e = e || {}, t = !e.eventsOnly;
1792
- 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.db()), r.ea(), r.fa(), r.ka(), r.clearSelection(), this.visible ? this.show() : this.hide();
1804
+ r.lb(), r.W(), r.nav.top.style.cursor = "auto", t && (r.ea(), r.ha(), r.ia(), r.ja(), r.ka(), r.Xa(), r.gb(), r.jb(), r.eb()), r.fa(), r.ga(), r.la(), r.clearSelection(), this.visible ? this.show() : this.hide();
1793
1805
  }
1794
- }, this.lb = null, this.jb = function (e) {
1806
+ }, this.mb = null, this.kb = function (e) {
1795
1807
  if (e) {
1796
1808
  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; } } };
1797
- this.lb = t;
1809
+ this.mb = t;
1798
1810
  for (var i in e)
1799
1811
  if (t[i]) {
1800
1812
  var a = t[i];
@@ -1803,13 +1815,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1803
1815
  else
1804
1816
  r[i] = e[i];
1805
1817
  }
1806
- }, this.mb = function () {
1807
- var e = this.lb;
1818
+ }, this.nb = function () {
1819
+ var e = this.mb;
1808
1820
  for (var t in e) {
1809
1821
  var i = e[t];
1810
1822
  i.postInit && i.postInit();
1811
1823
  }
1812
- }, this.nb = function () {
1824
+ }, this.ob = function () {
1813
1825
  if (this.id && this.id.tagName)
1814
1826
  this.nav.top = this.id;
1815
1827
  else {
@@ -1818,8 +1830,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1818
1830
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
1819
1831
  throw "DayPilot.Calendar: The placeholder element not found: '" + e + "'.";
1820
1832
  }
1821
- }, this.ob = {}, this.ob.events = [], this.pb = function (e) {
1822
- var t = this.ob.events, i = this.events.list[e], a = {};
1833
+ }, this.pb = {}, this.pb.events = [], this.qb = function (e) {
1834
+ var t = this.pb.events, i = this.events.list[e], a = {};
1823
1835
  for (var n in i)
1824
1836
  a[n] = i[n];
1825
1837
  if (a.start = new DayPilot.Date(i.start), a.end = new DayPilot.Date(i.end), "function" == typeof this.onBeforeEventRender) {
@@ -1827,9 +1839,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1827
1839
  o.control = r, o.data = a, this.onBeforeEventRender(o);
1828
1840
  }
1829
1841
  t[e] = a;
1830
- }, this.ea = function () {
1842
+ }, this.fa = function () {
1831
1843
  var e = this.events.list;
1832
- if (r.ob.events = [], e) {
1844
+ if (r.pb.events = [], e) {
1833
1845
  if (!DayPilot.isArray(e))
1834
1846
  throw new DayPilot.Exception("DayPilot.Calendar.events.list expects an array object. You supplied: " + typeof e);
1835
1847
  var t = e.length, i = 864e5;
@@ -1849,11 +1861,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1849
1861
  }
1850
1862
  if ("function" == typeof this.onBeforeEventRender)
1851
1863
  for (var n = 0; n < t; n++)
1852
- this.pb(n);
1853
- for (var n = 0; n < this.va.length; n++) {
1864
+ this.qb(n);
1865
+ for (var n = 0; n < this.wa.length; n++) {
1854
1866
  var l = {};
1855
1867
  l.minEnd = 1e6, l.maxStart = -1, this.scrollLabels.push(l);
1856
- var d = this.va[n];
1868
+ var d = this.wa[n];
1857
1869
  d.events = [], d.lines = [], d.blocks = [];
1858
1870
  for (var c = new DayPilot.Date(d.start), u = c.getTime(), h = c.addTime(i), f = h.getTime(), m = 0; m < t; m++)
1859
1871
  if (!a[m]) {
@@ -1869,21 +1881,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1869
1881
  var k = x.boxBottom;
1870
1882
  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);
1871
1883
  var p = D.part.top, v = D.part.top + D.part.height;
1872
- 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.ob.events[m]), D.part.start.getTime() === y && D.part.end.getTime() === g && (a[m] = !0);
1884
+ 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);
1873
1885
  }
1874
1886
  }
1875
1887
  }
1876
1888
  }
1877
- for (var n = 0; n < this.va.length; n++) {
1878
- var d = this.va[n];
1879
- d.events.sort(this.qb);
1889
+ for (var n = 0; n < this.wa.length; n++) {
1890
+ var d = this.wa[n];
1891
+ d.events.sort(this.rb);
1880
1892
  for (var m = 0; m < d.events.length; m++) {
1881
1893
  var o = d.events[m];
1882
1894
  d.putIntoBlock(o);
1883
1895
  }
1884
1896
  for (var m = 0; m < d.blocks.length; m++) {
1885
1897
  var _ = d.blocks[m];
1886
- _.events.sort(this.qb);
1898
+ _.events.sort(this.rb);
1887
1899
  for (var S = 0; S < _.events.length; S++) {
1888
1900
  var o = _.events[S];
1889
1901
  _.putIntoLine(o);
@@ -1891,56 +1903,56 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1891
1903
  }
1892
1904
  }
1893
1905
  }
1894
- }, this.qb = function (e, t) {
1906
+ }, this.rb = function (e, t) {
1895
1907
  if (!(e && t && e.start && t.start))
1896
1908
  return 0;
1897
1909
  var i = e.start().getTime() - t.start().getTime();
1898
1910
  return 0 !== i ? i : t.end().getTime() - e.end().getTime();
1899
1911
  }, 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) {
1900
1912
  t || (t = this.startDate);
1901
- var i = t.getTime(), a = e.getTime(), n = this.cache.pixels[a + "_" + i];
1902
- if (n)
1903
- return n;
1913
+ var i = t.getTime(), a = e.getTime(), n = s.da(), o = this.cache.pixels[a + "_" + i];
1914
+ if (o)
1915
+ return o;
1904
1916
  i = t.getTime();
1905
- var o = 18e5, r = a - i, s = r % o, l = r - s, d = l + o;
1906
- 0 === s && (d = l);
1907
- var c = {};
1908
- return c.cut = !1, c.top = this.rb(r), c.boxTop = this.rb(l), c.boxBottom = this.rb(d), this.cache.pixels[a + "_" + i] = c, c;
1909
- }, this.rb = 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.eb = function () {
1910
- if (r.nav.scroll && r.sb()) {
1917
+ var r = 60 * n * 1e3, l = a - i, d = l % r, c = l - d, u = c + r;
1918
+ 0 === d && (u = c);
1919
+ var h = {};
1920
+ return h.cut = !1, h.top = this.sb(l), h.boxTop = this.sb(c), h.boxBottom = this.sb(u), this.cache.pixels[a + "_" + i] = h, h;
1921
+ }, this.sb = function (e) { return Math.floor(this.cellHeight * e / (6e4 * s.da())); }, this.lb = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.ga = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.ka = function () { var e = this.Pa(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.ta = {}, this.ta.scope = null, this.ta.notify = function () { r.ta.scope && r.ta.scope["$apply"](); }, this.ta.apply = function (e) { e(); }, this.fb = function () {
1922
+ if (r.nav.scroll && r.tb()) {
1911
1923
  var e = r.nav.scroll.scrollTop, t = e / (2 * r.cellHeight);
1912
- r.tb.scrollHour = t;
1924
+ r.ub.scrollHour = t;
1913
1925
  }
1914
- }, this.db = function () { var e = 0; e = "number" == typeof r.tb.scrollHour ? 2 * r.cellHeight * r.tb.scrollHour : "Auto" === r.initScrollPos ? "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0 : this.initScrollPos; var t = r.nav.top; "none" === t.style.display ? (t.style.display = "", r.nav.scroll.scrollTop = e, t.style.display = "none") : r.nav.scroll.scrollTop = e; }, this.getScrollY = function () { return r.nav.scroll.scrollTop; }, this.setScrollY = function (e) { r.nav.scroll.scrollTop = e, r.eb(); }, this.ub = 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.vb = function () { this.kb(), this.da(), this.Na(), this.ga(), this.ha(), this.fb(), this.cb(), this.gb(), t.register(this), this.wb(), this.S("Init"); }, this.tb = {}, this.xb = function () { this.tb.themes = [], this.tb.themes.push(this.theme || this.cssClassPrefix); }, this.yb = function () {
1915
- for (var e = this.tb.themes, t = 0; t < e.length; t++) {
1926
+ }, this.eb = function () { var e = 0, t = 60 / s.da(); e = "number" == typeof r.ub.scrollHour ? t * r.cellHeight * r.ub.scrollHour : "Auto" === r.initScrollPos ? "BusinessHours" === this.heightSpec ? t * this.cellHeight * this.businessBeginsHour : 0 : this.initScrollPos; var i = r.nav.top; "none" === i.style.display ? (i.style.display = "", r.nav.scroll.scrollTop = e, i.style.display = "none") : r.nav.scroll.scrollTop = e; }, this.getScrollY = function () { return r.nav.scroll.scrollTop; }, this.setScrollY = function (e) { r.nav.scroll.scrollTop = e, r.fb(); }, this.vb = 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.gb(); }, this.hide = function () { r.visible = !1, r.nav.top.style.display = "none"; }, this.wb = function () { this.lb(), this.ea(), this.Oa(), this.ha(), this.ia(), this.gb(), this.db(), this.hb(), t.register(this), this.xb(), this.S("Init"); }, this.ub = {}, this.yb = function () { this.ub.themes = [], this.ub.themes.push(this.theme || this.cssClassPrefix); }, this.zb = function () {
1927
+ for (var e = this.ub.themes, t = 0; t < e.length; t++) {
1916
1928
  var i = e[t];
1917
1929
  DayPilot.Util.removeClass(this.nav.top, i + "_main");
1918
1930
  }
1919
- this.tb.themes = [];
1920
- }, this.zb = function () {
1931
+ this.ub.themes = [];
1932
+ }, this.Ab = function () {
1921
1933
  if (this.afterRender(null, !1), "function" == typeof this.onAfterRender) {
1922
1934
  var e = {};
1923
1935
  e.isCallBack = !1, this.onAfterRender(e);
1924
1936
  }
1925
- }, this.Ab = function () {
1926
- if ("function" == typeof this.onInit && !this.Bb) {
1927
- this.Bb = !0;
1937
+ }, this.Bb = function () {
1938
+ if ("function" == typeof this.onInit && !this.Cb) {
1939
+ this.Cb = !0;
1928
1940
  var e = {};
1929
1941
  this.onInit(e);
1930
1942
  }
1931
- }, this.sb = function () { var e = r.nav.top; return !!e && (e.offsetWidth > 0 && e.offsetHeight > 0); }, this.wb = function () { var e = r.sb; 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) {
1932
- var a = r.Ha.Ga;
1943
+ }, this.tb = function () { var e = r.nav.top; return !!e && (e.offsetWidth > 0 && e.offsetHeight > 0); }, this.xb = function () { var e = r.tb; e() || (r.V = setInterval(function () { e() && (r.db(), r.gb(), clearInterval(r.V)); }, 100)); }, this.Sa = function (e, t) { return r.aa.ba() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Ia = {}, this.Ia.Ha = null, this.Ia.Db = function (e, t, i) {
1944
+ var a = r.Ia.Ha;
1933
1945
  if ("function" == typeof a.createVNode && "function" == typeof a.render) {
1934
1946
  var n = a.createVNode(e, i);
1935
1947
  a.render(n, t);
1936
1948
  }
1937
- }, this.Ha.La = function (e, t) {
1938
- var i = r.Ha.Ga;
1949
+ }, this.Ia.Ma = function (e, t) {
1950
+ var i = r.Ia.Ha;
1939
1951
  if ("function" == typeof i.render) {
1940
1952
  var a = e;
1941
1953
  DayPilot.isArray(e) && (a = i.h("div", null, e)), i.render(a, t);
1942
1954
  }
1943
- }, 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.nb(); var e = this.ub(); return this.xb(), e ? void this.vb() : (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.zb(), this.Ab(), this.wb(), this.Ba = !0, this); }, this.Init = this.init, this.jb(n);
1955
+ }, this.Ia.Ka = function (e) { var t = r.Ia.Ha; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = r.kb, this.internal.xssTextHtml = r.Sa, this.internal.enableVue = function (e) { r.Ia.Ha = e; }, this.internal.vueRef = function () { return r.Ia.Ha; }, this.internal.vueRendering = function () { return r.Ia.Ja; }, this.init = function () { this.ob(); var e = this.vb(); return this.yb(), e ? void this.wb() : (this.lb(), this.ea(), this.fa(), this.Oa(), this.ha(), this.ia(), this.t(), this.gb(), this.db(), this.hb(), t.register(this), this.events && (this.ga(), this.la()), this.Ab(), this.Bb(), this.xb(), this.Ca = !0, this); }, this.Init = this.init, this.kb(n);
1944
1956
  }, 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) {
1945
1957
  e.fn.daypilotCalendar = function (e) {
1946
1958
  var t = null, i = this.each(function () {
@@ -1959,7 +1971,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1959
1971
  e && e.directive("daypilotCalendar", ["$parse", function (e) {
1960
1972
  return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) {
1961
1973
  var n = new DayPilot.Calendar(i[0]);
1962
- n.sa.scope = t, n.init();
1974
+ n.ta.scope = t, n.init();
1963
1975
  var o = a["id"];
1964
1976
  o && (t[o] = n);
1965
1977
  var r = a["publishAs"];
@@ -1972,7 +1984,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1972
1984
  l.call(t, d, function (e) {
1973
1985
  for (var t in e)
1974
1986
  n[t] = e[t];
1975
- n.update(), n.Ab();
1987
+ n.update(), n.Bb();
1976
1988
  }, !0), l.call(t, c, function (e) { n.events.list = e, n.update(); }, !0);
1977
1989
  } };
1978
1990
  }]);
@@ -1982,13 +1994,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1982
1994
  var DayPilot = {};
1983
1995
  if (function () {
1984
1996
  "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) {
1985
- this.v = "2024.4.631-lite";
1997
+ this.v = "2025.1.638-lite";
1986
1998
  var t = "navigator_" + (new Date).getTime(), i = this;
1987
1999
  this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () {
1988
2000
  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)
1989
2001
  for (var t in e)
1990
2002
  this[t] = e[t];
1991
- }, 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.sb && (this.sb = !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 () {
2003
+ }, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.Eb(); this.resetTarget && !e ? this.Fb(this.date) : this.resetTarget || (i.date = e); var t = this.C(); return t && t.addEventListener("input", function () { i.date = i.Eb(), 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.Fb(this.date); }, this.Eb = function () {
1992
2004
  var e = this.C();
1993
2005
  if (!e)
1994
2006
  return this.date;
@@ -2001,26 +2013,26 @@ if (function () {
2001
2013
  a = DayPilot.Date.parse(t, i.patterns[n]);
2002
2014
  }
2003
2015
  return a;
2004
- }, this.Eb = function (e) {
2016
+ }, this.Fb = function (e) {
2005
2017
  var t = this.C();
2006
2018
  if (t) {
2007
2019
  var a = e.toString(i.pattern, i.locale);
2008
2020
  "INPUT" === t.tagName ? t.value = a : t.innerHTML = a;
2009
2021
  }
2010
- }, 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.sb; } }), this.show = function () {
2011
- if (!this.sb) {
2022
+ }, 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 () {
2023
+ if (!this.tb) {
2012
2024
  var e = this.C(), a = this.navigator, a = new DayPilot.Navigator(t);
2013
- 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;
2025
+ 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.Gb), 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.Fb(n), i.close(), "function" == typeof i.onTimeRangeSelected && i.onTimeRangeSelected(e)); }, this.navigator = a;
2014
2026
  var n = DayPilot.abs(e), o = e.offsetHeight, r = i.targetAlignment, s = document.createElement("div");
2015
2027
  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);
2016
2028
  var l = document.createElement("div");
2017
2029
  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;
2018
- var d = i.Db() || (new DayPilot.Date).getDatePart();
2019
- if (a.startDate = d, a.Fb = d.getTimePart(), a.selectionDay = d.getDatePart(), a.init(), "right" === r) {
2030
+ var d = i.Eb() || (new DayPilot.Date).getDatePart();
2031
+ if (a.startDate = d, a.Gb = d.getTimePart(), a.selectionDay = d.getDatePart(), a.init(), "right" === r) {
2020
2032
  var c = n.x + e.offsetWidth - a.nav.top.offsetWidth;
2021
2033
  s.style.left = c + "px";
2022
2034
  }
2023
- this.sb = !0, this.onShow && this.onShow();
2035
+ this.tb = !0, this.onShow && this.onShow();
2024
2036
  }
2025
2037
  }, this.prepare(), this.init();
2026
2038
  });
@@ -2032,10 +2044,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2032
2044
  var e = function () { }, t = {};
2033
2045
  t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) {
2034
2046
  var a = this, n = null;
2035
- this.v = "2024.4.631-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) {
2047
+ this.v = "2025.1.638-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.Hb = function () { }, i && DayPilot.isArray(i) && (this.items = i), this.toJSON = function () { return null; }, this.show = function (i, o) {
2036
2048
  o = o || {};
2037
2049
  var r = null;
2038
- 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) {
2050
+ 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.Hb.submenu = null, null !== t.mouse) {
2039
2051
  a.cssOnly || (a.cssOnly = !0);
2040
2052
  var s = null;
2041
2053
  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) {
@@ -2044,15 +2056,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2044
2056
  return;
2045
2057
  }
2046
2058
  var d = document.createElement("div");
2047
- 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)
2059
+ 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.Ib("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)
2048
2060
  throw "No menu items defined.";
2049
2061
  if (this.showMenuTitle) {
2050
2062
  var c = document.createElement("div");
2051
- c.innerHTML = this.menuTitle, c.className = this.Hb("title"), d.appendChild(c);
2063
+ c.innerHTML = this.menuTitle, c.className = this.Ib("title"), d.appendChild(c);
2052
2064
  }
2053
2065
  for (var u = 0; u < this.items.length; u++) {
2054
2066
  var h = this.items[u], f = document.createElement("div");
2055
- 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) {
2067
+ if (DayPilot.Util.addClass(f, this.Ib("item")), h.items && (DayPilot.Util.addClass(f, this.Ib("item_haschildren")), DayPilot.Util.addClass(d, this.Ib("withchildren"))), "undefined" != typeof h && !h.hidden) {
2056
2068
  if ("-" === h.text) {
2057
2069
  var m = document.createElement("div");
2058
2070
  m.addEventListener("click", function (e) { e.stopPropagation(); }), f.appendChild(m);
@@ -2060,7 +2072,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2060
2072
  else {
2061
2073
  var p = document.createElement("a");
2062
2074
  if (p.style.position = "relative", p.style.display = "block", h.cssClass && DayPilot.Util.addClass(p, h.cssClass), h.disabled)
2063
- DayPilot.Util.addClass(p, a.Hb("item_disabled"));
2075
+ DayPilot.Util.addClass(p, a.Ib("item_disabled"));
2064
2076
  else {
2065
2077
  if (h.onclick || h.onClick) {
2066
2078
  p.item = h, p.onclick = function (e, t) {
@@ -2068,7 +2080,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2068
2080
  if ("function" == typeof e.onClick) {
2069
2081
  var a = {};
2070
2082
  if (a.item = e, a.source = t.source, a.originalEvent = i, a.preventDefault = function () { a.preventDefault.value = !0; }, e.onClick(a), a.preventDefault.value)
2071
- return;
2083
+ return void i.stopPropagation();
2072
2084
  }
2073
2085
  e.onclick && e.onclick.call(t, i);
2074
2086
  };
@@ -2076,7 +2088,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2076
2088
  var v = function (e, i) {
2077
2089
  return function (a) {
2078
2090
  a.stopPropagation(), a.preventDefault();
2079
- var n = function () { window.setTimeout(function () { i.source.calendar.internal.touch.active = !1; }, 500); };
2091
+ var n = function () { window.setTimeout(function () { i.source.calendar && (i.source.calendar.internal.touch.active = !1); }, 500); };
2080
2092
  if ("function" == typeof e.onClick) {
2081
2093
  var o = {};
2082
2094
  if (o.item = e, o.source = i.source, o.originalEvent = a, o.preventDefault = function () { o.preventDefault.value = !0; }, e.onClick(o), o.preventDefault.value)
@@ -2085,10 +2097,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2085
2097
  e.onclick && e.onclick.call(i, a), t.menuClean(), n();
2086
2098
  };
2087
2099
  };
2088
- DayPilot.reNonPassive(p, "touchstart", function (e) { e.stopPropagation(), e.preventDefault(), p.source.calendar.internal.touch.active = !0; }), DayPilot.reNonPassive(p, "touchend", v(h, p));
2100
+ DayPilot.reNonPassive(p, "touchstart", function (e) { e.stopPropagation(), e.preventDefault(), p.source.calendar && (p.source.calendar.internal.touch.active = !0); }), DayPilot.reNonPassive(p, "touchend", v(h, p));
2089
2101
  }
2090
2102
  if (h.items && !h.disabled) {
2091
- var y = function (e, t) { return function (i) { i.preventDefault(), i.stopPropagation(), a.Ib(e, t); }; };
2103
+ var y = function (e, t) { return function (i) { i.preventDefault(), i.stopPropagation(), a.Jb(e, t); }; };
2092
2104
  p.ontouchend = y(h, p);
2093
2105
  }
2094
2106
  if (h.onclick)
@@ -2124,13 +2136,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2124
2136
  }
2125
2137
  h.items && p.addEventListener("click", function (e) { e.stopPropagation(); }), p.source = s, p.menuSource = i;
2126
2138
  var g = document.createElement("span");
2127
- if (g.className = a.Hb("item_text"), g.innerHTML = DayPilot.Util.escapeTextHtml(h.text, h.html), p.appendChild(g), h.image) {
2139
+ if (g.className = a.Ib("item_text"), g.innerHTML = DayPilot.Util.escapeTextHtml(h.text, h.html), p.appendChild(g), h.image) {
2128
2140
  var b = document.createElement("img");
2129
2141
  b.src = h.image, b.style.position = "absolute", b.style.top = "0px", b.style.left = "0px", p.appendChild(b);
2130
2142
  }
2131
2143
  if (h.icon) {
2132
2144
  var D = document.createElement("span");
2133
- D.className = a.Hb("item_icon");
2145
+ D.className = a.Ib("item_icon");
2134
2146
  var w = document.createElement("i");
2135
2147
  w.className = h.icon, D.appendChild(w), p.appendChild(D);
2136
2148
  }
@@ -2140,7 +2152,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2140
2152
  var P = document.createElementNS(x, "use");
2141
2153
  P.setAttribute("href", h.symbol), C.appendChild(P);
2142
2154
  var k = document.createElement("span");
2143
- k.className = a.Hb("item_symbol"), k.style.position = "absolute", k.style.top = "0px", k.style.left = "0px", k.appendChild(C), p.appendChild(k);
2155
+ k.className = a.Ib("item_symbol"), k.style.position = "absolute", k.style.top = "0px", k.style.left = "0px", k.appendChild(C), p.appendChild(k);
2144
2156
  }
2145
2157
  var _ = function (e, i) {
2146
2158
  return function () {
@@ -2150,7 +2162,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2150
2162
  return;
2151
2163
  clearTimeout(o.timeout), t.waitingSubmenu = null;
2152
2164
  }
2153
- e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = n, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, a.Ib(n, i); }, 300));
2165
+ e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = n, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, a.Jb(n, i); }, 300));
2154
2166
  };
2155
2167
  };
2156
2168
  p.onmouseover = _(h, p), f.appendChild(p);
@@ -2159,10 +2171,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2159
2171
  }
2160
2172
  }
2161
2173
  var S = function (e) { window.setTimeout(function () { t.menuClean(), DayPilot.MenuBar.deactivate(); }, 100); };
2162
- 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 = "";
2163
- var M = d.offsetHeight, H = d.offsetWidth;
2174
+ 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.Hb.visible = !0, a.Hb.source = i, d.style.display = "";
2175
+ var M = d.offsetHeight, A = d.offsetWidth;
2164
2176
  d.style.display = "none";
2165
- var A = document.documentElement.clientHeight, T = window.innerWidth, E = "number" == typeof o.windowMargin ? o.windowMargin : 5;
2177
+ var T = document.documentElement.clientHeight, H = window.innerWidth, E = "number" == typeof o.windowMargin ? o.windowMargin : 5;
2166
2178
  if (function () {
2167
2179
  var e = o.initiator;
2168
2180
  if (e) {
@@ -2173,37 +2185,41 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2173
2185
  }
2174
2186
  }
2175
2187
  }(), function () {
2176
- var e = "number" == typeof o.x ? o.x : t.mouse.x + 1, i = "number" == typeof o.y ? o.y : t.mouse.y + 1, a = document.body.scrollTop || document.documentElement.scrollTop, n = document.body.scrollLeft || document.documentElement.scrollLeft;
2177
- if (i - a > A - M && 0 !== A) {
2178
- var r = i - a - (A - M) + E;
2179
- d.style.top = i - r + "px";
2188
+ var e = "number" == typeof o.x ? o.x : t.mouse.x + 1, i = "number" == typeof o.y ? o.y : t.mouse.y + 1, n = document.body.scrollTop || document.documentElement.scrollTop, r = document.body.scrollLeft || document.documentElement.scrollLeft, s = 0, l = 0;
2189
+ if (i - n > T - M && 0 !== T) {
2190
+ s = i - (i - n - (T - M) + E);
2180
2191
  }
2181
2192
  else
2182
- d.style.top = i + "px";
2183
- if ("right" === o.align && (e -= H), e - n > T - H && 0 !== T) {
2184
- var s = e - n - (T - H) + E;
2185
- d.style.left = e - s + "px";
2193
+ s = i;
2194
+ if (a.Hb.y = s, d.style.top = s + "px", "right" === o.align && (e -= A), e - r > H - A && 0 !== H) {
2195
+ l = e - (e - r - (H - A) + E);
2186
2196
  }
2187
2197
  else
2188
- d.style.left = e + "px";
2198
+ l = e;
2199
+ a.Hb.x = l, d.style.left = l + "px";
2189
2200
  }(), o.parentLink) {
2190
- 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;
2191
- B + H > T && (B = Math.max(0, R.x - H));
2192
- var O = document.body.scrollTop + document.documentElement.scrollTop;
2193
- z + M - O > A && (z = Math.max(0, A - M + O)), d.style.left = B + "px", d.style.top = z + "px";
2201
+ var I = o.parentLink, N = parseInt(new DayPilot.StyleReader(d).get("border-top-width")), R = DayPilot.abs(o.parentLink.parentNode), O = R.x + I.offsetWidth, z = R.y - N;
2202
+ O + A > H && (O = Math.max(0, R.x - A));
2203
+ var B = document.body.scrollTop + document.documentElement.scrollTop;
2204
+ z + M - B > T && (z = Math.max(0, T - M + B)), d.style.left = O + "px", d.style.top = z + "px";
2194
2205
  }
2195
- d.style.display = "", this.addShadow(d), this.Gb.div = d, o.submenu || (DayPilot.Menu.active = this);
2206
+ d.style.display = "", this.addShadow(d), this.Hb.div = d, o.submenu || (DayPilot.Menu.active = this);
2207
+ }
2208
+ }, this.update = function () {
2209
+ if (a.Hb.visible) {
2210
+ var e = a.Hb.source;
2211
+ a.hide(), a.show(e, { "x": a.Hb.x, "y": a.Hb.y });
2196
2212
  }
2197
- }, this.Ib = function (e, t) {
2213
+ }, this.Jb = function (e, t) {
2198
2214
  var i = e, n = t.source;
2199
- 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)) {
2215
+ if ((!a.Hb.submenu || a.Hb.submenu.item !== e) && (a.Hb.submenu && a.Hb.submenu.item !== e && (DayPilot.Util.removeClass(a.Hb.submenu.link.parentNode, a.Ib("item_haschildren_active")), a.Hb.submenu.menu.hide(), a.Hb.submenu = null), e.items)) {
2200
2216
  var o = a.cloneOptions();
2201
- 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"));
2217
+ o.items = e.items, a.Hb.submenu = {}, a.Hb.submenu.menu = new DayPilot.Menu(o), a.Hb.submenu.menu.Kb = a, a.Hb.submenu.menu.show(n, { "submenu": !0, "parentLink": t, "parentItem": i }), a.Hb.submenu.item = e, a.Hb.submenu.link = t, DayPilot.Util.addClass(t.parentNode, a.Ib("item_haschildren_active"));
2202
2218
  }
2203
- }, 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) {
2204
- e = e || {}, this.Gb.submenu && this.Gb.submenu.menu.hide();
2219
+ }, this.Ib = 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) {
2220
+ e = e || {}, this.Hb.submenu && this.Hb.submenu.menu.hide();
2205
2221
  var i = t.waitingSubmenu;
2206
- 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) {
2222
+ if (i && (t.waitingSubmenu = null, clearTimeout(i.timeout)), this.removeShadow(), this.Hb.div && this.Hb.div.parentNode === document.body && document.body.removeChild(this.Hb.div), n && (DayPilot.de(n), n = null), a.Hb.visible = !1, a.Hb.source = null, a.Kb && e.hideParent && a.Kb.hide(e), DayPilot.Menu.active === a && (DayPilot.Menu.active = null), "function" == typeof this.onHide) {
2207
2223
  var o = {};
2208
2224
  this.onHide(o);
2209
2225
  }
@@ -2214,31 +2230,31 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2214
2230
  this[r] = o[r];
2215
2231
  }, DayPilot.MenuBar = function (e, t) {
2216
2232
  var i = this;
2217
- 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;
2233
+ t = t || {}, this.items = [], this.theme = "menubar_default", this.windowMargin = 0, this.nav = {}, this.elements = {}, this.elements.items = DayPilot.list(), this.k = null, this.Ca = !1;
2218
2234
  for (var a in t)
2219
2235
  this[a] = t[a];
2220
- this.Kb = function (e) { return this.theme + "_" + e; }, this.t = function () {
2236
+ this.Lb = function (e) { return this.theme + "_" + e; }, this.t = function () {
2221
2237
  this.nav.top = document.getElementById(e);
2222
2238
  var t = this.nav.top;
2223
- t.className = this.Kb("main"), DayPilot.list(i.items).forEach(function (e) {
2239
+ t.className = this.Lb("main"), DayPilot.list(i.items).forEach(function (e) {
2224
2240
  var a = document.createElement("span");
2225
- 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) {
2241
+ a.innerHTML = DayPilot.Util.escapeTextHtml(e.text, e.html), a.className = i.Lb("item"), e.cssClass && a.classList.add(e.cssClass), a.data = e, a.onclick = function (t) {
2226
2242
  if (i.active && i.active.item === e)
2227
- i.Lb();
2243
+ i.Mb();
2228
2244
  else if (e.children)
2229
- return void i.Mb(a);
2245
+ return void i.Nb(a);
2230
2246
  if ("function" == typeof e.onClick) {
2231
2247
  var n = {};
2232
2248
  n.item = e, n.originalEvent = t, e.onClick(n);
2233
2249
  }
2234
- }, 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);
2250
+ }, a.onmousedown = function (e) { e.stopPropagation(); }, a.onmouseover = function () { i.active && i.active.item !== e && i.Nb(a); }, t.appendChild(a), i.elements.items.push(a);
2235
2251
  });
2236
- }, 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) {
2237
- if (!i.Nb(e)) {
2238
- i.Lb();
2252
+ }, this.Mb = function () { var e = i.Lb("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.Ob = function (e) { return !!i.active && i.active.item === e.data; }, this.Nb = function (e) {
2253
+ if (!i.Ob(e)) {
2254
+ i.Mb();
2239
2255
  var t = e.data, a = i.active = {};
2240
2256
  a.item = t, a.div = e;
2241
- var n = i.Kb("item_active");
2257
+ var n = i.Lb("item_active");
2242
2258
  DayPilot.Util.addClass(e, n);
2243
2259
  var o = DayPilot.abs(e);
2244
2260
  if (t.children) {
@@ -2248,8 +2264,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2248
2264
  }
2249
2265
  DayPilot.MenuBar.active = i;
2250
2266
  }
2251
- }, this.init = function () { return this.t(), this.Ba = !0, this; }, this.dispose = function () { this.Ba && (this.nav.top.innerHTML = "", this.elements.items = []); };
2252
- }, 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) {
2267
+ }, this.init = function () { return this.t(), this.Ca = !0, this; }, this.dispose = function () { this.Ca && (this.nav.top.innerHTML = "", this.elements.items = []); };
2268
+ }, DayPilot.MenuBar.deactivate = function () { DayPilot.MenuBar.active && (DayPilot.MenuBar.active.Mb(), 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) {
2253
2269
  if (!e || !e.touches)
2254
2270
  return null;
2255
2271
  var t = e.touches[0], i = {};
@@ -2258,7 +2274,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2258
2274
  if (e = e || {}, e.calendar) {
2259
2275
  var i = DayPilot.Menu.active;
2260
2276
  if (i) {
2261
- var a = i.Gb.source;
2277
+ var a = i.Hb.source;
2262
2278
  a && a.calendar === e.calendar && t.menuClean();
2263
2279
  }
2264
2280
  }
@@ -2306,7 +2322,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2306
2322
  var e = this.list[this.list.length - 1];
2307
2323
  e && e.stretch();
2308
2324
  }
2309
- }, DayPilot.ModalStatic.last = function () { var e = DayPilot.ModalStatic.list; return e.length > 0 ? e[e.length - 1] : null; };
2325
+ }, DayPilot.ModalStatic.last = function () {
2326
+ var e = DayPilot.ModalStatic.list;
2327
+ return e.length > 0 ? e[e.length - 1] : null;
2328
+ };
2310
2329
  var i = function () {
2311
2330
  if ("undefined" == typeof window) {
2312
2331
  var e = {};
@@ -2335,32 +2354,32 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2335
2354
  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) {
2336
2355
  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;
2337
2356
  var t = this;
2338
- this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.Ob = !1, this.Pb = null, this.Qb = null, this.showHtml = function (e) {
2357
+ this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.Pb = !1, this.Qb = null, this.Rb = null, this.showHtml = function (e) {
2339
2358
  if (DayPilot.ModalStatic.displayed(this))
2340
2359
  throw "This modal dialog is already displayed.";
2341
- if (this.div || this.Rb(), this.hb(), this.useIframe) {
2360
+ if (this.div || this.Sb(), this.ib(), this.useIframe) {
2342
2361
  var t = function (e, t) { return function () { e.setInnerHTML(e.id + "iframe", t); }; };
2343
2362
  window.setTimeout(t(this, e), 0);
2344
2363
  }
2345
2364
  else
2346
2365
  e.nodeType ? this.div.appendChild(e) : this.div.innerHTML = e;
2347
- this.hb(), this.Sb(), this.Tb();
2366
+ this.ib(), this.Tb(), this.Ub();
2348
2367
  }, this.showUrl = function (e) {
2349
2368
  if (DayPilot.ModalStatic.displayed(this))
2350
2369
  throw "This modal dialog is already displayed.";
2351
2370
  if (this.useIframe) {
2352
- this.div || this.Rb();
2371
+ this.div || this.Sb();
2353
2372
  var i = this.loadingHtml;
2354
- 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();
2373
+ i && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", i)), this.re(this.iframe, "load", this.Vb), this.iframe.src = e, this.ib(), this.Tb(), this.Ub();
2355
2374
  }
2356
2375
  else
2357
- 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"); } });
2358
- }, this.Tb = function () {
2376
+ t.Wb({ "url": e, "success": function (e) { var i = e.request.responseText; t.showHtml(i); }, "error": function (e) { t.showHtml("Error loading the modal dialog"); } });
2377
+ }, this.Ub = function () {
2359
2378
  if ("function" == typeof t.onShow) {
2360
2379
  var e = {};
2361
- e.root = t.Wb(), e.modal = t, t.onShow(e);
2380
+ e.root = t.Xb(), e.modal = t, t.onShow(e);
2362
2381
  }
2363
- }, this.Wb = function () { return t.iframe ? t.iframe.contentWindow.document : t.div; }, this.Vb = function (e) {
2382
+ }, this.Xb = function () { return t.iframe ? t.iframe.contentWindow.document : t.div; }, this.Wb = function (e) {
2364
2383
  var t = new XMLHttpRequest;
2365
2384
  if (t) {
2366
2385
  var i = e.method || "GET", a = e.success || function () { }, n = e.error || function () { }, o = e.data, r = e.url;
@@ -2378,30 +2397,30 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2378
2397
  window.console && console.log("HTTP error " + t.status);
2379
2398
  }, 4 !== t.readyState && ("object" == typeof o && (o = JSON.stringify(o)), t.send(o));
2380
2399
  }
2381
- }, 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 () {
2382
- var e = function () { return t.Xb().y; }, i = function () { return t.Xb().x; };
2400
+ }, this.ib = 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.Zb(), DayPilot.ModalStatic.remove(this), DayPilot.ModalStatic.list.push(this); }, this.Vb = function () { t.iframe.contentWindow.modal = t, t.autoStretch && t.stretch(); }, this.stretch = function () {
2401
+ var e = function () { return t.Yb().y; }, i = function () { return t.Yb().x; };
2383
2402
  if (this.useIframe) {
2384
- for (var a = i() - 40, n = this.width; n < a && this.Zb(); n += 10)
2403
+ for (var a = i() - 40, n = this.width; n < a && this.$b(); n += 10)
2385
2404
  this.div.style.width = n + "px", this.div.style.marginLeft = "-" + Math.floor(n / 2) + "px";
2386
- for (var o = this.maxHeight || e() - 2 * this.top, r = this.height; r < o && this.$b(); r += 10)
2405
+ for (var o = this.maxHeight || e() - 2 * this.top, r = this.height; r < o && this._b(); r += 10)
2387
2406
  this.iframe.style.height = r + "px", this.div.style.height = r + "px";
2388
- this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.Ub);
2407
+ this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.Vb);
2389
2408
  }
2390
2409
  else
2391
2410
  this.div.style.height = "";
2392
- }, this.Zb = function () {
2411
+ }, this.$b = function () {
2393
2412
  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++) {
2394
2413
  var o = a[n].offsetLeft + a[n].offsetWidth;
2395
2414
  i = Math.max(i, o);
2396
2415
  }
2397
2416
  return i > t.clientWidth;
2398
- }, this.$b = function () {
2417
+ }, this._b = function () {
2399
2418
  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++) {
2400
2419
  var o = a[n].offsetTop + a[n].offsetHeight;
2401
2420
  i = Math.max(i, o);
2402
2421
  }
2403
2422
  return i > t.clientHeight;
2404
- }, this.Xb = function () {
2423
+ }, this.Yb = function () {
2405
2424
  var e = document;
2406
2425
  if ("CSS1Compat" === e.compatMode && e.documentElement && e.documentElement.clientWidth) {
2407
2426
  var t = e.documentElement.clientWidth, i = e.documentElement.clientHeight;
@@ -2409,32 +2428,32 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2409
2428
  }
2410
2429
  var t = e.body.clientWidth, i = e.body.clientHeight;
2411
2430
  return { x: t, y: i };
2412
- }, 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) {
2413
- if (t.Qb) {
2414
- var e = e || window.event, i = t.mc(e), a = i.x - t.Qb.x, n = i.y - t.Qb.y;
2415
- t.div.style.marginLeft = "0px", t.div.style.top = t.Pb.y + n + "px", t.div.style.left = t.Pb.x + a + "px";
2431
+ }, this.Tb = function () { this.Pb || (this.re(window, "resize", this.bc), this.re(window, "scroll", this.cc), this.dragDrop && (this.re(document, "mousemove", this.dc), this.re(document, "mouseup", this.ec)), this.Pb = !0); }, this.fc = function () { this.ue(window, "resize", this.bc), this.ue(window, "scroll", this.cc), this.dragDrop && (this.ue(document, "mousemove", this.dc), this.ue(document, "mouseup", this.ec)), this.Pb = !1; }, this.gc = function (e) { e.target === t.div && (e.preventDefault(), t.div.style.cursor = "move", t.hc(), t.Rb = t.mc(e || window.event), t.Qb = { x: t.div.offsetLeft, y: t.div.offsetTop }); }, this.dc = function (e) {
2432
+ if (t.Rb) {
2433
+ var e = e || window.event, i = t.mc(e), a = i.x - t.Rb.x, n = i.y - t.Rb.y;
2434
+ t.div.style.marginLeft = "0px", t.div.style.top = t.Qb.y + n + "px", t.div.style.left = t.Qb.x + a + "px";
2416
2435
  }
2417
- }, this.dc = function (e) { t.Qb && (t.hc(), t.div.style.cursor = null, t.Qb = null); }, this.gc = function () {
2436
+ }, this.ec = function (e) { t.Rb && (t.ic(), t.div.style.cursor = null, t.Rb = null); }, this.hc = function () {
2418
2437
  if (this.useIframe) {
2419
2438
  var e = document.createElement("div");
2420
2439
  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;
2421
2440
  }
2422
- }, 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 () {
2441
+ }, this.ic = function () { this.useIframe && (this.div.removeChild(this.mask), this.mask = null); }, this.bc = function () { t.jc(), t.Zb(); }, this.cc = function () { t.jc(); }, this.Zb = function () {
2423
2442
  if (!t.left && t.div) {
2424
2443
  var e = t.div.offsetWidth;
2425
2444
  t.div.style.marginLeft = "-" + Math.floor(e / 2) + "px";
2426
2445
  }
2427
- }, this.ic = function () {
2446
+ }, this.jc = function () {
2428
2447
  if (t.hideDiv && t.div && "none" !== t.hideDiv.style.display && "none" !== t.div.style.display) {
2429
- var e = t.jc.scrollY();
2448
+ var e = t.kc.scrollY();
2430
2449
  t.scrollWithPage || (t.div.style.top = e + t.top + "px");
2431
2450
  }
2432
- }, 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) {
2451
+ }, this.kc = {}, this.kc.container = function () { return t.container || document.body; }, this.kc.scrollY = function () { var e = t.kc.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) {
2433
2452
  for (var t = { x: e.offsetLeft, y: e.offsetTop }; e.offsetParent;)
2434
2453
  e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop;
2435
2454
  return t;
2436
- }, 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 () {
2437
- for (var e = t.Wb(), i = e.querySelectorAll("input, textarea, select"), a = {}, n = 0; n < i.length; n++) {
2455
+ }, this.Sb = function () { var e = t.kc.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.gc), 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.lc || (t.stretch(), t.lc = !0)); }, this.close = function (e) { this.result = e, this.hide(); }, this.closeSerialized = function () {
2456
+ for (var e = t.Xb(), i = e.querySelectorAll("input, textarea, select"), a = {}, n = 0; n < i.length; n++) {
2438
2457
  var o = i[n], r = o.name;
2439
2458
  if (r) {
2440
2459
  var s = o.value;
@@ -2442,11 +2461,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2442
2461
  }
2443
2462
  }
2444
2463
  t.close(a);
2445
- }, 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 () {
2464
+ }, 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.fc(), t.nc(t.div), t.nc(t.hideDiv), t.div = null, t.hideDiv = null, t.iframe = null)); }, this.nc = function (e) { e && e.parentNode && e.parentNode.removeChild(e); }, this.oc = function () {
2446
2465
  if (e)
2447
2466
  for (var t in e)
2448
2467
  this[t] = e[t];
2449
- }, this.nc();
2468
+ }, this.oc();
2450
2469
  }, 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) {
2451
2470
  "object" == typeof t && (i = t, t = ""), i = i || {}, i.height = i.height || 40, i.useIframe = !1;
2452
2471
  var a = i.okText || "OK", n = i.cancelText || "Cancel", o = t || "";
@@ -2558,11 +2577,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2558
2577
  t.stretch();
2559
2578
  }, 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)); });
2560
2579
  var r = function (e) {
2561
- 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 || {};
2580
+ this.form = [], this.data = {}, this.theme = "form_default", this.zIndex = 99999, this.locale = "en-us", this.plugins = {}, this.onKey = null, this.pc = [], this.qc = null, this.canceling = !1, this.rc = [], this.f = [], this.sc = null, e = e || {};
2562
2581
  for (var t in e)
2563
2582
  this[t] = e[t];
2564
2583
  };
2565
- 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) {
2584
+ r.prototype.create = function () { return this.load(), this.render(), this.sc; }, r.prototype.render = function () { var e = this; this.sc = document.createElement("div"), this.pc.forEach(function (t) { e.createView(t); }), this.applyState(); }, r.prototype.createView = function (e) {
2566
2585
  var t = this.theme, i = this, a = document.createElement("div");
2567
2586
  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) {
2568
2587
  var n = document.createElement("div");
@@ -2570,25 +2589,26 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2570
2589
  }
2571
2590
  var o = this.createInteractive(e);
2572
2591
  o.onInput = function (e) {
2573
- if (e = e || {}, i.sc(o, { "debounce": !e.immediate }), "function" == typeof i.onChange) {
2592
+ if (e = e || {}, i.tc(o, { "debounce": !e.immediate }), "function" == typeof i.onChange) {
2574
2593
  var t = {};
2575
2594
  t.result = i.serialize(), i.onChange(t);
2576
2595
  }
2577
- }, 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);
2578
- }, 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) {
2579
- 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); }
2596
+ }, o.onBlur = function () { i.canceling || i.tc(o); }, o.apply(e), o.sc = a, o.row = e, o.element && a.appendChild(o.element), this.f.push(o), this.sc.appendChild(a);
2597
+ }, r.prototype.validate = function () { var e = this, t = !0; return this.f.forEach(function (i) { var a = e.tc(i); t = t && a; }), t; }, r.prototype.tc = function (e, t) {
2598
+ function i() { e.uc && (e.uc.remove(), e.uc = null), e.sc.classList.add(u); var t = document.createElement("div"); t.classList.add(h), t.innerText = c.message, e.uc = t, e.sc.appendChild(t); }
2580
2599
  t = t || {};
2581
2600
  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;
2582
2601
  if (d) {
2583
2602
  var c = {};
2584
- c.valid = !0, c.value = e.save()[o.field], c.message = "Error", c.values = this.serialize(), c.result = this.serialize(), d(c);
2603
+ c.valid = !0, c.value = e.save()[o.field], c.message = "Error",
2604
+ c.values = this.serialize(), c.result = this.serialize(), d(c);
2585
2605
  var u = this.theme + "_form_item_invalid", h = this.theme + "_form_item_invalid_message";
2586
2606
  if (c.valid)
2587
- clearTimeout(this.qc[o.field]), e.tc && (e.tc.remove(), e.tc = null), e.rc.classList.remove(u);
2607
+ clearTimeout(this.rc[o.field]), e.uc && (e.uc.remove(), e.uc = null), e.sc.classList.remove(u);
2588
2608
  else if (!n)
2589
2609
  if (a) {
2590
2610
  var f = 1e3;
2591
- clearTimeout(this.qc[o.field]), this.qc[o.field] = setTimeout(function () { i(); }, f);
2611
+ clearTimeout(this.rc[o.field]), this.rc[o.field] = setTimeout(function () { i(); }, f);
2592
2612
  }
2593
2613
  else
2594
2614
  i();
@@ -2608,34 +2628,34 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2608
2628
  }
2609
2629
  for (var n in i)
2610
2630
  this.setValue(n, i[n]);
2611
- }, 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) {
2631
+ }, r.prototype.setValue = function (e, t) { this.pc.forEach(function (i) { i.applyValue(e, t); }); }, r.prototype.updateDependentState = function () { var e = this, t = [!0]; (this.qc ? this.qc : this.pc).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) {
2612
2632
  var i = this, a = this.getFieldType(e), n = [];
2613
2633
  if ("radio" === a) {
2614
2634
  if (e.name) {
2615
2635
  var o = new s;
2616
- 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);
2636
+ o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, i.pc.push(o), n.push(o);
2617
2637
  }
2618
- 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.oc.push(r), n.push(r), o.children && o.children.forEach(function (e) { var a = i.processFormItem(e, t + 1); n = n.concat(a); }); });
2638
+ 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.pc.push(r), n.push(r), o.children && o.children.forEach(function (e) { var a = i.processFormItem(e, t + 1); n = n.concat(a); }); });
2619
2639
  }
2620
2640
  else if ("title" === a) {
2621
2641
  var o = new s;
2622
- 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);
2642
+ o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = e.name, i.pc.push(o), n.push(o);
2623
2643
  }
2624
2644
  else if ("image" === a) {
2625
2645
  var o = new s;
2626
- 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);
2646
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.pc.push(o), n.push(o);
2627
2647
  }
2628
2648
  else if ("html" === a) {
2629
2649
  var o = new s;
2630
- 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);
2650
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.pc.push(o), n.push(o);
2631
2651
  }
2632
2652
  else if ("scrollable" === a) {
2633
2653
  var o = new s;
2634
- 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);
2654
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.pc.push(o), n.push(o);
2635
2655
  }
2636
2656
  else {
2637
2657
  var o = new s;
2638
- 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);
2658
+ o.field = e.id, o.data = e, o.level = t, o.type = a, o.text = e.name, o.children = [], i.pc.push(o), n.push(o);
2639
2659
  }
2640
2660
  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;
2641
2661
  }, r.prototype.doOnKey = function (e) {
@@ -2700,21 +2720,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2700
2720
  }
2701
2721
  i || (e.preventDefault(), e.stopPropagation());
2702
2722
  }, 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;
2703
- }, "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 () {
2723
+ }, "time": function () { return t.vc(e); }, "datetime": function () { return t.wc(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.xc = 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.xc && (t = a.xc); 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 () {
2704
2724
  var i = new l;
2705
2725
  i.apply = function (e) { i.row = e; var t = i.radio; t.checked = e.checked, t.disabled = !e.enabled; };
2706
2726
  var a = document.createElement("label"), n = document.createElement("input");
2707
- 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);
2727
+ n.type = "radio", n.name = e.field, n.xc = 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);
2708
2728
  var o = document.createTextNode(e.text);
2709
2729
  return a.append(o), i.element = a, i.radio = n, i.canFocus = function () { return !1; }, i.focus = function () { i.radio.focus(); }, i.save = function () {
2710
2730
  if (!n.checked)
2711
2731
  return {};
2712
- var t = n.wc, i = {};
2732
+ var t = n.xc, i = {};
2713
2733
  return i[e.field] = t, i;
2714
2734
  }, i;
2715
- }, "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; } };
2735
+ }, "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.xc = 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; } };
2716
2736
  return t.plugins && t.plugins[e.type] ? t.plugins[e.type](e) : i[e.type]();
2717
- }, r.prototype.uc = function (e) {
2737
+ }, r.prototype.vc = function (e) {
2718
2738
  var t = this, i = new l;
2719
2739
  i.apply = function (e) { i.row = e; var t = i.searchable; t.disabled = !e.enabled, t.select(e.value); };
2720
2740
  var a = [], n = e.data.timeInterval || 15;
@@ -2725,7 +2745,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2725
2745
  }
2726
2746
  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();
2727
2747
  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;
2728
- }, r.prototype.vc = function (e) {
2748
+ }, r.prototype.wc = function (e) {
2729
2749
  var t = this, i = new l;
2730
2750
  i.apply = function (e) {
2731
2751
  i.row = e;
@@ -2775,9 +2795,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2775
2795
  return i.searchable = f, f.create();
2776
2796
  }(), o = document.createElement("div");
2777
2797
  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;
2778
- }, 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) {
2779
- var i = this.pc ? this.pc : this.oc, a = i.indexOf(e);
2780
- return this.pc = i.map(function (i) {
2798
+ }, r.prototype.findRowsByField = function (e) { return this.pc.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) {
2799
+ var i = this.qc ? this.qc : this.pc, a = i.indexOf(e);
2800
+ return this.qc = i.map(function (i) {
2781
2801
  if (i !== e)
2782
2802
  return i;
2783
2803
  if (e.propsEqual(t))
@@ -2786,11 +2806,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2786
2806
  for (var n in t)
2787
2807
  a[n] = t[n];
2788
2808
  return a;
2789
- }), this.pc[a];
2790
- }, r.prototype.updateInteractive = function (e) { var t = this.pc.indexOf(e); this.f[t].apply(e); }, r.prototype.applyState = function () {
2809
+ }), this.qc[a];
2810
+ }, r.prototype.updateInteractive = function (e) { var t = this.qc.indexOf(e); this.f[t].apply(e); }, r.prototype.applyState = function () {
2791
2811
  var e = this;
2792
- if (this.updateDependentState(), this.pc) {
2793
- this.pc.filter(function (t, i) { return e.oc[i] !== t; }).forEach(function (t) { e.updateInteractive(t); }), this.oc = this.pc, this.pc = null;
2812
+ if (this.updateDependentState(), this.qc) {
2813
+ this.qc.filter(function (t, i) { return e.pc[i] !== t; }).forEach(function (t) { e.updateInteractive(t); }), this.pc = this.qc, this.qc = null;
2794
2814
  }
2795
2815
  }, 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 () {
2796
2816
  var e = {};
@@ -2813,18 +2833,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2813
2833
  return !0;
2814
2834
  }, 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)); };
2815
2835
  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) {
2816
- 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 || {};
2817
- 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); } } };
2818
- 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()); } });
2836
+ this.data = [], this.name = null, this.theme = "searchable_default", this.yc = !1, this.listZIndex = 1e5, this.onSelect = null, this.zc = null, this.Ac = null, this.Bc = !1, this.Cc = null, this.Dc = null, this.p = [], this.Ec = null, e = e || {};
2837
+ var t = this, i = { "selected": { post: function (e) { "object" == typeof e && e.id ? t.zc = e : "string" != typeof e && "number" != typeof e || t.select(e); } } };
2838
+ Object.defineProperty(this, "selected", { get: function () { return this.zc; } }), Object.defineProperty(this, "disabled", { get: function () { return this.yc; }, set: function (e) { this.yc = e, this.Cc && (this.Cc.disabled = e, e && this.Fc()); } });
2819
2839
  for (var a in e)
2820
2840
  i[a] || (this[a] = e[a]);
2821
2841
  for (var a in e)
2822
2842
  i[a] && i[a].post(e[a]);
2823
2843
  };
2824
- 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 () {
2844
+ d.prototype.select = function (e) { return this.zc = this.data.find(function (t) { return t.id === e; }), this.Gc(!1), this; }, d.prototype.create = function () {
2825
2845
  function e(e) {
2826
2846
  var i = l.strategy;
2827
- "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 = [];
2847
+ "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.Ac = null, l.p = [];
2828
2848
  var n = null;
2829
2849
  l.data.forEach(function (i) {
2830
2850
  var o = i.name || i.id;
@@ -2835,27 +2855,27 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2835
2855
  else if ("startsWith" === e && 0 !== o.toLowerCase().indexOf(m.value.toLowerCase()))
2836
2856
  return;
2837
2857
  var r = document.createElement("div");
2838
- 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);
2839
- }), l.zc || (l.zc = n), t();
2858
+ r.className = l.theme + "_list_item", r.innerText = o, r.item = i, i === l.zc && (l.Ac = r), n || (n = r), r.addEventListener("mousedown", function (e) { a(r), e.preventDefault(); }), r.addEventListener("mousemove", function (e) { l.Ac !== r && (l.Ac = r, t({ dontScroll: !0 })); }), h.appendChild(r), l.p.push(r);
2859
+ }), l.Ac || (l.Ac = n), t();
2840
2860
  }
2841
- 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()); }
2861
+ 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.Ac && (l.Ac.className += " " + l.theme + "_list_item_highlight", t && !i(l.Ac, h) && l.Ac.scrollIntoView()); }
2842
2862
  function i(e, t) { var i = e.getBoundingClientRect(), a = t.getBoundingClientRect(); return i.top >= a.top && i.bottom <= a.bottom; }
2843
- function a(e) { var t = e.item; l.yc = t, l.Fc(!0), o(), r(); }
2844
- function n() { l.Ec(); }
2863
+ function a(e) { var t = e.item; l.zc = t, l.Gc(!0), o(), r(); }
2864
+ function n() { l.Fc(); }
2845
2865
  function o() { l.q(); }
2846
- function r() { l.Ac = !0, m.setAttribute("readonly", "readonly"), m.focus(); }
2847
- function s() { l.Ac = !1, m.removeAttribute("readonly"), m.select(), e("all"); }
2866
+ function r() { l.Bc = !0, m.setAttribute("readonly", "readonly"), m.focus(); }
2867
+ function s() { l.Bc = !1, m.removeAttribute("readonly"), m.select(), e("all"); }
2848
2868
  var l = this, d = this, c = document.createElement("div");
2849
2869
  c.className = this.theme + "_main", c.style.position = "relative";
2850
2870
  var u = document.createElement("div");
2851
- 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()); });
2871
+ 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.Bc ? (l.focus(), s()) : (n(), r()); });
2852
2872
  var h = document.createElement("div");
2853
2873
  h.className = this.theme + "_list", h.style.display = "none", h.style.position = "absolute", h.style.zIndex = this.listZIndex;
2854
2874
  var f = document.createElement("input");
2855
- f.type = "hidden", f.name = this.name, f.searchable = d, this.Dc = f;
2875
+ f.type = "hidden", f.name = this.name, f.searchable = d, this.Ec = f;
2856
2876
  var m = document.createElement("input");
2857
- 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) {
2858
- if (l.Ac) {
2877
+ return m.type = "text", m.className = this.theme + "_input", m.disabled = this.yc, 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) {
2878
+ if (l.Bc) {
2859
2879
  if ("Enter" === e.key)
2860
2880
  return;
2861
2881
  if ("Esc" === e.key || "Escape" === e.key)
@@ -2863,24 +2883,24 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2863
2883
  s();
2864
2884
  }
2865
2885
  if ("ArrowDown" === e.key) {
2866
- var i = d.p.indexOf(d.zc);
2867
- i + 1 < d.p.length && (d.zc = d.p[i + 1]), t();
2886
+ var i = d.p.indexOf(d.Ac);
2887
+ i + 1 < d.p.length && (d.Ac = d.p[i + 1]), t();
2868
2888
  }
2869
2889
  else if ("ArrowUp" === e.key) {
2870
- var i = d.p.indexOf(d.zc);
2871
- i - 1 >= 0 && (d.zc = d.p[i - 1]), t();
2890
+ var i = d.p.indexOf(d.Ac);
2891
+ i - 1 >= 0 && (d.Ac = d.p[i - 1]), t();
2872
2892
  }
2873
2893
  else
2874
- "Enter" === e.key ? l.zc ? (e.stopPropagation(), a(l.zc)) : (e.stopPropagation(), n(), r()) : "Esc" !== e.key && "Escape" !== e.key || (e.stopPropagation(), n(), r());
2875
- }), 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;
2876
- }, 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) {
2877
- 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) {
2894
+ "Enter" === e.key ? l.Ac ? (e.stopPropagation(), a(l.Ac)) : (e.stopPropagation(), n(), r()) : "Esc" !== e.key && "Escape" !== e.key || (e.stopPropagation(), n(), r());
2895
+ }), this.Cc = m, this.Dc = h, this.zc || (this.zc = this.data[0], this.zc && (m.value = this.zc.name)), c.appendChild(m), c.appendChild(u), c.appendChild(f), c.appendChild(h), c;
2896
+ }, d.prototype.Fc = function () { this.q(), this.zc ? this.Cc.value = this.zc.name : (this.Cc.value = "", this.Gc(!0)); }, d.prototype.focus = function () { this.Bc = !0, this.Cc.setAttribute("readonly", "readonly"), this.Cc.focus(), this.Fc(); }, d.prototype.q = function () { this.Dc.style.display = "none"; }, d.prototype.Gc = function (e) {
2897
+ if (this.Ec.value = this.selected ? this.selected.id : null, this.zc ? this.Cc.value = this.zc.name : this.Cc.value = "", "function" == typeof this.onSelect) {
2878
2898
  var t = { control: this, ui: e };
2879
2899
  this.onSelect(t);
2880
2900
  }
2881
2901
  };
2882
2902
  var c = function (e) {
2883
- 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 || {};
2903
+ this.form = null, this.item = null, this.data = null, this.name = null, this.theme = "edit_table_default", this.onInput = null, this.nav = {}, this.Hc = null, this.pc = [], e = e || {};
2884
2904
  for (var t in e)
2885
2905
  this[t] = e[t];
2886
2906
  };
@@ -2891,11 +2911,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2891
2911
  i.type = "hidden", i.name = e.name, i.table = this, t.appendChild(i);
2892
2912
  var a = document.createElement("div");
2893
2913
  a.className = this.theme + "_table";
2894
- var n = this.Hc();
2914
+ var n = this.Ic();
2895
2915
  a.appendChild(n);
2896
- var o = e.Ic({});
2916
+ var o = e.Jc({});
2897
2917
  o.spacer = !0;
2898
- var r = this.Jc(o);
2918
+ var r = this.Kc(o);
2899
2919
  r.classList.add(e.theme + "_spacer"), a.appendChild(r);
2900
2920
  var s = document.createElement("div");
2901
2921
  s.className = e.theme + "_tbody", a.appendChild(s), t.appendChild(a);
@@ -2909,18 +2929,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2909
2929
  var n = {};
2910
2930
  n.result = e.form.serialize(), n.value = {}, i(n), a = n.value;
2911
2931
  }
2912
- var o = e.Ic(a);
2913
- e.oc.push(o), e.Kc(), e.Lc();
2932
+ var o = e.Jc(a);
2933
+ e.pc.push(o), e.Lc(), e.Mc();
2914
2934
  }
2915
2935
  }), this.nav.plus = c, d.appendChild(c), t.appendChild(d), t;
2916
- }, 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) {
2936
+ }, c.prototype.Ic = 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.Nc = function () { var e = this.item.max || 0; return !!(e && this.pc.length >= e); }, c.prototype.save = function () { var e = this, t = []; return e.pc.forEach(function (e) { var i = {}; e.cells.forEach(function (e) { i[e.id] = e.value; }), t.push(i); }), t; }, c.prototype.load = function (e) {
2917
2937
  if ("[object Array]" !== Object.prototype.toString.call(e))
2918
2938
  throw new Error("Array expected");
2919
- this.data = e, this.Nc(), this.Kc();
2920
- }, 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) {
2939
+ this.data = e, this.Oc(), this.Lc();
2940
+ }, c.prototype.Pc = function () { this.disabled ? this.nav.main.classList.add(this.theme + "_disabled") : this.nav.main.classList.remove(this.theme + "_disabled"), this.Nc() ? this.nav.plus.classList.add(this.theme + "_plus_max") : this.nav.plus.classList.remove(this.theme + "_plus_max"); }, c.prototype.Oc = function () { var e = this; this.pc = [], this.data.forEach(function (t) { var i = e.Jc(t); e.pc.push(i); }); }, c.prototype.Qc = function (e) { var t = this, i = t.pc.indexOf(e); t.pc.splice(i, 1); }, c.prototype.Jc = function (e) {
2921
2941
  var t = this, i = {};
2922
2942
  return i.data = e, i.cells = [], t.item.columns.forEach(function (a) {
2923
- var n = a.id, o = e[n], r = t.Qc(a);
2943
+ var n = a.id, o = e[n], r = t.Rc(a);
2924
2944
  if ("undefined" == typeof o)
2925
2945
  if ("text" === r)
2926
2946
  o = "";
@@ -2933,19 +2953,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2933
2953
  var l = {};
2934
2954
  l.id = n, l.value = o, l.type = r, l.data = a, i.cells.push(l);
2935
2955
  }), i;
2936
- }, c.prototype.Qc = function (e) { var t = e.type; return t || (t = e.options ? "select" : "text"), t; }, c.prototype.Kc = function () {
2956
+ }, c.prototype.Rc = function (e) { var t = e.type; return t || (t = e.options ? "select" : "text"), t; }, c.prototype.Lc = function () {
2937
2957
  var e = this;
2938
- 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) {
2939
- var t = e.Rc();
2958
+ if (this.nav.body.innerHTML = "", this.nav.after.innerHTML = "", this.pc.forEach(function (t) { var i = e.Kc(t); e.nav.body.appendChild(i); }), 0 === this.pc.length) {
2959
+ var t = e.Sc();
2940
2960
  e.nav.after.appendChild(t);
2941
2961
  }
2942
- this.Oc();
2943
- }, c.prototype.Rc = function () { var e = document.createElement("div"); return e.className = this.theme + "_empty", e; }, c.prototype.Jc = function (e) {
2962
+ this.Pc();
2963
+ }, c.prototype.Sc = function () { var e = document.createElement("div"); return e.className = this.theme + "_empty", e; }, c.prototype.Kc = function (e) {
2944
2964
  var t = this, i = document.createElement("div");
2945
2965
  i.className = t.theme + "_row", e.cells.forEach(function (a) {
2946
2966
  var n = document.createElement("div");
2947
2967
  n.className = t.theme + "_cell";
2948
- var o = t.Sc(a);
2968
+ var o = t.Tc(a);
2949
2969
  if (e.spacer) {
2950
2970
  var r = document.createElement("div");
2951
2971
  r.style.height = "0px", r.style.overflow = "hidden", r.appendChild(o), n.appendChild(r);
@@ -2957,22 +2977,22 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2957
2977
  var a = document.createElement("div");
2958
2978
  a.classList.add(t.theme + "_cell"), a.classList.add(t.theme + "_rowaction");
2959
2979
  var n = document.createElement("span");
2960
- 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;
2961
- }, c.prototype.Lc = function () {
2980
+ return n.className = this.theme + "_delete", n.addEventListener("click", function (i) { t.disabled || (t.Qc(e), t.Lc(), t.Mc()); }), e.spacer || a.appendChild(n), i.appendChild(a), i;
2981
+ }, c.prototype.Mc = function () {
2962
2982
  var e = this;
2963
2983
  if ("function" == typeof e.onInput) {
2964
2984
  var t = {};
2965
2985
  e.onInput(t);
2966
2986
  }
2967
- }, c.prototype.Sc = function (e) {
2987
+ }, c.prototype.Tc = function (e) {
2968
2988
  var t = this, i = e.type;
2969
2989
  if ("text" === i || "number" === i) {
2970
2990
  var a = document.createElement("input");
2971
- 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;
2991
+ 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.Mc(); }), a;
2972
2992
  }
2973
2993
  if ("select" === i) {
2974
2994
  var n = document.createElement("select");
2975
- 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;
2995
+ 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.xc = 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.xc && (e.value = a.xc), t.Mc(); }), n;
2976
2996
  }
2977
2997
  throw new Error("Unsupported item type: " + i);
2978
2998
  }, c.prototype.focus = function () { };
@@ -2983,9 +3003,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2983
3003
  if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
2984
3004
  var e = {}, t = DayPilot.Util.isVueVNode;
2985
3005
  e.Month = function (i, a) {
2986
- this.v = "2024.4.631-lite", this.nav = {};
3006
+ this.v = "2025.1.638-lite", this.nav = {};
2987
3007
  var n = this;
2988
- 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.eventBorderRadius = null, this.eventHeight = 25, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.hideUntilInit = !0, this.lineSpace = 1, this.locale = "en-us", this.showToolTip = !0, this.startDate = new DayPilot.Date, this.theme = null, this.visible = !0, this.weekStarts = "Auto", this.width = "100%", this.xssProtection = "Enabled", this.afterRender = function () { }, this.cellHeaderClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.headerClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onCellHeaderClick = null, this.onCellHeaderClicked = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.onBeforeEventRender = null, this.onBeforeCellRender = null, this.cellEvents = [], this.elements = {}, this.elements.events = [], this.cache = {}, this.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) {
3008
+ 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.eventBorderRadius = null, this.eventHeight = 25, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.hideUntilInit = !0, this.lineSpace = 1, this.locale = "en-us", this.showToolTip = !0, this.startDate = new DayPilot.Date, this.theme = null, this.visible = !0, this.weekStarts = "Auto", this.width = "100%", this.xssProtection = "Enabled", this.afterRender = function () { }, this.cellHeaderClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.headerClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onCellHeaderClick = null, this.onCellHeaderClicked = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.onBeforeEventRender = null, this.onBeforeCellRender = null, this.cellEvents = [], this.elements = {}, this.elements.events = [], this.cache = {}, this.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.Uc(), n.fa(), "Full" === e.UpdateType && (n.Vc(), n.Wc()), n.ka(), n.show(), n.la(), 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) {
2989
3009
  var t = null;
2990
3010
  if (e instanceof DayPilot.Event)
2991
3011
  t = e.data;
@@ -2994,7 +3014,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2994
3014
  throw "DayPilot.Month.events.add() expects an object or DayPilot.Event instance.";
2995
3015
  t = e;
2996
3016
  }
2997
- n.events.list || (n.events.list = []), n.events.list.push(t), n.update(), n.sa.notify();
3017
+ n.events.list || (n.events.list = []), n.events.list.push(t), n.update(), n.ta.notify();
2998
3018
  }, this.events.find = function (e) {
2999
3019
  if (!n.events.list)
3000
3020
  return null;
@@ -3022,7 +3042,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3022
3042
  n.events.list.splice(i, 1, e);
3023
3043
  }
3024
3044
  }
3025
- n.update(), n.sa.notify();
3045
+ n.update(), n.ta.notify();
3026
3046
  }, this.events.remove = function (e) {
3027
3047
  var t;
3028
3048
  if (e instanceof DayPilot.Event)
@@ -3036,7 +3056,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3036
3056
  i && (t = i.data);
3037
3057
  }
3038
3058
  var a = DayPilot.indexOf(n.events.list, t);
3039
- n.events.list.splice(a, 1), n.update(), n.sa.notify();
3059
+ n.events.list.splice(a, 1), n.update(), n.ta.notify();
3040
3060
  }, this.events.load = function (e, t, i) {
3041
3061
  var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) {
3042
3062
  var i, o = e.request;
@@ -3051,7 +3071,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3051
3071
  var s = {};
3052
3072
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
3053
3073
  return;
3054
- n.events.list = i, n.Ba && n.update();
3074
+ n.events.list = i, n.Ca && n.update();
3055
3075
  }
3056
3076
  };
3057
3077
  if (n.eventsLoadMethod && "POST" === n.eventsLoadMethod.toUpperCase())
@@ -3060,18 +3080,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3060
3080
  var r = e, s = "start=" + n.visibleStart().toString() + "&end=" + n.visibleEnd().toString();
3061
3081
  r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": a });
3062
3082
  }
3063
- }, 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.qb), 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) {
3064
- if (n.jb(e), this.Ba) {
3083
+ }, 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) {
3084
+ if (n.kb(e), this.Ca) {
3065
3085
  if (n.O)
3066
3086
  throw new DayPilot.Exception("You are trying to update a DayPilot.Month instance that has been disposed.");
3067
3087
  if (this.cells) {
3068
- n.W(), n.Tc(), n.ea(), n.Uc(), n.Vc(), n.ja(), n.t(), n.ka(), this.visible ? this.show() : this.hide();
3088
+ n.W(), n.Uc(), n.fa(), n.Vc(), n.Wc(), n.ka(), n.t(), n.la(), this.visible ? this.show() : this.hide();
3069
3089
  }
3070
3090
  }
3071
- }, this.lb = null, this.jb = function (e) {
3091
+ }, this.mb = null, this.kb = function (e) {
3072
3092
  if (e) {
3073
3093
  var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? n.events.list = e.list : n.events.list = e; } } };
3074
- this.lb = t;
3094
+ this.mb = t;
3075
3095
  for (var i in e)
3076
3096
  if (t[i]) {
3077
3097
  var a = t[i];
@@ -3080,14 +3100,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3080
3100
  else
3081
3101
  n[i] = e[i];
3082
3102
  }
3083
- }, this.mb = function () {
3084
- var e = this.lb;
3103
+ }, this.nb = function () {
3104
+ var e = this.mb;
3085
3105
  for (var t in e) {
3086
3106
  var i = e[t];
3087
3107
  i.postInit && i.postInit();
3088
3108
  }
3089
- }, this.ob = {}, this.ob.events = [], this.pb = function (e) {
3090
- var t = this.ob.events, i = this.events.list[e], a = {};
3109
+ }, this.pb = {}, this.pb.events = [], this.qb = function (e) {
3110
+ var t = this.pb.events, i = this.events.list[e], a = {};
3091
3111
  for (var o in i)
3092
3112
  a[o] = i[o];
3093
3113
  if ("function" == typeof this.onBeforeEventRender) {
@@ -3095,14 +3115,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3095
3115
  r.control = n, r.data = a, this.onBeforeEventRender(r);
3096
3116
  }
3097
3117
  t[e] = a;
3098
- }, this.ea = function () {
3118
+ }, this.fa = function () {
3099
3119
  var e = this.events.list;
3100
3120
  if (e) {
3101
3121
  if (!DayPilot.isArray(e))
3102
3122
  throw new DayPilot.Exception("DayPilot.Month.events.list expects an array object. You supplied: " + typeof e);
3103
3123
  if ("function" == typeof this.onBeforeEventRender)
3104
3124
  for (var t = 0; t < e.length; t++)
3105
- this.pb(t);
3125
+ this.qb(t);
3106
3126
  for (var i = 0; i < e.length; i++) {
3107
3127
  var a = e[i];
3108
3128
  if ("object" != typeof a)
@@ -3115,12 +3135,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3115
3135
  if (!(n.getTime() > o.getTime()))
3116
3136
  for (var t = 0; t < this.rows.length; t++) {
3117
3137
  var r = this.rows[t], s = new DayPilot.Event(a, this);
3118
- r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.ob.events[i]));
3138
+ r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.pb.events[i]));
3119
3139
  }
3120
3140
  }
3121
3141
  for (var l = 0; l < this.rows.length; l++) {
3122
3142
  var r = this.rows[l];
3123
- r.events.sort(this.qb);
3143
+ r.events.sort(this.rb);
3124
3144
  for (var d = 0; d < this.rows[l].events.length; d++) {
3125
3145
  var c = r.events[d], u = r.getStartColumn(c), h = r.getWidth(c);
3126
3146
  r.putIntoLine(c, u, h, l);
@@ -3130,26 +3150,26 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3130
3150
  }, this.W = function () {
3131
3151
  for (var e = 0; e < this.elements.events.length; e++) {
3132
3152
  var t = this.elements.events[e];
3133
- n.Ea(t);
3153
+ n.Fa(t);
3134
3154
  }
3135
3155
  this.elements.events = [];
3136
- }, this.Ea = function (e) {
3156
+ }, this.Fa = function (e) {
3137
3157
  !function () {
3138
3158
  var i = e.domArgs;
3139
3159
  if (e.domArgs = null, i && "function" == typeof n.onBeforeEventDomRemove && n.onBeforeEventDomRemove(i), i && "function" == typeof n.onBeforeEventDomAdd) {
3140
- var a = i && i.Fa;
3160
+ var a = i && i.Ga;
3141
3161
  if (a) {
3142
- n.Ha.Ga && t(i.element) && (n.Ha.Ia = !0, n.Ha.Ja(a), n.Ha.Ia = !1);
3162
+ n.Ia.Ha && t(i.element) && (n.Ia.Ja = !0, n.Ia.Ka(a), n.Ia.Ja = !1);
3143
3163
  }
3144
3164
  }
3145
3165
  }(), e.event = null, e.click = null, e.parentNode.removeChild(e);
3146
- }, this.ka = function () { this.Wc(); }, this.Wc = function () {
3166
+ }, this.la = function () { this.Xc(); }, this.Xc = function () {
3147
3167
  this.elements.events = [];
3148
3168
  for (var e = 0; e < this.rows.length; e++)
3149
3169
  for (var t = this.rows[e], i = 0; i < t.lines.length; i++)
3150
3170
  for (var a = t.lines[i], n = 0; n < a.length; n++)
3151
- this.Ka(a[n]);
3152
- }, this.qb = function (e, t) {
3171
+ this.La(a[n]);
3172
+ }, this.rb = function (e, t) {
3153
3173
  if (!(e && t && e.start && t.start))
3154
3174
  return 0;
3155
3175
  var i = e.start().getTime() - t.start().getTime();
@@ -3187,12 +3207,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3187
3207
  for (var i = this.headerHeight, a = 0; a < e; a++)
3188
3208
  i += this.rows[a].getHeight();
3189
3209
  return i += this.cellHeaderHeight, i += t * this.lineHeight();
3190
- }, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.Ka = function (i) {
3210
+ }, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.La = function (i) {
3191
3211
  var a = i.cache || i.data, o = a.borderRadius || n.eventBorderRadius;
3192
3212
  "number" == typeof o && (o += "px");
3193
3213
  var r = i.part.row, s = i.part.line, l = i.part.colStart, d = i.part.colWidth, c = this.getCellWidth() * l, u = this.getCellWidth() * d, h = this.getEventTop(r, s), f = document.createElement("div");
3194
- f.setAttribute("unselectable", "on"),
3195
- f.style.height = this.eventHeight + "px", f.style.overflow = "hidden", f.className = this.K("_event"), a.cssClass && DayPilot.Util.addClass(f, a.cssClass), i.part.startsHere || DayPilot.Util.addClass(f, this.K("_event_continueleft")), i.part.endsHere || DayPilot.Util.addClass(f, this.K("_event_continueright")), f.event = i, f.style.width = u + "%", f.style.position = "absolute", f.style.left = c + "%", f.style.top = h + "px", this.showToolTip && i.client.toolTip() && (f.title = i.client.toolTip()), f.onclick = n.ra, f.oncontextmenu = n.Xc, f.onmousedown = function (t) {
3214
+ f.setAttribute("unselectable", "on"), f.style.height = this.eventHeight + "px", f.style.overflow = "hidden", f.className = this.K("_event"), a.cssClass && DayPilot.Util.addClass(f, a.cssClass), i.part.startsHere || DayPilot.Util.addClass(f, this.K("_event_continueleft")), i.part.endsHere || DayPilot.Util.addClass(f, this.K("_event_continueright")), f.event = i, f.style.width = u + "%", f.style.position = "absolute", f.style.left = c + "%", f.style.top = h + "px", this.showToolTip && i.client.toolTip() && (f.title = i.client.toolTip()), f.onclick = n.sa, f.oncontextmenu = n.Yc, f.onmousedown = function (t) {
3196
3215
  t = t || window.event;
3197
3216
  var a = t.which || t.button;
3198
3217
  if (t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), 1 === a)
@@ -3229,7 +3248,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3229
3248
  }
3230
3249
  if (i.client.deleteEnabled()) {
3231
3250
  var y = Math.floor(n.eventHeight / 2 - 9), g = document.createElement("div");
3232
- g.style.position = "absolute", g.style.right = "2px", g.style.top = y + "px", g.style.width = "18px", g.style.height = "18px", g.className = n.K("_event_delete"), g.onmousedown = function (e) { e.stopPropagation(); }, g.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && n.ua(t); }, g.style.display = "none", f.deleteIcon = g, f.appendChild(g);
3251
+ g.style.position = "absolute", g.style.right = "2px", g.style.top = y + "px", g.style.width = "18px", g.style.height = "18px", g.className = n.K("_event_delete"), g.onmousedown = function (e) { e.stopPropagation(); }, g.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && n.va(t); }, g.style.display = "none", f.deleteIcon = g, f.appendChild(g);
3233
3252
  }
3234
3253
  var b = a.areas ? DayPilot.Areas.copy(a.areas) : [];
3235
3254
  if (DayPilot.Areas.attach(f, i, { "areas": b }), "function" == typeof n.onAfterEventRender) {
@@ -3241,11 +3260,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3241
3260
  if (e.control = n, e.e = i, e.element = null, f.domArgs = e, "function" == typeof n.onBeforeEventDomAdd && n.onBeforeEventDomAdd(e), e.element) {
3242
3261
  var a = m;
3243
3262
  if (a) {
3244
- e.Fa = a;
3263
+ e.Ga = a;
3245
3264
  if (t(e.element)) {
3246
- if (!n.Ha.Ga)
3265
+ if (!n.Ia.Ha)
3247
3266
  throw new DayPilot.Exception("Can't reach Vue");
3248
- n.Ha.Ia = !0, n.Ha.La(e.element, a, { "style": { "flexGrow": 1 } }), n.Ha.Ia = !1;
3267
+ n.Ia.Ja = !0, n.Ia.Ma(e.element, a, { "style": { "flexGrow": 1 } }), n.Ia.Ja = !1;
3249
3268
  }
3250
3269
  else
3251
3270
  a.appendChild(e.element);
@@ -3254,7 +3273,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3254
3273
  else
3255
3274
  m.innerHTML = i.client.innerHTML();
3256
3275
  }(), this.elements.events.push(f), this.nav.events.appendChild(f);
3257
- }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.Tc = function () {
3276
+ }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.Uc = function () {
3258
3277
  "string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart());
3259
3278
  var e, t = (this.startDate, this.lastVisibleDayOfMonth()), i = DayPilot.DateUtil.daysDiff(this.firstDate, t) + 1;
3260
3279
  e = Math.ceil(i / 7), this.days = 7 * e, this.rows = [];
@@ -3282,7 +3301,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3282
3301
  for (var e = this.headerHeight, t = 0; t < this.rows.length; t++)
3283
3302
  e += this.rows[t].getHeight();
3284
3303
  return e;
3285
- }, 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 () {
3304
+ }, 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.Oa = function () {
3286
3305
  var t = this.nav.top;
3287
3306
  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");
3288
3307
  var i = document.createElement("div");
@@ -3334,7 +3353,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3334
3353
  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);
3335
3354
  }
3336
3355
  };
3337
- }, this.ja = function () {
3356
+ }, this.ka = function () {
3338
3357
  this.nav.top.style.height = this.getHeight() + "px";
3339
3358
  for (var e = 0; e < this.cells.length; e++)
3340
3359
  for (var t = 0; t < this.cells[e].length; t++)
@@ -3354,7 +3373,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3354
3373
  for (var t = DayPilot.DateUtil.daysDiff(this.firstDate, e), i = { x: 0, y: 0 }; t >= 7;)
3355
3374
  i.y++, t -= 7;
3356
3375
  return i.x = t, i;
3357
- }, this.Vc = function () {
3376
+ }, this.Wc = function () {
3358
3377
  var e = document.createElement("div");
3359
3378
  e.oncontextmenu = function () { return !1; }, this.nav.cells.appendChild(e), this.cells = [];
3360
3379
  for (var t = 0; t < this.getColCount(); t++) {
@@ -3366,27 +3385,27 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3366
3385
  var n = document.createElement("div");
3367
3386
  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);
3368
3387
  for (var r = 0; r < this.rows.length; r++)
3369
- this.Yc(t, r, e);
3388
+ this.Zc(t, r, e);
3370
3389
  }
3371
- }, this.Uc = function () {
3390
+ }, this.Vc = function () {
3372
3391
  for (var e = 0; e < this.cells.length; e++)
3373
3392
  for (var t = 0; t < this.cells[e].length; t++) {
3374
3393
  var i = n.cells[e][t];
3375
- n.Ya(i);
3394
+ n.Za(i);
3376
3395
  }
3377
3396
  this.nav.cells.innerHTML = "";
3378
- }, this.Ya = function (e) {
3397
+ }, this.Za = function (e) {
3379
3398
  !function () {
3380
3399
  var i = e.domArgs;
3381
3400
  if (e.domArgs = null, i && "function" == typeof n.onBeforeCellDomRemove && n.onBeforeCellDomRemove(i), i && "function" == typeof n.onBeforeCellDomAdd) {
3382
- var a = i && i.Fa;
3401
+ var a = i && i.Ga;
3383
3402
  if (a) {
3384
- var o = n.Zc.reactDOM && isReactCmp(i.element), r = n.Ha.Ga && (isVueCmp(i.element) || t(i.element));
3385
- o ? n.Zc.$c(a) : r && (n.Ha.Ia = !0, n.Ha.Ja(a), n.Ha.Ia = !1);
3403
+ var o = n.$c.reactDOM && isReactCmp(i.element), r = n.Ia.Ha && (isVueCmp(i.element) || t(i.element));
3404
+ o ? n.$c._c(a) : r && (n.Ia.Ja = !0, n.Ia.Ka(a), n.Ia.Ja = !1);
3386
3405
  }
3387
3406
  }
3388
3407
  }(), e.onclick = null;
3389
- }, this.qa = function () { return 2 === n.api; }, this.Yc = function (i, a, r) {
3408
+ }, this.ra = function () { return 2 === n.api; }, this.Zc = function (i, a, r) {
3390
3409
  var s = this.rows[a], l = this.firstDate.addDays(7 * a + i), d = l.getDay(), c = null;
3391
3410
  c = 1 === d ? o.locale().monthNames[l.getMonth()] + " " + d : "" + d;
3392
3411
  var u = !n.isWeekend(l), h = { "start": l, "end": l.addDays(1), "properties": { "headerHtml": c, "backColor": null, "business": u, "html": null } }, f = {};
@@ -3419,11 +3438,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3419
3438
  if (e.control = n, e.cell = h, e.element = null, p.domArgs = e, "function" == typeof n.onBeforeCellDomAdd && n.onBeforeCellDomAdd(e), e.element) {
3420
3439
  var i = v;
3421
3440
  if (i) {
3422
- e.Fa = i;
3441
+ e.Ga = i;
3423
3442
  if (t(e.element)) {
3424
- if (!n.Ha.Ga)
3443
+ if (!n.Ia.Ha)
3425
3444
  throw new DayPilot.Exception("Can't reach Vue");
3426
- n.Ha.Ia = !0, n.Ha.La(e.element, i), n.Ha.Ia = !1;
3445
+ n.Ia.Ja = !0, n.Ia.Ma(e.element, i), n.Ia.Ja = !1;
3427
3446
  }
3428
3447
  else
3429
3448
  i.appendChild(e.element);
@@ -3441,12 +3460,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3441
3460
  for (var t = this.headerHeight, i = 0; i < e; i++)
3442
3461
  t += this.rows[i].getHeight();
3443
3462
  return t;
3444
- }, 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) {
3463
+ }, 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.sa = 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) {
3445
3464
  var i = e.event;
3446
3465
  if (i && i.client.clickEnabled())
3447
- if (n.qa()) {
3466
+ if (n.ra()) {
3448
3467
  var a = {};
3449
- 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))
3468
+ 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.ta.apply(function () { n.onEventClick(a); }), a.preventDefault.value))
3450
3469
  return;
3451
3470
  switch (n.eventClickHandling) {
3452
3471
  case "CallBack":
@@ -3456,7 +3475,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3456
3475
  var o = i.client.contextMenu();
3457
3476
  o ? o.show(i) : n.contextMenu && n.contextMenu.show(i);
3458
3477
  }
3459
- "function" == typeof n.onEventClicked && n.sa.apply(function () { n.onEventClicked(a); });
3478
+ "function" == typeof n.onEventClicked && n.ta.apply(function () { n.onEventClicked(a); });
3460
3479
  }
3461
3480
  else
3462
3481
  switch (n.eventClickHandling) {
@@ -3465,7 +3484,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3465
3484
  break;
3466
3485
  case "JavaScript": n.onEventClick(i);
3467
3486
  }
3468
- }, this.Xc = function () { var e = this; return n.ta(e.event), !1; }, this.ta = function (e) {
3487
+ }, this.Yc = function () { var e = this; return n.ua(e.event), !1; }, this.ua = function (e) {
3469
3488
  if (this.event = e, !e.client.rightClickEnabled())
3470
3489
  return !1;
3471
3490
  var t = {};
@@ -3477,10 +3496,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3477
3496
  }
3478
3497
  return "function" == typeof n.onEventRightClicked && n.onEventRightClicked(t), !1;
3479
3498
  }
3480
- }, this.ua = function (e) {
3481
- if (n.qa()) {
3499
+ }, this.va = function (e) {
3500
+ if (n.ra()) {
3482
3501
  var t = {};
3483
- 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))
3502
+ if (t.e = e, t.control = n, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventDelete && (n.ta.apply(function () { n.onEventDelete(t); }), t.preventDefault.value))
3484
3503
  return;
3485
3504
  switch (n.eventDeleteHandling) {
3486
3505
  case "CallBack":
@@ -3491,7 +3510,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3491
3510
  break;
3492
3511
  case "Update": n.events.remove(e);
3493
3512
  }
3494
- "function" == typeof n.onEventDeleted && n.sa.apply(function () { n.onEventDeleted(t); });
3513
+ "function" == typeof n.onEventDeleted && n.ta.apply(function () { n.onEventDeleted(t); });
3495
3514
  }
3496
3515
  else
3497
3516
  switch (n.eventDeleteHandling) {
@@ -3516,9 +3535,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3516
3535
  var d = DayPilot.DateUtil.diff(e.end(), l), c = this.getDateFromCell(t, i);
3517
3536
  c = c.addDays(-a);
3518
3537
  var u = DayPilot.DateUtil.daysSpan(e.start(), e.end()) + 1, h = c.addDays(u), f = c.addTime(s), m = h.addTime(d);
3519
- if (n.qa()) {
3538
+ if (n.ra()) {
3520
3539
  var p = {};
3521
- 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))
3540
+ 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.ta.apply(function () { n.onEventMove(p); }), p.preventDefault.value))
3522
3541
  return;
3523
3542
  switch (n.eventMoveHandling) {
3524
3543
  case "CallBack":
@@ -3526,7 +3545,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3526
3545
  break;
3527
3546
  case "Update": e.start(f), e.end(m), n.events.update(e);
3528
3547
  }
3529
- "function" == typeof n.onEventMoved && n.sa.apply(function () { n.onEventMoved(p); });
3548
+ "function" == typeof n.onEventMoved && n.ta.apply(function () { n.onEventMoved(p); });
3530
3549
  }
3531
3550
  else
3532
3551
  switch (n.eventMoveHandling) {
@@ -3546,9 +3565,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3546
3565
  var a = e.start().getTimePart(), o = e.end().getDatePart();
3547
3566
  o.getTime() !== e.end().getTime() && (o = o.addDays(1));
3548
3567
  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);
3549
- if (n.qa()) {
3568
+ if (n.ra()) {
3550
3569
  var u = {};
3551
- 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))
3570
+ 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.ta.apply(function () { n.onEventResize(u); }), u.preventDefault.value))
3552
3571
  return;
3553
3572
  switch (n.eventResizeHandling) {
3554
3573
  case "CallBack":
@@ -3556,7 +3575,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3556
3575
  break;
3557
3576
  case "Update": e.start(d), e.end(c), n.events.update(e);
3558
3577
  }
3559
- "function" == typeof n.onEventResized && n.sa.apply(function () { n.onEventResized(u); });
3578
+ "function" == typeof n.onEventResized && n.ta.apply(function () { n.onEventResized(u); });
3560
3579
  }
3561
3580
  else
3562
3581
  switch (n.eventResizeHandling) {
@@ -3566,14 +3585,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3566
3585
  case "JavaScript": n.onEventResize(e, d, c);
3567
3586
  }
3568
3587
  }, this.timeRangeSelectedCallBack = function (e, t, i) { var a = {}; a.start = e, a.end = t, this.S("TimeRangeSelected", i, a); }, this.M = function (e, t) {
3569
- if (this.qa()) {
3588
+ if (this.ra()) {
3570
3589
  var i = {};
3571
- 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))
3590
+ if (i.control = n, i.start = e, i.end = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.ta.apply(function () { n.onTimeRangeSelect(i); }), i.preventDefault.value))
3572
3591
  return;
3573
3592
  switch (n.timeRangeSelectedHandling) {
3574
3593
  case "CallBack": n.timeRangeSelectedCallBack(e, t);
3575
3594
  }
3576
- "function" == typeof n.onTimeRangeSelected && n.sa.apply(function () { n.onTimeRangeSelected(i); });
3595
+ "function" == typeof n.onTimeRangeSelected && n.ta.apply(function () { n.onTimeRangeSelected(i); });
3577
3596
  }
3578
3597
  else
3579
3598
  switch (n.timeRangeSelectedHandling) {
@@ -3582,9 +3601,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3582
3601
  break;
3583
3602
  case "JavaScript": n.onTimeRangeSelected(e, t);
3584
3603
  }
3585
- }, 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; };
3604
+ }, this.ta = {}, this.ta.scope = null, this.ta.notify = function () { n.ta.scope && n.ta.scope["$apply"](); }, this.ta.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; };
3586
3605
  var o = this.aa;
3587
- 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.nb = function () {
3606
+ 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.Vc(), 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.hb = 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 () {
3588
3607
  if (this.id && this.id.tagName)
3589
3608
  this.nav.top = this.id;
3590
3609
  else {
@@ -3593,19 +3612,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3593
3612
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
3594
3613
  throw "DayPilot.Month: The placeholder element not found: '" + id + "'.";
3595
3614
  }
3596
- }, this.vb = 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) {
3597
- var a = n.Ha.Ga;
3615
+ }, this.wb = function () { this.Uc(), this.Oa(), this.Wc(), this.hb(), this.S("Init"); }, this.Sa = function (e, t) { return n.aa.ba() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Ia = {}, this.Ia.Ha = null, this.Ia.Db = function (e, t, i) {
3616
+ var a = n.Ia.Ha;
3598
3617
  if ("function" == typeof a.createVNode && "function" == typeof a.render) {
3599
3618
  var o = a.createVNode(e, i);
3600
3619
  a.render(o, t);
3601
3620
  }
3602
- }, this.Ha.La = function (e, t, i) {
3603
- var a = n.Ha.Ga;
3621
+ }, this.Ia.Ma = function (e, t, i) {
3622
+ var a = n.Ia.Ha;
3604
3623
  if ("function" == typeof a.render) {
3605
3624
  var o = e;
3606
3625
  DayPilot.isArray(e) && (o = a.h("div", i, e)), a.render(o, t);
3607
3626
  }
3608
- }, 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.nb(), this.loadFromServer() ? void this.vb() : (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);
3627
+ }, this.Ia.Ka = function (e) { var t = n.Ia.Ha; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = this.kb, this.internal.xssTextHtml = n.Sa, this.internal.enableVue = function (e) { n.Ia.Ha = e; }, this.internal.vueRef = function () { return n.Ia.Ha; }, this.internal.vueRendering = function () { return n.Ia.Ja; }, this.init = function () { return this.ob(), this.loadFromServer() ? void this.wb() : (this.Uc(), this.fa(), this.Oa(), this.Wc(), this.t(), this.la(), this.hb(), this.fireAfterRenderDetached(null, !1), this.Ca = !0, this); }, this.Init = this.init, Object.defineProperty(this, "durationBarVisible", { get: function () { return n.eventBarVisible; } }), this.kb(a);
3609
3628
  }, e.gMouseUp = function (t) {
3610
3629
  if (e.movingEvent) {
3611
3630
  var i = e.movingEvent;
@@ -3660,7 +3679,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3660
3679
  e && e.directive("daypilotMonth", ["$parse", function (e) {
3661
3680
  return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) {
3662
3681
  var n = new DayPilot.Month(i[0]);
3663
- n.sa.scope = t, n.init();
3682
+ n.ta.scope = t, n.init();
3664
3683
  var o = a["id"];
3665
3684
  o && (t[o] = n);
3666
3685
  var r = a["publishAs"];
@@ -3686,25 +3705,25 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3686
3705
  if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.def) {
3687
3706
  var e = DayPilot.Util.isVueVNode;
3688
3707
  DayPilot.Navigator = function (t, i) {
3689
- this.v = "2024.4.631-lite";
3708
+ this.v = "2025.1.638-lite";
3690
3709
  var a = this;
3691
- 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.ob = {}, 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 () {
3692
- if (!r.ad())
3710
+ 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.ad = function () { this.root.dp = this, this.root.className = this.K("_main"), "Horizontal" === this.orientation ? (r.bd() || (this.root.style.width = this.showMonths * (7 * r.cellWidth() + this.cd()) + "px"), this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : r.bd() || (this.root.style.width = 7 * r.cellWidth() + this.cd() + "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.ra = function () { return 2 === a.api; }, this.Vc = function () { this.root.innerHTML = ""; }, this.K = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.dd = function (e, t) { var i = this.K("_" + t); DayPilot.Util.addClass(e, i); }, this.ed = function (e, t) { var i = this.K("_" + t); DayPilot.Util.removeClass(e, i); }, this.fd = function () {
3711
+ if (!r.bd())
3693
3712
  return null;
3694
3713
  var e = 7;
3695
3714
  return this.showWeekNumbers && e++, 100 / e;
3696
- }, 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) {
3715
+ }, this.gd = function () { return r.bd() ? null : r.cellWidth(); }, this.hd = function (e) { return "number" != typeof e && (e = 1), r.bd() ? this.fd() * e : this.gd() * e; }, this.jd = function (e) { var t = r.bd() ? "%" : "px"; return this.hd(e) + t; }, this.Wc = function (t, i) {
3697
3716
  var n = {};
3698
3717
  n.cells = [], n.days = [], n.weeks = [];
3699
3718
  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;
3700
3719
  n.rowCount = f;
3701
- var m = (new DayPilot.Date).getDatePart(), p = 7 * r.cellWidth() + this.bd();
3720
+ var m = (new DayPilot.Date).getDatePart(), p = 7 * r.cellWidth() + this.cd();
3702
3721
  n.width = p;
3703
3722
  var v = this.cellHeight * f + this.titleHeight + this.dayHeaderHeight;
3704
3723
  n.height = v;
3705
3724
  var y = document.createElement("div");
3706
- 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)
3707
- 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;
3725
+ if (r.bd() ? "Horizontal" === this.orientation && (y.style.width = 100 / a.showMonths + "%") : y.style.width = p + "px", y.style.height = v + "px", "Horizontal" === this.orientation)
3726
+ y.style.position = "absolute", r.bd() ? (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;
3708
3727
  else {
3709
3728
  y.style.position = "relative";
3710
3729
  var g = t > 0 ? a.months[t - 1].top + a.months[t - 1].height : 0;
@@ -3712,12 +3731,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3712
3731
  }
3713
3732
  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);
3714
3733
  var b = this.titleHeight + this.dayHeaderHeight, D = document.createElement("div");
3715
- 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;
3734
+ D.style.position = "absolute", D.style.left = "0px", D.style.right = "0px", D.style.top = "0px", D.style.width = a.jd(), 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.kd), y.appendChild(D), this.tl = D;
3716
3735
  var w = document.createElement("div");
3717
- 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;
3736
+ w.style.position = "absolute", w.style.left = a.jd(), w.style.top = "0px", w.style.width = a.jd(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;
3718
3737
  var x = document.createElement("div");
3719
- 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;
3720
- var C = (this.bd(), a.showWeekNumbers ? 1 : 0);
3738
+ x.style.position = "absolute", x.style.left = a.jd(a.showWeekNumbers ? 7 : 6), x.style.right = a.jd(a.showWeekNumbers ? 7 : 6), x.style.top = "0px", x.style.width = a.jd(), 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.ld), y.appendChild(x), this.tr = x;
3739
+ var C = (this.cd(), a.showWeekNumbers ? 1 : 0);
3721
3740
  if (this.showWeekNumbers)
3722
3741
  for (var P = 0; P < f; P++) {
3723
3742
  var k = c.addDays(7 * P), _ = null;
@@ -3734,72 +3753,73 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3734
3753
  default: throw "Unknown weekNumberAlgorithm value.";
3735
3754
  }
3736
3755
  var S = document.createElement("div");
3737
- 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);
3756
+ S.style.position = "absolute", S.style.left = "0px", S.style.right = "0px", S.style.top = P * this.cellHeight + b + "px", S.style.width = a.jd(), 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);
3738
3757
  }
3739
3758
  for (var M = 0; M < 7; M++) {
3740
3759
  n.cells[M] = [];
3741
3760
  var S = document.createElement("div");
3742
- 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);
3761
+ S.style.position = "absolute", S.style.left = a.jd(M + C), S.style.right = a.jd(M + C), S.style.top = this.titleHeight + "px", S.style.width = a.jd(), 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.md(M) + "</span>", y.appendChild(S), n.days.push(S);
3743
3762
  for (var P = 0; P < f; P++) {
3744
- 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);
3745
- if ("month" === this.nd())
3746
- H = H && A;
3747
- else if ("day" === this.nd())
3748
- H = H && (A || s && T || l && E);
3749
- else if ("week" === this.nd()) {
3750
- var N = k.firstDayOfMonth() === o;
3751
- H = H && (N || s && T || l && E);
3763
+ var k = c.addDays(7 * P + M), A = this.nd(k) && "none" !== this.od(), T = k.firstDayOfMonth() === o, H = k < o, E = k >= o.addMonths(1);
3764
+ if ("month" === this.od())
3765
+ A = A && T;
3766
+ else if ("day" === this.od())
3767
+ A = A && (T || s && H || l && E);
3768
+ else if ("week" === this.od()) {
3769
+ var I = k.firstDayOfMonth() === o;
3770
+ A = A && (I || s && H || l && E);
3752
3771
  }
3753
- var I = document.createElement("div");
3754
- n.cells[M][P] = I;
3755
- var R = a.od(M, P), B = R.x, z = R.y, O = r.ad() ? "%" : "px";
3756
- 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";
3772
+ var N = document.createElement("div");
3773
+ n.cells[M][P] = N;
3774
+ var R = a.pd(M, P), O = R.x, z = R.y, B = r.bd() ? "%" : "px";
3775
+ N.day = k, N.x = M, N.y = P, N.left = O, N.top = z, N.isCurrentMonth = T, N.isNextMonth = E, N.isPrevMonth = H, N.showBefore = s, N.showAfter = l, N.className = this.K(T ? "_day" : "_dayother"), a.dd(N, "cell"), k.getTime() === m.getTime() && T && this.dd(N, "today"), 0 !== k.dayOfWeek() && 6 !== k.dayOfWeek() || this.dd(N, "weekend"), N.style.position = "absolute", N.style.left = O + B, N.style.right = O + B, N.style.top = z + "px", N.style.width = a.jd(), N.style.height = this.cellHeight + "px", N.style.lineHeight = this.cellHeight + "px";
3757
3776
  var U = document.createElement("div");
3758
- 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);
3777
+ U.style.position = "absolute", U.className = k.getTime() === m.getTime() && T ? this.K("_todaybox") : this.K("_daybox"), a.dd(U, "cell_box"), U.style.left = "0px", U.style.top = "0px", U.style.right = "0px", U.style.bottom = "0px", N.appendChild(U);
3759
3778
  var L = null;
3760
3779
  this.cells && this.cells[k.toStringSortable()] && (L = this.cells[k.toStringSortable()]);
3761
3780
  var j = L || {};
3762
- 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) {
3781
+ if (j.day = k, j.isCurrentMonth = T, j.isToday = k.getTime() === m.getTime() && T, 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) {
3763
3782
  var W = {};
3764
- W.cell = j, a.onBeforeCellRender(W), L = W.cell;
3783
+ W.cell = j,
3784
+ a.onBeforeCellRender(W), L = W.cell;
3765
3785
  }
3766
- if (L && DayPilot.Util.addClass(I, L.cssClass || L.css), A || s && T || l && E) {
3786
+ if (L && DayPilot.Util.addClass(N, L.cssClass || L.css), T || s && H || l && E) {
3767
3787
  var F = document.createElement("div");
3768
- 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);
3788
+ 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.dd(F, "cell_text"), N.isClickable = !0, L && L.html && (F.innerHTML = L.html), N.appendChild(F);
3769
3789
  }
3770
- I.setAttribute("unselectable", "on"), I.onclick = this.pd, function () {
3790
+ N.setAttribute("unselectable", "on"), N.onclick = this.qd, function () {
3771
3791
  if ("function" == typeof a.onBeforeCellDomAdd || "function" == typeof a.onBeforeCellDomRemove) {
3772
3792
  var t = {};
3773
- if (t.control = a, t.cell = j, t.element = null, I.domArgs = t, "function" == typeof a.onBeforeCellDomAdd && a.onBeforeCellDomAdd(t), t.element) {
3793
+ if (t.control = a, t.cell = j, t.element = null, N.domArgs = t, "function" == typeof a.onBeforeCellDomAdd && a.onBeforeCellDomAdd(t), t.element) {
3774
3794
  var i = U;
3775
3795
  if (i) {
3776
- t.Fa = i;
3796
+ t.Ga = i;
3777
3797
  if (e(t.element)) {
3778
- if (!a.Ha.Ga)
3798
+ if (!a.Ia.Ha)
3779
3799
  throw new DayPilot.Exception("Can't reach Vue");
3780
- a.Ha.Ia = !0, a.Ha.La(t.element, i), a.Ha.Ia = !1;
3800
+ a.Ia.Ja = !0, a.Ia.Ma(t.element, i), a.Ia.Ja = !1;
3781
3801
  }
3782
3802
  else
3783
3803
  i.appendChild(t.element);
3784
3804
  }
3785
3805
  }
3786
3806
  }
3787
- }(), y.appendChild(I), H && (a.qd(y, M, P), this.selected.push(I));
3807
+ }(), y.appendChild(N), A && (a.rd(y, M, P), this.selected.push(N));
3788
3808
  }
3789
3809
  }
3790
3810
  var J = document.createElement("div");
3791
- 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);
3792
- }, 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 () {
3811
+ J.style.position = "absolute", J.style.left = "0px", J.style.top = b - 2 + "px", J.style.width = a.jd(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);
3812
+ }, this.pd = function (e, t) { var i = this.titleHeight + this.dayHeaderHeight, n = (this.cd(), this.showWeekNumbers ? 1 : 0); return { "x": a.hd(e + n), "y": t * this.cellHeight + i }; }, this.rd = function (e, t, i) { var n = e.month.cells[t][i]; a.dd(n, "select"); }, this.sd = function (e, t, i) { var n = e.month.cells[t][i]; a.ed(n, "select"); }, this.cd = function () { return this.showWeekNumbers ? r.cellWidth() : 0; }, this.td = function () {
3793
3813
  if (this.items)
3794
3814
  for (var e = 0; e < this.showMonths; e++)
3795
3815
  for (var t = 0; t < 7; t++)
3796
3816
  for (var i = 0; i < 6; i++) {
3797
3817
  var a = this.months[e].cells[t][i];
3798
- a && (1 === this.items[a.day.toStringSortable()] ? (this.cd(a, "busy"), this.dd(a, "free")) : (this.dd(a, "busy"), this.cd(a, "free")));
3818
+ a && (1 === this.items[a.day.toStringSortable()] ? (this.dd(a, "busy"), this.ed(a, "free")) : (this.ed(a, "busy"), this.dd(a, "free")));
3799
3819
  }
3800
- }, this.td = function () { var e = {}; e.startDate = a.startDate, e.selectionStart = a.selectionStart, e.selectionEnd = a.selectionEnd.addDays(1), a.state.value = JSON.stringify(e); }, this.nd = function () { return (this.selectMode || "").toLowerCase(); }, this.ud = function () {
3820
+ }, this.ud = function () { var e = {}; e.startDate = a.startDate, e.selectionStart = a.selectionStart, e.selectionEnd = a.selectionEnd.addDays(1), a.state.value = JSON.stringify(e); }, this.od = function () { return (this.selectMode || "").toLowerCase(); }, this.vd = function () {
3801
3821
  var e = this.selectionDay || this.selectionStart;
3802
- switch (e || (e = DayPilot.Date.today()), e = new DayPilot.Date(e), this.nd()) {
3822
+ switch (e || (e = DayPilot.Date.today()), e = new DayPilot.Date(e), this.od()) {
3803
3823
  case "day":
3804
3824
  this.selectionStart = e, this.selectionDay = e, this.selectionEnd = e;
3805
3825
  break;
@@ -3814,10 +3834,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3814
3834
  break;
3815
3835
  default: throw "Unknown selectMode value.";
3816
3836
  }
3817
- }, this.vd = null, this.select = function (e, t, i) {
3837
+ }, this.wd = null, this.select = function (e, t, i) {
3818
3838
  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;
3819
- if (!this.Ba)
3820
- return void (this.vd = { "date1": r, "date2": s, "options": l });
3839
+ if (!this.Ca)
3840
+ return void (this.wd = { "date1": r, "date2": s, "options": l });
3821
3841
  var d = !0, c = !0;
3822
3842
  l && "object" == typeof l ? (l.dontFocus && (d = !1), l.dontNotify && (c = !1)) : "boolean" == typeof l && (d = !l);
3823
3843
  var u = this.selectionStart, h = this.selectionEnd;
@@ -3825,21 +3845,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3825
3845
  var f = !1;
3826
3846
  if (d) {
3827
3847
  var m = this.startDate;
3828
- (this.selectionStart < this.wd() || this.selectionStart >= this.xd()) && (m = this.selectionStart.firstDayOfMonth()), m.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = m;
3848
+ (this.selectionStart < this.xd() || this.selectionStart >= this.yd()) && (m = this.selectionStart.firstDayOfMonth()), m.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = m;
3829
3849
  }
3830
- 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();
3850
+ s && a.freeHandSelectionEnabled ? a.selectionEnd = new DayPilot.Date(s) : this.vd(), this.Vc(), this.ad(), this.zd(), this.td(), this.ud(), !c || u.equals(this.selectionStart) && h.equals(this.selectionEnd) || this.M(), f && this.Ad();
3831
3851
  }, this.update = function (e) {
3832
- if (a.jb(e), this.Ba) {
3852
+ if (a.kb(e), this.Ca) {
3833
3853
  if (a.O)
3834
3854
  throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed.");
3835
- a.Ad();
3855
+ a.Bd();
3836
3856
  var t = { "day": a.selectionDay, "start": a.selectionStart, "end": a.selectionEnd };
3837
- a.hb(), t.start === a.selectionStart && t.end === a.selectionEnd && t.day === a.selectionDay || a.M();
3857
+ a.ib(), t.start === a.selectionStart && t.end === a.selectionEnd && t.day === a.selectionDay || a.M();
3838
3858
  }
3839
- }, 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.ob = {}; }, this.lb = null, this.jb = function (e) {
3859
+ }, this.ib = function () { this.Vc(), this.ad(), this.vd(), this.zd(), this.fa(), this.td(), this.ud(), this.visible ? this.show() : this.hide(); }, this.Bd = function () { a.pb = {}; }, this.mb = null, this.kb = function (e) {
3840
3860
  if (e) {
3841
3861
  var t = { "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? a.events.list = e.list : a.events.list = e); } } };
3842
- this.lb = t;
3862
+ this.mb = t;
3843
3863
  for (var i in e)
3844
3864
  if (t[i]) {
3845
3865
  var n = t[i];
@@ -3848,20 +3868,20 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3848
3868
  else
3849
3869
  a[i] = e[i];
3850
3870
  }
3851
- }, this.mb = function () {
3852
- var e = this.lb;
3871
+ }, this.nb = function () {
3872
+ var e = this.mb;
3853
3873
  for (var t in e) {
3854
3874
  var i = e[t];
3855
3875
  i.postInit && i.postInit();
3856
3876
  }
3857
- }, 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) {
3877
+ }, 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.Cd) : WebForm_DoCallback(this.uniqueID, n, this.U, null, this.callbackError, !0); }, this.Cd = function (e) {
3858
3878
  if ("function" == typeof a.onAjaxError) {
3859
3879
  var t = {};
3860
3880
  t.request = e, a.onAjaxError(t);
3861
3881
  }
3862
3882
  else
3863
3883
  "function" == typeof a.ajaxError && a.ajaxError(e);
3864
- }, 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) {
3884
+ }, 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.Dd = function (e, t) { "refresh" === e && this.Ad(); }, this.md = function (e) { var t = e + r.weekStarts(); return t > 6 && (t -= 7), r.locale().dayNamesShort[t]; }, this.nd = function (e) { return null !== this.selectionStart && null !== this.selectionEnd && (this.selectionStart.getTime() <= e.getTime() && e.getTime() <= this.selectionEnd.getTime()); }, this.Ed = function (e) {
3865
3885
  for (var t = 0; t < a.months.length; t++) {
3866
3886
  var i = a.months[t];
3867
3887
  if (!i)
@@ -3875,14 +3895,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3875
3895
  }
3876
3896
  }
3877
3897
  return null;
3878
- }, this.Ed = function (e) { }, this.Fd = function () {
3879
- if (!r.ad())
3880
- return void (a.Gd = a.cellWidth);
3898
+ }, this.Fd = function (e) { }, this.Gd = function () {
3899
+ if (!r.bd())
3900
+ return void (a.Hd = a.cellWidth);
3881
3901
  var e = a.months[0].cells[0][0], t = e.clientWidth;
3882
- 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; }); }); });
3883
- }, this.Hd = function (e) {
3884
- a.Fd();
3885
- var t = DayPilot.mo3(a.nav.top, e), i = a.Dd(t);
3902
+ a.Hd = 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; }); }); });
3903
+ }, this.Id = function (e) {
3904
+ a.Gd();
3905
+ var t = DayPilot.mo3(a.nav.top, e), i = a.Ed(t);
3886
3906
  if (null === i)
3887
3907
  return null;
3888
3908
  var n = a.months[i], o = this.titleHeight + this.dayHeaderHeight;
@@ -3891,18 +3911,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3891
3911
  for (var r = 0; r < n.cells.length; r++)
3892
3912
  for (var s = 0; s < n.cells[r].length; s++) {
3893
3913
  var l = n.cells[r][s], d = l.top + n.top, c = l.left + n.left;
3894
- if (c <= t.x && t.x < c + a.Gd && d <= t.y && t.y < d + a.cellHeight)
3914
+ if (c <= t.x && t.x < c + a.Hd && d <= t.y && t.y < d + a.cellHeight)
3895
3915
  return { "month": i, "x": r, "y": s, "coords": t };
3896
3916
  }
3897
3917
  return null;
3898
- }, this.Id = function (e) {
3918
+ }, this.Jd = function (e) {
3899
3919
  if (a.freeHandSelectionEnabled) {
3900
- var t = a.Hd(e);
3920
+ var t = a.Id(e);
3901
3921
  t && !t.header && (n.start = t), a.months[t.month].cells[t.x][t.y], e.preventDefault();
3902
3922
  }
3903
- }, this.Jd = function (e) {
3923
+ }, this.Kd = function (e) {
3904
3924
  if (n.start) {
3905
- var t = a.Hd(e);
3925
+ var t = a.Id(e);
3906
3926
  if (n.end)
3907
3927
  n.end = t;
3908
3928
  else if (t) {
@@ -3911,13 +3931,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3911
3931
  }
3912
3932
  n.end && (n.clear(), n.draw());
3913
3933
  }
3914
- }, this.Kd = {};
3915
- var n = this.Kd;
3934
+ }, this.Ld = {};
3935
+ var n = this.Ld;
3916
3936
  n.start = null, n.drawCell = function (e) {
3917
- 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();
3918
- if (r.ad()) {
3937
+ var t = a.months[e.month], i = a.pd(e.x, e.y), o = t.top + i.y, s = t.left + i.x, l = "px", d = a.jd();
3938
+ if (r.bd()) {
3919
3939
  var c = "Horizontal" === a.orientation ? a.showMonths : 1;
3920
- s = t.leftPct + i.x / c, l = "%", d = a.hd(1 / c);
3940
+ s = t.leftPct + i.x / c, l = "%", d = a.jd(1 / c);
3921
3941
  }
3922
3942
  var u = document.createElement("div");
3923
3943
  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);
@@ -3990,54 +4010,54 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3990
4010
  return e;
3991
4011
  }, 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(); };
3992
4012
  };
3993
- this.pd = function (e) {
4013
+ this.qd = function (e) {
3994
4014
  var t = this.parentNode, i = this.parentNode.month, n = this.x, o = this.y, r = i.cells[n][o].day;
3995
4015
  if (i.cells[n][o].isClickable) {
3996
4016
  a.clearSelection(), a.selectionDay = r;
3997
4017
  var r = a.selectionDay;
3998
- switch (a.nd()) {
4018
+ switch (a.od()) {
3999
4019
  case "none":
4000
4020
  a.selectionStart = r, a.selectionEnd = r;
4001
4021
  break;
4002
4022
  case "day":
4003
4023
  if (a.autoFocusOnClick) {
4004
4024
  var s = r;
4005
- if (r < a.wd() || r >= a.xd())
4025
+ if (r < a.xd() || r >= a.yd())
4006
4026
  return void a.select(r);
4007
4027
  }
4008
4028
  var l = i.cells[n][o];
4009
- a.qd(t, n, o), a.selected.push(l), a.selectionStart = l.day, a.selectionEnd = l.day;
4029
+ a.rd(t, n, o), a.selected.push(l), a.selectionStart = l.day, a.selectionEnd = l.day;
4010
4030
  break;
4011
4031
  case "week":
4012
4032
  if (a.autoFocusOnClick) {
4013
4033
  var s = i.cells[0][o].day, d = i.cells[6][o].day;
4014
- if (s.firstDayOfMonth() === d.firstDayOfMonth() && (s < a.wd() || d >= a.xd()))
4034
+ if (s.firstDayOfMonth() === d.firstDayOfMonth() && (s < a.xd() || d >= a.yd()))
4015
4035
  return void a.select(r);
4016
4036
  }
4017
4037
  for (var c = 0; c < 7; c++)
4018
- a.qd(t, c, o), a.selected.push(i.cells[c][o]);
4038
+ a.rd(t, c, o), a.selected.push(i.cells[c][o]);
4019
4039
  a.selectionStart = i.cells[0][o].day, a.selectionEnd = i.cells[6][o].day;
4020
4040
  break;
4021
4041
  case "month":
4022
4042
  if (a.autoFocusOnClick) {
4023
4043
  var s = r;
4024
- if (r < a.wd() || r >= a.xd())
4044
+ if (r < a.xd() || r >= a.yd())
4025
4045
  return void a.select(r);
4026
4046
  }
4027
4047
  for (var s = null, d = null, o = 0; o < 6; o++)
4028
4048
  for (var n = 0; n < 7; n++) {
4029
4049
  var l = i.cells[n][o];
4030
- 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);
4050
+ l && l.day.getYear() === r.getYear() && l.day.getMonth() === r.getMonth() && (a.rd(t, n, o), a.selected.push(l), null === s && (s = l.day), d = l.day);
4031
4051
  }
4032
4052
  a.selectionStart = s, a.selectionEnd = d;
4033
4053
  break;
4034
4054
  default: throw "unknown selectMode";
4035
4055
  }
4036
- a.td(), a.M();
4056
+ a.ud(), a.M();
4037
4057
  }
4038
4058
  }, this.M = function (e) {
4039
4059
  var t = a.selectionStart, i = a.selectionEnd.addDays(1), n = DayPilot.DateUtil.daysDiff(t, i), o = a.selectionDay;
4040
- if (e = e || {}, a.qa()) {
4060
+ if (e = e || {}, a.ra()) {
4041
4061
  var r = {};
4042
4062
  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))
4043
4063
  return;
@@ -4067,9 +4087,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
4067
4087
  case "None": break;
4068
4088
  case "PostBack": a.timeRangeSelectedPostBack(t, i, o);
4069
4089
  }
4070
- }, 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 () {
4090
+ }, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, n.day = a, this.Q("TimeRangeSelected", i, n); }, this.ld = function (e) { a.Md(a.skipMonths); }, this.kd = function (e) { a.Md(-a.skipMonths); }, this.Md = function (e) { this.startDate = this.startDate.addMonths(e), this.Vc(), this.ad(), this.zd(), this.ud(), this.Ad(), this.td(); }, this.xd = function () { return a.startDate.firstDayOfMonth(); }, this.yd = 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.Ad = function () {
4071
4091
  var e = this.visibleStart(), t = this.visibleEnd();
4072
- if (a.qa()) {
4092
+ if (a.ra()) {
4073
4093
  var i = {};
4074
4094
  if (i.start = e, i.end = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onVisibleRangeChange && (a.onVisibleRangeChange(i), i.preventDefault.value))
4075
4095
  return;
@@ -4097,13 +4117,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
4097
4117
  break;
4098
4118
  case "Disabled":
4099
4119
  }
4100
- }, 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 () {
4120
+ }, 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.td(); }, this.zd = function () {
4101
4121
  for (var e = 0; e < this.showMonths; e++) {
4102
- var t = this.Md(e);
4103
- this.Vc(e, t);
4122
+ var t = this.Nd(e);
4123
+ this.Wc(e, t);
4104
4124
  }
4105
- 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);
4106
- }, this.Nd = function () {
4125
+ this.root.style.height = this.Od() + "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);
4126
+ }, this.Od = function () {
4107
4127
  if ("Horizontal" === this.orientation) {
4108
4128
  for (var e = 0, t = 0; t < this.months.length; t++) {
4109
4129
  var i = this.months[t];
@@ -4116,24 +4136,24 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
4116
4136
  a += i.height;
4117
4137
  }
4118
4138
  return a;
4119
- }, this.Md = function (e) {
4139
+ }, this.Nd = function (e) {
4120
4140
  if (this.internal.showLinks)
4121
4141
  return this.internal.showLinks;
4122
4142
  var t = {};
4123
4143
  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;
4124
- }, 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) {
4125
- var n = a.Ha.Ga;
4144
+ }, this.ta = {}, this.ta.scope = null, this.ta.notify = function () { a.ta.scope && a.ta.scope["$apply"](); }, this.Ia = {}, this.Ia.Ha = null, this.Ia.Db = function (e, t, i) {
4145
+ var n = a.Ia.Ha;
4126
4146
  if ("function" == typeof n.createVNode && "function" == typeof n.render) {
4127
4147
  var o = n.createVNode(e, i);
4128
4148
  n.render(o, t);
4129
4149
  }
4130
- }, this.Ha.La = function (e, t) {
4131
- var i = a.Ha.Ga;
4150
+ }, this.Ia.Ma = function (e, t) {
4151
+ var i = a.Ia.Ha;
4132
4152
  if ("function" == typeof i.render) {
4133
4153
  var n = e;
4134
4154
  DayPilot.isArray(e) && (n = i.h("div", null, e)), i.render(n, t);
4135
4155
  }
4136
- }, 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 = {};
4156
+ }, this.Ia.Ka = function (e) { var t = a.Ia.Ha; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = a.kb, this.internal.initialized = function () { return a.Ca; }, this.internal.vueRendering = function () { return !1; }, this.internal.enableVue = function (e) { a.Ia.Ha = e; }, this.internal.vueRef = function () { return a.Ia.Ha; }, this.internal.vueRendering = function () { return a.Ia.Ja; }, this.aa = {};
4137
4157
  var r = this.aa;
4138
4158
  r.locale = function () { return DayPilot.Locale.find(a.locale); }, r.weekStarts = function () {
4139
4159
  if ("Auto" === a.weekStarts) {
@@ -4142,33 +4162,33 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
4142
4162
  }
4143
4163
  return a.weekStarts;
4144
4164
  }, r.cellWidth = function () {
4145
- if (a.ob.cellWidth)
4146
- return a.ob.cellWidth;
4147
- var e = a.Od("_cell_dimensions").width;
4148
- return e || (e = a.cellWidth), a.ob.cellWidth = e, e;
4149
- }, r.ad = function () { return "Auto" === a.aa.cellWidth(); }, this.clearSelection = function () {
4165
+ if (a.pb.cellWidth)
4166
+ return a.pb.cellWidth;
4167
+ var e = a.Pd("_cell_dimensions").width;
4168
+ return e || (e = a.cellWidth), a.pb.cellWidth = e, e;
4169
+ }, r.bd = function () { return "Auto" === a.aa.cellWidth(); }, this.clearSelection = function () {
4150
4170
  for (var e = 0; e < this.selected.length; e++) {
4151
4171
  var t = this.selected[e];
4152
- a.rd(t.parentNode, t.x, t.y);
4172
+ a.sd(t.parentNode, t.x, t.y);
4153
4173
  }
4154
4174
  this.selected = [];
4155
- }, this.Pd = function () { return !!this.backendUrl && ("undefined" == typeof a.items || !a.items); }, this.events = {}, this.ea = function () {
4175
+ }, this.Qd = function () { return !!this.backendUrl && ("undefined" == typeof a.items || !a.items); }, this.events = {}, this.fa = function () {
4156
4176
  if (DayPilot.isArray(this.events.list)) {
4157
4177
  this.items = {};
4158
4178
  for (var e = 0; e < this.events.list.length; e++) {
4159
4179
  var t = this.events.list[e];
4160
4180
  if (!t.hidden) {
4161
- var i = this.Qd(t);
4181
+ var i = this.Rd(t);
4162
4182
  for (var a in i)
4163
4183
  this.items[a] = 1;
4164
4184
  }
4165
4185
  }
4166
4186
  }
4167
- }, 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) {
4187
+ }, this.Pd = 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.Rd = function (e) {
4168
4188
  for (var t = new DayPilot.Date(e.start), i = new DayPilot.Date(e.end), a = {}, n = t.getDatePart(); n.getTime() <= i.getTime();)
4169
4189
  a[n.toStringSortable()] = 1, n = n.addDays(1);
4170
4190
  return a;
4171
- }, this.show = function () { a.visible = !0, a.root.style.display = ""; }, this.hide = function () { a.visible = !1, a.root.style.display = "none"; }, this.nb = function () {
4191
+ }, this.show = function () { a.visible = !0, a.root.style.display = ""; }, this.hide = function () { a.visible = !1, a.root.style.display = "none"; }, this.ob = function () {
4172
4192
  if (this.id && this.id.tagName)
4173
4193
  this.nav.top = this.id;
4174
4194
  else {
@@ -4179,26 +4199,26 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
4179
4199
  }
4180
4200
  this.root = this.nav.top;
4181
4201
  }, this.init = function () {
4182
- if (this.nb(), !this.root.dp) {
4183
- this.ud(), this._c(), this.yd(), this.ea(), this.sd(), this.Z(), this.Rd(), this.gb();
4184
- if (this.Pd() && this.zd(), this.Ba = !0, this.mb(), this.vd) {
4185
- var e = this.vd;
4186
- this.select(e.date1, e.date2, e.options), this.vd = null;
4202
+ if (this.ob(), !this.root.dp) {
4203
+ this.vd(), this.ad(), this.zd(), this.fa(), this.td(), this.Z(), this.Sd(), this.hb();
4204
+ if (this.Qd() && this.Ad(), this.Ca = !0, this.nb(), this.wd) {
4205
+ var e = this.wd;
4206
+ this.select(e.date1, e.date2, e.options), this.wd = null;
4187
4207
  }
4188
4208
  return this;
4189
4209
  }
4190
- }, 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) {
4210
+ }, this.Sd = function () { a.nav.top.onmousedown = this.Jd, a.nav.top.onmousemove = this.Kd; }, this.hb = function () { DayPilot.re(document, "mouseup", a.Td); }, this.Td = function (e) {
4191
4211
  if (n.start && n.end) {
4192
4212
  var t = DayPilot.mo3(a.nav.top, e);
4193
4213
  if (t.x === n.start.coords.x && t.y === n.start.coords.y)
4194
4214
  return n.start = null, void n.clear();
4195
4215
  n.clear();
4196
4216
  var i = n.ordered();
4197
- 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();
4217
+ 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.Vc(), a.ad(), a.zd(), a.td(), a.ud();
4198
4218
  a.M({ "mode": "FreeHand" });
4199
4219
  }
4200
4220
  n.start = null, n.end = null;
4201
- }, 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);
4221
+ }, 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.kb(i);
4202
4222
  }, "undefined" != typeof jQuery && !function (e) {
4203
4223
  e.fn.daypilotNavigator = function (e) {
4204
4224
  var t = null, i = this.each(function () {
@@ -4218,7 +4238,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
4218
4238
  return { "restrict": "E", "template": "<div id='{{id}}'></div>", "compile": function (t, i) {
4219
4239
  return t.replaceWith(this["template"].replace("{{id}}", i["id"])), function (t, i, a) {
4220
4240
  var n = new DayPilot.Navigator(i[0]);
4221
- n.sa.scope = t, n.init();
4241
+ n.ta.scope = t, n.init();
4222
4242
  var o = a["id"];
4223
4243
  o && (t[o] = n);
4224
4244
  var r = a["publishAs"];
@@ -4235,7 +4255,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
4235
4255
  for (var i in e)
4236
4256
  n[i] = e[i];
4237
4257
  n.update();
4238
- }, !0), d.call(t, u, function (e) { n.events.list = e, n.ea(), n.sd(); }, !0);
4258
+ }, !0), d.call(t, u, function (e) { n.events.list = e, n.fa(), n.td(); }, !0);
4239
4259
  };
4240
4260
  } };
4241
4261
  }]);