@daypilot/daypilot-lite-angular 3.32.1 → 3.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -130,7 +130,7 @@ DayPilot Lite
130
130
  Copyright (c) 2005 - 2025 Annpoint s.r.o.
131
131
  https://www.daypilot.org/
132
132
  Licensed under Apache Software License 2.0
133
- Version: 2025.1.638-lite
133
+ Version: 2025.2.643-lite
134
134
  */
135
135
  var DayPilot = {};
136
136
  if ("undefined" == typeof DayPilot)
@@ -322,7 +322,7 @@ if (function () {
322
322
  a.key = i, a.val = e[i], t.push(a);
323
323
  }
324
324
  return t;
325
- }, DayPilot.Util.replaceCharAt = function (e, t, i) { return e.substr(0, t) + i + e.substr(t + i.length); }, DayPilot.Util.isNullOrUndefined = function (e) { return null === e || "undefined" == typeof e; }, DayPilot.Util.escapeHtml = function (e) { var t = document.createElement("div"); return t.innerText = e, t.innerHTML; }, DayPilot.Util.escapeTextHtml = function (e, t) { return DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : DayPilot.Util.escapeHtml(e) : t; }, DayPilot.Util.overlaps = function (e, t, i, a) { return !(t <= i || e >= a); }, DayPilot.Util.isVueVNode = function (e) { return !!e && (DayPilot.isArray(e) ? DayPilot.Util.isVueVNode(e[0]) : e["__v_isVNode"]); }, DayPilot.Areas = {}, DayPilot.Areas.attach = function (e, t, i) {
325
+ }, DayPilot.Util.replaceCharAt = function (e, t, i) { return e.substr(0, t) + i + e.substr(t + i.length); }, DayPilot.Util.isNullOrUndefined = function (e) { return null === e || "undefined" == typeof e; }, DayPilot.Util.escapeHtml = function (e) { var t = document.createElement("div"); return t.innerText = e, t.innerHTML; }, DayPilot.Util.escapeTextHtml = function (e, t) { return DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : DayPilot.Util.escapeHtml(e) : t; }, DayPilot.Util.overlaps = function (e, t, i, a) { return !(t <= i || e >= a); }, DayPilot.Util.isVueVNode = function (e) { return !!e && (DayPilot.isArray(e) ? DayPilot.Util.isVueVNode(e[0]) : e["__v_isVNode"]); }, DayPilot.Util.atLeast = function (e, t) { return Math.max(e, t); }, DayPilot.Areas = {}, DayPilot.Areas.attach = function (e, t, i) {
326
326
  var i = i || {}, n = i.areas, o = i.allowed || function () { return !0; }, r = i.offsetX || 0;
327
327
  n = a(t, n), n && DayPilot.isArray(n) && 0 !== n.length && (DayPilot.re(e, "mousemove", function (a) { e.active || e.areasDisabled || !o() || DayPilot.Areas.showAreas(e, t, a, n, { "offsetX": r, "eventDiv": i.eventDiv }); }), DayPilot.re(e, "mouseleave", function (t) { DayPilot.Areas.hideAreas(e, t); }), n.forEach(function (a) {
328
328
  if (DayPilot.Areas.isVisible(a)) {
@@ -930,7 +930,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
930
930
  var e = function () { };
931
931
  if ("undefined" == typeof DayPilot.Calendar || !DayPilot.Calendar.events) {
932
932
  var t = {};
933
- t.selectedCells = [], t.topSelectedCell = null, t.bottomSelectedCell = null, t.selecting = !1, t.column = null, t.firstSelected = null, t.firstMousePos = null, t.originalMouse = null, t.originalHeight = null, t.originalTop = null, t.resizing = null, t.globalHandlers = !1, t.moving = null, t.register = function (e) {
933
+ t.selectedCells = [], t.topSelectedCell = null, t.bottomSelectedCell = null, t.column = null, t.firstSelected = null, t.firstMousePos = null, t.originalMouse = null, t.originalHeight = null, t.originalTop = null, t.resizing = null, t.globalHandlers = !1, t.moving = null, t.register = function (e) {
934
934
  t.registered || (t.registered = []);
935
935
  for (var i = t.registered, a = 0; a < i.length; a++)
936
936
  if (i[a] === e)
@@ -977,11 +977,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
977
977
  var s = t.movingShadow.column;
978
978
  t.moving = null, DayPilot.Global.moving = null, t.movingShadow = null, a.calendar.nav.top.style.cursor = "auto", a.calendar.L(a, s, o, i);
979
979
  }
980
- else if (t.selecting && null !== t.topSelectedCell) {
981
- var l = t.selecting.calendar;
982
- t.selecting = !1;
980
+ else if (DayPilot.Global.selecting) {
981
+ var l = DayPilot.Global.selecting.calendar;
982
+ l.M = DayPilot.Global.selecting, DayPilot.Global.selecting = null;
983
983
  var d = l.getSelection();
984
- l.M(d.start, d.end, d.resource), "Hold" !== l.timeRangeSelectedHandling && "HoldForever" !== l.timeRangeSelectedHandling && e();
984
+ l.N(d.start, d.end, d.resource), "Hold" !== l.timeRangeSelectedHandling && "HoldForever" !== l.timeRangeSelectedHandling && e();
985
985
  }
986
986
  else
987
987
  t.selecting = !1;
@@ -989,26 +989,25 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
989
989
  var i = DayPilot.Util.isVueVNode, a = DayPilot.Util.overlaps;
990
990
  t.Calendar = function (e, n) {
991
991
  var o = !1;
992
- if (this instanceof t.Calendar && !this.N && (o = !0, this.N = !0), !o)
992
+ if (this instanceof t.Calendar && !this.O && (o = !0, this.O = !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 = "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) {
995
+ this.uniqueID = null, this.isCalendar = !0, this.v = "2025.2.643-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.snapToGrid = !0, this.showToolTip = !0, this.startDate = (new DayPilot.Date).getDatePart(), this.cssClassPrefix = "calendar_default", this.theme = null, this.timeFormat = "Auto", this.useEventBoxes = "Always", this.viewType = "Days", this.visible = !0, this.xssProtection = "Enabled", this.headerClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.eventMoveHandling = "Update", this.eventDeleteHandling = "Disabled", this.timeRangeSelectedHandling = "Enabled", this.onBeforeCellRender = null, this.onBeforeEventRender = null, this.onBeforeHeaderRender = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onHeaderClick = null, this.onHeaderClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.P = !1, this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.Q(); }, this.Q = function () { DayPilot.de(r.elements.selection), r.elements.selection = [], r.nav.activeSelection = null; }, this.cleanSelection = this.clearSelection, this.R = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.S(); var n = "JSON" + DayPilot.JSON.stringify(a); __doPostBack(r.uniqueID, n); }, this.T = 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.S(); var n = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.U, n, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, n, this.V, 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.P || (e.P = !0, clearInterval(e.W), e.X(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.Y(), e.Z(), 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.P; }, this._ = function () { this.nav.top.dispose = this.dispose; }, this.U = function (e) { r.V(e.responseText); }, this.S = 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.aa = 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",
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");
1001
+ n.setAttribute("unselectable", "on"), n.style.position = "absolute", 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
1002
  var o = document.createElement("div");
1004
1003
  return o.className = r.K("_shadow_inner"), a && (o.style.borderRadius = a, n.style.borderRadius = a), n.appendChild(o), i.firstChild.appendChild(n), n;
1005
- }, this.aa = {}, this.aa.locale = function () { var e = DayPilot.Locale.find(r.locale); return e ? e : DayPilot.Locale.US; }, this.aa.timeFormat = function () { return "Auto" !== r.timeFormat ? r.timeFormat : this.locale().timeFormat; }, this.aa.ba = function () { return "Disabled" !== r.xssProtection; }, this.aa.ca = function () {
1004
+ }, this.ba = {}, this.ba.locale = function () { var e = DayPilot.Locale.find(r.locale); return e ? e : DayPilot.Locale.US; }, this.ba.timeFormat = function () { return "Auto" !== r.timeFormat ? r.timeFormat : this.locale().timeFormat; }, this.ba.ca = function () { return "Disabled" !== r.xssProtection; }, this.ba.da = function () {
1006
1005
  if ("Auto" === r.weekStarts) {
1007
1006
  var e = s.locale();
1008
1007
  return e ? e.weekStarts : 0;
1009
1008
  }
1010
1009
  return r.weekStarts || 0;
1011
- }, this.aa.da = function () {
1010
+ }, this.ba.ea = function () {
1012
1011
  var e = r.cellDuration;
1013
1012
  if (e <= 1)
1014
1013
  return 1;
@@ -1017,8 +1016,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1017
1016
  var t = [1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60], i = Math.floor(e);
1018
1017
  return Math.max.apply(null, t.filter(function (e) { return e <= i; }));
1019
1018
  };
1020
- var s = this.aa;
1021
- this.U = function (e, t) {
1019
+ var s = this.ba;
1020
+ this.V = function (e, t) {
1022
1021
  if (e && 0 === e.indexOf("$$$")) {
1023
1022
  if (!window.console)
1024
1023
  throw "Error received from the server side: " + e;
@@ -1029,16 +1028,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1029
1028
  return void (document.location.href = e.CallBackRedirect);
1030
1029
  if ("None" === e.UpdateType)
1031
1030
  return r.loadingStop(), void r.t();
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)
1031
+ if (r.X(), "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.fa()), e.Hashes)
1033
1032
  for (var i in e.Hashes)
1034
1033
  r.hashes[i] = e.Hashes[i];
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) {
1034
+ r.events.list = e.Events, r.ga(), r.ha(), "Full" === e.UpdateType && (r.ia(), r.ja(), r.ka(), r.la()), r.t(), r.ma(), r.clearSelection(), r.afterRender(e.CallBackData, !0), r.loadingStop();
1035
+ }, this.na = function () { return this.oa() / 36e5; }, this.pa = function () { return this.businessBeginsHour > this.businessEndsHour ? 24 - this.businessBeginsHour + this.businessEndsHour : this.businessEndsHour - this.businessBeginsHour; }, this.qa = function () { return this.oa() / (60 * s.ea() * 1e3); }, this.oa = function () { var e = 0; return e = "BusinessHoursNoScroll" === this.heightSpec ? this.pa() : 24, 60 * e * 60 * 1e3; }, this.ra = function () { return "BusinessHoursNoScroll" === this.heightSpec ? this.businessBeginsHour : 0; }, this.sa = function () { return 2 === r.api; }, this.eventClickCallBack = function (e, t) { this.T("EventClick", t, e); }, this.eventClickPostBack = function (e, t) { this.R("EventClick", t, e); }, this.ta = function (e) {
1037
1036
  var t = this, i = t.event;
1038
1037
  if (i.client.clickEnabled())
1039
- if (r.ra()) {
1038
+ if (r.sa()) {
1040
1039
  var a = {};
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))
1040
+ 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.ua.apply(function () { r.onEventClick(a); }), a.preventDefault.value))
1042
1041
  return;
1043
1042
  switch (r.eventClickHandling) {
1044
1043
  case "CallBack":
@@ -1051,7 +1050,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1051
1050
  var n = i.client.contextMenu();
1052
1051
  n ? n.show(i) : r.contextMenu && r.contextMenu.show(i);
1053
1052
  }
1054
- "function" == typeof r.onEventClicked && r.ta.apply(function () { r.onEventClicked(a); });
1053
+ "function" == typeof r.onEventClicked && r.ua.apply(function () { r.onEventClicked(a); });
1055
1054
  }
1056
1055
  else
1057
1056
  switch (r.eventClickHandling) {
@@ -1063,7 +1062,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1063
1062
  break;
1064
1063
  case "JavaScript": r.onEventClick(i);
1065
1064
  }
1066
- }, this.ua = function (e) {
1065
+ }, this.va = function (e) {
1067
1066
  var t = this.event;
1068
1067
  if (e.stopPropagation && e.stopPropagation(), !t.client.rightClickEnabled())
1069
1068
  return !1;
@@ -1076,10 +1075,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1076
1075
  a ? a.show(t) : r.contextMenu && r.contextMenu.show(this.event);
1077
1076
  }
1078
1077
  return "function" == typeof r.onEventRightClicked && r.onEventRightClicked(i), e.preventDefault && e.preventDefault(), !1;
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()) {
1078
+ }, this.eventDeleteCallBack = function (e, t) { this.T("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.R("EventDelete", t, e); }, this.wa = function (e) {
1079
+ if (r.sa()) {
1081
1080
  var t = {};
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))
1081
+ if (t.e = e, t.control = r, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onEventDelete && (r.ua.apply(function () { r.onEventDelete(t); }), t.preventDefault.value))
1083
1082
  return;
1084
1083
  switch (r.eventDeleteHandling) {
1085
1084
  case "CallBack":
@@ -1090,7 +1089,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1090
1089
  break;
1091
1090
  case "Update": r.events.remove(e);
1092
1091
  }
1093
- "function" == typeof r.onEventDeleted && r.ta.apply(function () { r.onEventDeleted(t); });
1092
+ "function" == typeof r.onEventDeleted && r.ua.apply(function () { r.onEventDeleted(t); });
1094
1093
  }
1095
1094
  else
1096
1095
  switch (r.eventDeleteHandling) {
@@ -1108,28 +1107,32 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1108
1107
  if (!i)
1109
1108
  throw "newEnd is null";
1110
1109
  var n = {};
1111
- n.e = e, n.newStart = t, n.newEnd = i, this.S("EventResize", a, n);
1110
+ n.e = e, n.newStart = t, n.newEnd = i, this.T("EventResize", a, n);
1112
1111
  }, this.eventResizePostBack = function (e, t, i, a) {
1113
1112
  if (!t)
1114
1113
  throw "newStart is null";
1115
1114
  if (!i)
1116
1115
  throw "newEnd is null";
1117
1116
  var n = {};
1118
- n.e = e, n.newStart = t, n.newEnd = i, this.Q("EventResize", a, n);
1117
+ n.e = e, n.newStart = t, n.newEnd = i, this.R("EventResize", a, n);
1119
1118
  }, this.J = function (e, t, i, a) {
1120
1119
  var n = 1, o = new Date, l = new Date, d = e.start(), c = e.end();
1121
- s.da();
1120
+ s.ea();
1122
1121
  if ("top" === a) {
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;
1122
+ var u = d.getDatePart(), h = Math.floor((i - n) / r.cellHeight);
1123
+ r.snapToGrid || (h = (i - n) / r.cellHeight);
1124
+ var f = h * s.ea(), m = 60 * f * 1e3, p = 60 * r.ra() * 60 * 1e3;
1124
1125
  o = u.addTime(m + p), l = e.end();
1125
1126
  }
1126
1127
  else if ("bottom" === a) {
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
+ var u = c.getDatePart(), h = Math.floor((i + t - n) / r.cellHeight);
1129
+ r.snapToGrid || (h = (i + t - n) / r.cellHeight);
1130
+ var f = h * s.ea(), m = 60 * f * 1e3, p = 60 * r.ra() * 60 * 1e3;
1128
1131
  o = d, l = u.addTime(m + p);
1129
1132
  }
1130
- if (r.ra()) {
1133
+ if (r.sa()) {
1131
1134
  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))
1135
+ 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.ua.apply(function () { r.onEventResize(v); }), v.preventDefault.value))
1133
1136
  return;
1134
1137
  switch (r.eventResizeHandling) {
1135
1138
  case "PostBack":
@@ -1140,7 +1143,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1140
1143
  break;
1141
1144
  case "Update": e.start(o), e.end(l), r.events.update(e);
1142
1145
  }
1143
- "function" == typeof r.onEventResized && r.ta.apply(function () { r.onEventResized(v); });
1146
+ "function" == typeof r.onEventResized && r.ua.apply(function () { r.onEventResized(v); });
1144
1147
  }
1145
1148
  else
1146
1149
  switch (r.eventResizeHandling) {
@@ -1158,23 +1161,29 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1158
1161
  if (!i)
1159
1162
  throw "newEnd is null";
1160
1163
  var o = {};
1161
- o.e = e, o.newStart = t, o.newEnd = i, this.Q("EventMove", n, o);
1164
+ o.e = e, o.newStart = t, o.newEnd = i, this.R("EventMove", n, o);
1162
1165
  }, this.eventMoveCallBack = function (e, t, i, a, n) {
1163
1166
  if (!t)
1164
1167
  throw "newStart is null";
1165
1168
  if (!i)
1166
1169
  throw "newEnd is null";
1167
1170
  var o = {};
1168
- o.e = e, o.newStart = t, o.newEnd = i, this.S("EventMove", n, o);
1171
+ o.e = e, o.newStart = t, o.newEnd = i, this.T("EventMove", n, o);
1169
1172
  }, this.L = function (e, t, i, a) {
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;
1173
+ var n = 1, o = Math.floor((i - n) / r.cellHeight);
1174
+ r.snapToGrid || (o = (i - n) / r.cellHeight);
1175
+ var l = s.ea(), d = o * l * 60 * 1e3, c = e.start(), u = e.end(), h = new Date;
1171
1176
  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;
1177
+ var f = c.getTime() - (h.getTime() + 3600 * c.getUTCHours() * 1e3 + Math.floor(c.getUTCMinutes() / l) * l * 60 * 1e3);
1178
+ "Never" === r.useEventBoxes && (f = 0);
1179
+ var m = u.getTime() - c.getTime(), p = this.xa[t], v = p.id;
1180
+ r.snapToGrid || (f = 0);
1181
+ var y = p.start.getTime(), g = new Date;
1173
1182
  g.setTime(y + d + f);
1174
1183
  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))
1184
+ if (r.sa()) {
1185
+ var x = {};
1186
+ if (x.e = e, x.newStart = b, x.newEnd = D, x.newResource = v, x.ctrl = a.ctrlKey, x.shift = a.shiftKey, x.control = r, x.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onEventMove && (r.ua.apply(function () { r.onEventMove(x); }), x.preventDefault.value))
1178
1187
  return;
1179
1188
  switch (r.eventMoveHandling) {
1180
1189
  case "PostBack":
@@ -1185,7 +1194,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1185
1194
  break;
1186
1195
  case "Update": e.start(b), e.end(D), e.resource(v), r.events.update(e);
1187
1196
  }
1188
- "function" == typeof r.onEventMoved && r.ta.apply(function () { r.onEventMoved(w); });
1197
+ "function" == typeof r.onEventMoved && r.ua.apply(function () { r.onEventMoved(x); });
1189
1198
  }
1190
1199
  else
1191
1200
  switch (r.eventMoveHandling) {
@@ -1197,10 +1206,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1197
1206
  break;
1198
1207
  case "JavaScript": r.onEventMove(e, b, D, p.id, !1);
1199
1208
  }
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) {
1201
- if (e = new DayPilot.Date(e), t = new DayPilot.Date(t), this.ra()) {
1209
+ }, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, this.R("TimeRangeSelected", a, n); }, this.timeRangeSelectedCallBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, this.T("TimeRangeSelected", a, n); }, this.N = function (e, t, i) {
1210
+ if (e = new DayPilot.Date(e), t = new DayPilot.Date(t), this.sa()) {
1202
1211
  var a = {};
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))
1212
+ 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.ua.apply(function () { r.onTimeRangeSelect(a); }), a.preventDefault.value))
1204
1213
  return;
1205
1214
  switch (r.timeRangeSelectedHandling) {
1206
1215
  case "PostBack":
@@ -1208,7 +1217,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1208
1217
  break;
1209
1218
  case "CallBack": r.timeRangeSelectedCallBack(e, t);
1210
1219
  }
1211
- "function" == typeof r.onTimeRangeSelected && r.ta.apply(function () { r.onTimeRangeSelected(a); });
1220
+ "function" == typeof r.onTimeRangeSelected && r.ua.apply(function () { r.onTimeRangeSelected(a); });
1212
1221
  }
1213
1222
  else
1214
1223
  switch (r.timeRangeSelectedHandling) {
@@ -1220,43 +1229,38 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1220
1229
  break;
1221
1230
  case "JavaScript": r.onTimeRangeSelected(e, t);
1222
1231
  }
1223
- }, this.xa = function (e) {
1224
- if (!t.selecting && "Disabled" !== r.timeRangeSelectedHandling) {
1225
- var i = e.which;
1226
- if (1 === i || 0 === i)
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;
1228
- }
1229
- }, this.ya = function () {
1230
- this.getSelection();
1231
- !function () {
1232
- var e = t.topSelectedCell, i = t.bottomSelectedCell, a = function () {
1233
- if (e.data)
1234
- return e.data.x;
1235
- for (var t = e.parentNode.cells, i = 0; i < t.length; i++)
1236
- if (t[i] === e)
1237
- return i;
1238
- return -1;
1239
- }(), n = r.wa[a];
1240
- if (n) {
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;
1242
- "number" == typeof c && (c += "px");
1243
- var u = function () {
1244
- if (r.nav.activeSelection)
1245
- return r.nav.activeSelection;
1246
- var e = document.createElement("div");
1247
- e.setAttribute("unselectable", "on"), e.style.position = "absolute", e.style.left = "0px", e.style.width = "100%";
1248
- var t = document.createElement("div");
1249
- return t.setAttribute("unselectable", "on"), t.className = r.K("_shadow_inner"), c && (t.style.borderRadius = c, e.style.borderRadius = c), e.appendChild(t), r.nav.events.rows[0].cells[a].selection.appendChild(e), r.elements.selection.push(e), r.nav.activeSelection = e, e;
1250
- }();
1251
- u.className = r.K("_shadow"), u.firstChild.innerHTML = "", u.style.top = s + "px", u.style.height = d + "px";
1232
+ }, this.ya = function (e) {
1233
+ if (!DayPilot.Global.selecting && "Disabled" !== r.timeRangeSelectedHandling) {
1234
+ var t = e.which;
1235
+ if (1 === t || 0 === t) {
1236
+ DayPilot.Global.selecting = { calendar: r, start: r.coords };
1237
+ var i = DayPilot.Global.selecting;
1238
+ return i.start.time = r.za(r.coords.x, r.coords.y), i.start.columnIndex = r.Aa(r.coords.x), i.start.column = r.xa[i.start.columnIndex], r.Ba(), r.Ca(), !1;
1252
1239
  }
1253
- }();
1254
- }, this.za = function (e) {
1255
- if ("undefined" != typeof t && t.selecting) {
1256
- var i = DayPilot.mc(e);
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());
1258
1240
  }
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) {
1241
+ }, this.Ca = function () {
1242
+ var e = DayPilot.Global.selecting;
1243
+ !function () {
1244
+ var t = e.start.column, i = e.start.columnIndex, a = t.start, n = r.getPixels(e.startTime, a), o = r.getPixels(e.endTime, a), s = n.boxTop, l = o.boxBottom;
1245
+ r.snapToGrid || (s = n.top, l = o.top);
1246
+ var d = l - s, c = r.eventBorderRadius;
1247
+ "number" == typeof c && (c += "px");
1248
+ var u = function () {
1249
+ if (r.nav.activeSelection)
1250
+ return r.nav.activeSelection;
1251
+ var e = document.createElement("div");
1252
+ e.setAttribute("unselectable", "on"), e.style.position = "absolute", e.style.left = "0px", e.style.width = "100%";
1253
+ var t = document.createElement("div");
1254
+ return t.setAttribute("unselectable", "on"), t.className = r.K("_shadow_inner"), c && (t.style.borderRadius = c, e.style.borderRadius = c), e.appendChild(t), r.nav.events.rows[0].cells[i].selection.appendChild(e), r.elements.selection.push(e), r.nav.activeSelection = e, e;
1255
+ }();
1256
+ u.className = r.K("_shadow"), u.firstChild.innerHTML = "", u.style.top = s + "px", u.style.height = d + "px";
1257
+ }();
1258
+ }, this.Ba = function () { var e = DayPilot.Global.selecting; e.end = r.coords, e.end.time = r.za(e.start.x, e.end.y), e.end.column = r.xa[r.Aa(e.end.x)], r.Da && (e.end.time = r.za(e.end.x, e.end.y)), r.Ea(e); }, this.Ea = function (e) { var t, i, a; r.snapToGrid ? e.end.time < e.start.time ? (t = r.Fa(e.end.time, e.start.column.start), i = r.Ga(e.start.time, e.start.column.start), a = e.endTime) : (t = r.Fa(e.start.time, e.start.column.start), i = r.Ga(e.end.time, e.start.column.start), a = e.startTime) : e.end.time < e.start.time ? (t = e.end.time, i = e.start.time, a = e.endTime) : (t = e.start.time, i = e.end.time, a = e.startTime), e.startTime = t, e.endTime = i, e.anchor = a; }, this.getSelection = function () {
1259
+ if (!r.M)
1260
+ return null;
1261
+ var e = r.M;
1262
+ return new DayPilot.Selection(e.startTime, e.endTime, e.start.column.id, r);
1263
+ }, this.Aa = function (e) {
1260
1264
  if (e < 0)
1261
1265
  return null;
1262
1266
  for (var t = 0, i = r.nav.events.rows[0].cells, a = 0; a < i.length; a++) {
@@ -1264,7 +1268,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1264
1268
  return a;
1265
1269
  }
1266
1270
  return null;
1267
- }, this.Ba = {}, this.Ba.getCellCoords = function () {
1271
+ }, this.za = function (e, t) {
1272
+ e = DayPilot.Util.atLeast(e, 0);
1273
+ var i = this.Aa(e), a = t / (60 / s.ea()) / r.cellHeight, n = 60 * a * 60 * 1e3, o = 6e4 * Math.floor(n / 6e4), l = o, d = this.xa[i];
1274
+ if (!d)
1275
+ return null;
1276
+ var c = d.start.addTime(l);
1277
+ return c = c.addHours(r.ra());
1278
+ }, this.Fa = function (e, t) { var i = e.getTime(); t && (i -= t.getTime()); var a = 60 * s.ea() * 1e3, n = i % a; return e.addTime(-n); }, this.Ga = function (e, t) { var i = this.Fa(e, t); return i.getTime() === e.getTime() ? i : i.addTime(60 * s.ea() * 1e3); }, this.Ha = {}, this.Ha.getCellCoords = function () {
1268
1279
  var e = {};
1269
1280
  if (e.x = 0, e.y = 0, !r.coords)
1270
1281
  return null;
@@ -1287,18 +1298,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1287
1298
  var s = {};
1288
1299
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
1289
1300
  return;
1290
- r.columns.list = i, r.Ca && r.update();
1301
+ r.columns.list = i, r.Ia && r.update();
1291
1302
  }
1292
1303
  };
1293
1304
  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 });
1294
- }, this.ea = function () {
1305
+ }, this.fa = function () {
1295
1306
  var e;
1296
- e = "Resources" !== r.viewType ? this.Da() : r.columns.list, this.wa = [];
1307
+ e = "Resources" !== r.viewType ? this.Ja() : r.columns.list, this.xa = [];
1297
1308
  for (var t = 0; t < e.length; t++) {
1298
- var i = this.Ea(e[t]);
1299
- this.wa.push(i);
1309
+ var i = this.Ka(e[t]);
1310
+ this.xa.push(i);
1300
1311
  }
1301
- }, this.Ea = function (e) {
1312
+ }, this.Ka = function (e) {
1302
1313
  var t = {};
1303
1314
  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
1315
  var i = t.start.getDatePart();
@@ -1343,7 +1354,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1343
1354
  return !0;
1344
1355
  }, i.push(e), this.lines.push(i), this.lines.length - 1;
1345
1356
  }, t;
1346
- }, this.Da = function () {
1357
+ }, this.Ja = function () {
1347
1358
  var e = [], t = this.startDate.getDatePart(), i = this.days;
1348
1359
  switch (this.viewType) {
1349
1360
  case "Day":
@@ -1351,7 +1362,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1351
1362
  break;
1352
1363
  case "Week":
1353
1364
  i = 7;
1354
- var a = s.ca();
1365
+ var a = s.da();
1355
1366
  t = t.firstDayOfWeek(a);
1356
1367
  break;
1357
1368
  case "WorkWeek": i = 5, t = t.firstDayOfWeek(1);
@@ -1363,35 +1374,35 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1363
1374
  return e;
1364
1375
  }, this.visibleStart = function () {
1365
1376
  if ("Resources" === r.viewType) {
1366
- if (0 === r.wa.length)
1377
+ if (0 === r.xa.length)
1367
1378
  return DayPilot.Date.today();
1368
- var e = r.wa.map(function (e) { return e.start.getTime(); }), t = Math.min.apply(null, e);
1379
+ var e = r.xa.map(function (e) { return e.start.getTime(); }), t = Math.min.apply(null, e);
1369
1380
  return new DayPilot.Date(t);
1370
1381
  }
1371
- return this.wa[0].start;
1382
+ return this.xa[0].start;
1372
1383
  }, this.visibleEnd = function () {
1373
1384
  if ("Resources" === r.viewType) {
1374
- if (0 === r.wa.length)
1385
+ if (0 === r.xa.length)
1375
1386
  return DayPilot.Date.today().addDays(1);
1376
- var e = r.wa.map(function (e) { return e.start.getTime(); }), t = Math.max.apply(null, e);
1387
+ var e = r.xa.map(function (e) { return e.start.getTime(); }), t = Math.max.apply(null, e);
1377
1388
  return new DayPilot.Date(t).addDays(1);
1378
1389
  }
1379
- var t = this.wa.length - 1;
1380
- return this.wa[t].start.addDays(1);
1381
- }, this.K = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.W = function () {
1390
+ var t = this.xa.length - 1;
1391
+ return this.xa[t].start.addDays(1);
1392
+ }, this.K = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.X = function () {
1382
1393
  if (this.elements.events)
1383
1394
  for (var e = 0; e < this.elements.events.length; e++) {
1384
1395
  var t = this.elements.events[e];
1385
- r.Fa(t);
1396
+ r.La(t);
1386
1397
  }
1387
1398
  this.elements.events = [];
1388
- }, this.Fa = function (e) {
1399
+ }, this.La = function (e) {
1389
1400
  !function () {
1390
1401
  var t = e.domArgs;
1391
1402
  if (e.domArgs = null, t && "function" == typeof r.onBeforeEventDomRemove && r.onBeforeEventDomRemove(t), t && "function" == typeof r.onBeforeEventDomAdd) {
1392
- var a = t && t.Ga;
1403
+ var a = t && t.Ma;
1393
1404
  if (a) {
1394
- r.Ia.Ha && i(t.element) && (r.Ia.Ja = !0, r.Ia.Ka(a), r.Ia.Ja = !1);
1405
+ r.Oa.Na && i(t.element) && (r.Oa.Pa = !0, r.Oa.Qa(a), r.Oa.Pa = !1);
1395
1406
  }
1396
1407
  }
1397
1408
  }();
@@ -1401,11 +1412,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1401
1412
  a.onmousedown = null, a.onmousemove = null, a.onclick = null;
1402
1413
  }
1403
1414
  e.helper = null, e.data = null, e.event = null, DayPilot.de(e);
1404
- }, this.La = function (e) {
1415
+ }, this.Ra = function (e) {
1405
1416
  var a = e.cache || e.data, n = this.nav.events, o = a.borderRadius || r.eventBorderRadius;
1406
1417
  "number" == typeof o && (o += "px");
1407
1418
  var s = document.createElement("div");
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) {
1419
+ 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.ta, DayPilot.re(s, "contextmenu", this.va), s.onmouseout = function (e) { s.deleteIcon && (s.deleteIcon.style.display = "none"); }, s.onmousemove = function (i) {
1409
1420
  var a = 5;
1410
1421
  if ("undefined" != typeof t) {
1411
1422
  var n = DayPilot.mo3(s, i);
@@ -1421,7 +1432,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1421
1432
  if (1 === a && e.client.moveEnabled()) {
1422
1433
  t.moving = this, DayPilot.Global.moving = this, t.moving.event = this.event;
1423
1434
  var n = t.moving.helper = {};
1424
- n.oldColumn = r.wa[this.data.part.dayIndex].id, t.originalMouse = DayPilot.mc(i), t.originalTop = this.offsetTop;
1435
+ n.oldColumn = r.xa[this.data.part.dayIndex].id, t.originalMouse = DayPilot.mc(i), t.originalTop = this.offsetTop;
1425
1436
  var o = DayPilot.mo3(this, i);
1426
1437
  o ? t.moveOffsetY = o.y : t.moveOffsetY = 0, r.nav.top.style.cursor = "move";
1427
1438
  }
@@ -1439,7 +1450,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1439
1450
  }
1440
1451
  if (e.client.deleteEnabled()) {
1441
1452
  var m = document.createElement("div");
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);
1453
+ 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.wa(t); }, m.style.display = "none", s.deleteIcon = m, s.appendChild(m);
1443
1454
  }
1444
1455
  var p = a.areas ? DayPilot.Areas.copy(a.areas) : [];
1445
1456
  if (DayPilot.Areas.attach(s, e, { "areas": p }), "function" == typeof r.onAfterEventRender) {
@@ -1451,11 +1462,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1451
1462
  if (t.control = r, t.e = e, t.element = null, s.domArgs = t, "function" == typeof r.onBeforeEventDomAdd && r.onBeforeEventDomAdd(t), t.element) {
1452
1463
  var a = l;
1453
1464
  if (a) {
1454
- t.Ga = a;
1465
+ t.Ma = a;
1455
1466
  if (i(t.element)) {
1456
- if (!r.Ia.Ha)
1467
+ if (!r.Oa.Na)
1457
1468
  throw new DayPilot.Exception("Can't reach Vue");
1458
- r.Ia.Ja = !0, r.Ia.Ma(t.element, a), r.Ia.Ja = !1;
1469
+ r.Oa.Pa = !0, r.Oa.Sa(t.element, a), r.Oa.Pa = !1;
1459
1470
  }
1460
1471
  else
1461
1472
  a.appendChild(t.element);
@@ -1464,19 +1475,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1464
1475
  else
1465
1476
  l.innerHTML = e.client.innerHTML();
1466
1477
  }(), n.rows[0].cells[e.part.dayIndex]) {
1467
- n.rows[0].cells[e.part.dayIndex].firstChild.appendChild(s), r.Na(s);
1478
+ n.rows[0].cells[e.part.dayIndex].firstChild.appendChild(s), r.Ta(s);
1468
1479
  }
1469
1480
  r.elements.events.push(s);
1470
- }, this.Na = function (e) {
1481
+ }, this.Ta = function (e) {
1471
1482
  for (var t = e && e.childNodes ? e.childNodes.length : 0, i = 0; i < t; i++)
1472
1483
  try {
1473
1484
  var a = e.childNodes[i];
1474
- 1 === a.nodeType && (a.unselectable = "on", this.Na(a));
1485
+ 1 === a.nodeType && (a.unselectable = "on", this.Ta(a));
1475
1486
  }
1476
1487
  catch (e) { }
1477
- }, this.la = function () {
1478
- for (var e = 0; e < this.wa.length; e++) {
1479
- var t = this.wa[e];
1488
+ }, this.ma = function () {
1489
+ for (var e = 0; e < this.xa.length; e++) {
1490
+ var t = this.xa[e];
1480
1491
  if (t.blocks)
1481
1492
  for (var i = 0; i < t.blocks.length; i++)
1482
1493
  for (var a = t.blocks[i], n = 0; n < a.lines.length; n++)
@@ -1484,13 +1495,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1484
1495
  var s = o[r];
1485
1496
  s.part.width = 100 / a.lines.length, s.part.left = s.part.width * n;
1486
1497
  var l = n === a.lines.length - 1;
1487
- l || (s.part.width = 1.5 * s.part.width), this.La(s);
1498
+ l || (s.part.width = 1.5 * s.part.width), this.Ra(s);
1488
1499
  }
1489
1500
  }
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 () {
1501
+ }, this.Ua = 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.Va() + "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.Wa(); this.nav.top.appendChild(e), this.nav.scroll.style.zoom = 1; var t = this.Xa(); 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.Ya(r.loadingLabelText, r.loadingLabelHtml), this.nav.loading.style.display = "none", this.nav.top.appendChild(this.nav.loading); }, this.ka = function () { this.fasterDispose || DayPilot.pu(this.nav.hourTable), this.nav.scrollable.rows[0].cells[0].innerHTML = "", this.nav.hourTable = this.Za(), this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable); }, this.Xa = 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.Za(), 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.$a()), n.appendChild(this._a()), e.appendChild(t), this.nav.zoom = e, e; }, this.$a = 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._a = function () {
1491
1502
  var e = document.createElement("table");
1492
1503
  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;
1493
- for (var t = this.wa, i = t.length, a = e.insertRow(-1), n = 0; n < i; n++) {
1504
+ for (var t = this.xa, i = t.length, a = e.insertRow(-1), n = 0; n < i; n++) {
1494
1505
  var o = a.insertCell(-1);
1495
1506
  o.style.padding = "0px", o.style.border = "0px none", o.style.height = "0px", o.style.overflow = "visible", r.rtl || (o.style.textAlign = "left");
1496
1507
  var s = document.createElement("div");
@@ -1499,39 +1510,39 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1499
1510
  o.selection = l, o.appendChild(s), o.appendChild(l);
1500
1511
  }
1501
1512
  return e;
1502
- }, this.Ta = function () {
1513
+ }, this.Za = function () {
1503
1514
  var e = document.createElement("table");
1504
1515
  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; };
1505
- for (var t = r.ma(), i = 0; i < t; i++)
1506
- this.Wa(e, i);
1516
+ for (var t = r.na(), i = 0; i < t; i++)
1517
+ this.ab(e, i);
1507
1518
  return e;
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;
1519
+ }, this.ab = function (e, t) { var i = 60 * r.cellHeight / s.ea(), 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.ra()), 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.Va = function () {
1520
+ var e = s.ea(), t = 60 / e;
1510
1521
  switch (this.heightSpec) {
1511
1522
  case "Full": return 24 * t * this.cellHeight;
1512
1523
  case "BusinessHours":
1513
- var i = this.oa();
1524
+ var i = this.pa();
1514
1525
  return i * this.cellHeight * t;
1515
1526
  case "BusinessHoursNoScroll":
1516
- var i = this.oa();
1527
+ var i = this.pa();
1517
1528
  return i * this.cellHeight * t;
1518
1529
  default: throw "DayPilot.Calendar: Unexpected 'heightSpec' value.";
1519
1530
  }
1520
- }, this.Xa = function () {
1531
+ }, this.bb = function () {
1521
1532
  var e = r.nav.corner ? r.nav.corner.parentNode : null;
1522
1533
  if (e) {
1523
1534
  e.innerHTML = "";
1524
- var t = this.Ya();
1535
+ var t = this.cb();
1525
1536
  e.appendChild(t), r.nav.corner = t;
1526
1537
  }
1527
- }, this.Qa = function () {
1538
+ }, this.Wa = function () {
1528
1539
  var e = document.createElement("div");
1529
1540
  e.style.overflow = "auto";
1530
1541
  var t = document.createElement("table");
1531
1542
  t.cellPadding = "0", t.cellSpacing = "0", t.border = "0", t.style.width = "100%", t.style.borderCollapse = "separate", t.style.border = "0px none";
1532
1543
  var i = t.insertRow(-1), a = i.insertCell(-1);
1533
1544
  a.style.padding = "0px", a.style.border = "0px none";
1534
- var n = this.Ya();
1545
+ var n = this.cb();
1535
1546
  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; };
1536
1547
  var o = "hidden" !== this.nav.scroll.style.overflow;
1537
1548
  if (a.appendChild(this.nav.header), o) {
@@ -1542,28 +1553,28 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1542
1553
  s.className = this.K("_cornerright_inner"), r.appendChild(s), a.appendChild(r), this.nav.cornerRight = r;
1543
1554
  }
1544
1555
  return e.appendChild(t), e;
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 () {
1556
+ }, this.cb = 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.Y = function () {
1546
1557
  var e = this.nav.main;
1547
1558
  e.root = null, e.onmouseup = null;
1548
1559
  for (var t = 0; t < e.rows.length; t++)
1549
1560
  for (var i = e.rows[t], a = 0; a < i.cells.length; a++) {
1550
1561
  var n = i.cells[a];
1551
- r.Za(n);
1562
+ r.db(n);
1552
1563
  }
1553
1564
  this.fasterDispose || DayPilot.pu(e);
1554
- }, this.Za = function (e) {
1565
+ }, this.db = function (e) {
1555
1566
  e && (!function () {
1556
1567
  var t = e, a = t.domArgs;
1557
1568
  if (t.domArgs = null, a && "function" == typeof r.onBeforeCellDomRemove && r.onBeforeCellDomRemove(a), a && "function" == typeof r.onBeforeCellDomAdd) {
1558
- var n = a && a.Ga;
1569
+ var n = a && a.Ma;
1559
1570
  if (n) {
1560
- r.Ia.Ha && i(a.element) && (r.Ia.Ja = !0, r.Ia.Ka(n), r.Ia.Ja = !1);
1571
+ r.Oa.Na && i(a.element) && (r.Oa.Pa = !0, r.Oa.Qa(n), r.Oa.Pa = !1);
1561
1572
  }
1562
1573
  }
1563
1574
  }(), e.root = null, e.onmousedown = null, e.onmousemove = null, e.onmouseout = null, e.onmouseup = null);
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;)
1575
+ }, this.ja = function () {
1576
+ var e = s.ea(), a = this.nav.main, n = 60 * e * 1e3, o = this.qa(), l = r.xa;
1577
+ for (a && this.Y(); a && a.rows && a.rows.length > 0;)
1567
1578
  this.fasterDispose || DayPilot.pu(a.rows[0]), a.deleteRow(0);
1568
1579
  this.tableCreated = !0;
1569
1580
  for (var d = l.length, c = this.nav.events; c && c.rows && c.rows.length > 0;)
@@ -1580,31 +1591,31 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1580
1591
  var u = a.insertRow(-1);
1581
1592
  u.style.MozUserSelect = "none", u.style.KhtmlUserSelect = "none";
1582
1593
  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";
1594
+ var y = this.xa[h], f = u.insertCell(-1);
1595
+ f.start = y.start.addTime(v * n), f.end = f.start.addTime(n), f.resource = y.id, f.onmousedown = this.ya, 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
1596
  var m = document.createElement("div");
1586
1597
  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 };
1598
+ var g = this.eb(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 };
1588
1599
  !function () {
1589
1600
  if ("function" == typeof r.onBeforeCellRender) {
1590
1601
  var e = {};
1591
1602
  e.cell = D, r.onBeforeCellRender(e);
1592
1603
  }
1593
1604
  }(), 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 () {
1605
+ var x = document.createElement("div");
1606
+ x.setAttribute("unselectable", "on"), x.className = this.K("_cell_inner");
1607
+ var w = DayPilot.Util.escapeTextHtml(b.text, b.html);
1608
+ w && (x.innerHTML = w), b.backColor && (x.style.backgroundColor = b.backColor), b.backImage && (x.style.backgroundImage = "url(" + b.backImage + ")"), b.backRepeat && (x.style.backgroundRepeat = b.backRepeat), b.fontColor && (x.style.color = b.fontColor), m.appendChild(x), function () {
1598
1609
  if ("function" == typeof r.onBeforeCellDomAdd || "function" == typeof r.onBeforeCellDomRemove) {
1599
1610
  var e = {};
1600
1611
  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;
1612
+ var t = x;
1602
1613
  if (t) {
1603
- e.Ga = t;
1614
+ e.Ma = t;
1604
1615
  if (i(e.element)) {
1605
- if (!r.Ia.Ha)
1616
+ if (!r.Oa.Na)
1606
1617
  throw new DayPilot.Exception("Can't reach Vue");
1607
- r.Ia.Ja = !0, r.Ia.Ma(e.element, t), r.Ia.Ja = !1;
1618
+ r.Oa.Pa = !0, r.Oa.Sa(e.element, t), r.Oa.Pa = !1;
1608
1619
  }
1609
1620
  else
1610
1621
  t.appendChild(e.element);
@@ -1619,17 +1630,17 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1619
1630
  r.coords = DayPilot.mo3(i, e);
1620
1631
  var a = DayPilot.mc(e);
1621
1632
  if (t.resizing) {
1622
- t.resizingShadow || (t.resizingShadow = r._(t.resizing, !1, r.shadow));
1633
+ t.resizingShadow || (t.resizingShadow = r.aa(t.resizing, !1, r.shadow));
1623
1634
  var n = r.cellHeight, o = 1, s = a.y - t.originalMouse.y;
1624
1635
  if ("bottom" === t.resizing.dpBorder) {
1625
- var l = Math.floor((t.originalHeight + t.originalTop + s + n / 2) / n) * n - t.originalTop + o;
1626
- l < n && (l = n);
1636
+ var l = t.originalHeight + s;
1637
+ r.snapToGrid && (l = Math.floor((t.originalHeight + t.originalTop + s + n / 2) / n) * n - t.originalTop + o), l < n && (l = n);
1627
1638
  var d = r.nav.main.clientHeight;
1628
1639
  t.originalTop + l > d && (l = d - t.originalTop), t.resizingShadow.style.height = l + "px";
1629
1640
  }
1630
1641
  else if ("top" === t.resizing.dpBorder) {
1631
- var c = Math.floor((t.originalTop + s - o + n / 2) / n) * n + o;
1632
- c < o && (c = o), c > t.originalTop + t.originalHeight - n && (c = t.originalTop + t.originalHeight - n);
1642
+ var c = t.originalTop + s;
1643
+ r.snapToGrid && (c = Math.floor((t.originalTop + s - o + n / 2) / n) * n + o), c < o && (c = o), c > t.originalTop + t.originalHeight - n && (c = t.originalTop + t.originalHeight - n);
1633
1644
  var l = t.originalHeight - (c - t.originalTop);
1634
1645
  l < n ? l = n : t.resizingShadow.style.top = c + "px", t.resizingShadow.style.height = l + "px";
1635
1646
  }
@@ -1641,23 +1652,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1641
1652
  var u = 3, a = DayPilot.mc(e), h = Math.abs(a.x - t.originalMouse.x) + Math.abs(a.y - t.originalMouse.y);
1642
1653
  if (h <= u)
1643
1654
  return;
1644
- t.movingShadow = r._(t.moving, !0, r.shadow), t.movingShadow.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px";
1655
+ t.movingShadow = r.aa(t.moving, !0, r.shadow), t.movingShadow.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px";
1645
1656
  }
1646
1657
  var n = r.cellHeight, o = 1, f = t.moveOffsetY;
1647
1658
  f || (f = n / 2);
1648
- var c = Math.floor((r.coords.y - f - o + n / 2) / n) * n + o;
1649
- c < o && (c = o);
1659
+ var c = r.coords.y - f;
1660
+ r.snapToGrid && (c = Math.floor((r.coords.y - f - o + n / 2) / n) * n + o), c < o && (c = o);
1650
1661
  var m = r.nav.events, d = r.nav.main.clientHeight + o, p = parseInt(t.movingShadow.style.height);
1651
1662
  c + p > d && (c = d - p), DayPilot.Util.addClass(t.moving, r.K("_event_moving_source")), t.movingShadow.parentNode.style.display = "none", t.movingShadow.style.top = c + "px", t.movingShadow.parentNode.style.display = "";
1652
1663
  var v = m.clientWidth / m.rows[0].cells.length, y = Math.floor((r.coords.x - 45) / v);
1653
1664
  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]));
1654
1665
  }
1655
- else if (t.selecting) {
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();
1658
- }
1666
+ else
1667
+ DayPilot.Global.selecting && (r.Ba(), r.Ca());
1659
1668
  }, r.nav.scrollable.style.display = "";
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 () {
1669
+ }, this.eb = 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.Z = function () {
1661
1670
  var e = this.nav.header;
1662
1671
  if (e && e.rows)
1663
1672
  for (var t = 0; t < e.rows.length; t++)
@@ -1666,14 +1675,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1666
1675
  n.onclick = null, n.onmousemove = null, n.onmouseout = null;
1667
1676
  }
1668
1677
  this.fasterDispose || DayPilot.pu(e);
1669
- }, this._a = function (e) {
1678
+ }, this.fb = function (e) {
1670
1679
  function t(t) {
1671
1680
  var n = a[t], o = e ? i.insertCell(-1) : i.cells[t];
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;
1681
+ 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.gb;
1673
1682
  var s, l = e ? document.createElement("div") : o.firstChild;
1674
1683
  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;
1675
1684
  var d = {};
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);
1685
+ d.header = {}, d.header.cssClass = null, d.header.verticalAlignment = "center", d.header.horizontalAlignment = "center", d.column = r.hb(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);
1677
1686
  var c = n.verticalAlignment;
1678
1687
  if (c)
1679
1688
  switch (s.style.display = "flex", c) {
@@ -1696,22 +1705,22 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1696
1705
  break;
1697
1706
  case "right": s.style.justifyContent = "flex-end";
1698
1707
  }
1699
- l.firstChild.innerHTML = r.Sa(n.name, n.html);
1708
+ l.firstChild.innerHTML = r.Ya(n.name, n.html);
1700
1709
  }
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++)
1710
+ for (var i = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], a = this.xa, n = a.length, o = 0; o < n; o++)
1702
1711
  t(o);
1703
- }, this.ab = function (e) {
1712
+ }, this.gb = function (e) {
1704
1713
  if ("Disabled" !== r.headerClickHandling) {
1705
- var t = this.data, i = r.bb(t), a = {};
1714
+ var t = this.data, i = r.hb(t), a = {};
1706
1715
  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);
1707
1716
  }
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;
1717
+ }, this.hb = function (e) { return new DayPilot.CalendarColumn(e, r); }, this.ib = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.ia = function () {
1718
+ var e = this.nav.header, t = !0, i = this.xa;
1710
1719
  for (i.length; this.headerCreated && e && e.rows && e.rows.length > 0;)
1711
1720
  this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
1712
1721
  this.headerCreated = !0;
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) {
1722
+ this.fb(t);
1723
+ }, 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.T("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.jb = function () { var e = this.nav.scroll; e.root = this, r.kb(), e.onscroll || (e.onscroll = function () { r.lb(); }); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.mb = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.nb = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp)); }, this.events = {}, this.events.add = function (e) {
1715
1724
  var t = null;
1716
1725
  if (e instanceof DayPilot.Event)
1717
1726
  t = e.data;
@@ -1720,7 +1729,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1720
1729
  throw "DayPilot.Calendar.events.add() expects an object or DayPilot.Event instance.";
1721
1730
  t = e;
1722
1731
  }
1723
- r.events.list || (r.events.list = []), r.events.list.push(t), r.ib({ "eventsOnly": !0 }), r.ta.notify();
1732
+ r.events.list || (r.events.list = []), r.events.list.push(t), r.ob({ "eventsOnly": !0 }), r.ua.notify();
1724
1733
  }, this.events.find = function (e) {
1725
1734
  if (!r.events.list)
1726
1735
  return null;
@@ -1748,7 +1757,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1748
1757
  r.events.list.splice(i, 1, e);
1749
1758
  }
1750
1759
  }
1751
- r.ib({ "eventsOnly": !0 }), r.ta.notify();
1760
+ r.ob({ "eventsOnly": !0 }), r.ua.notify();
1752
1761
  }, this.events.remove = function (e) {
1753
1762
  var t;
1754
1763
  if (e instanceof DayPilot.Event)
@@ -1762,7 +1771,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1762
1771
  i && (t = i.data);
1763
1772
  }
1764
1773
  var a = DayPilot.indexOf(r.events.list, t);
1765
- r.events.list.splice(a, 1), r.ib({ "eventsOnly": !0 }), r.ta.notify();
1774
+ r.events.list.splice(a, 1), r.ob({ "eventsOnly": !0 }), r.ua.notify();
1766
1775
  }, this.events.load = function (e, t, i) {
1767
1776
  var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, n = function (e) {
1768
1777
  var i, n = e.request;
@@ -1777,7 +1786,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1777
1786
  var s = {};
1778
1787
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
1779
1788
  return;
1780
- r.events.list = i, r.Ca && r.ib({ "eventsOnly": !0 });
1789
+ r.events.list = i, r.Ia && r.ob({ "eventsOnly": !0 });
1781
1790
  }
1782
1791
  };
1783
1792
  if (r.eventsLoadMethod && "POST" === r.eventsLoadMethod.toUpperCase())
@@ -1786,7 +1795,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1786
1795
  var o = e, s = "start=" + r.visibleStart().toString() + "&end=" + r.visibleEnd().toString();
1787
1796
  o += o.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": o, "success": n, "error": a });
1788
1797
  }
1789
- }, this.jb = function () {
1798
+ }, this.pb = function () {
1790
1799
  if (r.nav.top.className !== r.K("_main")) {
1791
1800
  r.nav.top.className = r.K("_main");
1792
1801
  var e = r.nav.corner;
@@ -1795,18 +1804,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1795
1804
  t && (t.className = r.K("_cornerright"), t.firstChild.className = r.K("_cornerright_inner"));
1796
1805
  }
1797
1806
  }, this.update = function (e) {
1798
- if (r.O)
1807
+ if (r.P)
1799
1808
  throw new DayPilot.Exception("You are trying to update a DayPilot.Calendar instance that has been disposed.");
1800
- r.kb(e), r.ib();
1801
- }, this.ib = function (e) {
1802
- if (this.Ca) {
1809
+ r.qb(e), r.ob();
1810
+ }, this.ob = function (e) {
1811
+ if (this.Ia) {
1803
1812
  var e = e || {}, t = !e.eventsOnly;
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();
1813
+ r.rb(), r.X(), r.nav.top.style.cursor = "auto", t && (r.fa(), r.ia(), r.ja(), r.ka(), r.la(), r.bb(), r.mb(), r.pb(), r.kb()), r.ga(), r.ha(), r.ma(), r.clearSelection(), this.visible ? this.show() : this.hide();
1805
1814
  }
1806
- }, this.mb = null, this.kb = function (e) {
1815
+ }, this.sb = null, this.qb = function (e) {
1807
1816
  if (e) {
1808
1817
  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; } } };
1809
- this.mb = t;
1818
+ this.sb = t;
1810
1819
  for (var i in e)
1811
1820
  if (t[i]) {
1812
1821
  var a = t[i];
@@ -1815,13 +1824,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1815
1824
  else
1816
1825
  r[i] = e[i];
1817
1826
  }
1818
- }, this.nb = function () {
1819
- var e = this.mb;
1827
+ }, this.tb = function () {
1828
+ var e = this.sb;
1820
1829
  for (var t in e) {
1821
1830
  var i = e[t];
1822
1831
  i.postInit && i.postInit();
1823
1832
  }
1824
- }, this.ob = function () {
1833
+ }, this.ub = function () {
1825
1834
  if (this.id && this.id.tagName)
1826
1835
  this.nav.top = this.id;
1827
1836
  else {
@@ -1830,8 +1839,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1830
1839
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
1831
1840
  throw "DayPilot.Calendar: The placeholder element not found: '" + e + "'.";
1832
1841
  }
1833
- }, this.pb = {}, this.pb.events = [], this.qb = function (e) {
1834
- var t = this.pb.events, i = this.events.list[e], a = {};
1842
+ }, this.vb = {}, this.vb.events = [], this.wb = function (e) {
1843
+ var t = this.vb.events, i = this.events.list[e], a = {};
1835
1844
  for (var n in i)
1836
1845
  a[n] = i[n];
1837
1846
  if (a.start = new DayPilot.Date(i.start), a.end = new DayPilot.Date(i.end), "function" == typeof this.onBeforeEventRender) {
@@ -1839,9 +1848,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1839
1848
  o.control = r, o.data = a, this.onBeforeEventRender(o);
1840
1849
  }
1841
1850
  t[e] = a;
1842
- }, this.fa = function () {
1851
+ }, this.ga = function () {
1843
1852
  var e = this.events.list;
1844
- if (r.pb.events = [], e) {
1853
+ if (r.vb.events = [], e) {
1845
1854
  if (!DayPilot.isArray(e))
1846
1855
  throw new DayPilot.Exception("DayPilot.Calendar.events.list expects an array object. You supplied: " + typeof e);
1847
1856
  var t = e.length, i = 864e5;
@@ -1861,11 +1870,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1861
1870
  }
1862
1871
  if ("function" == typeof this.onBeforeEventRender)
1863
1872
  for (var n = 0; n < t; n++)
1864
- this.qb(n);
1865
- for (var n = 0; n < this.wa.length; n++) {
1873
+ this.wb(n);
1874
+ for (var n = 0; n < this.xa.length; n++) {
1866
1875
  var l = {};
1867
1876
  l.minEnd = 1e6, l.maxStart = -1, this.scrollLabels.push(l);
1868
- var d = this.wa[n];
1877
+ var d = this.xa[n];
1869
1878
  d.events = [], d.lines = [], d.blocks = [];
1870
1879
  for (var c = new DayPilot.Date(d.start), u = c.getTime(), h = c.addTime(i), f = h.getTime(), m = 0; m < t; m++)
1871
1880
  if (!a[m]) {
@@ -1875,84 +1884,84 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1875
1884
  if ("Resources" === r.viewType && (b = b && d.id === o.resource), b) {
1876
1885
  var D = new DayPilot.Event(o, r);
1877
1886
  D.part.dayIndex = n, D.part.start = u < y ? p : c, D.part.end = f > g ? v : h;
1878
- var w = this.getPixels(D.part.start, d.start), x = this.getPixels(D.part.end, d.start), C = w.top, P = x.top;
1879
- if (C === P && (w.cut || x.cut))
1887
+ var x = this.getPixels(D.part.start, d.start), w = this.getPixels(D.part.end, d.start), C = x.top, P = w.top;
1888
+ if (C === P && (x.cut || w.cut))
1880
1889
  continue;
1881
- var k = x.boxBottom;
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);
1890
+ var k = w.boxBottom, _ = "Always" === r.useEventBoxes;
1891
+ _ ? (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.top = C + 1, D.part.height = P - C + 1), D.part.barTop = Math.max(C - D.part.top - 1, 0), D.part.barHeight = Math.max(P - C - 2, 1);
1883
1892
  var p = D.part.top, v = D.part.top + D.part.height;
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);
1893
+ 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.vb.events[m]), D.part.start.getTime() === y && D.part.end.getTime() === g && (a[m] = !0);
1885
1894
  }
1886
1895
  }
1887
1896
  }
1888
1897
  }
1889
- for (var n = 0; n < this.wa.length; n++) {
1890
- var d = this.wa[n];
1891
- d.events.sort(this.rb);
1898
+ for (var n = 0; n < this.xa.length; n++) {
1899
+ var d = this.xa[n];
1900
+ d.events.sort(this.xb);
1892
1901
  for (var m = 0; m < d.events.length; m++) {
1893
1902
  var o = d.events[m];
1894
1903
  d.putIntoBlock(o);
1895
1904
  }
1896
1905
  for (var m = 0; m < d.blocks.length; m++) {
1897
- var _ = d.blocks[m];
1898
- _.events.sort(this.rb);
1899
- for (var S = 0; S < _.events.length; S++) {
1900
- var o = _.events[S];
1901
- _.putIntoLine(o);
1906
+ var S = d.blocks[m];
1907
+ S.events.sort(this.xb);
1908
+ for (var M = 0; M < S.events.length; M++) {
1909
+ var o = S.events[M];
1910
+ S.putIntoLine(o);
1902
1911
  }
1903
1912
  }
1904
1913
  }
1905
1914
  }
1906
- }, this.rb = function (e, t) {
1915
+ }, this.xb = function (e, t) {
1907
1916
  if (!(e && t && e.start && t.start))
1908
1917
  return 0;
1909
1918
  var i = e.start().getTime() - t.start().getTime();
1910
1919
  return 0 !== i ? i : t.end().getTime() - e.end().getTime();
1911
1920
  }, 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) {
1912
1921
  t || (t = this.startDate);
1913
- var i = t.getTime(), a = e.getTime(), n = s.da(), o = this.cache.pixels[a + "_" + i];
1922
+ var i = t.getTime(), a = e.getTime(), n = s.ea(), o = this.cache.pixels[a + "_" + i];
1914
1923
  if (o)
1915
1924
  return o;
1916
1925
  i = t.getTime();
1917
1926
  var r = 60 * n * 1e3, l = a - i, d = l % r, c = l - d, u = c + r;
1918
1927
  0 === d && (u = c);
1919
1928
  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()) {
1923
- var e = r.nav.scroll.scrollTop, t = e / (2 * r.cellHeight);
1924
- r.ub.scrollHour = t;
1925
- }
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++) {
1929
+ return h.cut = !1, h.top = this.yb(l), h.boxTop = this.yb(c), h.boxBottom = this.yb(u), this.cache.pixels[a + "_" + i] = h, h;
1930
+ }, this.yb = function (e) { return Math.floor(this.cellHeight * e / (6e4 * s.ea())); }, this.zb = function (e) { var t = Math.floor((shadowTop - _startOffset) / r.cellHeight); r.snapToGrid || (t = (shadowTop - _startOffset) / r.cellHeight); s.ea(); }, this.rb = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.ha = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.la = function () { var e = this.Va(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.ua = {}, this.ua.scope = null, this.ua.notify = function () { r.ua.scope && r.ua.scope["$apply"](); }, this.ua.apply = function (e) { e(); }, this.lb = function () {
1931
+ if (r.nav.scroll && r.Ab()) {
1932
+ var e = r.nav.scroll.scrollTop, t = s.ea(), i = 60 / t, a = e / (i * r.cellHeight);
1933
+ r.Bb.scrollHour = a;
1934
+ }
1935
+ }, this.kb = function () { var e = 0, t = 60 / s.ea(); e = "number" == typeof r.Bb.scrollHour ? t * r.cellHeight * r.Bb.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.lb(); }, this.Cb = 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.mb(); }, this.hide = function () { r.visible = !1, r.nav.top.style.display = "none"; }, this.Db = function () { this.rb(), this.fa(), this.Ua(), this.ia(), this.ja(), this.mb(), this.jb(), this.nb(), t.register(this), this.Eb(), this.T("Init"); }, this.Bb = {}, this.Fb = function () { this.Bb.themes = [], this.Bb.themes.push(this.theme || this.cssClassPrefix); }, this.Gb = function () {
1936
+ for (var e = this.Bb.themes, t = 0; t < e.length; t++) {
1928
1937
  var i = e[t];
1929
1938
  DayPilot.Util.removeClass(this.nav.top, i + "_main");
1930
1939
  }
1931
- this.ub.themes = [];
1932
- }, this.Ab = function () {
1940
+ this.Bb.themes = [];
1941
+ }, this.Hb = function () {
1933
1942
  if (this.afterRender(null, !1), "function" == typeof this.onAfterRender) {
1934
1943
  var e = {};
1935
1944
  e.isCallBack = !1, this.onAfterRender(e);
1936
1945
  }
1937
- }, this.Bb = function () {
1938
- if ("function" == typeof this.onInit && !this.Cb) {
1939
- this.Cb = !0;
1946
+ }, this.Ib = function () {
1947
+ if ("function" == typeof this.onInit && !this.Jb) {
1948
+ this.Jb = !0;
1940
1949
  var e = {};
1941
1950
  this.onInit(e);
1942
1951
  }
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;
1952
+ }, this.Ab = function () { var e = r.nav.top; return !!e && (e.offsetWidth > 0 && e.offsetHeight > 0); }, this.Eb = function () { var e = r.Ab; e() || (r.W = setInterval(function () { e() && (r.jb(), r.mb(), clearInterval(r.W)); }, 100)); }, this.Ya = function (e, t) { return r.ba.ca() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Oa = {}, this.Oa.Na = null, this.Oa.Kb = function (e, t, i) {
1953
+ var a = r.Oa.Na;
1945
1954
  if ("function" == typeof a.createVNode && "function" == typeof a.render) {
1946
1955
  var n = a.createVNode(e, i);
1947
1956
  a.render(n, t);
1948
1957
  }
1949
- }, this.Ia.Ma = function (e, t) {
1950
- var i = r.Ia.Ha;
1958
+ }, this.Oa.Sa = function (e, t) {
1959
+ var i = r.Oa.Na;
1951
1960
  if ("function" == typeof i.render) {
1952
1961
  var a = e;
1953
1962
  DayPilot.isArray(e) && (a = i.h("div", null, e)), i.render(a, t);
1954
1963
  }
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);
1964
+ }, this.Oa.Qa = function (e) { var t = r.Oa.Na; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = r.qb, this.internal.xssTextHtml = r.Ya, this.internal.enableVue = function (e) { r.Oa.Na = e; }, this.internal.vueRef = function () { return r.Oa.Na; }, this.internal.vueRendering = function () { return r.Oa.Pa; }, this.init = function () { this.ub(); var e = this.Cb(); return this.Fb(), e ? void this.Db() : (this.rb(), this.fa(), this.ga(), this.Ua(), this.ia(), this.ja(), this.t(), this.mb(), this.jb(), this.nb(), t.register(this), this.events && (this.ha(), this.ma()), this.Hb(), this.Ib(), this.Eb(), this.Ia = !0, this); }, this.Init = this.init, this.qb(n);
1956
1965
  }, 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) {
1957
1966
  e.fn.daypilotCalendar = function (e) {
1958
1967
  var t = null, i = this.each(function () {
@@ -1971,7 +1980,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1971
1980
  e && e.directive("daypilotCalendar", ["$parse", function (e) {
1972
1981
  return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) {
1973
1982
  var n = new DayPilot.Calendar(i[0]);
1974
- n.ta.scope = t, n.init();
1983
+ n.ua.scope = t, n.init();
1975
1984
  var o = a["id"];
1976
1985
  o && (t[o] = n);
1977
1986
  var r = a["publishAs"];
@@ -1984,7 +1993,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1984
1993
  l.call(t, d, function (e) {
1985
1994
  for (var t in e)
1986
1995
  n[t] = e[t];
1987
- n.update(), n.Bb();
1996
+ n.update(), n.Ib();
1988
1997
  }, !0), l.call(t, c, function (e) { n.events.list = e, n.update(); }, !0);
1989
1998
  } };
1990
1999
  }]);
@@ -1994,13 +2003,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1994
2003
  var DayPilot = {};
1995
2004
  if (function () {
1996
2005
  "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) {
1997
- this.v = "2025.1.638-lite";
2006
+ this.v = "2025.2.643-lite";
1998
2007
  var t = "navigator_" + (new Date).getTime(), i = this;
1999
2008
  this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () {
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)
2009
+ if (this.locale = "en-us", this.target = null, this.targetAlignment = "left", this.resetTarget = !0, this.pattern = this.ba.locale().datePattern, this.theme = "navigator_default", this.patterns = [], this.zIndex = null, e)
2001
2010
  for (var t in e)
2002
2011
  this[t] = e[t];
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 () {
2012
+ }, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.Lb(); this.resetTarget && !e ? this.Mb(this.date) : this.resetTarget || (i.date = e); var t = this.C(); return t && t.addEventListener("input", function () { i.date = i.Lb(), i.date && i.navigator.select(i.date, { dontNotify: !0 }); }), document.addEventListener("mousedown", function () { i.close(); }), this; }, this.close = function () { this.Ab && (this.Ab = !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.Mb(this.date); }, this.Lb = function () {
2004
2013
  var e = this.C();
2005
2014
  if (!e)
2006
2015
  return this.date;
@@ -2013,26 +2022,26 @@ if (function () {
2013
2022
  a = DayPilot.Date.parse(t, i.patterns[n]);
2014
2023
  }
2015
2024
  return a;
2016
- }, this.Fb = function (e) {
2025
+ }, this.Mb = function (e) {
2017
2026
  var t = this.C();
2018
2027
  if (t) {
2019
2028
  var a = e.toString(i.pattern, i.locale);
2020
2029
  "INPUT" === t.tagName ? t.value = a : t.innerHTML = a;
2021
2030
  }
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) {
2031
+ }, this.ba = {}, this.ba.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.Ab; } }), this.show = function () {
2032
+ if (!this.Ab) {
2024
2033
  var e = this.C(), a = this.navigator, a = new DayPilot.Navigator(t);
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;
2034
+ 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.Nb), 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.Mb(n), i.close(), "function" == typeof i.onTimeRangeSelected && i.onTimeRangeSelected(e)); }, this.navigator = a;
2026
2035
  var n = DayPilot.abs(e), o = e.offsetHeight, r = i.targetAlignment, s = document.createElement("div");
2027
2036
  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);
2028
2037
  var l = document.createElement("div");
2029
2038
  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;
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) {
2039
+ var d = i.Lb() || (new DayPilot.Date).getDatePart();
2040
+ if (a.startDate = d, a.Nb = d.getTimePart(), a.selectionDay = d.getDatePart(), a.init(), "right" === r) {
2032
2041
  var c = n.x + e.offsetWidth - a.nav.top.offsetWidth;
2033
2042
  s.style.left = c + "px";
2034
2043
  }
2035
- this.tb = !0, this.onShow && this.onShow();
2044
+ this.Ab = !0, this.onShow && this.onShow();
2036
2045
  }
2037
2046
  }, this.prepare(), this.init();
2038
2047
  });
@@ -2044,10 +2053,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2044
2053
  var e = function () { }, t = {};
2045
2054
  t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) {
2046
2055
  var a = this, n = null;
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) {
2056
+ this.v = "2025.2.643-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.Ob = function () { }, i && DayPilot.isArray(i) && (this.items = i), this.toJSON = function () { return null; }, this.show = function (i, o) {
2048
2057
  o = o || {};
2049
2058
  var r = null;
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) {
2059
+ 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.Ob.submenu = null, null !== t.mouse) {
2051
2060
  a.cssOnly || (a.cssOnly = !0);
2052
2061
  var s = null;
2053
2062
  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) {
@@ -2056,15 +2065,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2056
2065
  return;
2057
2066
  }
2058
2067
  var d = document.createElement("div");
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)
2068
+ 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.Pb("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)
2060
2069
  throw "No menu items defined.";
2061
2070
  if (this.showMenuTitle) {
2062
2071
  var c = document.createElement("div");
2063
- c.innerHTML = this.menuTitle, c.className = this.Ib("title"), d.appendChild(c);
2072
+ c.innerHTML = this.menuTitle, c.className = this.Pb("title"), d.appendChild(c);
2064
2073
  }
2065
2074
  for (var u = 0; u < this.items.length; u++) {
2066
2075
  var h = this.items[u], f = document.createElement("div");
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) {
2076
+ if (DayPilot.Util.addClass(f, this.Pb("item")), h.items && (DayPilot.Util.addClass(f, this.Pb("item_haschildren")), DayPilot.Util.addClass(d, this.Pb("withchildren"))), "undefined" != typeof h && !h.hidden) {
2068
2077
  if ("-" === h.text) {
2069
2078
  var m = document.createElement("div");
2070
2079
  m.addEventListener("click", function (e) { e.stopPropagation(); }), f.appendChild(m);
@@ -2072,7 +2081,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2072
2081
  else {
2073
2082
  var p = document.createElement("a");
2074
2083
  if (p.style.position = "relative", p.style.display = "block", h.cssClass && DayPilot.Util.addClass(p, h.cssClass), h.disabled)
2075
- DayPilot.Util.addClass(p, a.Ib("item_disabled"));
2084
+ DayPilot.Util.addClass(p, a.Pb("item_disabled"));
2076
2085
  else {
2077
2086
  if (h.onclick || h.onClick) {
2078
2087
  p.item = h, p.onclick = function (e, t) {
@@ -2100,7 +2109,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2100
2109
  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));
2101
2110
  }
2102
2111
  if (h.items && !h.disabled) {
2103
- var y = function (e, t) { return function (i) { i.preventDefault(), i.stopPropagation(), a.Jb(e, t); }; };
2112
+ var y = function (e, t) { return function (i) { i.preventDefault(), i.stopPropagation(), a.Qb(e, t); }; };
2104
2113
  p.ontouchend = y(h, p);
2105
2114
  }
2106
2115
  if (h.onclick)
@@ -2136,23 +2145,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2136
2145
  }
2137
2146
  h.items && p.addEventListener("click", function (e) { e.stopPropagation(); }), p.source = s, p.menuSource = i;
2138
2147
  var g = document.createElement("span");
2139
- if (g.className = a.Ib("item_text"), g.innerHTML = DayPilot.Util.escapeTextHtml(h.text, h.html), p.appendChild(g), h.image) {
2148
+ if (g.className = a.Pb("item_text"), g.innerHTML = DayPilot.Util.escapeTextHtml(h.text, h.html), p.appendChild(g), h.image) {
2140
2149
  var b = document.createElement("img");
2141
2150
  b.src = h.image, b.style.position = "absolute", b.style.top = "0px", b.style.left = "0px", p.appendChild(b);
2142
2151
  }
2143
2152
  if (h.icon) {
2144
2153
  var D = document.createElement("span");
2145
- D.className = a.Ib("item_icon");
2146
- var w = document.createElement("i");
2147
- w.className = h.icon, D.appendChild(w), p.appendChild(D);
2154
+ D.className = a.Pb("item_icon");
2155
+ var x = document.createElement("i");
2156
+ x.className = h.icon, D.appendChild(x), p.appendChild(D);
2148
2157
  }
2149
2158
  if (h.symbol) {
2150
- var x = "http://www.w3.org/2000/svg", C = document.createElementNS(x, "svg");
2159
+ var w = "http://www.w3.org/2000/svg", C = document.createElementNS(w, "svg");
2151
2160
  C.setAttribute("width", "100%"), C.setAttribute("height", "100%");
2152
- var P = document.createElementNS(x, "use");
2161
+ var P = document.createElementNS(w, "use");
2153
2162
  P.setAttribute("href", h.symbol), C.appendChild(P);
2154
2163
  var k = document.createElement("span");
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);
2164
+ k.className = a.Pb("item_symbol"), k.style.position = "absolute", k.style.top = "0px", k.style.left = "0px", k.appendChild(C), p.appendChild(k);
2156
2165
  }
2157
2166
  var _ = function (e, i) {
2158
2167
  return function () {
@@ -2162,7 +2171,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2162
2171
  return;
2163
2172
  clearTimeout(o.timeout), t.waitingSubmenu = null;
2164
2173
  }
2165
- e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = n, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, a.Jb(n, i); }, 300));
2174
+ e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = n, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, a.Qb(n, i); }, 300));
2166
2175
  };
2167
2176
  };
2168
2177
  p.onmouseover = _(h, p), f.appendChild(p);
@@ -2171,10 +2180,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2171
2180
  }
2172
2181
  }
2173
2182
  var S = function (e) { window.setTimeout(function () { t.menuClean(), DayPilot.MenuBar.deactivate(); }, 100); };
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;
2183
+ 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.Ob.visible = !0, a.Ob.source = i, d.style.display = "";
2184
+ var M = d.offsetHeight, T = d.offsetWidth;
2176
2185
  d.style.display = "none";
2177
- var T = document.documentElement.clientHeight, H = window.innerWidth, E = "number" == typeof o.windowMargin ? o.windowMargin : 5;
2186
+ var A = document.documentElement.clientHeight, H = window.innerWidth, E = "number" == typeof o.windowMargin ? o.windowMargin : 5;
2178
2187
  if (function () {
2179
2188
  var e = o.initiator;
2180
2189
  if (e) {
@@ -2186,40 +2195,40 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2186
2195
  }
2187
2196
  }(), function () {
2188
2197
  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);
2198
+ if (i - n > A - M && 0 !== A) {
2199
+ s = i - (i - n - (A - M) + E);
2191
2200
  }
2192
2201
  else
2193
2202
  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);
2203
+ if (a.Ob.y = s, d.style.top = s + "px", "right" === o.align && (e -= T), e - r > H - T && 0 !== H) {
2204
+ l = e - (e - r - (H - T) + E);
2196
2205
  }
2197
2206
  else
2198
2207
  l = e;
2199
- a.Hb.x = l, d.style.left = l + "px";
2208
+ a.Ob.x = l, d.style.left = l + "px";
2200
2209
  }(), o.parentLink) {
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";
2210
+ var N = o.parentLink, I = parseInt(new DayPilot.StyleReader(d).get("border-top-width")), O = DayPilot.abs(o.parentLink.parentNode), R = O.x + N.offsetWidth, B = O.y - I;
2211
+ R + T > H && (R = Math.max(0, O.x - T));
2212
+ var U = document.body.scrollTop + document.documentElement.scrollTop;
2213
+ B + M - U > A && (B = Math.max(0, A - M + U)), d.style.left = R + "px", d.style.top = B + "px";
2205
2214
  }
2206
- d.style.display = "", this.addShadow(d), this.Hb.div = d, o.submenu || (DayPilot.Menu.active = this);
2215
+ d.style.display = "", this.addShadow(d), this.Ob.div = d, o.submenu || (DayPilot.Menu.active = this);
2207
2216
  }
2208
2217
  }, 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 });
2218
+ if (a.Ob.visible) {
2219
+ var e = a.Ob.source;
2220
+ a.hide(), a.show(e, { "x": a.Ob.x, "y": a.Ob.y });
2212
2221
  }
2213
- }, this.Jb = function (e, t) {
2222
+ }, this.Qb = function (e, t) {
2214
2223
  var i = e, n = t.source;
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)) {
2224
+ if ((!a.Ob.submenu || a.Ob.submenu.item !== e) && (a.Ob.submenu && a.Ob.submenu.item !== e && (DayPilot.Util.removeClass(a.Ob.submenu.link.parentNode, a.Pb("item_haschildren_active")), a.Ob.submenu.menu.hide(), a.Ob.submenu = null), e.items)) {
2216
2225
  var o = a.cloneOptions();
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"));
2226
+ o.items = e.items, a.Ob.submenu = {}, a.Ob.submenu.menu = new DayPilot.Menu(o), a.Ob.submenu.menu.Rb = a, a.Ob.submenu.menu.show(n, { "submenu": !0, "parentLink": t, "parentItem": i }), a.Ob.submenu.item = e, a.Ob.submenu.link = t, DayPilot.Util.addClass(t.parentNode, a.Pb("item_haschildren_active"));
2218
2227
  }
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();
2228
+ }, this.Pb = 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) {
2229
+ e = e || {}, this.Ob.submenu && this.Ob.submenu.menu.hide();
2221
2230
  var i = t.waitingSubmenu;
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) {
2231
+ if (i && (t.waitingSubmenu = null, clearTimeout(i.timeout)), this.removeShadow(), this.Ob.div && this.Ob.div.parentNode === document.body && document.body.removeChild(this.Ob.div), n && (DayPilot.de(n), n = null), a.Ob.visible = !1, a.Ob.source = null, a.Rb && e.hideParent && a.Rb.hide(e), DayPilot.Menu.active === a && (DayPilot.Menu.active = null), "function" == typeof this.onHide) {
2223
2232
  var o = {};
2224
2233
  this.onHide(o);
2225
2234
  }
@@ -2230,31 +2239,31 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2230
2239
  this[r] = o[r];
2231
2240
  }, DayPilot.MenuBar = function (e, t) {
2232
2241
  var i = this;
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;
2242
+ t = t || {}, this.items = [], this.theme = "menubar_default", this.windowMargin = 0, this.nav = {}, this.elements = {}, this.elements.items = DayPilot.list(), this.k = null, this.Ia = !1;
2234
2243
  for (var a in t)
2235
2244
  this[a] = t[a];
2236
- this.Lb = function (e) { return this.theme + "_" + e; }, this.t = function () {
2245
+ this.Sb = function (e) { return this.theme + "_" + e; }, this.t = function () {
2237
2246
  this.nav.top = document.getElementById(e);
2238
2247
  var t = this.nav.top;
2239
- t.className = this.Lb("main"), DayPilot.list(i.items).forEach(function (e) {
2248
+ t.className = this.Sb("main"), DayPilot.list(i.items).forEach(function (e) {
2240
2249
  var a = document.createElement("span");
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) {
2250
+ a.innerHTML = DayPilot.Util.escapeTextHtml(e.text, e.html), a.className = i.Sb("item"), e.cssClass && a.classList.add(e.cssClass), a.data = e, a.onclick = function (t) {
2242
2251
  if (i.active && i.active.item === e)
2243
- i.Mb();
2252
+ i.Tb();
2244
2253
  else if (e.children)
2245
- return void i.Nb(a);
2254
+ return void i.Ub(a);
2246
2255
  if ("function" == typeof e.onClick) {
2247
2256
  var n = {};
2248
2257
  n.item = e, n.originalEvent = t, e.onClick(n);
2249
2258
  }
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);
2259
+ }, a.onmousedown = function (e) { e.stopPropagation(); }, a.onmouseover = function () { i.active && i.active.item !== e && i.Ub(a); }, t.appendChild(a), i.elements.items.push(a);
2251
2260
  });
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();
2261
+ }, this.Tb = function () { var e = i.Sb("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.Vb = function (e) { return !!i.active && i.active.item === e.data; }, this.Ub = function (e) {
2262
+ if (!i.Vb(e)) {
2263
+ i.Tb();
2255
2264
  var t = e.data, a = i.active = {};
2256
2265
  a.item = t, a.div = e;
2257
- var n = i.Lb("item_active");
2266
+ var n = i.Sb("item_active");
2258
2267
  DayPilot.Util.addClass(e, n);
2259
2268
  var o = DayPilot.abs(e);
2260
2269
  if (t.children) {
@@ -2264,8 +2273,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2264
2273
  }
2265
2274
  DayPilot.MenuBar.active = i;
2266
2275
  }
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) {
2276
+ }, this.init = function () { return this.t(), this.Ia = !0, this; }, this.dispose = function () { this.Ia && (this.nav.top.innerHTML = "", this.elements.items = []); };
2277
+ }, DayPilot.MenuBar.deactivate = function () { DayPilot.MenuBar.active && (DayPilot.MenuBar.active.Tb(), 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) {
2269
2278
  if (!e || !e.touches)
2270
2279
  return null;
2271
2280
  var t = e.touches[0], i = {};
@@ -2274,7 +2283,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2274
2283
  if (e = e || {}, e.calendar) {
2275
2284
  var i = DayPilot.Menu.active;
2276
2285
  if (i) {
2277
- var a = i.Hb.source;
2286
+ var a = i.Ob.source;
2278
2287
  a && a.calendar === e.calendar && t.menuClean();
2279
2288
  }
2280
2289
  }
@@ -2303,12 +2312,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2303
2312
  return i;
2304
2313
  }
2305
2314
  if (!DayPilot.ModalStatic) {
2306
- DayPilot.ModalStatic = {}, DayPilot.ModalStatic.list = [], DayPilot.ModalStatic.hide = function () {
2307
- if (this.list.length > 0) {
2308
- var e = this.list.pop();
2309
- e && e.hide();
2310
- }
2311
- }, DayPilot.ModalStatic.remove = function (e) {
2315
+ DayPilot.ModalStatic = {}, DayPilot.ModalStatic.list = [],
2316
+ DayPilot.ModalStatic.hide = function () {
2317
+ if (this.list.length > 0) {
2318
+ var e = this.list.pop();
2319
+ e && e.hide();
2320
+ }
2321
+ }, DayPilot.ModalStatic.remove = function (e) {
2312
2322
  for (var t = DayPilot.ModalStatic.list, i = 0; i < t.length; i++)
2313
2323
  if (t[i] === e)
2314
2324
  return void t.splice(i, 1);
@@ -2322,10 +2332,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2322
2332
  var e = this.list[this.list.length - 1];
2323
2333
  e && e.stretch();
2324
2334
  }
2325
- }, DayPilot.ModalStatic.last = function () {
2326
- var e = DayPilot.ModalStatic.list;
2327
- return e.length > 0 ? e[e.length - 1] : null;
2328
- };
2335
+ }, DayPilot.ModalStatic.last = function () { var e = DayPilot.ModalStatic.list; return e.length > 0 ? e[e.length - 1] : null; };
2329
2336
  var i = function () {
2330
2337
  if ("undefined" == typeof window) {
2331
2338
  var e = {};
@@ -2354,32 +2361,32 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2354
2361
  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) {
2355
2362
  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;
2356
2363
  var t = this;
2357
- this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.Pb = !1, this.Qb = null, this.Rb = null, this.showHtml = function (e) {
2364
+ this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.Wb = !1, this.Xb = null, this.Yb = null, this.showHtml = function (e) {
2358
2365
  if (DayPilot.ModalStatic.displayed(this))
2359
2366
  throw "This modal dialog is already displayed.";
2360
- if (this.div || this.Sb(), this.ib(), this.useIframe) {
2367
+ if (this.div || this.Zb(), this.ob(), this.useIframe) {
2361
2368
  var t = function (e, t) { return function () { e.setInnerHTML(e.id + "iframe", t); }; };
2362
2369
  window.setTimeout(t(this, e), 0);
2363
2370
  }
2364
2371
  else
2365
2372
  e.nodeType ? this.div.appendChild(e) : this.div.innerHTML = e;
2366
- this.ib(), this.Tb(), this.Ub();
2373
+ this.ob(), this.$b(), this._b();
2367
2374
  }, this.showUrl = function (e) {
2368
2375
  if (DayPilot.ModalStatic.displayed(this))
2369
2376
  throw "This modal dialog is already displayed.";
2370
2377
  if (this.useIframe) {
2371
- this.div || this.Sb();
2378
+ this.div || this.Zb();
2372
2379
  var i = this.loadingHtml;
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();
2380
+ i && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", i)), this.re(this.iframe, "load", this.bc), this.iframe.src = e, this.ob(), this.$b(), this._b();
2374
2381
  }
2375
2382
  else
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 () {
2383
+ t.cc({ "url": e, "success": function (e) { var i = e.request.responseText; t.showHtml(i); }, "error": function (e) { t.showHtml("Error loading the modal dialog"); } });
2384
+ }, this._b = function () {
2378
2385
  if ("function" == typeof t.onShow) {
2379
2386
  var e = {};
2380
- e.root = t.Xb(), e.modal = t, t.onShow(e);
2387
+ e.root = t.dc(), e.modal = t, t.onShow(e);
2381
2388
  }
2382
- }, this.Xb = function () { return t.iframe ? t.iframe.contentWindow.document : t.div; }, this.Wb = function (e) {
2389
+ }, this.dc = function () { return t.iframe ? t.iframe.contentWindow.document : t.div; }, this.cc = function (e) {
2383
2390
  var t = new XMLHttpRequest;
2384
2391
  if (t) {
2385
2392
  var i = e.method || "GET", a = e.success || function () { }, n = e.error || function () { }, o = e.data, r = e.url;
@@ -2397,30 +2404,30 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2397
2404
  window.console && console.log("HTTP error " + t.status);
2398
2405
  }, 4 !== t.readyState && ("object" == typeof o && (o = JSON.stringify(o)), t.send(o));
2399
2406
  }
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; };
2407
+ }, this.ob = 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.fc(), DayPilot.ModalStatic.remove(this), DayPilot.ModalStatic.list.push(this); }, this.bc = function () { t.iframe.contentWindow.modal = t, t.autoStretch && t.stretch(); }, this.stretch = function () {
2408
+ var e = function () { return t.ec().y; }, i = function () { return t.ec().x; };
2402
2409
  if (this.useIframe) {
2403
- for (var a = i() - 40, n = this.width; n < a && this.$b(); n += 10)
2410
+ for (var a = i() - 40, n = this.width; n < a && this.gc(); n += 10)
2404
2411
  this.div.style.width = n + "px", this.div.style.marginLeft = "-" + Math.floor(n / 2) + "px";
2405
- for (var o = this.maxHeight || e() - 2 * this.top, r = this.height; r < o && this._b(); r += 10)
2412
+ for (var o = this.maxHeight || e() - 2 * this.top, r = this.height; r < o && this.hc(); r += 10)
2406
2413
  this.iframe.style.height = r + "px", this.div.style.height = r + "px";
2407
- this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.Vb);
2414
+ this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.bc);
2408
2415
  }
2409
2416
  else
2410
2417
  this.div.style.height = "";
2411
- }, this.$b = function () {
2418
+ }, this.gc = function () {
2412
2419
  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++) {
2413
2420
  var o = a[n].offsetLeft + a[n].offsetWidth;
2414
2421
  i = Math.max(i, o);
2415
2422
  }
2416
2423
  return i > t.clientWidth;
2417
- }, this._b = function () {
2424
+ }, this.hc = function () {
2418
2425
  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++) {
2419
2426
  var o = a[n].offsetTop + a[n].offsetHeight;
2420
2427
  i = Math.max(i, o);
2421
2428
  }
2422
2429
  return i > t.clientHeight;
2423
- }, this.Yb = function () {
2430
+ }, this.ec = function () {
2424
2431
  var e = document;
2425
2432
  if ("CSS1Compat" === e.compatMode && e.documentElement && e.documentElement.clientWidth) {
2426
2433
  var t = e.documentElement.clientWidth, i = e.documentElement.clientHeight;
@@ -2428,32 +2435,32 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2428
2435
  }
2429
2436
  var t = e.body.clientWidth, i = e.body.clientHeight;
2430
2437
  return { x: t, y: i };
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";
2438
+ }, this.$b = function () { this.Wb || (this.re(window, "resize", this.ic), this.re(window, "scroll", this.jc), this.dragDrop && (this.re(document, "mousemove", this.kc), this.re(document, "mouseup", this.lc)), this.Wb = !0); }, this.nc = function () { this.ue(window, "resize", this.ic), this.ue(window, "scroll", this.jc), this.dragDrop && (this.ue(document, "mousemove", this.kc), this.ue(document, "mouseup", this.lc)), this.Wb = !1; }, this.oc = function (e) { e.target === t.div && (e.preventDefault(), t.div.style.cursor = "move", t.pc(), t.Yb = t.mc(e || window.event), t.Xb = { x: t.div.offsetLeft, y: t.div.offsetTop }); }, this.kc = function (e) {
2439
+ if (t.Yb) {
2440
+ var e = e || window.event, i = t.mc(e), a = i.x - t.Yb.x, n = i.y - t.Yb.y;
2441
+ t.div.style.marginLeft = "0px", t.div.style.top = t.Xb.y + n + "px", t.div.style.left = t.Xb.x + a + "px";
2435
2442
  }
2436
- }, this.ec = function (e) { t.Rb && (t.ic(), t.div.style.cursor = null, t.Rb = null); }, this.hc = function () {
2443
+ }, this.lc = function (e) { t.Yb && (t.qc(), t.div.style.cursor = null, t.Yb = null); }, this.pc = function () {
2437
2444
  if (this.useIframe) {
2438
2445
  var e = document.createElement("div");
2439
2446
  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;
2440
2447
  }
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 () {
2448
+ }, this.qc = function () { this.useIframe && (this.div.removeChild(this.mask), this.mask = null); }, this.ic = function () { t.rc(), t.fc(); }, this.jc = function () { t.rc(); }, this.fc = function () {
2442
2449
  if (!t.left && t.div) {
2443
2450
  var e = t.div.offsetWidth;
2444
2451
  t.div.style.marginLeft = "-" + Math.floor(e / 2) + "px";
2445
2452
  }
2446
- }, this.jc = function () {
2453
+ }, this.rc = function () {
2447
2454
  if (t.hideDiv && t.div && "none" !== t.hideDiv.style.display && "none" !== t.div.style.display) {
2448
- var e = t.kc.scrollY();
2455
+ var e = t.sc.scrollY();
2449
2456
  t.scrollWithPage || (t.div.style.top = e + t.top + "px");
2450
2457
  }
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) {
2458
+ }, this.sc = {}, this.sc.container = function () { return t.container || document.body; }, this.sc.scrollY = function () { var e = t.sc.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) {
2452
2459
  for (var t = { x: e.offsetLeft, y: e.offsetTop }; e.offsetParent;)
2453
2460
  e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop;
2454
2461
  return t;
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++) {
2462
+ }, this.Zb = function () { var e = t.sc.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.oc), 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.tc || (t.stretch(), t.tc = !0)); }, this.close = function (e) { this.result = e, this.hide(); }, this.closeSerialized = function () {
2463
+ for (var e = t.dc(), i = e.querySelectorAll("input, textarea, select"), a = {}, n = 0; n < i.length; n++) {
2457
2464
  var o = i[n], r = o.name;
2458
2465
  if (r) {
2459
2466
  var s = o.value;
@@ -2461,11 +2468,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2461
2468
  }
2462
2469
  }
2463
2470
  t.close(a);
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 () {
2471
+ }, 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.nc(), t.uc(t.div), t.uc(t.hideDiv), t.div = null, t.hideDiv = null, t.iframe = null)); }, this.uc = function (e) { e && e.parentNode && e.parentNode.removeChild(e); }, this.vc = function () {
2465
2472
  if (e)
2466
2473
  for (var t in e)
2467
2474
  this[t] = e[t];
2468
- }, this.oc();
2475
+ }, this.vc();
2469
2476
  }, 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) {
2470
2477
  "object" == typeof t && (i = t, t = ""), i = i || {}, i.height = i.height || 40, i.useIframe = !1;
2471
2478
  var a = i.okText || "OK", n = i.cancelText || "Cancel", o = t || "";
@@ -2566,8 +2573,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2566
2573
  g && g.focus();
2567
2574
  }
2568
2575
  else {
2569
- var w = h.firstFocusable();
2570
- o.autoFocus && w ? w.focus() : o.div.focus();
2576
+ var x = h.firstFocusable();
2577
+ o.autoFocus && x ? x.focus() : o.div.focus();
2571
2578
  }
2572
2579
  });
2573
2580
  }, DayPilot.Modal.close = function (e) { var t = DayPilot.Modal.opener(); t && t.close(e); }, DayPilot.Modal.stretch = function (e) {
@@ -2577,11 +2584,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2577
2584
  t.stretch();
2578
2585
  }, 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)); });
2579
2586
  var r = function (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 || {};
2587
+ this.form = [], this.data = {}, this.theme = "form_default", this.zIndex = 99999, this.locale = "en-us", this.plugins = {}, this.onKey = null, this.wc = [], this.xc = null, this.canceling = !1, this.yc = [], this.f = [], this.zc = null, e = e || {};
2581
2588
  for (var t in e)
2582
2589
  this[t] = e[t];
2583
2590
  };
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) {
2591
+ r.prototype.create = function () { return this.load(), this.render(), this.zc; }, r.prototype.render = function () { var e = this; this.zc = document.createElement("div"), this.wc.forEach(function (t) { e.createView(t); }), this.applyState(); }, r.prototype.createView = function (e) {
2585
2592
  var t = this.theme, i = this, a = document.createElement("div");
2586
2593
  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) {
2587
2594
  var n = document.createElement("div");
@@ -2589,26 +2596,26 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2589
2596
  }
2590
2597
  var o = this.createInteractive(e);
2591
2598
  o.onInput = function (e) {
2592
- if (e = e || {}, i.tc(o, { "debounce": !e.immediate }), "function" == typeof i.onChange) {
2599
+ if (e = e || {}, i.Ac(o, { "debounce": !e.immediate
2600
+ }), "function" == typeof i.onChange) {
2593
2601
  var t = {};
2594
2602
  t.result = i.serialize(), i.onChange(t);
2595
2603
  }
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); }
2604
+ }, o.onBlur = function () { i.canceling || i.Ac(o); }, o.apply(e), o.zc = a, o.row = e, o.element && a.appendChild(o.element), this.f.push(o), this.zc.appendChild(a);
2605
+ }, r.prototype.validate = function () { var e = this, t = !0; return this.f.forEach(function (i) { var a = e.Ac(i); t = t && a; }), t; }, r.prototype.Ac = function (e, t) {
2606
+ function i() { e.Bc && (e.Bc.remove(), e.Bc = null), e.zc.classList.add(u); var t = document.createElement("div"); t.classList.add(h), t.innerText = c.message, e.Bc = t, e.zc.appendChild(t); }
2599
2607
  t = t || {};
2600
2608
  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;
2601
2609
  if (d) {
2602
2610
  var 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);
2611
+ c.valid = !0, c.value = e.save()[o.field], c.message = "Error", c.values = this.serialize(), c.result = this.serialize(), d(c);
2605
2612
  var u = this.theme + "_form_item_invalid", h = this.theme + "_form_item_invalid_message";
2606
2613
  if (c.valid)
2607
- clearTimeout(this.rc[o.field]), e.uc && (e.uc.remove(), e.uc = null), e.sc.classList.remove(u);
2614
+ clearTimeout(this.yc[o.field]), e.Bc && (e.Bc.remove(), e.Bc = null), e.zc.classList.remove(u);
2608
2615
  else if (!n)
2609
2616
  if (a) {
2610
2617
  var f = 1e3;
2611
- clearTimeout(this.rc[o.field]), this.rc[o.field] = setTimeout(function () { i(); }, f);
2618
+ clearTimeout(this.yc[o.field]), this.yc[o.field] = setTimeout(function () { i(); }, f);
2612
2619
  }
2613
2620
  else
2614
2621
  i();
@@ -2628,34 +2635,34 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2628
2635
  }
2629
2636
  for (var n in i)
2630
2637
  this.setValue(n, i[n]);
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) {
2638
+ }, r.prototype.setValue = function (e, t) { this.wc.forEach(function (i) { i.applyValue(e, t); }); }, r.prototype.updateDependentState = function () { var e = this, t = [!0]; (this.xc ? this.xc : this.wc).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) {
2632
2639
  var i = this, a = this.getFieldType(e), n = [];
2633
2640
  if ("radio" === a) {
2634
2641
  if (e.name) {
2635
2642
  var o = new s;
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);
2643
+ o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, i.wc.push(o), n.push(o);
2637
2644
  }
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); }); });
2645
+ 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.wc.push(r), n.push(r), o.children && o.children.forEach(function (e) { var a = i.processFormItem(e, t + 1); n = n.concat(a); }); });
2639
2646
  }
2640
2647
  else if ("title" === a) {
2641
2648
  var o = new s;
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);
2649
+ o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = e.name, i.wc.push(o), n.push(o);
2643
2650
  }
2644
2651
  else if ("image" === a) {
2645
2652
  var o = new s;
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);
2653
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.wc.push(o), n.push(o);
2647
2654
  }
2648
2655
  else if ("html" === a) {
2649
2656
  var o = new s;
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);
2657
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.wc.push(o), n.push(o);
2651
2658
  }
2652
2659
  else if ("scrollable" === a) {
2653
2660
  var o = new s;
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);
2661
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.wc.push(o), n.push(o);
2655
2662
  }
2656
2663
  else {
2657
2664
  var o = new s;
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);
2665
+ o.field = e.id, o.data = e, o.level = t, o.type = a, o.text = e.name, o.children = [], i.wc.push(o), n.push(o);
2659
2666
  }
2660
2667
  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;
2661
2668
  }, r.prototype.doOnKey = function (e) {
@@ -2720,21 +2727,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2720
2727
  }
2721
2728
  i || (e.preventDefault(), e.stopPropagation());
2722
2729
  }, 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;
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 () {
2730
+ }, "time": function () { return t.Cc(e); }, "datetime": function () { return t.Dc(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.Ec = 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.Ec && (t = a.Ec); 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 () {
2724
2731
  var i = new l;
2725
2732
  i.apply = function (e) { i.row = e; var t = i.radio; t.checked = e.checked, t.disabled = !e.enabled; };
2726
2733
  var a = document.createElement("label"), n = document.createElement("input");
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);
2734
+ n.type = "radio", n.name = e.field, n.Ec = 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);
2728
2735
  var o = document.createTextNode(e.text);
2729
2736
  return a.append(o), i.element = a, i.radio = n, i.canFocus = function () { return !1; }, i.focus = function () { i.radio.focus(); }, i.save = function () {
2730
2737
  if (!n.checked)
2731
2738
  return {};
2732
- var t = n.xc, i = {};
2739
+ var t = n.Ec, i = {};
2733
2740
  return i[e.field] = t, i;
2734
2741
  }, 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; } };
2742
+ }, "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.Ec = 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; } };
2736
2743
  return t.plugins && t.plugins[e.type] ? t.plugins[e.type](e) : i[e.type]();
2737
- }, r.prototype.vc = function (e) {
2744
+ }, r.prototype.Cc = function (e) {
2738
2745
  var t = this, i = new l;
2739
2746
  i.apply = function (e) { i.row = e; var t = i.searchable; t.disabled = !e.enabled, t.select(e.value); };
2740
2747
  var a = [], n = e.data.timeInterval || 15;
@@ -2745,7 +2752,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2745
2752
  }
2746
2753
  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();
2747
2754
  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;
2748
- }, r.prototype.wc = function (e) {
2755
+ }, r.prototype.Dc = function (e) {
2749
2756
  var t = this, i = new l;
2750
2757
  i.apply = function (e) {
2751
2758
  i.row = e;
@@ -2795,9 +2802,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2795
2802
  return i.searchable = f, f.create();
2796
2803
  }(), o = document.createElement("div");
2797
2804
  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;
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) {
2805
+ }, r.prototype.findRowsByField = function (e) { return this.wc.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) {
2806
+ var i = this.xc ? this.xc : this.wc, a = i.indexOf(e);
2807
+ return this.xc = i.map(function (i) {
2801
2808
  if (i !== e)
2802
2809
  return i;
2803
2810
  if (e.propsEqual(t))
@@ -2806,11 +2813,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2806
2813
  for (var n in t)
2807
2814
  a[n] = t[n];
2808
2815
  return a;
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 () {
2816
+ }), this.xc[a];
2817
+ }, r.prototype.updateInteractive = function (e) { var t = this.xc.indexOf(e); this.f[t].apply(e); }, r.prototype.applyState = function () {
2811
2818
  var e = this;
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;
2819
+ if (this.updateDependentState(), this.xc) {
2820
+ this.xc.filter(function (t, i) { return e.wc[i] !== t; }).forEach(function (t) { e.updateInteractive(t); }), this.wc = this.xc, this.xc = null;
2814
2821
  }
2815
2822
  }, 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 () {
2816
2823
  var e = {};
@@ -2833,18 +2840,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2833
2840
  return !0;
2834
2841
  }, 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)); };
2835
2842
  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) {
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()); } });
2843
+ this.data = [], this.name = null, this.theme = "searchable_default", this.Fc = !1, this.listZIndex = 1e5, this.onSelect = null, this.Gc = null, this.Hc = null, this.Ic = !1, this.Jc = null, this.Kc = null, this.p = [], this.Lc = null, e = e || {};
2844
+ var t = this, i = { "selected": { post: function (e) { "object" == typeof e && e.id ? t.Gc = e : "string" != typeof e && "number" != typeof e || t.select(e); } } };
2845
+ Object.defineProperty(this, "selected", { get: function () { return this.Gc; } }), Object.defineProperty(this, "disabled", { get: function () { return this.Fc; }, set: function (e) { this.Fc = e, this.Jc && (this.Jc.disabled = e, e && this.Mc()); } });
2839
2846
  for (var a in e)
2840
2847
  i[a] || (this[a] = e[a]);
2841
2848
  for (var a in e)
2842
2849
  i[a] && i[a].post(e[a]);
2843
2850
  };
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 () {
2851
+ d.prototype.select = function (e) { return this.Gc = this.data.find(function (t) { return t.id === e; }), this.Nc(!1), this; }, d.prototype.create = function () {
2845
2852
  function e(e) {
2846
2853
  var i = l.strategy;
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 = [];
2854
+ "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.Hc = null, l.p = [];
2848
2855
  var n = null;
2849
2856
  l.data.forEach(function (i) {
2850
2857
  var o = i.name || i.id;
@@ -2855,27 +2862,27 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2855
2862
  else if ("startsWith" === e && 0 !== o.toLowerCase().indexOf(m.value.toLowerCase()))
2856
2863
  return;
2857
2864
  var r = document.createElement("div");
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();
2865
+ r.className = l.theme + "_list_item", r.innerText = o, r.item = i, i === l.Gc && (l.Hc = r), n || (n = r), r.addEventListener("mousedown", function (e) { a(r), e.preventDefault(); }), r.addEventListener("mousemove", function (e) { l.Hc !== r && (l.Hc = r, t({ dontScroll: !0 })); }), h.appendChild(r), l.p.push(r);
2866
+ }), l.Hc || (l.Hc = n), t();
2860
2867
  }
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()); }
2868
+ 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.Hc && (l.Hc.className += " " + l.theme + "_list_item_highlight", t && !i(l.Hc, h) && l.Hc.scrollIntoView()); }
2862
2869
  function i(e, t) { var i = e.getBoundingClientRect(), a = t.getBoundingClientRect(); return i.top >= a.top && i.bottom <= a.bottom; }
2863
- function a(e) { var t = e.item; l.zc = t, l.Gc(!0), o(), r(); }
2864
- function n() { l.Fc(); }
2870
+ function a(e) { var t = e.item; l.Gc = t, l.Nc(!0), o(), r(); }
2871
+ function n() { l.Mc(); }
2865
2872
  function o() { l.q(); }
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"); }
2873
+ function r() { l.Ic = !0, m.setAttribute("readonly", "readonly"), m.focus(); }
2874
+ function s() { l.Ic = !1, m.removeAttribute("readonly"), m.select(), e("all"); }
2868
2875
  var l = this, d = this, c = document.createElement("div");
2869
2876
  c.className = this.theme + "_main", c.style.position = "relative";
2870
2877
  var u = document.createElement("div");
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()); });
2878
+ 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.Ic ? (l.focus(), s()) : (n(), r()); });
2872
2879
  var h = document.createElement("div");
2873
2880
  h.className = this.theme + "_list", h.style.display = "none", h.style.position = "absolute", h.style.zIndex = this.listZIndex;
2874
2881
  var f = document.createElement("input");
2875
- f.type = "hidden", f.name = this.name, f.searchable = d, this.Ec = f;
2882
+ f.type = "hidden", f.name = this.name, f.searchable = d, this.Lc = f;
2876
2883
  var m = document.createElement("input");
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) {
2884
+ return m.type = "text", m.className = this.theme + "_input", m.disabled = this.Fc, 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) {
2885
+ if (l.Ic) {
2879
2886
  if ("Enter" === e.key)
2880
2887
  return;
2881
2888
  if ("Esc" === e.key || "Escape" === e.key)
@@ -2883,24 +2890,24 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2883
2890
  s();
2884
2891
  }
2885
2892
  if ("ArrowDown" === e.key) {
2886
- var i = d.p.indexOf(d.Ac);
2887
- i + 1 < d.p.length && (d.Ac = d.p[i + 1]), t();
2893
+ var i = d.p.indexOf(d.Hc);
2894
+ i + 1 < d.p.length && (d.Hc = d.p[i + 1]), t();
2888
2895
  }
2889
2896
  else if ("ArrowUp" === e.key) {
2890
- var i = d.p.indexOf(d.Ac);
2891
- i - 1 >= 0 && (d.Ac = d.p[i - 1]), t();
2897
+ var i = d.p.indexOf(d.Hc);
2898
+ i - 1 >= 0 && (d.Hc = d.p[i - 1]), t();
2892
2899
  }
2893
2900
  else
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) {
2901
+ "Enter" === e.key ? l.Hc ? (e.stopPropagation(), a(l.Hc)) : (e.stopPropagation(), n(), r()) : "Esc" !== e.key && "Escape" !== e.key || (e.stopPropagation(), n(), r());
2902
+ }), this.Jc = m, this.Kc = h, this.Gc || (this.Gc = this.data[0], this.Gc && (m.value = this.Gc.name)), c.appendChild(m), c.appendChild(u), c.appendChild(f), c.appendChild(h), c;
2903
+ }, d.prototype.Mc = function () { this.q(), this.Gc ? this.Jc.value = this.Gc.name : (this.Jc.value = "", this.Nc(!0)); }, d.prototype.focus = function () { this.Ic = !0, this.Jc.setAttribute("readonly", "readonly"), this.Jc.focus(), this.Mc(); }, d.prototype.q = function () { this.Kc.style.display = "none"; }, d.prototype.Nc = function (e) {
2904
+ if (this.Lc.value = this.selected ? this.selected.id : null, this.Gc ? this.Jc.value = this.Gc.name : this.Jc.value = "", "function" == typeof this.onSelect) {
2898
2905
  var t = { control: this, ui: e };
2899
2906
  this.onSelect(t);
2900
2907
  }
2901
2908
  };
2902
2909
  var c = function (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 || {};
2910
+ this.form = null, this.item = null, this.data = null, this.name = null, this.theme = "edit_table_default", this.onInput = null, this.nav = {}, this.Oc = null, this.wc = [], e = e || {};
2904
2911
  for (var t in e)
2905
2912
  this[t] = e[t];
2906
2913
  };
@@ -2911,11 +2918,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2911
2918
  i.type = "hidden", i.name = e.name, i.table = this, t.appendChild(i);
2912
2919
  var a = document.createElement("div");
2913
2920
  a.className = this.theme + "_table";
2914
- var n = this.Ic();
2921
+ var n = this.Pc();
2915
2922
  a.appendChild(n);
2916
- var o = e.Jc({});
2923
+ var o = e.Qc({});
2917
2924
  o.spacer = !0;
2918
- var r = this.Kc(o);
2925
+ var r = this.Rc(o);
2919
2926
  r.classList.add(e.theme + "_spacer"), a.appendChild(r);
2920
2927
  var s = document.createElement("div");
2921
2928
  s.className = e.theme + "_tbody", a.appendChild(s), t.appendChild(a);
@@ -2929,18 +2936,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2929
2936
  var n = {};
2930
2937
  n.result = e.form.serialize(), n.value = {}, i(n), a = n.value;
2931
2938
  }
2932
- var o = e.Jc(a);
2933
- e.pc.push(o), e.Lc(), e.Mc();
2939
+ var o = e.Qc(a);
2940
+ e.wc.push(o), e.Sc(), e.Tc();
2934
2941
  }
2935
2942
  }), this.nav.plus = c, d.appendChild(c), t.appendChild(d), t;
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) {
2943
+ }, c.prototype.Pc = 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.Uc = function () { var e = this.item.max || 0; return !!(e && this.wc.length >= e); }, c.prototype.save = function () { var e = this, t = []; return e.wc.forEach(function (e) { var i = {}; e.cells.forEach(function (e) { i[e.id] = e.value; }), t.push(i); }), t; }, c.prototype.load = function (e) {
2937
2944
  if ("[object Array]" !== Object.prototype.toString.call(e))
2938
2945
  throw new Error("Array expected");
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) {
2946
+ this.data = e, this.Vc(), this.Sc();
2947
+ }, c.prototype.Wc = function () { this.disabled ? this.nav.main.classList.add(this.theme + "_disabled") : this.nav.main.classList.remove(this.theme + "_disabled"), this.Uc() ? this.nav.plus.classList.add(this.theme + "_plus_max") : this.nav.plus.classList.remove(this.theme + "_plus_max"); }, c.prototype.Vc = function () { var e = this; this.wc = [], this.data.forEach(function (t) { var i = e.Qc(t); e.wc.push(i); }); }, c.prototype.Xc = function (e) { var t = this, i = t.wc.indexOf(e); t.wc.splice(i, 1); }, c.prototype.Qc = function (e) {
2941
2948
  var t = this, i = {};
2942
2949
  return i.data = e, i.cells = [], t.item.columns.forEach(function (a) {
2943
- var n = a.id, o = e[n], r = t.Rc(a);
2950
+ var n = a.id, o = e[n], r = t.Yc(a);
2944
2951
  if ("undefined" == typeof o)
2945
2952
  if ("text" === r)
2946
2953
  o = "";
@@ -2953,19 +2960,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2953
2960
  var l = {};
2954
2961
  l.id = n, l.value = o, l.type = r, l.data = a, i.cells.push(l);
2955
2962
  }), i;
2956
- }, c.prototype.Rc = function (e) { var t = e.type; return t || (t = e.options ? "select" : "text"), t; }, c.prototype.Lc = function () {
2963
+ }, c.prototype.Yc = function (e) { var t = e.type; return t || (t = e.options ? "select" : "text"), t; }, c.prototype.Sc = function () {
2957
2964
  var e = this;
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();
2965
+ if (this.nav.body.innerHTML = "", this.nav.after.innerHTML = "", this.wc.forEach(function (t) { var i = e.Rc(t); e.nav.body.appendChild(i); }), 0 === this.wc.length) {
2966
+ var t = e.Zc();
2960
2967
  e.nav.after.appendChild(t);
2961
2968
  }
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) {
2969
+ this.Wc();
2970
+ }, c.prototype.Zc = function () { var e = document.createElement("div"); return e.className = this.theme + "_empty", e; }, c.prototype.Rc = function (e) {
2964
2971
  var t = this, i = document.createElement("div");
2965
2972
  i.className = t.theme + "_row", e.cells.forEach(function (a) {
2966
2973
  var n = document.createElement("div");
2967
2974
  n.className = t.theme + "_cell";
2968
- var o = t.Tc(a);
2975
+ var o = t.$c(a);
2969
2976
  if (e.spacer) {
2970
2977
  var r = document.createElement("div");
2971
2978
  r.style.height = "0px", r.style.overflow = "hidden", r.appendChild(o), n.appendChild(r);
@@ -2977,22 +2984,22 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2977
2984
  var a = document.createElement("div");
2978
2985
  a.classList.add(t.theme + "_cell"), a.classList.add(t.theme + "_rowaction");
2979
2986
  var n = document.createElement("span");
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 () {
2987
+ return n.className = this.theme + "_delete", n.addEventListener("click", function (i) { t.disabled || (t.Xc(e), t.Sc(), t.Tc()); }), e.spacer || a.appendChild(n), i.appendChild(a), i;
2988
+ }, c.prototype.Tc = function () {
2982
2989
  var e = this;
2983
2990
  if ("function" == typeof e.onInput) {
2984
2991
  var t = {};
2985
2992
  e.onInput(t);
2986
2993
  }
2987
- }, c.prototype.Tc = function (e) {
2994
+ }, c.prototype.$c = function (e) {
2988
2995
  var t = this, i = e.type;
2989
2996
  if ("text" === i || "number" === i) {
2990
2997
  var a = document.createElement("input");
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;
2998
+ 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.Tc(); }), a;
2992
2999
  }
2993
3000
  if ("select" === i) {
2994
3001
  var n = document.createElement("select");
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;
3002
+ 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.Ec = 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.Ec && (e.value = a.Ec), t.Tc(); }), n;
2996
3003
  }
2997
3004
  throw new Error("Unsupported item type: " + i);
2998
3005
  }, c.prototype.focus = function () { };
@@ -3003,9 +3010,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3003
3010
  if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
3004
3011
  var e = {}, t = DayPilot.Util.isVueVNode;
3005
3012
  e.Month = function (i, a) {
3006
- this.v = "2025.1.638-lite", this.nav = {};
3013
+ this.v = "2025.2.643-lite", this.nav = {};
3007
3014
  var n = this;
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) {
3015
+ 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.P = !1, this.V = 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.X(), n._c(), n.ga(), "Full" === e.UpdateType && (n.ad(), n.bd()), n.la(), n.show(), n.ma(), 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) {
3009
3016
  var t = null;
3010
3017
  if (e instanceof DayPilot.Event)
3011
3018
  t = e.data;
@@ -3014,7 +3021,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3014
3021
  throw "DayPilot.Month.events.add() expects an object or DayPilot.Event instance.";
3015
3022
  t = e;
3016
3023
  }
3017
- n.events.list || (n.events.list = []), n.events.list.push(t), n.update(), n.ta.notify();
3024
+ n.events.list || (n.events.list = []), n.events.list.push(t), n.update(), n.ua.notify();
3018
3025
  }, this.events.find = function (e) {
3019
3026
  if (!n.events.list)
3020
3027
  return null;
@@ -3042,7 +3049,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3042
3049
  n.events.list.splice(i, 1, e);
3043
3050
  }
3044
3051
  }
3045
- n.update(), n.ta.notify();
3052
+ n.update(), n.ua.notify();
3046
3053
  }, this.events.remove = function (e) {
3047
3054
  var t;
3048
3055
  if (e instanceof DayPilot.Event)
@@ -3056,7 +3063,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3056
3063
  i && (t = i.data);
3057
3064
  }
3058
3065
  var a = DayPilot.indexOf(n.events.list, t);
3059
- n.events.list.splice(a, 1), n.update(), n.ta.notify();
3066
+ n.events.list.splice(a, 1), n.update(), n.ua.notify();
3060
3067
  }, this.events.load = function (e, t, i) {
3061
3068
  var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) {
3062
3069
  var i, o = e.request;
@@ -3071,7 +3078,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3071
3078
  var s = {};
3072
3079
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
3073
3080
  return;
3074
- n.events.list = i, n.Ca && n.update();
3081
+ n.events.list = i, n.Ia && n.update();
3075
3082
  }
3076
3083
  };
3077
3084
  if (n.eventsLoadMethod && "POST" === n.eventsLoadMethod.toUpperCase())
@@ -3080,18 +3087,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3080
3087
  var r = e, s = "start=" + n.visibleStart().toString() + "&end=" + n.visibleEnd().toString();
3081
3088
  r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": a });
3082
3089
  }
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) {
3085
- if (n.O)
3090
+ }, 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.xb), 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) {
3091
+ if (n.qb(e), this.Ia) {
3092
+ if (n.P)
3086
3093
  throw new DayPilot.Exception("You are trying to update a DayPilot.Month instance that has been disposed.");
3087
3094
  if (this.cells) {
3088
- n.W(), n.Uc(), n.fa(), n.Vc(), n.Wc(), n.ka(), n.t(), n.la(), this.visible ? this.show() : this.hide();
3095
+ n.X(), n._c(), n.ga(), n.ad(), n.bd(), n.la(), n.t(), n.ma(), this.visible ? this.show() : this.hide();
3089
3096
  }
3090
3097
  }
3091
- }, this.mb = null, this.kb = function (e) {
3098
+ }, this.sb = null, this.qb = function (e) {
3092
3099
  if (e) {
3093
3100
  var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? n.events.list = e.list : n.events.list = e; } } };
3094
- this.mb = t;
3101
+ this.sb = t;
3095
3102
  for (var i in e)
3096
3103
  if (t[i]) {
3097
3104
  var a = t[i];
@@ -3100,14 +3107,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3100
3107
  else
3101
3108
  n[i] = e[i];
3102
3109
  }
3103
- }, this.nb = function () {
3104
- var e = this.mb;
3110
+ }, this.tb = function () {
3111
+ var e = this.sb;
3105
3112
  for (var t in e) {
3106
3113
  var i = e[t];
3107
3114
  i.postInit && i.postInit();
3108
3115
  }
3109
- }, this.pb = {}, this.pb.events = [], this.qb = function (e) {
3110
- var t = this.pb.events, i = this.events.list[e], a = {};
3116
+ }, this.vb = {}, this.vb.events = [], this.wb = function (e) {
3117
+ var t = this.vb.events, i = this.events.list[e], a = {};
3111
3118
  for (var o in i)
3112
3119
  a[o] = i[o];
3113
3120
  if ("function" == typeof this.onBeforeEventRender) {
@@ -3115,14 +3122,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3115
3122
  r.control = n, r.data = a, this.onBeforeEventRender(r);
3116
3123
  }
3117
3124
  t[e] = a;
3118
- }, this.fa = function () {
3125
+ }, this.ga = function () {
3119
3126
  var e = this.events.list;
3120
3127
  if (e) {
3121
3128
  if (!DayPilot.isArray(e))
3122
3129
  throw new DayPilot.Exception("DayPilot.Month.events.list expects an array object. You supplied: " + typeof e);
3123
3130
  if ("function" == typeof this.onBeforeEventRender)
3124
3131
  for (var t = 0; t < e.length; t++)
3125
- this.qb(t);
3132
+ this.wb(t);
3126
3133
  for (var i = 0; i < e.length; i++) {
3127
3134
  var a = e[i];
3128
3135
  if ("object" != typeof a)
@@ -3135,41 +3142,41 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3135
3142
  if (!(n.getTime() > o.getTime()))
3136
3143
  for (var t = 0; t < this.rows.length; t++) {
3137
3144
  var r = this.rows[t], s = new DayPilot.Event(a, this);
3138
- r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.pb.events[i]));
3145
+ r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.vb.events[i]));
3139
3146
  }
3140
3147
  }
3141
3148
  for (var l = 0; l < this.rows.length; l++) {
3142
3149
  var r = this.rows[l];
3143
- r.events.sort(this.rb);
3150
+ r.events.sort(this.xb);
3144
3151
  for (var d = 0; d < this.rows[l].events.length; d++) {
3145
3152
  var c = r.events[d], u = r.getStartColumn(c), h = r.getWidth(c);
3146
3153
  r.putIntoLine(c, u, h, l);
3147
3154
  }
3148
3155
  }
3149
3156
  }
3150
- }, this.W = function () {
3157
+ }, this.X = function () {
3151
3158
  for (var e = 0; e < this.elements.events.length; e++) {
3152
3159
  var t = this.elements.events[e];
3153
- n.Fa(t);
3160
+ n.La(t);
3154
3161
  }
3155
3162
  this.elements.events = [];
3156
- }, this.Fa = function (e) {
3163
+ }, this.La = function (e) {
3157
3164
  !function () {
3158
3165
  var i = e.domArgs;
3159
3166
  if (e.domArgs = null, i && "function" == typeof n.onBeforeEventDomRemove && n.onBeforeEventDomRemove(i), i && "function" == typeof n.onBeforeEventDomAdd) {
3160
- var a = i && i.Ga;
3167
+ var a = i && i.Ma;
3161
3168
  if (a) {
3162
- n.Ia.Ha && t(i.element) && (n.Ia.Ja = !0, n.Ia.Ka(a), n.Ia.Ja = !1);
3169
+ n.Oa.Na && t(i.element) && (n.Oa.Pa = !0, n.Oa.Qa(a), n.Oa.Pa = !1);
3163
3170
  }
3164
3171
  }
3165
3172
  }(), e.event = null, e.click = null, e.parentNode.removeChild(e);
3166
- }, this.la = function () { this.Xc(); }, this.Xc = function () {
3173
+ }, this.ma = function () { this.cd(); }, this.cd = function () {
3167
3174
  this.elements.events = [];
3168
3175
  for (var e = 0; e < this.rows.length; e++)
3169
3176
  for (var t = this.rows[e], i = 0; i < t.lines.length; i++)
3170
3177
  for (var a = t.lines[i], n = 0; n < a.length; n++)
3171
- this.La(a[n]);
3172
- }, this.rb = function (e, t) {
3178
+ this.Ra(a[n]);
3179
+ }, this.xb = function (e, t) {
3173
3180
  if (!(e && t && e.start && t.start))
3174
3181
  return 0;
3175
3182
  var i = e.start().getTime() - t.start().getTime();
@@ -3207,11 +3214,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3207
3214
  for (var i = this.headerHeight, a = 0; a < e; a++)
3208
3215
  i += this.rows[a].getHeight();
3209
3216
  return i += this.cellHeaderHeight, i += t * this.lineHeight();
3210
- }, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.La = function (i) {
3217
+ }, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.Ra = function (i) {
3211
3218
  var a = i.cache || i.data, o = a.borderRadius || n.eventBorderRadius;
3212
3219
  "number" == typeof o && (o += "px");
3213
3220
  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");
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) {
3221
+ 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.ta, f.oncontextmenu = n.dd, f.onmousedown = function (t) {
3215
3222
  t = t || window.event;
3216
3223
  var a = t.which || t.button;
3217
3224
  if (t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), 1 === a)
@@ -3248,7 +3255,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3248
3255
  }
3249
3256
  if (i.client.deleteEnabled()) {
3250
3257
  var y = Math.floor(n.eventHeight / 2 - 9), g = document.createElement("div");
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);
3258
+ 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.wa(t); }, g.style.display = "none", f.deleteIcon = g, f.appendChild(g);
3252
3259
  }
3253
3260
  var b = a.areas ? DayPilot.Areas.copy(a.areas) : [];
3254
3261
  if (DayPilot.Areas.attach(f, i, { "areas": b }), "function" == typeof n.onAfterEventRender) {
@@ -3260,11 +3267,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3260
3267
  if (e.control = n, e.e = i, e.element = null, f.domArgs = e, "function" == typeof n.onBeforeEventDomAdd && n.onBeforeEventDomAdd(e), e.element) {
3261
3268
  var a = m;
3262
3269
  if (a) {
3263
- e.Ga = a;
3270
+ e.Ma = a;
3264
3271
  if (t(e.element)) {
3265
- if (!n.Ia.Ha)
3272
+ if (!n.Oa.Na)
3266
3273
  throw new DayPilot.Exception("Can't reach Vue");
3267
- n.Ia.Ja = !0, n.Ia.Ma(e.element, a, { "style": { "flexGrow": 1 } }), n.Ia.Ja = !1;
3274
+ n.Oa.Pa = !0, n.Oa.Sa(e.element, a, { "style": { "flexGrow": 1 } }), n.Oa.Pa = !1;
3268
3275
  }
3269
3276
  else
3270
3277
  a.appendChild(e.element);
@@ -3273,7 +3280,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3273
3280
  else
3274
3281
  m.innerHTML = i.client.innerHTML();
3275
3282
  }(), this.elements.events.push(f), this.nav.events.appendChild(f);
3276
- }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.Uc = function () {
3283
+ }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this._c = function () {
3277
3284
  "string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart());
3278
3285
  var e, t = (this.startDate, this.lastVisibleDayOfMonth()), i = DayPilot.DateUtil.daysDiff(this.firstDate, t) + 1;
3279
3286
  e = Math.ceil(i / 7), this.days = 7 * e, this.rows = [];
@@ -3301,7 +3308,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3301
3308
  for (var e = this.headerHeight, t = 0; t < this.rows.length; t++)
3302
3309
  e += this.rows[t].getHeight();
3303
3310
  return e;
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 () {
3311
+ }, 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.Ua = function () {
3305
3312
  var t = this.nav.top;
3306
3313
  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");
3307
3314
  var i = document.createElement("div");
@@ -3353,7 +3360,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3353
3360
  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);
3354
3361
  }
3355
3362
  };
3356
- }, this.ka = function () {
3363
+ }, this.la = function () {
3357
3364
  this.nav.top.style.height = this.getHeight() + "px";
3358
3365
  for (var e = 0; e < this.cells.length; e++)
3359
3366
  for (var t = 0; t < this.cells[e].length; t++)
@@ -3373,7 +3380,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3373
3380
  for (var t = DayPilot.DateUtil.daysDiff(this.firstDate, e), i = { x: 0, y: 0 }; t >= 7;)
3374
3381
  i.y++, t -= 7;
3375
3382
  return i.x = t, i;
3376
- }, this.Wc = function () {
3383
+ }, this.bd = function () {
3377
3384
  var e = document.createElement("div");
3378
3385
  e.oncontextmenu = function () { return !1; }, this.nav.cells.appendChild(e), this.cells = [];
3379
3386
  for (var t = 0; t < this.getColCount(); t++) {
@@ -3385,27 +3392,27 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3385
3392
  var n = document.createElement("div");
3386
3393
  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);
3387
3394
  for (var r = 0; r < this.rows.length; r++)
3388
- this.Zc(t, r, e);
3395
+ this.ed(t, r, e);
3389
3396
  }
3390
- }, this.Vc = function () {
3397
+ }, this.ad = function () {
3391
3398
  for (var e = 0; e < this.cells.length; e++)
3392
3399
  for (var t = 0; t < this.cells[e].length; t++) {
3393
3400
  var i = n.cells[e][t];
3394
- n.Za(i);
3401
+ n.db(i);
3395
3402
  }
3396
3403
  this.nav.cells.innerHTML = "";
3397
- }, this.Za = function (e) {
3404
+ }, this.db = function (e) {
3398
3405
  !function () {
3399
3406
  var i = e.domArgs;
3400
3407
  if (e.domArgs = null, i && "function" == typeof n.onBeforeCellDomRemove && n.onBeforeCellDomRemove(i), i && "function" == typeof n.onBeforeCellDomAdd) {
3401
- var a = i && i.Ga;
3408
+ var a = i && i.Ma;
3402
3409
  if (a) {
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);
3410
+ var o = n.fd.reactDOM && isReactCmp(i.element), r = n.Oa.Na && (isVueCmp(i.element) || t(i.element));
3411
+ o ? n.fd.gd(a) : r && (n.Oa.Pa = !0, n.Oa.Qa(a), n.Oa.Pa = !1);
3405
3412
  }
3406
3413
  }
3407
3414
  }(), e.onclick = null;
3408
- }, this.ra = function () { return 2 === n.api; }, this.Zc = function (i, a, r) {
3415
+ }, this.sa = function () { return 2 === n.api; }, this.ed = function (i, a, r) {
3409
3416
  var s = this.rows[a], l = this.firstDate.addDays(7 * a + i), d = l.getDay(), c = null;
3410
3417
  c = 1 === d ? o.locale().monthNames[l.getMonth()] + " " + d : "" + d;
3411
3418
  var u = !n.isWeekend(l), h = { "start": l, "end": l.addDays(1), "properties": { "headerHtml": c, "backColor": null, "business": u, "html": null } }, f = {};
@@ -3417,7 +3424,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3417
3424
  }
3418
3425
  var v = (this.startDate.addMonths(-1).getMonth(), this.startDate.addMonths(1).getMonth(), this.startDate.getMonth(), document.createElement("div"));
3419
3426
  v.setAttribute("unselectable", "on"), p.appendChild(v), v.style.position = "absolute", v.style.left = "0px", v.style.right = "0px", v.style.top = "0px", v.style.bottom = "0px", v.className = this.K("_cell_inner"), m.backColor && (v.style.backgroundColor = f.cell.properties.backColor), p.onmousedown = function (t) { "Disabled" !== n.timeRangeSelectedHandling && (n.clearShadow(), e.timeRangeSelecting = { "root": n, "x": i, "y": a, "from": { x: i, y: a }, "width": 1 }); }, p.onclick = function () {
3420
- var e = function (e) { var t = new DayPilot.Date(e), i = t.addDays(1); n.M(t, i); };
3427
+ var e = function (e) { var t = new DayPilot.Date(e), i = t.addDays(1); n.N(t, i); };
3421
3428
  if ("Disabled" !== n.timeRangeSelectedHandling)
3422
3429
  return void e(l);
3423
3430
  };
@@ -3438,11 +3445,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3438
3445
  if (e.control = n, e.cell = h, e.element = null, p.domArgs = e, "function" == typeof n.onBeforeCellDomAdd && n.onBeforeCellDomAdd(e), e.element) {
3439
3446
  var i = v;
3440
3447
  if (i) {
3441
- e.Ga = i;
3448
+ e.Ma = i;
3442
3449
  if (t(e.element)) {
3443
- if (!n.Ia.Ha)
3450
+ if (!n.Oa.Na)
3444
3451
  throw new DayPilot.Exception("Can't reach Vue");
3445
- n.Ia.Ja = !0, n.Ia.Ma(e.element, i), n.Ia.Ja = !1;
3452
+ n.Oa.Pa = !0, n.Oa.Sa(e.element, i), n.Oa.Pa = !1;
3446
3453
  }
3447
3454
  else
3448
3455
  i.appendChild(e.element);
@@ -3460,12 +3467,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3460
3467
  for (var t = this.headerHeight, i = 0; i < e; i++)
3461
3468
  t += this.rows[i].getHeight();
3462
3469
  return 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) {
3470
+ }, this.T = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.S(); var n = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl && DayPilot.request(this.backendUrl, this.U, n, this.ajaxError); }, this.U = function (e) { n.V(e.responseText); }, this.S = 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.T("EventClick", t, e); }, this.ta = 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) {
3464
3471
  var i = e.event;
3465
3472
  if (i && i.client.clickEnabled())
3466
- if (n.ra()) {
3473
+ if (n.sa()) {
3467
3474
  var a = {};
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))
3475
+ 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.ua.apply(function () { n.onEventClick(a); }), a.preventDefault.value))
3469
3476
  return;
3470
3477
  switch (n.eventClickHandling) {
3471
3478
  case "CallBack":
@@ -3475,7 +3482,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3475
3482
  var o = i.client.contextMenu();
3476
3483
  o ? o.show(i) : n.contextMenu && n.contextMenu.show(i);
3477
3484
  }
3478
- "function" == typeof n.onEventClicked && n.ta.apply(function () { n.onEventClicked(a); });
3485
+ "function" == typeof n.onEventClicked && n.ua.apply(function () { n.onEventClicked(a); });
3479
3486
  }
3480
3487
  else
3481
3488
  switch (n.eventClickHandling) {
@@ -3484,7 +3491,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3484
3491
  break;
3485
3492
  case "JavaScript": n.onEventClick(i);
3486
3493
  }
3487
- }, this.Yc = function () { var e = this; return n.ua(e.event), !1; }, this.ua = function (e) {
3494
+ }, this.dd = function () { var e = this; return n.va(e.event), !1; }, this.va = function (e) {
3488
3495
  if (this.event = e, !e.client.rightClickEnabled())
3489
3496
  return !1;
3490
3497
  var t = {};
@@ -3496,10 +3503,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3496
3503
  }
3497
3504
  return "function" == typeof n.onEventRightClicked && n.onEventRightClicked(t), !1;
3498
3505
  }
3499
- }, this.va = function (e) {
3500
- if (n.ra()) {
3506
+ }, this.wa = function (e) {
3507
+ if (n.sa()) {
3501
3508
  var t = {};
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))
3509
+ if (t.e = e, t.control = n, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventDelete && (n.ua.apply(function () { n.onEventDelete(t); }), t.preventDefault.value))
3503
3510
  return;
3504
3511
  switch (n.eventDeleteHandling) {
3505
3512
  case "CallBack":
@@ -3510,7 +3517,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3510
3517
  break;
3511
3518
  case "Update": n.events.remove(e);
3512
3519
  }
3513
- "function" == typeof n.onEventDeleted && n.ta.apply(function () { n.onEventDeleted(t); });
3520
+ "function" == typeof n.onEventDeleted && n.ua.apply(function () { n.onEventDeleted(t); });
3514
3521
  }
3515
3522
  else
3516
3523
  switch (n.eventDeleteHandling) {
@@ -3522,22 +3529,22 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3522
3529
  break;
3523
3530
  case "JavaScript": n.onEventDelete(e);
3524
3531
  }
3525
- }, this.eventDeleteCallBack = function (e, t) { this.S("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.Q("EventDelete", t, e); }, this.eventMoveCallBack = function (e, t, i, a, n) {
3532
+ }, this.eventDeleteCallBack = function (e, t) { this.T("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.R("EventDelete", t, e); }, this.eventMoveCallBack = function (e, t, i, a, n) {
3526
3533
  if (!t)
3527
3534
  throw "newStart is null";
3528
3535
  if (!i)
3529
3536
  throw "newEnd is null";
3530
3537
  var o = {};
3531
- o.e = e, o.newStart = t, o.newEnd = i, o.position = n, this.S("EventMove", a, o);
3538
+ o.e = e, o.newStart = t, o.newEnd = i, o.position = n, this.T("EventMove", a, o);
3532
3539
  }, this.L = function (e, t, i, a, o, r) {
3533
3540
  var s = e.start().getTimePart(), l = e.end().getDatePart();
3534
3541
  l.getTime() !== e.end().getTime() && (l = l.addDays(1));
3535
3542
  var d = DayPilot.DateUtil.diff(e.end(), l), c = this.getDateFromCell(t, i);
3536
3543
  c = c.addDays(-a);
3537
3544
  var u = DayPilot.DateUtil.daysSpan(e.start(), e.end()) + 1, h = c.addDays(u), f = c.addTime(s), m = h.addTime(d);
3538
- if (n.ra()) {
3545
+ if (n.sa()) {
3539
3546
  var p = {};
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))
3547
+ 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.ua.apply(function () { n.onEventMove(p); }), p.preventDefault.value))
3541
3548
  return;
3542
3549
  switch (n.eventMoveHandling) {
3543
3550
  case "CallBack":
@@ -3545,7 +3552,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3545
3552
  break;
3546
3553
  case "Update": e.start(f), e.end(m), n.events.update(e);
3547
3554
  }
3548
- "function" == typeof n.onEventMoved && n.ta.apply(function () { n.onEventMoved(p); });
3555
+ "function" == typeof n.onEventMoved && n.ua.apply(function () { n.onEventMoved(p); });
3549
3556
  }
3550
3557
  else
3551
3558
  switch (n.eventMoveHandling) {
@@ -3560,14 +3567,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3560
3567
  if (!i)
3561
3568
  throw "newEnd is null";
3562
3569
  var n = {};
3563
- n.e = e, n.newStart = t, n.newEnd = i, this.S("EventResize", a, n);
3570
+ n.e = e, n.newStart = t, n.newEnd = i, this.T("EventResize", a, n);
3564
3571
  }, this.J = function (e, t, i) {
3565
3572
  var a = e.start().getTimePart(), o = e.end().getDatePart();
3566
3573
  o.getTime() !== e.end().getTime() && (o = o.addDays(1));
3567
3574
  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);
3568
- if (n.ra()) {
3575
+ if (n.sa()) {
3569
3576
  var u = {};
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))
3577
+ 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.ua.apply(function () { n.onEventResize(u); }), u.preventDefault.value))
3571
3578
  return;
3572
3579
  switch (n.eventResizeHandling) {
3573
3580
  case "CallBack":
@@ -3575,7 +3582,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3575
3582
  break;
3576
3583
  case "Update": e.start(d), e.end(c), n.events.update(e);
3577
3584
  }
3578
- "function" == typeof n.onEventResized && n.ta.apply(function () { n.onEventResized(u); });
3585
+ "function" == typeof n.onEventResized && n.ua.apply(function () { n.onEventResized(u); });
3579
3586
  }
3580
3587
  else
3581
3588
  switch (n.eventResizeHandling) {
@@ -3584,15 +3591,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3584
3591
  break;
3585
3592
  case "JavaScript": n.onEventResize(e, d, c);
3586
3593
  }
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) {
3588
- if (this.ra()) {
3594
+ }, this.timeRangeSelectedCallBack = function (e, t, i) { var a = {}; a.start = e, a.end = t, this.T("TimeRangeSelected", i, a); }, this.N = function (e, t) {
3595
+ if (this.sa()) {
3589
3596
  var i = {};
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))
3597
+ if (i.control = n, i.start = e, i.end = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.ua.apply(function () { n.onTimeRangeSelect(i); }), i.preventDefault.value))
3591
3598
  return;
3592
3599
  switch (n.timeRangeSelectedHandling) {
3593
3600
  case "CallBack": n.timeRangeSelectedCallBack(e, t);
3594
3601
  }
3595
- "function" == typeof n.onTimeRangeSelected && n.ta.apply(function () { n.onTimeRangeSelected(i); });
3602
+ "function" == typeof n.onTimeRangeSelected && n.ua.apply(function () { n.onTimeRangeSelected(i); });
3596
3603
  }
3597
3604
  else
3598
3605
  switch (n.timeRangeSelectedHandling) {
@@ -3601,9 +3608,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3601
3608
  break;
3602
3609
  case "JavaScript": n.onTimeRangeSelected(e, t);
3603
3610
  }
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; };
3605
- var o = this.aa;
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 () {
3611
+ }, this.ua = {}, this.ua.scope = null, this.ua.notify = function () { n.ua.scope && n.ua.scope["$apply"](); }, this.ua.apply = function (e) { e(); }, this.clearSelection = function () { n.clearShadow(); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.T("Command", t, i); }, this.isWeekend = function (e) { return e = new DayPilot.Date(e), 0 === e.dayOfWeek() || 6 === e.dayOfWeek(); }, this.ba = {}, this.ba.locale = function () { var e = DayPilot.Locale.find(n.locale); return e ? e : DayPilot.Locale.US; }, this.ba.ca = function () { return "Disabled" !== n.xssProtection; };
3612
+ var o = this.ba;
3613
+ 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.P || (e.P = !0, e.ad(), e.X(), 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.P; }, this.nb = 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.ub = function () {
3607
3614
  if (this.id && this.id.tagName)
3608
3615
  this.nav.top = this.id;
3609
3616
  else {
@@ -3612,19 +3619,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3612
3619
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
3613
3620
  throw "DayPilot.Month: The placeholder element not found: '" + id + "'.";
3614
3621
  }
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;
3622
+ }, this.Db = function () { this._c(), this.Ua(), this.bd(), this.nb(), this.T("Init"); }, this.Ya = function (e, t) { return n.ba.ca() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Oa = {}, this.Oa.Na = null, this.Oa.Kb = function (e, t, i) {
3623
+ var a = n.Oa.Na;
3617
3624
  if ("function" == typeof a.createVNode && "function" == typeof a.render) {
3618
3625
  var o = a.createVNode(e, i);
3619
3626
  a.render(o, t);
3620
3627
  }
3621
- }, this.Ia.Ma = function (e, t, i) {
3622
- var a = n.Ia.Ha;
3628
+ }, this.Oa.Sa = function (e, t, i) {
3629
+ var a = n.Oa.Na;
3623
3630
  if ("function" == typeof a.render) {
3624
3631
  var o = e;
3625
3632
  DayPilot.isArray(e) && (o = a.h("div", i, e)), a.render(o, t);
3626
3633
  }
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);
3634
+ }, this.Oa.Qa = function (e) { var t = n.Oa.Na; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = this.qb, this.internal.xssTextHtml = n.Ya, this.internal.enableVue = function (e) { n.Oa.Na = e; }, this.internal.vueRef = function () { return n.Oa.Na; }, this.internal.vueRendering = function () { return n.Oa.Pa; }, this.init = function () { return this.ub(), this.loadFromServer() ? void this.Db() : (this._c(), this.ga(), this.Ua(), this.bd(), this.t(), this.ma(), this.nb(), this.fireAfterRenderDetached(null, !1), this.Ia = !0, this); }, this.Init = this.init, Object.defineProperty(this, "durationBarVisible", { get: function () { return n.eventBarVisible; } }), this.qb(a);
3628
3635
  }, e.gMouseUp = function (t) {
3629
3636
  if (e.movingEvent) {
3630
3637
  var i = e.movingEvent;
@@ -3657,7 +3664,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3657
3664
  if (e.timeRangeSelecting) {
3658
3665
  if (e.timeRangeSelecting.moved) {
3659
3666
  var d = e.timeRangeSelecting, a = d.root, o = new DayPilot.Date(a.getDateFromCell(d.from.x, d.from.y)), c = o.addDays(d.width);
3660
- a.M(o, c), a.clearShadow();
3667
+ a.N(o, c), a.clearShadow();
3661
3668
  }
3662
3669
  e.timeRangeSelecting = null;
3663
3670
  }
@@ -3679,7 +3686,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3679
3686
  e && e.directive("daypilotMonth", ["$parse", function (e) {
3680
3687
  return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) {
3681
3688
  var n = new DayPilot.Month(i[0]);
3682
- n.ta.scope = t, n.init();
3689
+ n.ua.scope = t, n.init();
3683
3690
  var o = a["id"];
3684
3691
  o && (t[o] = n);
3685
3692
  var r = a["publishAs"];
@@ -3705,25 +3712,25 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3705
3712
  if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.def) {
3706
3713
  var e = DayPilot.Util.isVueVNode;
3707
3714
  DayPilot.Navigator = function (t, i) {
3708
- this.v = "2025.1.638-lite";
3715
+ this.v = "2025.2.643-lite";
3709
3716
  var a = this;
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())
3717
+ 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.vb = {}, this.hd = function () { this.root.dp = this, this.root.className = this.K("_main"), "Horizontal" === this.orientation ? (r.jd() || (this.root.style.width = this.showMonths * (7 * r.cellWidth() + this.kd()) + "px"), this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : r.jd() || (this.root.style.width = 7 * r.cellWidth() + this.kd() + "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.sa = function () { return 2 === a.api; }, this.ad = function () { this.root.innerHTML = ""; }, this.K = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.ld = function (e, t) { var i = this.K("_" + t); DayPilot.Util.addClass(e, i); }, this.md = function (e, t) { var i = this.K("_" + t); DayPilot.Util.removeClass(e, i); }, this.nd = function () {
3718
+ if (!r.jd())
3712
3719
  return null;
3713
3720
  var e = 7;
3714
3721
  return this.showWeekNumbers && e++, 100 / e;
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) {
3722
+ }, this.od = function () { return r.jd() ? null : r.cellWidth(); }, this.pd = function (e) { return "number" != typeof e && (e = 1), r.jd() ? this.nd() * e : this.od() * e; }, this.qd = function (e) { var t = r.jd() ? "%" : "px"; return this.pd(e) + t; }, this.bd = function (t, i) {
3716
3723
  var n = {};
3717
3724
  n.cells = [], n.days = [], n.weeks = [];
3718
3725
  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;
3719
3726
  n.rowCount = f;
3720
- var m = (new DayPilot.Date).getDatePart(), p = 7 * r.cellWidth() + this.cd();
3727
+ var m = (new DayPilot.Date).getDatePart(), p = 7 * r.cellWidth() + this.kd();
3721
3728
  n.width = p;
3722
3729
  var v = this.cellHeight * f + this.titleHeight + this.dayHeaderHeight;
3723
3730
  n.height = v;
3724
3731
  var y = document.createElement("div");
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;
3732
+ if (r.jd() ? "Horizontal" === this.orientation && (y.style.width = 100 / a.showMonths + "%") : y.style.width = p + "px", y.style.height = v + "px", "Horizontal" === this.orientation)
3733
+ y.style.position = "absolute", r.jd() ? (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;
3727
3734
  else {
3728
3735
  y.style.position = "relative";
3729
3736
  var g = t > 0 ? a.months[t - 1].top + a.months[t - 1].height : 0;
@@ -3731,12 +3738,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3731
3738
  }
3732
3739
  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);
3733
3740
  var b = this.titleHeight + this.dayHeaderHeight, D = document.createElement("div");
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;
3735
- var w = document.createElement("div");
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;
3741
+ D.style.position = "absolute", D.style.left = "0px", D.style.right = "0px", D.style.top = "0px", D.style.width = a.qd(), 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.rd), y.appendChild(D), this.tl = D;
3737
3742
  var x = document.createElement("div");
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);
3743
+ x.style.position = "absolute", x.style.left = a.qd(), x.style.top = "0px", x.style.width = a.qd(a.showWeekNumbers ? 6 : 5), x.style.height = this.titleHeight + "px", x.style.lineHeight = this.titleHeight + "px", x.setAttribute("unselectable", "on"), x.className = this.K("_title"), x.innerHTML = r.locale().monthNames[o.getMonth()] + " " + o.getYear(), y.appendChild(x), this.ti = x;
3744
+ var w = document.createElement("div");
3745
+ w.style.position = "absolute", w.style.left = a.qd(a.showWeekNumbers ? 7 : 6), w.style.right = a.qd(a.showWeekNumbers ? 7 : 6), w.style.top = "0px", w.style.width = a.qd(), w.style.height = this.titleHeight + "px", w.style.lineHeight = this.titleHeight + "px", w.setAttribute("unselectable", "on"), w.className = this.K("_titleright"), i.right && (w.style.cursor = "pointer", w.innerHTML = "<span>&gt;</span>", w.onclick = this.sd), y.appendChild(w), this.tr = w;
3746
+ var C = (this.kd(), a.showWeekNumbers ? 1 : 0);
3740
3747
  if (this.showWeekNumbers)
3741
3748
  for (var P = 0; P < f; P++) {
3742
3749
  var k = c.addDays(7 * P), _ = null;
@@ -3753,73 +3760,73 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3753
3760
  default: throw "Unknown weekNumberAlgorithm value.";
3754
3761
  }
3755
3762
  var S = document.createElement("div");
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);
3763
+ S.style.position = "absolute", S.style.left = "0px", S.style.right = "0px", S.style.top = P * this.cellHeight + b + "px", S.style.width = a.qd(), 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);
3757
3764
  }
3758
3765
  for (var M = 0; M < 7; M++) {
3759
3766
  n.cells[M] = [];
3760
3767
  var S = document.createElement("div");
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);
3768
+ S.style.position = "absolute", S.style.left = a.qd(M + C), S.style.right = a.qd(M + C), S.style.top = this.titleHeight + "px", S.style.width = a.qd(), 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.td(M) + "</span>", y.appendChild(S), n.days.push(S);
3762
3769
  for (var P = 0; P < f; P++) {
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);
3770
+ var k = c.addDays(7 * P + M), T = this.ud(k) && "none" !== this.vd(), A = k.firstDayOfMonth() === o, H = k < o, E = k >= o.addMonths(1);
3771
+ if ("month" === this.vd())
3772
+ T = T && A;
3773
+ else if ("day" === this.vd())
3774
+ T = T && (A || s && H || l && E);
3775
+ else if ("week" === this.vd()) {
3776
+ var N = k.firstDayOfMonth() === o;
3777
+ T = T && (N || s && H || l && E);
3771
3778
  }
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";
3776
- var U = document.createElement("div");
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);
3778
- var L = null;
3779
- this.cells && this.cells[k.toStringSortable()] && (L = this.cells[k.toStringSortable()]);
3780
- var j = L || {};
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) {
3779
+ var I = document.createElement("div");
3780
+ n.cells[M][P] = I;
3781
+ var O = a.wd(M, P), R = O.x, B = O.y, U = r.jd() ? "%" : "px";
3782
+ I.day = k, I.x = M, I.y = P, I.left = R, I.top = B, I.isCurrentMonth = A, I.isNextMonth = E, I.isPrevMonth = H, I.showBefore = s, I.showAfter = l, I.className = this.K(A ? "_day" : "_dayother"), a.ld(I, "cell"), k.getTime() === m.getTime() && A && this.ld(I, "today"), 0 !== k.dayOfWeek() && 6 !== k.dayOfWeek() || this.ld(I, "weekend"), I.style.position = "absolute",
3783
+ I.style.left = R + U, I.style.right = R + U, I.style.top = B + "px", I.style.width = a.qd(), I.style.height = this.cellHeight + "px", I.style.lineHeight = this.cellHeight + "px";
3784
+ var z = document.createElement("div");
3785
+ z.style.position = "absolute", z.className = k.getTime() === m.getTime() && A ? this.K("_todaybox") : this.K("_daybox"), a.ld(z, "cell_box"), z.style.left = "0px", z.style.top = "0px", z.style.right = "0px", z.style.bottom = "0px", I.appendChild(z);
3786
+ var j = null;
3787
+ this.cells && this.cells[k.toStringSortable()] && (j = this.cells[k.toStringSortable()]);
3788
+ var L = j || {};
3789
+ if (L.day = k, L.isCurrentMonth = A, L.isToday = k.getTime() === m.getTime() && A, L.isWeekend = 0 === k.dayOfWeek() || 6 === k.dayOfWeek(), j ? (L.html = j.html || k.getDay(), L.cssClass = j.css) : (L.html = k.getDay(), L.cssClass = null), "function" == typeof a.onBeforeCellRender) {
3782
3790
  var W = {};
3783
- W.cell = j,
3784
- a.onBeforeCellRender(W), L = W.cell;
3791
+ W.cell = L, a.onBeforeCellRender(W), j = W.cell;
3785
3792
  }
3786
- if (L && DayPilot.Util.addClass(N, L.cssClass || L.css), T || s && H || l && E) {
3793
+ if (j && DayPilot.Util.addClass(I, j.cssClass || j.css), A || s && H || l && E) {
3787
3794
  var F = document.createElement("div");
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);
3795
+ 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.ld(F, "cell_text"), I.isClickable = !0, j && j.html && (F.innerHTML = j.html), I.appendChild(F);
3789
3796
  }
3790
- N.setAttribute("unselectable", "on"), N.onclick = this.qd, function () {
3797
+ I.setAttribute("unselectable", "on"), I.onclick = this.xd, function () {
3791
3798
  if ("function" == typeof a.onBeforeCellDomAdd || "function" == typeof a.onBeforeCellDomRemove) {
3792
3799
  var t = {};
3793
- if (t.control = a, t.cell = j, t.element = null, N.domArgs = t, "function" == typeof a.onBeforeCellDomAdd && a.onBeforeCellDomAdd(t), t.element) {
3794
- var i = U;
3800
+ if (t.control = a, t.cell = L, t.element = null, I.domArgs = t, "function" == typeof a.onBeforeCellDomAdd && a.onBeforeCellDomAdd(t), t.element) {
3801
+ var i = z;
3795
3802
  if (i) {
3796
- t.Ga = i;
3803
+ t.Ma = i;
3797
3804
  if (e(t.element)) {
3798
- if (!a.Ia.Ha)
3805
+ if (!a.Oa.Na)
3799
3806
  throw new DayPilot.Exception("Can't reach Vue");
3800
- a.Ia.Ja = !0, a.Ia.Ma(t.element, i), a.Ia.Ja = !1;
3807
+ a.Oa.Pa = !0, a.Oa.Sa(t.element, i), a.Oa.Pa = !1;
3801
3808
  }
3802
3809
  else
3803
3810
  i.appendChild(t.element);
3804
3811
  }
3805
3812
  }
3806
3813
  }
3807
- }(), y.appendChild(N), A && (a.rd(y, M, P), this.selected.push(N));
3814
+ }(), y.appendChild(I), T && (a.yd(y, M, P), this.selected.push(I));
3808
3815
  }
3809
3816
  }
3810
3817
  var J = document.createElement("div");
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 () {
3818
+ J.style.position = "absolute", J.style.left = "0px", J.style.top = b - 2 + "px", J.style.width = a.qd(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);
3819
+ }, this.wd = function (e, t) { var i = this.titleHeight + this.dayHeaderHeight, n = (this.kd(), this.showWeekNumbers ? 1 : 0); return { "x": a.pd(e + n), "y": t * this.cellHeight + i }; }, this.yd = function (e, t, i) { var n = e.month.cells[t][i]; a.ld(n, "select"); }, this.zd = function (e, t, i) { var n = e.month.cells[t][i]; a.md(n, "select"); }, this.kd = function () { return this.showWeekNumbers ? r.cellWidth() : 0; }, this.Ad = function () {
3813
3820
  if (this.items)
3814
3821
  for (var e = 0; e < this.showMonths; e++)
3815
3822
  for (var t = 0; t < 7; t++)
3816
3823
  for (var i = 0; i < 6; i++) {
3817
3824
  var a = this.months[e].cells[t][i];
3818
- a && (1 === this.items[a.day.toStringSortable()] ? (this.dd(a, "busy"), this.ed(a, "free")) : (this.ed(a, "busy"), this.dd(a, "free")));
3825
+ a && (1 === this.items[a.day.toStringSortable()] ? (this.ld(a, "busy"), this.md(a, "free")) : (this.md(a, "busy"), this.ld(a, "free")));
3819
3826
  }
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 () {
3827
+ }, this.Bd = function () { var e = {}; e.startDate = a.startDate, e.selectionStart = a.selectionStart, e.selectionEnd = a.selectionEnd.addDays(1), a.state.value = JSON.stringify(e); }, this.vd = function () { return (this.selectMode || "").toLowerCase(); }, this.Cd = function () {
3821
3828
  var e = this.selectionDay || this.selectionStart;
3822
- switch (e || (e = DayPilot.Date.today()), e = new DayPilot.Date(e), this.od()) {
3829
+ switch (e || (e = DayPilot.Date.today()), e = new DayPilot.Date(e), this.vd()) {
3823
3830
  case "day":
3824
3831
  this.selectionStart = e, this.selectionDay = e, this.selectionEnd = e;
3825
3832
  break;
@@ -3834,10 +3841,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3834
3841
  break;
3835
3842
  default: throw "Unknown selectMode value.";
3836
3843
  }
3837
- }, this.wd = null, this.select = function (e, t, i) {
3844
+ }, this.Dd = null, this.select = function (e, t, i) {
3838
3845
  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;
3839
- if (!this.Ca)
3840
- return void (this.wd = { "date1": r, "date2": s, "options": l });
3846
+ if (!this.Ia)
3847
+ return void (this.Dd = { "date1": r, "date2": s, "options": l });
3841
3848
  var d = !0, c = !0;
3842
3849
  l && "object" == typeof l ? (l.dontFocus && (d = !1), l.dontNotify && (c = !1)) : "boolean" == typeof l && (d = !l);
3843
3850
  var u = this.selectionStart, h = this.selectionEnd;
@@ -3845,21 +3852,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3845
3852
  var f = !1;
3846
3853
  if (d) {
3847
3854
  var m = this.startDate;
3848
- (this.selectionStart < this.xd() || this.selectionStart >= this.yd()) && (m = this.selectionStart.firstDayOfMonth()), m.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = m;
3855
+ (this.selectionStart < this.Ed() || this.selectionStart >= this.Fd()) && (m = this.selectionStart.firstDayOfMonth()), m.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = m;
3849
3856
  }
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();
3857
+ s && a.freeHandSelectionEnabled ? a.selectionEnd = new DayPilot.Date(s) : this.Cd(), this.ad(), this.hd(), this.Gd(), this.Ad(), this.Bd(), !c || u.equals(this.selectionStart) && h.equals(this.selectionEnd) || this.N(), f && this.Hd();
3851
3858
  }, this.update = function (e) {
3852
- if (a.kb(e), this.Ca) {
3853
- if (a.O)
3859
+ if (a.qb(e), this.Ia) {
3860
+ if (a.P)
3854
3861
  throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed.");
3855
- a.Bd();
3862
+ a.Id();
3856
3863
  var t = { "day": a.selectionDay, "start": a.selectionStart, "end": a.selectionEnd };
3857
- a.ib(), t.start === a.selectionStart && t.end === a.selectionEnd && t.day === a.selectionDay || a.M();
3864
+ a.ob(), t.start === a.selectionStart && t.end === a.selectionEnd && t.day === a.selectionDay || a.N();
3858
3865
  }
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) {
3866
+ }, this.ob = function () { this.ad(), this.hd(), this.Cd(), this.Gd(), this.ga(), this.Ad(), this.Bd(), this.visible ? this.show() : this.hide(); }, this.Id = function () { a.vb = {}; }, this.sb = null, this.qb = function (e) {
3860
3867
  if (e) {
3861
3868
  var t = { "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? a.events.list = e.list : a.events.list = e); } } };
3862
- this.mb = t;
3869
+ this.sb = t;
3863
3870
  for (var i in e)
3864
3871
  if (t[i]) {
3865
3872
  var n = t[i];
@@ -3868,20 +3875,20 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3868
3875
  else
3869
3876
  a[i] = e[i];
3870
3877
  }
3871
- }, this.nb = function () {
3872
- var e = this.mb;
3878
+ }, this.tb = function () {
3879
+ var e = this.sb;
3873
3880
  for (var t in e) {
3874
3881
  var i = e[t];
3875
3882
  i.postInit && i.postInit();
3876
3883
  }
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) {
3884
+ }, this.T = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.S(); var n = "JSON" + JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.U, n, this.Jd) : WebForm_DoCallback(this.uniqueID, n, this.V, null, this.callbackError, !0); }, this.Jd = function (e) {
3878
3885
  if ("function" == typeof a.onAjaxError) {
3879
3886
  var t = {};
3880
3887
  t.request = e, a.onAjaxError(t);
3881
3888
  }
3882
3889
  else
3883
3890
  "function" == typeof a.ajaxError && a.ajaxError(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) {
3891
+ }, this.U = function (e) { a.V(e.responseText); }, this.R = function (e, t, i) { var n = {}; n.action = e, n.parameters = i, n.data = t, n.header = this.S(); var o = "JSON" + JSON.stringify(n); __doPostBack(a.uniqueID, o); }, this.S = function () { var e = {}; return e.v = this.v, e.startDate = this.startDate, e.selectionStart = this.selectionStart, e.showMonths = this.showMonths, e; }, this.Kd = function (e, t) { "refresh" === e && this.Hd(); }, this.td = function (e) { var t = e + r.weekStarts(); return t > 6 && (t -= 7), r.locale().dayNamesShort[t]; }, this.ud = function (e) { return null !== this.selectionStart && null !== this.selectionEnd && (this.selectionStart.getTime() <= e.getTime() && e.getTime() <= this.selectionEnd.getTime()); }, this.Ld = function (e) {
3885
3892
  for (var t = 0; t < a.months.length; t++) {
3886
3893
  var i = a.months[t];
3887
3894
  if (!i)
@@ -3895,14 +3902,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3895
3902
  }
3896
3903
  }
3897
3904
  return null;
3898
- }, this.Fd = function (e) { }, this.Gd = function () {
3899
- if (!r.bd())
3900
- return void (a.Hd = a.cellWidth);
3905
+ }, this.Md = function (e) { }, this.Nd = function () {
3906
+ if (!r.jd())
3907
+ return void (a.Od = a.cellWidth);
3901
3908
  var e = a.months[0].cells[0][0], t = e.clientWidth;
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);
3909
+ a.Od = 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; }); }); });
3910
+ }, this.Pd = function (e) {
3911
+ a.Nd();
3912
+ var t = DayPilot.mo3(a.nav.top, e), i = a.Ld(t);
3906
3913
  if (null === i)
3907
3914
  return null;
3908
3915
  var n = a.months[i], o = this.titleHeight + this.dayHeaderHeight;
@@ -3911,18 +3918,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3911
3918
  for (var r = 0; r < n.cells.length; r++)
3912
3919
  for (var s = 0; s < n.cells[r].length; s++) {
3913
3920
  var l = n.cells[r][s], d = l.top + n.top, c = l.left + n.left;
3914
- if (c <= t.x && t.x < c + a.Hd && d <= t.y && t.y < d + a.cellHeight)
3921
+ if (c <= t.x && t.x < c + a.Od && d <= t.y && t.y < d + a.cellHeight)
3915
3922
  return { "month": i, "x": r, "y": s, "coords": t };
3916
3923
  }
3917
3924
  return null;
3918
- }, this.Jd = function (e) {
3925
+ }, this.Qd = function (e) {
3919
3926
  if (a.freeHandSelectionEnabled) {
3920
- var t = a.Id(e);
3927
+ var t = a.Pd(e);
3921
3928
  t && !t.header && (n.start = t), a.months[t.month].cells[t.x][t.y], e.preventDefault();
3922
3929
  }
3923
- }, this.Kd = function (e) {
3930
+ }, this.Rd = function (e) {
3924
3931
  if (n.start) {
3925
- var t = a.Id(e);
3932
+ var t = a.Pd(e);
3926
3933
  if (n.end)
3927
3934
  n.end = t;
3928
3935
  else if (t) {
@@ -3931,13 +3938,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3931
3938
  }
3932
3939
  n.end && (n.clear(), n.draw());
3933
3940
  }
3934
- }, this.Ld = {};
3935
- var n = this.Ld;
3941
+ }, this.Sd = {};
3942
+ var n = this.Sd;
3936
3943
  n.start = null, n.drawCell = function (e) {
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()) {
3944
+ var t = a.months[e.month], i = a.wd(e.x, e.y), o = t.top + i.y, s = t.left + i.x, l = "px", d = a.qd();
3945
+ if (r.jd()) {
3939
3946
  var c = "Horizontal" === a.orientation ? a.showMonths : 1;
3940
- s = t.leftPct + i.x / c, l = "%", d = a.jd(1 / c);
3947
+ s = t.leftPct + i.x / c, l = "%", d = a.qd(1 / c);
3941
3948
  }
3942
3949
  var u = document.createElement("div");
3943
3950
  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);
@@ -4010,54 +4017,54 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
4010
4017
  return e;
4011
4018
  }, 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(); };
4012
4019
  };
4013
- this.qd = function (e) {
4020
+ this.xd = function (e) {
4014
4021
  var t = this.parentNode, i = this.parentNode.month, n = this.x, o = this.y, r = i.cells[n][o].day;
4015
4022
  if (i.cells[n][o].isClickable) {
4016
4023
  a.clearSelection(), a.selectionDay = r;
4017
4024
  var r = a.selectionDay;
4018
- switch (a.od()) {
4025
+ switch (a.vd()) {
4019
4026
  case "none":
4020
4027
  a.selectionStart = r, a.selectionEnd = r;
4021
4028
  break;
4022
4029
  case "day":
4023
4030
  if (a.autoFocusOnClick) {
4024
4031
  var s = r;
4025
- if (r < a.xd() || r >= a.yd())
4032
+ if (r < a.Ed() || r >= a.Fd())
4026
4033
  return void a.select(r);
4027
4034
  }
4028
4035
  var l = i.cells[n][o];
4029
- a.rd(t, n, o), a.selected.push(l), a.selectionStart = l.day, a.selectionEnd = l.day;
4036
+ a.yd(t, n, o), a.selected.push(l), a.selectionStart = l.day, a.selectionEnd = l.day;
4030
4037
  break;
4031
4038
  case "week":
4032
4039
  if (a.autoFocusOnClick) {
4033
4040
  var s = i.cells[0][o].day, d = i.cells[6][o].day;
4034
- if (s.firstDayOfMonth() === d.firstDayOfMonth() && (s < a.xd() || d >= a.yd()))
4041
+ if (s.firstDayOfMonth() === d.firstDayOfMonth() && (s < a.Ed() || d >= a.Fd()))
4035
4042
  return void a.select(r);
4036
4043
  }
4037
4044
  for (var c = 0; c < 7; c++)
4038
- a.rd(t, c, o), a.selected.push(i.cells[c][o]);
4045
+ a.yd(t, c, o), a.selected.push(i.cells[c][o]);
4039
4046
  a.selectionStart = i.cells[0][o].day, a.selectionEnd = i.cells[6][o].day;
4040
4047
  break;
4041
4048
  case "month":
4042
4049
  if (a.autoFocusOnClick) {
4043
4050
  var s = r;
4044
- if (r < a.xd() || r >= a.yd())
4051
+ if (r < a.Ed() || r >= a.Fd())
4045
4052
  return void a.select(r);
4046
4053
  }
4047
4054
  for (var s = null, d = null, o = 0; o < 6; o++)
4048
4055
  for (var n = 0; n < 7; n++) {
4049
4056
  var l = i.cells[n][o];
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);
4057
+ l && l.day.getYear() === r.getYear() && l.day.getMonth() === r.getMonth() && (a.yd(t, n, o), a.selected.push(l), null === s && (s = l.day), d = l.day);
4051
4058
  }
4052
4059
  a.selectionStart = s, a.selectionEnd = d;
4053
4060
  break;
4054
4061
  default: throw "unknown selectMode";
4055
4062
  }
4056
- a.ud(), a.M();
4063
+ a.Bd(), a.N();
4057
4064
  }
4058
- }, this.M = function (e) {
4065
+ }, this.N = function (e) {
4059
4066
  var t = a.selectionStart, i = a.selectionEnd.addDays(1), n = DayPilot.DateUtil.daysDiff(t, i), o = a.selectionDay;
4060
- if (e = e || {}, a.ra()) {
4067
+ if (e = e || {}, a.sa()) {
4061
4068
  var r = {};
4062
4069
  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))
4063
4070
  return;
@@ -4087,9 +4094,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
4087
4094
  case "None": break;
4088
4095
  case "PostBack": a.timeRangeSelectedPostBack(t, i, o);
4089
4096
  }
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 () {
4097
+ }, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, n.day = a, this.R("TimeRangeSelected", i, n); }, this.sd = function (e) { a.Td(a.skipMonths); }, this.rd = function (e) { a.Td(-a.skipMonths); }, this.Td = function (e) { this.startDate = this.startDate.addMonths(e), this.ad(), this.hd(), this.Gd(), this.Bd(), this.Hd(), this.Ad(); }, this.Ed = function () { return a.startDate.firstDayOfMonth(); }, this.Fd = 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.Hd = function () {
4091
4098
  var e = this.visibleStart(), t = this.visibleEnd();
4092
- if (a.ra()) {
4099
+ if (a.sa()) {
4093
4100
  var i = {};
4094
4101
  if (i.start = e, i.end = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onVisibleRangeChange && (a.onVisibleRangeChange(i), i.preventDefault.value))
4095
4102
  return;
@@ -4117,13 +4124,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
4117
4124
  break;
4118
4125
  case "Disabled":
4119
4126
  }
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 () {
4127
+ }, this.visibleRangeChangedCallBack = function (e) { var t = {}; this.T("Visible", e, t); }, this.visibleRangeChangedPostBack = function (e) { var t = {}; this.R("Visible", e, t); }, this.V = function (e, t) { var e = JSON.parse(e); a.items = e.Items, a.cells = e.Cells, a.cells ? a.update() : a.Ad(); }, this.Gd = function () {
4121
4128
  for (var e = 0; e < this.showMonths; e++) {
4122
- var t = this.Nd(e);
4123
- this.Wc(e, t);
4129
+ var t = this.Ud(e);
4130
+ this.bd(e, t);
4124
4131
  }
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 () {
4132
+ this.root.style.height = this.Vd() + "px", this.nav.preselection = document.createElement("div"), this.nav.preselection.style.position = "absolute", this.nav.preselection.style.left = "0px", this.nav.preselection.style.right = "0px", this.nav.preselection.style.top = "0px", this.root.appendChild(this.nav.preselection);
4133
+ }, this.Vd = function () {
4127
4134
  if ("Horizontal" === this.orientation) {
4128
4135
  for (var e = 0, t = 0; t < this.months.length; t++) {
4129
4136
  var i = this.months[t];
@@ -4136,25 +4143,25 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
4136
4143
  a += i.height;
4137
4144
  }
4138
4145
  return a;
4139
- }, this.Nd = function (e) {
4146
+ }, this.Ud = function (e) {
4140
4147
  if (this.internal.showLinks)
4141
4148
  return this.internal.showLinks;
4142
4149
  var t = {};
4143
4150
  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;
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;
4151
+ }, this.ua = {}, this.ua.scope = null, this.ua.notify = function () { a.ua.scope && a.ua.scope["$apply"](); }, this.Oa = {}, this.Oa.Na = null, this.Oa.Kb = function (e, t, i) {
4152
+ var n = a.Oa.Na;
4146
4153
  if ("function" == typeof n.createVNode && "function" == typeof n.render) {
4147
4154
  var o = n.createVNode(e, i);
4148
4155
  n.render(o, t);
4149
4156
  }
4150
- }, this.Ia.Ma = function (e, t) {
4151
- var i = a.Ia.Ha;
4157
+ }, this.Oa.Sa = function (e, t) {
4158
+ var i = a.Oa.Na;
4152
4159
  if ("function" == typeof i.render) {
4153
4160
  var n = e;
4154
4161
  DayPilot.isArray(e) && (n = i.h("div", null, e)), i.render(n, t);
4155
4162
  }
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 = {};
4157
- var r = this.aa;
4163
+ }, this.Oa.Qa = function (e) { var t = a.Oa.Na; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = a.qb, this.internal.initialized = function () { return a.Ia; }, this.internal.vueRendering = function () { return !1; }, this.internal.enableVue = function (e) { a.Oa.Na = e; }, this.internal.vueRef = function () { return a.Oa.Na; }, this.internal.vueRendering = function () { return a.Oa.Pa; }, this.ba = {};
4164
+ var r = this.ba;
4158
4165
  r.locale = function () { return DayPilot.Locale.find(a.locale); }, r.weekStarts = function () {
4159
4166
  if ("Auto" === a.weekStarts) {
4160
4167
  var e = r.locale();
@@ -4162,33 +4169,33 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
4162
4169
  }
4163
4170
  return a.weekStarts;
4164
4171
  }, r.cellWidth = 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 () {
4172
+ if (a.vb.cellWidth)
4173
+ return a.vb.cellWidth;
4174
+ var e = a.Wd("_cell_dimensions").width;
4175
+ return e || (e = a.cellWidth), a.vb.cellWidth = e, e;
4176
+ }, r.jd = function () { return "Auto" === a.ba.cellWidth(); }, this.clearSelection = function () {
4170
4177
  for (var e = 0; e < this.selected.length; e++) {
4171
4178
  var t = this.selected[e];
4172
- a.sd(t.parentNode, t.x, t.y);
4179
+ a.zd(t.parentNode, t.x, t.y);
4173
4180
  }
4174
4181
  this.selected = [];
4175
- }, this.Qd = function () { return !!this.backendUrl && ("undefined" == typeof a.items || !a.items); }, this.events = {}, this.fa = function () {
4182
+ }, this.Xd = function () { return !!this.backendUrl && ("undefined" == typeof a.items || !a.items); }, this.events = {}, this.ga = function () {
4176
4183
  if (DayPilot.isArray(this.events.list)) {
4177
4184
  this.items = {};
4178
4185
  for (var e = 0; e < this.events.list.length; e++) {
4179
4186
  var t = this.events.list[e];
4180
4187
  if (!t.hidden) {
4181
- var i = this.Rd(t);
4188
+ var i = this.Yd(t);
4182
4189
  for (var a in i)
4183
4190
  this.items[a] = 1;
4184
4191
  }
4185
4192
  }
4186
4193
  }
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) {
4194
+ }, this.Wd = 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.Yd = function (e) {
4188
4195
  for (var t = new DayPilot.Date(e.start), i = new DayPilot.Date(e.end), a = {}, n = t.getDatePart(); n.getTime() <= i.getTime();)
4189
4196
  a[n.toStringSortable()] = 1, n = n.addDays(1);
4190
4197
  return a;
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 () {
4198
+ }, this.show = function () { a.visible = !0, a.root.style.display = ""; }, this.hide = function () { a.visible = !1, a.root.style.display = "none"; }, this.ub = function () {
4192
4199
  if (this.id && this.id.tagName)
4193
4200
  this.nav.top = this.id;
4194
4201
  else {
@@ -4199,26 +4206,26 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
4199
4206
  }
4200
4207
  this.root = this.nav.top;
4201
4208
  }, this.init = function () {
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;
4209
+ if (this.ub(), !this.root.dp) {
4210
+ this.Cd(), this.hd(), this.Gd(), this.ga(), this.Ad(), this._(), this.Zd(), this.nb();
4211
+ if (this.Xd() && this.Hd(), this.Ia = !0, this.tb(), this.Dd) {
4212
+ var e = this.Dd;
4213
+ this.select(e.date1, e.date2, e.options), this.Dd = null;
4207
4214
  }
4208
4215
  return this;
4209
4216
  }
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) {
4217
+ }, this.Zd = function () { a.nav.top.onmousedown = this.Qd, a.nav.top.onmousemove = this.Rd; }, this.nb = function () { DayPilot.re(document, "mouseup", a.$d); }, this.$d = function (e) {
4211
4218
  if (n.start && n.end) {
4212
4219
  var t = DayPilot.mo3(a.nav.top, e);
4213
4220
  if (t.x === n.start.coords.x && t.y === n.start.coords.y)
4214
4221
  return n.start = null, void n.clear();
4215
4222
  n.clear();
4216
4223
  var i = n.ordered();
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();
4218
- a.M({ "mode": "FreeHand" });
4224
+ 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.ad(), a.hd(), a.Gd(), a.Ad(), a.Bd();
4225
+ a.N({ "mode": "FreeHand" });
4219
4226
  }
4220
4227
  n.start = null, n.end = null;
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);
4228
+ }, 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.P = !0); }, this._ = function () { this.root.dispose = this.dispose; }, this.Init = this.init, this.qb(i);
4222
4229
  }, "undefined" != typeof jQuery && !function (e) {
4223
4230
  e.fn.daypilotNavigator = function (e) {
4224
4231
  var t = null, i = this.each(function () {
@@ -4238,7 +4245,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
4238
4245
  return { "restrict": "E", "template": "<div id='{{id}}'></div>", "compile": function (t, i) {
4239
4246
  return t.replaceWith(this["template"].replace("{{id}}", i["id"])), function (t, i, a) {
4240
4247
  var n = new DayPilot.Navigator(i[0]);
4241
- n.ta.scope = t, n.init();
4248
+ n.ua.scope = t, n.init();
4242
4249
  var o = a["id"];
4243
4250
  o && (t[o] = n);
4244
4251
  var r = a["publishAs"];
@@ -4255,7 +4262,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
4255
4262
  for (var i in e)
4256
4263
  n[i] = e[i];
4257
4264
  n.update();
4258
- }, !0), d.call(t, u, function (e) { n.events.list = e, n.fa(), n.td(); }, !0);
4265
+ }, !0), d.call(t, u, function (e) { n.events.list = e, n.ga(), n.Ad(); }, !0);
4259
4266
  };
4260
4267
  } };
4261
4268
  }]);