@daypilot/daypilot-lite-angular 3.32.0 → 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.635-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.635-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,20 +1298,24 @@ 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
- return t.name = e.name, t.html = e.html, t.id = e.id, t.toolTip = e.toolTip, t.data = e, e.start ? t.start = new DayPilot.Date(e.start) : t.start = new DayPilot.Date(r.startDate), t.putIntoBlock = function (e) {
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) {
1315
+ var i = t.start.getDatePart();
1316
+ t.start = i.addHours(this.businessBeginsHour);
1317
+ }
1318
+ return t.putIntoBlock = function (e) {
1304
1319
  for (var t = 0; t < this.blocks.length; t++) {
1305
1320
  var i = this.blocks[t];
1306
1321
  if (i.overlapsWith(e.part.top, e.part.height))
@@ -1339,7 +1354,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1339
1354
  return !0;
1340
1355
  }, i.push(e), this.lines.push(i), this.lines.length - 1;
1341
1356
  }, t;
1342
- }, this.Da = function () {
1357
+ }, this.Ja = function () {
1343
1358
  var e = [], t = this.startDate.getDatePart(), i = this.days;
1344
1359
  switch (this.viewType) {
1345
1360
  case "Day":
@@ -1347,12 +1362,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1347
1362
  break;
1348
1363
  case "Week":
1349
1364
  i = 7;
1350
- var a = s.ca();
1365
+ var a = s.da();
1351
1366
  t = t.firstDayOfWeek(a);
1352
1367
  break;
1353
1368
  case "WorkWeek": i = 5, t = t.firstDayOfWeek(1);
1354
1369
  }
1355
- "BusinessHoursNoScroll" === this.heightSpec && (t = t.addHours(this.businessBeginsHour));
1356
1370
  for (var n = 0; n < i; n++) {
1357
1371
  var o = r.headerDateFormat ? r.headerDateFormat : s.locale().datePattern, l = {};
1358
1372
  l.start = t.addDays(n), l.name = l.start.toString(o, s.locale()), e.push(l);
@@ -1360,35 +1374,35 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1360
1374
  return e;
1361
1375
  }, this.visibleStart = function () {
1362
1376
  if ("Resources" === r.viewType) {
1363
- if (0 === r.wa.length)
1377
+ if (0 === r.xa.length)
1364
1378
  return DayPilot.Date.today();
1365
- 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);
1366
1380
  return new DayPilot.Date(t);
1367
1381
  }
1368
- return this.wa[0].start;
1382
+ return this.xa[0].start;
1369
1383
  }, this.visibleEnd = function () {
1370
1384
  if ("Resources" === r.viewType) {
1371
- if (0 === r.wa.length)
1385
+ if (0 === r.xa.length)
1372
1386
  return DayPilot.Date.today().addDays(1);
1373
- 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);
1374
1388
  return new DayPilot.Date(t).addDays(1);
1375
1389
  }
1376
- var t = this.wa.length - 1;
1377
- return this.wa[t].start.addDays(1);
1378
- }, 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 () {
1379
1393
  if (this.elements.events)
1380
1394
  for (var e = 0; e < this.elements.events.length; e++) {
1381
1395
  var t = this.elements.events[e];
1382
- r.Fa(t);
1396
+ r.La(t);
1383
1397
  }
1384
1398
  this.elements.events = [];
1385
- }, this.Fa = function (e) {
1399
+ }, this.La = function (e) {
1386
1400
  !function () {
1387
1401
  var t = e.domArgs;
1388
1402
  if (e.domArgs = null, t && "function" == typeof r.onBeforeEventDomRemove && r.onBeforeEventDomRemove(t), t && "function" == typeof r.onBeforeEventDomAdd) {
1389
- var a = t && t.Ga;
1403
+ var a = t && t.Ma;
1390
1404
  if (a) {
1391
- 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);
1392
1406
  }
1393
1407
  }
1394
1408
  }();
@@ -1398,11 +1412,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1398
1412
  a.onmousedown = null, a.onmousemove = null, a.onclick = null;
1399
1413
  }
1400
1414
  e.helper = null, e.data = null, e.event = null, DayPilot.de(e);
1401
- }, this.La = function (e) {
1415
+ }, this.Ra = function (e) {
1402
1416
  var a = e.cache || e.data, n = this.nav.events, o = a.borderRadius || r.eventBorderRadius;
1403
1417
  "number" == typeof o && (o += "px");
1404
1418
  var s = document.createElement("div");
1405
- 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) {
1406
1420
  var a = 5;
1407
1421
  if ("undefined" != typeof t) {
1408
1422
  var n = DayPilot.mo3(s, i);
@@ -1418,7 +1432,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1418
1432
  if (1 === a && e.client.moveEnabled()) {
1419
1433
  t.moving = this, DayPilot.Global.moving = this, t.moving.event = this.event;
1420
1434
  var n = t.moving.helper = {};
1421
- 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;
1422
1436
  var o = DayPilot.mo3(this, i);
1423
1437
  o ? t.moveOffsetY = o.y : t.moveOffsetY = 0, r.nav.top.style.cursor = "move";
1424
1438
  }
@@ -1436,7 +1450,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1436
1450
  }
1437
1451
  if (e.client.deleteEnabled()) {
1438
1452
  var m = document.createElement("div");
1439
- 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);
1440
1454
  }
1441
1455
  var p = a.areas ? DayPilot.Areas.copy(a.areas) : [];
1442
1456
  if (DayPilot.Areas.attach(s, e, { "areas": p }), "function" == typeof r.onAfterEventRender) {
@@ -1448,11 +1462,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1448
1462
  if (t.control = r, t.e = e, t.element = null, s.domArgs = t, "function" == typeof r.onBeforeEventDomAdd && r.onBeforeEventDomAdd(t), t.element) {
1449
1463
  var a = l;
1450
1464
  if (a) {
1451
- t.Ga = a;
1465
+ t.Ma = a;
1452
1466
  if (i(t.element)) {
1453
- if (!r.Ia.Ha)
1467
+ if (!r.Oa.Na)
1454
1468
  throw new DayPilot.Exception("Can't reach Vue");
1455
- 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;
1456
1470
  }
1457
1471
  else
1458
1472
  a.appendChild(t.element);
@@ -1461,19 +1475,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1461
1475
  else
1462
1476
  l.innerHTML = e.client.innerHTML();
1463
1477
  }(), n.rows[0].cells[e.part.dayIndex]) {
1464
- 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);
1465
1479
  }
1466
1480
  r.elements.events.push(s);
1467
- }, this.Na = function (e) {
1481
+ }, this.Ta = function (e) {
1468
1482
  for (var t = e && e.childNodes ? e.childNodes.length : 0, i = 0; i < t; i++)
1469
1483
  try {
1470
1484
  var a = e.childNodes[i];
1471
- 1 === a.nodeType && (a.unselectable = "on", this.Na(a));
1485
+ 1 === a.nodeType && (a.unselectable = "on", this.Ta(a));
1472
1486
  }
1473
1487
  catch (e) { }
1474
- }, this.la = function () {
1475
- for (var e = 0; e < this.wa.length; e++) {
1476
- 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];
1477
1491
  if (t.blocks)
1478
1492
  for (var i = 0; i < t.blocks.length; i++)
1479
1493
  for (var a = t.blocks[i], n = 0; n < a.lines.length; n++)
@@ -1481,13 +1495,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1481
1495
  var s = o[r];
1482
1496
  s.part.width = 100 / a.lines.length, s.part.left = s.part.width * n;
1483
1497
  var l = n === a.lines.length - 1;
1484
- 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);
1485
1499
  }
1486
1500
  }
1487
- }, 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 () {
1488
1502
  var e = document.createElement("table");
1489
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;
1490
- 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++) {
1491
1505
  var o = a.insertCell(-1);
1492
1506
  o.style.padding = "0px", o.style.border = "0px none", o.style.height = "0px", o.style.overflow = "visible", r.rtl || (o.style.textAlign = "left");
1493
1507
  var s = document.createElement("div");
@@ -1496,39 +1510,39 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1496
1510
  o.selection = l, o.appendChild(s), o.appendChild(l);
1497
1511
  }
1498
1512
  return e;
1499
- }, this.Ta = function () {
1513
+ }, this.Za = function () {
1500
1514
  var e = document.createElement("table");
1501
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; };
1502
- for (var t = r.ma(), i = 0; i < t; i++)
1503
- this.Wa(e, i);
1516
+ for (var t = r.na(), i = 0; i < t; i++)
1517
+ this.ab(e, i);
1504
1518
  return e;
1505
- }, 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 () {
1506
- 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;
1507
1521
  switch (this.heightSpec) {
1508
1522
  case "Full": return 24 * t * this.cellHeight;
1509
1523
  case "BusinessHours":
1510
- var i = this.oa();
1524
+ var i = this.pa();
1511
1525
  return i * this.cellHeight * t;
1512
1526
  case "BusinessHoursNoScroll":
1513
- var i = this.oa();
1527
+ var i = this.pa();
1514
1528
  return i * this.cellHeight * t;
1515
1529
  default: throw "DayPilot.Calendar: Unexpected 'heightSpec' value.";
1516
1530
  }
1517
- }, this.Xa = function () {
1531
+ }, this.bb = function () {
1518
1532
  var e = r.nav.corner ? r.nav.corner.parentNode : null;
1519
1533
  if (e) {
1520
1534
  e.innerHTML = "";
1521
- var t = this.Ya();
1535
+ var t = this.cb();
1522
1536
  e.appendChild(t), r.nav.corner = t;
1523
1537
  }
1524
- }, this.Qa = function () {
1538
+ }, this.Wa = function () {
1525
1539
  var e = document.createElement("div");
1526
1540
  e.style.overflow = "auto";
1527
1541
  var t = document.createElement("table");
1528
1542
  t.cellPadding = "0", t.cellSpacing = "0", t.border = "0", t.style.width = "100%", t.style.borderCollapse = "separate", t.style.border = "0px none";
1529
1543
  var i = t.insertRow(-1), a = i.insertCell(-1);
1530
1544
  a.style.padding = "0px", a.style.border = "0px none";
1531
- var n = this.Ya();
1545
+ var n = this.cb();
1532
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; };
1533
1547
  var o = "hidden" !== this.nav.scroll.style.overflow;
1534
1548
  if (a.appendChild(this.nav.header), o) {
@@ -1539,28 +1553,28 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1539
1553
  s.className = this.K("_cornerright_inner"), r.appendChild(s), a.appendChild(r), this.nav.cornerRight = r;
1540
1554
  }
1541
1555
  return e.appendChild(t), e;
1542
- }, 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 () {
1543
1557
  var e = this.nav.main;
1544
1558
  e.root = null, e.onmouseup = null;
1545
1559
  for (var t = 0; t < e.rows.length; t++)
1546
1560
  for (var i = e.rows[t], a = 0; a < i.cells.length; a++) {
1547
1561
  var n = i.cells[a];
1548
- r.Za(n);
1562
+ r.db(n);
1549
1563
  }
1550
1564
  this.fasterDispose || DayPilot.pu(e);
1551
- }, this.Za = function (e) {
1565
+ }, this.db = function (e) {
1552
1566
  e && (!function () {
1553
1567
  var t = e, a = t.domArgs;
1554
1568
  if (t.domArgs = null, a && "function" == typeof r.onBeforeCellDomRemove && r.onBeforeCellDomRemove(a), a && "function" == typeof r.onBeforeCellDomAdd) {
1555
- var n = a && a.Ga;
1569
+ var n = a && a.Ma;
1556
1570
  if (n) {
1557
- 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);
1558
1572
  }
1559
1573
  }
1560
1574
  }(), e.root = null, e.onmousedown = null, e.onmousemove = null, e.onmouseout = null, e.onmouseup = null);
1561
- }, this.ia = function () {
1562
- var e = s.da(), a = this.nav.main, n = 60 * e * 1e3, o = this.pa(), l = r.wa;
1563
- 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;)
1564
1578
  this.fasterDispose || DayPilot.pu(a.rows[0]), a.deleteRow(0);
1565
1579
  this.tableCreated = !0;
1566
1580
  for (var d = l.length, c = this.nav.events; c && c.rows && c.rows.length > 0;)
@@ -1577,31 +1591,31 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1577
1591
  var u = a.insertRow(-1);
1578
1592
  u.style.MozUserSelect = "none", u.style.KhtmlUserSelect = "none";
1579
1593
  for (var h = 0; h < d; h++) {
1580
- var y = this.wa[h], f = u.insertCell(-1);
1581
- 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";
1582
1596
  var m = document.createElement("div");
1583
1597
  m.unselectable = "on", m.style.height = r.cellHeight + "px", m.style.position = "relative", m.className = this.K("_cell");
1584
- 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 };
1585
1599
  !function () {
1586
1600
  if ("function" == typeof r.onBeforeCellRender) {
1587
1601
  var e = {};
1588
1602
  e.cell = D, r.onBeforeCellRender(e);
1589
1603
  }
1590
1604
  }(), b.business && DayPilot.Util.addClass(m, r.K("_cell_business")), b.cssClass && DayPilot.Util.addClass(m, b.cssClass);
1591
- var w = document.createElement("div");
1592
- w.setAttribute("unselectable", "on"), w.className = this.K("_cell_inner");
1593
- var x = DayPilot.Util.escapeTextHtml(b.text, b.html);
1594
- 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 () {
1595
1609
  if ("function" == typeof r.onBeforeCellDomAdd || "function" == typeof r.onBeforeCellDomRemove) {
1596
1610
  var e = {};
1597
1611
  if (e.control = r, e.cell = D, e.element = null, f.domArgs = e, "function" == typeof r.onBeforeCellDomAdd && r.onBeforeCellDomAdd(e), e.element) {
1598
- var t = w;
1612
+ var t = x;
1599
1613
  if (t) {
1600
- e.Ga = t;
1614
+ e.Ma = t;
1601
1615
  if (i(e.element)) {
1602
- if (!r.Ia.Ha)
1616
+ if (!r.Oa.Na)
1603
1617
  throw new DayPilot.Exception("Can't reach Vue");
1604
- 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;
1605
1619
  }
1606
1620
  else
1607
1621
  t.appendChild(e.element);
@@ -1616,17 +1630,17 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1616
1630
  r.coords = DayPilot.mo3(i, e);
1617
1631
  var a = DayPilot.mc(e);
1618
1632
  if (t.resizing) {
1619
- t.resizingShadow || (t.resizingShadow = r._(t.resizing, !1, r.shadow));
1633
+ t.resizingShadow || (t.resizingShadow = r.aa(t.resizing, !1, r.shadow));
1620
1634
  var n = r.cellHeight, o = 1, s = a.y - t.originalMouse.y;
1621
1635
  if ("bottom" === t.resizing.dpBorder) {
1622
- var l = Math.floor((t.originalHeight + t.originalTop + s + n / 2) / n) * n - t.originalTop + o;
1623
- 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);
1624
1638
  var d = r.nav.main.clientHeight;
1625
1639
  t.originalTop + l > d && (l = d - t.originalTop), t.resizingShadow.style.height = l + "px";
1626
1640
  }
1627
1641
  else if ("top" === t.resizing.dpBorder) {
1628
- var c = Math.floor((t.originalTop + s - o + n / 2) / n) * n + o;
1629
- 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);
1630
1644
  var l = t.originalHeight - (c - t.originalTop);
1631
1645
  l < n ? l = n : t.resizingShadow.style.top = c + "px", t.resizingShadow.style.height = l + "px";
1632
1646
  }
@@ -1638,23 +1652,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1638
1652
  var u = 3, a = DayPilot.mc(e), h = Math.abs(a.x - t.originalMouse.x) + Math.abs(a.y - t.originalMouse.y);
1639
1653
  if (h <= u)
1640
1654
  return;
1641
- 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";
1642
1656
  }
1643
1657
  var n = r.cellHeight, o = 1, f = t.moveOffsetY;
1644
1658
  f || (f = n / 2);
1645
- var c = Math.floor((r.coords.y - f - o + n / 2) / n) * n + o;
1646
- 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);
1647
1661
  var m = r.nav.events, d = r.nav.main.clientHeight + o, p = parseInt(t.movingShadow.style.height);
1648
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 = "";
1649
1663
  var v = m.clientWidth / m.rows[0].cells.length, y = Math.floor((r.coords.x - 45) / v);
1650
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]));
1651
1665
  }
1652
- else if (t.selecting) {
1653
- var a = DayPilot.mc(e), g = r.Ba.getCellCoords(), b = t.column, D = r.nav.main.rows[g.y].cells[b];
1654
- 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();
1655
- }
1666
+ else
1667
+ DayPilot.Global.selecting && (r.Ba(), r.Ca());
1656
1668
  }, r.nav.scrollable.style.display = "";
1657
- }, 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 () {
1658
1670
  var e = this.nav.header;
1659
1671
  if (e && e.rows)
1660
1672
  for (var t = 0; t < e.rows.length; t++)
@@ -1663,14 +1675,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1663
1675
  n.onclick = null, n.onmousemove = null, n.onmouseout = null;
1664
1676
  }
1665
1677
  this.fasterDispose || DayPilot.pu(e);
1666
- }, this._a = function (e) {
1678
+ }, this.fb = function (e) {
1667
1679
  function t(t) {
1668
1680
  var n = a[t], o = e ? i.insertCell(-1) : i.cells[t];
1669
- 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;
1670
1682
  var s, l = e ? document.createElement("div") : o.firstChild;
1671
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;
1672
1684
  var d = {};
1673
- 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);
1674
1686
  var c = n.verticalAlignment;
1675
1687
  if (c)
1676
1688
  switch (s.style.display = "flex", c) {
@@ -1693,22 +1705,22 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1693
1705
  break;
1694
1706
  case "right": s.style.justifyContent = "flex-end";
1695
1707
  }
1696
- l.firstChild.innerHTML = r.Sa(n.name, n.html);
1708
+ l.firstChild.innerHTML = r.Ya(n.name, n.html);
1697
1709
  }
1698
- 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++)
1699
1711
  t(o);
1700
- }, this.ab = function (e) {
1712
+ }, this.gb = function (e) {
1701
1713
  if ("Disabled" !== r.headerClickHandling) {
1702
- var t = this.data, i = r.bb(t), a = {};
1714
+ var t = this.data, i = r.hb(t), a = {};
1703
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);
1704
1716
  }
1705
- }, 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 () {
1706
- 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;
1707
1719
  for (i.length; this.headerCreated && e && e.rows && e.rows.length > 0;)
1708
1720
  this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
1709
1721
  this.headerCreated = !0;
1710
- this._a(t);
1711
- }, 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) {
1712
1724
  var t = null;
1713
1725
  if (e instanceof DayPilot.Event)
1714
1726
  t = e.data;
@@ -1717,7 +1729,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1717
1729
  throw "DayPilot.Calendar.events.add() expects an object or DayPilot.Event instance.";
1718
1730
  t = e;
1719
1731
  }
1720
- 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();
1721
1733
  }, this.events.find = function (e) {
1722
1734
  if (!r.events.list)
1723
1735
  return null;
@@ -1745,7 +1757,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1745
1757
  r.events.list.splice(i, 1, e);
1746
1758
  }
1747
1759
  }
1748
- r.ib({ "eventsOnly": !0 }), r.ta.notify();
1760
+ r.ob({ "eventsOnly": !0 }), r.ua.notify();
1749
1761
  }, this.events.remove = function (e) {
1750
1762
  var t;
1751
1763
  if (e instanceof DayPilot.Event)
@@ -1759,7 +1771,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1759
1771
  i && (t = i.data);
1760
1772
  }
1761
1773
  var a = DayPilot.indexOf(r.events.list, t);
1762
- 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();
1763
1775
  }, this.events.load = function (e, t, i) {
1764
1776
  var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, n = function (e) {
1765
1777
  var i, n = e.request;
@@ -1774,7 +1786,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1774
1786
  var s = {};
1775
1787
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
1776
1788
  return;
1777
- r.events.list = i, r.Ca && r.ib({ "eventsOnly": !0 });
1789
+ r.events.list = i, r.Ia && r.ob({ "eventsOnly": !0 });
1778
1790
  }
1779
1791
  };
1780
1792
  if (r.eventsLoadMethod && "POST" === r.eventsLoadMethod.toUpperCase())
@@ -1783,7 +1795,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1783
1795
  var o = e, s = "start=" + r.visibleStart().toString() + "&end=" + r.visibleEnd().toString();
1784
1796
  o += o.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": o, "success": n, "error": a });
1785
1797
  }
1786
- }, this.jb = function () {
1798
+ }, this.pb = function () {
1787
1799
  if (r.nav.top.className !== r.K("_main")) {
1788
1800
  r.nav.top.className = r.K("_main");
1789
1801
  var e = r.nav.corner;
@@ -1792,18 +1804,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1792
1804
  t && (t.className = r.K("_cornerright"), t.firstChild.className = r.K("_cornerright_inner"));
1793
1805
  }
1794
1806
  }, this.update = function (e) {
1795
- if (r.O)
1807
+ if (r.P)
1796
1808
  throw new DayPilot.Exception("You are trying to update a DayPilot.Calendar instance that has been disposed.");
1797
- r.kb(e), r.ib();
1798
- }, this.ib = function (e) {
1799
- if (this.Ca) {
1809
+ r.qb(e), r.ob();
1810
+ }, this.ob = function (e) {
1811
+ if (this.Ia) {
1800
1812
  var e = e || {}, t = !e.eventsOnly;
1801
- 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();
1802
1814
  }
1803
- }, this.mb = null, this.kb = function (e) {
1815
+ }, this.sb = null, this.qb = function (e) {
1804
1816
  if (e) {
1805
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; } } };
1806
- this.mb = t;
1818
+ this.sb = t;
1807
1819
  for (var i in e)
1808
1820
  if (t[i]) {
1809
1821
  var a = t[i];
@@ -1812,13 +1824,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1812
1824
  else
1813
1825
  r[i] = e[i];
1814
1826
  }
1815
- }, this.nb = function () {
1816
- var e = this.mb;
1827
+ }, this.tb = function () {
1828
+ var e = this.sb;
1817
1829
  for (var t in e) {
1818
1830
  var i = e[t];
1819
1831
  i.postInit && i.postInit();
1820
1832
  }
1821
- }, this.ob = function () {
1833
+ }, this.ub = function () {
1822
1834
  if (this.id && this.id.tagName)
1823
1835
  this.nav.top = this.id;
1824
1836
  else {
@@ -1827,8 +1839,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1827
1839
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
1828
1840
  throw "DayPilot.Calendar: The placeholder element not found: '" + e + "'.";
1829
1841
  }
1830
- }, this.pb = {}, this.pb.events = [], this.qb = function (e) {
1831
- 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 = {};
1832
1844
  for (var n in i)
1833
1845
  a[n] = i[n];
1834
1846
  if (a.start = new DayPilot.Date(i.start), a.end = new DayPilot.Date(i.end), "function" == typeof this.onBeforeEventRender) {
@@ -1836,9 +1848,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1836
1848
  o.control = r, o.data = a, this.onBeforeEventRender(o);
1837
1849
  }
1838
1850
  t[e] = a;
1839
- }, this.fa = function () {
1851
+ }, this.ga = function () {
1840
1852
  var e = this.events.list;
1841
- if (r.pb.events = [], e) {
1853
+ if (r.vb.events = [], e) {
1842
1854
  if (!DayPilot.isArray(e))
1843
1855
  throw new DayPilot.Exception("DayPilot.Calendar.events.list expects an array object. You supplied: " + typeof e);
1844
1856
  var t = e.length, i = 864e5;
@@ -1858,11 +1870,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1858
1870
  }
1859
1871
  if ("function" == typeof this.onBeforeEventRender)
1860
1872
  for (var n = 0; n < t; n++)
1861
- this.qb(n);
1862
- for (var n = 0; n < this.wa.length; n++) {
1873
+ this.wb(n);
1874
+ for (var n = 0; n < this.xa.length; n++) {
1863
1875
  var l = {};
1864
1876
  l.minEnd = 1e6, l.maxStart = -1, this.scrollLabels.push(l);
1865
- var d = this.wa[n];
1877
+ var d = this.xa[n];
1866
1878
  d.events = [], d.lines = [], d.blocks = [];
1867
1879
  for (var c = new DayPilot.Date(d.start), u = c.getTime(), h = c.addTime(i), f = h.getTime(), m = 0; m < t; m++)
1868
1880
  if (!a[m]) {
@@ -1872,84 +1884,84 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1872
1884
  if ("Resources" === r.viewType && (b = b && d.id === o.resource), b) {
1873
1885
  var D = new DayPilot.Event(o, r);
1874
1886
  D.part.dayIndex = n, D.part.start = u < y ? p : c, D.part.end = f > g ? v : h;
1875
- var w = this.getPixels(D.part.start, d.start), x = this.getPixels(D.part.end, d.start), C = w.top, P = x.top;
1876
- 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))
1877
1889
  continue;
1878
- var k = x.boxBottom;
1879
- 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);
1880
1892
  var p = D.part.top, v = D.part.top + D.part.height;
1881
- 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);
1882
1894
  }
1883
1895
  }
1884
1896
  }
1885
1897
  }
1886
- for (var n = 0; n < this.wa.length; n++) {
1887
- var d = this.wa[n];
1888
- 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);
1889
1901
  for (var m = 0; m < d.events.length; m++) {
1890
1902
  var o = d.events[m];
1891
1903
  d.putIntoBlock(o);
1892
1904
  }
1893
1905
  for (var m = 0; m < d.blocks.length; m++) {
1894
- var _ = d.blocks[m];
1895
- _.events.sort(this.rb);
1896
- for (var S = 0; S < _.events.length; S++) {
1897
- var o = _.events[S];
1898
- _.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);
1899
1911
  }
1900
1912
  }
1901
1913
  }
1902
1914
  }
1903
- }, this.rb = function (e, t) {
1915
+ }, this.xb = function (e, t) {
1904
1916
  if (!(e && t && e.start && t.start))
1905
1917
  return 0;
1906
1918
  var i = e.start().getTime() - t.start().getTime();
1907
1919
  return 0 !== i ? i : t.end().getTime() - e.end().getTime();
1908
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) {
1909
1921
  t || (t = this.startDate);
1910
- 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];
1911
1923
  if (o)
1912
1924
  return o;
1913
1925
  i = t.getTime();
1914
1926
  var r = 60 * n * 1e3, l = a - i, d = l % r, c = l - d, u = c + r;
1915
1927
  0 === d && (u = c);
1916
1928
  var h = {};
1917
- 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;
1918
- }, 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 () {
1919
- if (r.nav.scroll && r.tb()) {
1920
- var e = r.nav.scroll.scrollTop, t = e / (2 * r.cellHeight);
1921
- r.ub.scrollHour = t;
1922
- }
1923
- }, 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 () {
1924
- 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++) {
1925
1937
  var i = e[t];
1926
1938
  DayPilot.Util.removeClass(this.nav.top, i + "_main");
1927
1939
  }
1928
- this.ub.themes = [];
1929
- }, this.Ab = function () {
1940
+ this.Bb.themes = [];
1941
+ }, this.Hb = function () {
1930
1942
  if (this.afterRender(null, !1), "function" == typeof this.onAfterRender) {
1931
1943
  var e = {};
1932
1944
  e.isCallBack = !1, this.onAfterRender(e);
1933
1945
  }
1934
- }, this.Bb = function () {
1935
- if ("function" == typeof this.onInit && !this.Cb) {
1936
- this.Cb = !0;
1946
+ }, this.Ib = function () {
1947
+ if ("function" == typeof this.onInit && !this.Jb) {
1948
+ this.Jb = !0;
1937
1949
  var e = {};
1938
1950
  this.onInit(e);
1939
1951
  }
1940
- }, 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) {
1941
- 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;
1942
1954
  if ("function" == typeof a.createVNode && "function" == typeof a.render) {
1943
1955
  var n = a.createVNode(e, i);
1944
1956
  a.render(n, t);
1945
1957
  }
1946
- }, this.Ia.Ma = function (e, t) {
1947
- var i = r.Ia.Ha;
1958
+ }, this.Oa.Sa = function (e, t) {
1959
+ var i = r.Oa.Na;
1948
1960
  if ("function" == typeof i.render) {
1949
1961
  var a = e;
1950
1962
  DayPilot.isArray(e) && (a = i.h("div", null, e)), i.render(a, t);
1951
1963
  }
1952
- }, 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);
1953
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) {
1954
1966
  e.fn.daypilotCalendar = function (e) {
1955
1967
  var t = null, i = this.each(function () {
@@ -1968,7 +1980,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1968
1980
  e && e.directive("daypilotCalendar", ["$parse", function (e) {
1969
1981
  return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) {
1970
1982
  var n = new DayPilot.Calendar(i[0]);
1971
- n.ta.scope = t, n.init();
1983
+ n.ua.scope = t, n.init();
1972
1984
  var o = a["id"];
1973
1985
  o && (t[o] = n);
1974
1986
  var r = a["publishAs"];
@@ -1981,7 +1993,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1981
1993
  l.call(t, d, function (e) {
1982
1994
  for (var t in e)
1983
1995
  n[t] = e[t];
1984
- n.update(), n.Bb();
1996
+ n.update(), n.Ib();
1985
1997
  }, !0), l.call(t, c, function (e) { n.events.list = e, n.update(); }, !0);
1986
1998
  } };
1987
1999
  }]);
@@ -1991,13 +2003,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1991
2003
  var DayPilot = {};
1992
2004
  if (function () {
1993
2005
  "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) {
1994
- this.v = "2025.1.635-lite";
2006
+ this.v = "2025.2.643-lite";
1995
2007
  var t = "navigator_" + (new Date).getTime(), i = this;
1996
2008
  this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () {
1997
- 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)
1998
2010
  for (var t in e)
1999
2011
  this[t] = e[t];
2000
- }, 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 () {
2001
2013
  var e = this.C();
2002
2014
  if (!e)
2003
2015
  return this.date;
@@ -2010,26 +2022,26 @@ if (function () {
2010
2022
  a = DayPilot.Date.parse(t, i.patterns[n]);
2011
2023
  }
2012
2024
  return a;
2013
- }, this.Fb = function (e) {
2025
+ }, this.Mb = function (e) {
2014
2026
  var t = this.C();
2015
2027
  if (t) {
2016
2028
  var a = e.toString(i.pattern, i.locale);
2017
2029
  "INPUT" === t.tagName ? t.value = a : t.innerHTML = a;
2018
2030
  }
2019
- }, 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 () {
2020
- 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) {
2021
2033
  var e = this.C(), a = this.navigator, a = new DayPilot.Navigator(t);
2022
- 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;
2023
2035
  var n = DayPilot.abs(e), o = e.offsetHeight, r = i.targetAlignment, s = document.createElement("div");
2024
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);
2025
2037
  var l = document.createElement("div");
2026
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;
2027
- var d = i.Eb() || (new DayPilot.Date).getDatePart();
2028
- 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) {
2029
2041
  var c = n.x + e.offsetWidth - a.nav.top.offsetWidth;
2030
2042
  s.style.left = c + "px";
2031
2043
  }
2032
- this.tb = !0, this.onShow && this.onShow();
2044
+ this.Ab = !0, this.onShow && this.onShow();
2033
2045
  }
2034
2046
  }, this.prepare(), this.init();
2035
2047
  });
@@ -2041,10 +2053,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2041
2053
  var e = function () { }, t = {};
2042
2054
  t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) {
2043
2055
  var a = this, n = null;
2044
- this.v = "2025.1.635-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) {
2045
2057
  o = o || {};
2046
2058
  var r = null;
2047
- 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) {
2048
2060
  a.cssOnly || (a.cssOnly = !0);
2049
2061
  var s = null;
2050
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) {
@@ -2053,15 +2065,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2053
2065
  return;
2054
2066
  }
2055
2067
  var d = document.createElement("div");
2056
- 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)
2057
2069
  throw "No menu items defined.";
2058
2070
  if (this.showMenuTitle) {
2059
2071
  var c = document.createElement("div");
2060
- 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);
2061
2073
  }
2062
2074
  for (var u = 0; u < this.items.length; u++) {
2063
2075
  var h = this.items[u], f = document.createElement("div");
2064
- 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) {
2065
2077
  if ("-" === h.text) {
2066
2078
  var m = document.createElement("div");
2067
2079
  m.addEventListener("click", function (e) { e.stopPropagation(); }), f.appendChild(m);
@@ -2069,7 +2081,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2069
2081
  else {
2070
2082
  var p = document.createElement("a");
2071
2083
  if (p.style.position = "relative", p.style.display = "block", h.cssClass && DayPilot.Util.addClass(p, h.cssClass), h.disabled)
2072
- DayPilot.Util.addClass(p, a.Ib("item_disabled"));
2084
+ DayPilot.Util.addClass(p, a.Pb("item_disabled"));
2073
2085
  else {
2074
2086
  if (h.onclick || h.onClick) {
2075
2087
  p.item = h, p.onclick = function (e, t) {
@@ -2097,7 +2109,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2097
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));
2098
2110
  }
2099
2111
  if (h.items && !h.disabled) {
2100
- 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); }; };
2101
2113
  p.ontouchend = y(h, p);
2102
2114
  }
2103
2115
  if (h.onclick)
@@ -2133,23 +2145,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2133
2145
  }
2134
2146
  h.items && p.addEventListener("click", function (e) { e.stopPropagation(); }), p.source = s, p.menuSource = i;
2135
2147
  var g = document.createElement("span");
2136
- 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) {
2137
2149
  var b = document.createElement("img");
2138
2150
  b.src = h.image, b.style.position = "absolute", b.style.top = "0px", b.style.left = "0px", p.appendChild(b);
2139
2151
  }
2140
2152
  if (h.icon) {
2141
2153
  var D = document.createElement("span");
2142
- D.className = a.Ib("item_icon");
2143
- var w = document.createElement("i");
2144
- 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);
2145
2157
  }
2146
2158
  if (h.symbol) {
2147
- 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");
2148
2160
  C.setAttribute("width", "100%"), C.setAttribute("height", "100%");
2149
- var P = document.createElementNS(x, "use");
2161
+ var P = document.createElementNS(w, "use");
2150
2162
  P.setAttribute("href", h.symbol), C.appendChild(P);
2151
2163
  var k = document.createElement("span");
2152
- 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);
2153
2165
  }
2154
2166
  var _ = function (e, i) {
2155
2167
  return function () {
@@ -2159,7 +2171,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2159
2171
  return;
2160
2172
  clearTimeout(o.timeout), t.waitingSubmenu = null;
2161
2173
  }
2162
- 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));
2163
2175
  };
2164
2176
  };
2165
2177
  p.onmouseover = _(h, p), f.appendChild(p);
@@ -2168,10 +2180,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2168
2180
  }
2169
2181
  }
2170
2182
  var S = function (e) { window.setTimeout(function () { t.menuClean(), DayPilot.MenuBar.deactivate(); }, 100); };
2171
- 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 = "";
2172
- 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;
2173
2185
  d.style.display = "none";
2174
- 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;
2175
2187
  if (function () {
2176
2188
  var e = o.initiator;
2177
2189
  if (e) {
@@ -2183,40 +2195,40 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2183
2195
  }
2184
2196
  }(), function () {
2185
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;
2186
- if (i - n > T - M && 0 !== T) {
2187
- s = i - (i - n - (T - M) + E);
2198
+ if (i - n > A - M && 0 !== A) {
2199
+ s = i - (i - n - (A - M) + E);
2188
2200
  }
2189
2201
  else
2190
2202
  s = i;
2191
- if (a.Hb.y = s, d.style.top = s + "px", "right" === o.align && (e -= A), e - r > H - A && 0 !== H) {
2192
- 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);
2193
2205
  }
2194
2206
  else
2195
2207
  l = e;
2196
- a.Hb.x = l, d.style.left = l + "px";
2208
+ a.Ob.x = l, d.style.left = l + "px";
2197
2209
  }(), o.parentLink) {
2198
- 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;
2199
- O + A > H && (O = Math.max(0, R.x - A));
2200
- var B = document.body.scrollTop + document.documentElement.scrollTop;
2201
- 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";
2202
2214
  }
2203
- 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);
2204
2216
  }
2205
2217
  }, this.update = function () {
2206
- if (a.Hb.visible) {
2207
- var e = a.Hb.source;
2208
- 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 });
2209
2221
  }
2210
- }, this.Jb = function (e, t) {
2222
+ }, this.Qb = function (e, t) {
2211
2223
  var i = e, n = t.source;
2212
- 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)) {
2213
2225
  var o = a.cloneOptions();
2214
- 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"));
2215
2227
  }
2216
- }, 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) {
2217
- 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();
2218
2230
  var i = t.waitingSubmenu;
2219
- 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) {
2220
2232
  var o = {};
2221
2233
  this.onHide(o);
2222
2234
  }
@@ -2227,31 +2239,31 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2227
2239
  this[r] = o[r];
2228
2240
  }, DayPilot.MenuBar = function (e, t) {
2229
2241
  var i = this;
2230
- 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;
2231
2243
  for (var a in t)
2232
2244
  this[a] = t[a];
2233
- this.Lb = function (e) { return this.theme + "_" + e; }, this.t = function () {
2245
+ this.Sb = function (e) { return this.theme + "_" + e; }, this.t = function () {
2234
2246
  this.nav.top = document.getElementById(e);
2235
2247
  var t = this.nav.top;
2236
- 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) {
2237
2249
  var a = document.createElement("span");
2238
- 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) {
2239
2251
  if (i.active && i.active.item === e)
2240
- i.Mb();
2252
+ i.Tb();
2241
2253
  else if (e.children)
2242
- return void i.Nb(a);
2254
+ return void i.Ub(a);
2243
2255
  if ("function" == typeof e.onClick) {
2244
2256
  var n = {};
2245
2257
  n.item = e, n.originalEvent = t, e.onClick(n);
2246
2258
  }
2247
- }, 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);
2248
2260
  });
2249
- }, 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) {
2250
- if (!i.Ob(e)) {
2251
- 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();
2252
2264
  var t = e.data, a = i.active = {};
2253
2265
  a.item = t, a.div = e;
2254
- var n = i.Lb("item_active");
2266
+ var n = i.Sb("item_active");
2255
2267
  DayPilot.Util.addClass(e, n);
2256
2268
  var o = DayPilot.abs(e);
2257
2269
  if (t.children) {
@@ -2261,8 +2273,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2261
2273
  }
2262
2274
  DayPilot.MenuBar.active = i;
2263
2275
  }
2264
- }, this.init = function () { return this.t(), this.Ca = !0, this; }, this.dispose = function () { this.Ca && (this.nav.top.innerHTML = "", this.elements.items = []); };
2265
- }, 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) {
2266
2278
  if (!e || !e.touches)
2267
2279
  return null;
2268
2280
  var t = e.touches[0], i = {};
@@ -2271,7 +2283,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2271
2283
  if (e = e || {}, e.calendar) {
2272
2284
  var i = DayPilot.Menu.active;
2273
2285
  if (i) {
2274
- var a = i.Hb.source;
2286
+ var a = i.Ob.source;
2275
2287
  a && a.calendar === e.calendar && t.menuClean();
2276
2288
  }
2277
2289
  }
@@ -2300,12 +2312,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2300
2312
  return i;
2301
2313
  }
2302
2314
  if (!DayPilot.ModalStatic) {
2303
- DayPilot.ModalStatic = {}, DayPilot.ModalStatic.list = [], DayPilot.ModalStatic.hide = function () {
2304
- if (this.list.length > 0) {
2305
- var e = this.list.pop();
2306
- e && e.hide();
2307
- }
2308
- }, 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) {
2309
2322
  for (var t = DayPilot.ModalStatic.list, i = 0; i < t.length; i++)
2310
2323
  if (t[i] === e)
2311
2324
  return void t.splice(i, 1);
@@ -2348,32 +2361,32 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2348
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) {
2349
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;
2350
2363
  var t = this;
2351
- 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) {
2352
2365
  if (DayPilot.ModalStatic.displayed(this))
2353
2366
  throw "This modal dialog is already displayed.";
2354
- if (this.div || this.Sb(), this.ib(), this.useIframe) {
2367
+ if (this.div || this.Zb(), this.ob(), this.useIframe) {
2355
2368
  var t = function (e, t) { return function () { e.setInnerHTML(e.id + "iframe", t); }; };
2356
2369
  window.setTimeout(t(this, e), 0);
2357
2370
  }
2358
2371
  else
2359
2372
  e.nodeType ? this.div.appendChild(e) : this.div.innerHTML = e;
2360
- this.ib(), this.Tb(), this.Ub();
2373
+ this.ob(), this.$b(), this._b();
2361
2374
  }, this.showUrl = function (e) {
2362
2375
  if (DayPilot.ModalStatic.displayed(this))
2363
2376
  throw "This modal dialog is already displayed.";
2364
2377
  if (this.useIframe) {
2365
- this.div || this.Sb();
2378
+ this.div || this.Zb();
2366
2379
  var i = this.loadingHtml;
2367
- 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();
2368
2381
  }
2369
2382
  else
2370
- 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"); } });
2371
- }, 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 () {
2372
2385
  if ("function" == typeof t.onShow) {
2373
2386
  var e = {};
2374
- e.root = t.Xb(), e.modal = t, t.onShow(e);
2387
+ e.root = t.dc(), e.modal = t, t.onShow(e);
2375
2388
  }
2376
- }, 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) {
2377
2390
  var t = new XMLHttpRequest;
2378
2391
  if (t) {
2379
2392
  var i = e.method || "GET", a = e.success || function () { }, n = e.error || function () { }, o = e.data, r = e.url;
@@ -2391,30 +2404,30 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2391
2404
  window.console && console.log("HTTP error " + t.status);
2392
2405
  }, 4 !== t.readyState && ("object" == typeof o && (o = JSON.stringify(o)), t.send(o));
2393
2406
  }
2394
- }, 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 () {
2395
- 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; };
2396
2409
  if (this.useIframe) {
2397
- 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)
2398
2411
  this.div.style.width = n + "px", this.div.style.marginLeft = "-" + Math.floor(n / 2) + "px";
2399
- 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)
2400
2413
  this.iframe.style.height = r + "px", this.div.style.height = r + "px";
2401
- this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.Vb);
2414
+ this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.bc);
2402
2415
  }
2403
2416
  else
2404
2417
  this.div.style.height = "";
2405
- }, this.$b = function () {
2418
+ }, this.gc = function () {
2406
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++) {
2407
2420
  var o = a[n].offsetLeft + a[n].offsetWidth;
2408
2421
  i = Math.max(i, o);
2409
2422
  }
2410
2423
  return i > t.clientWidth;
2411
- }, this._b = function () {
2424
+ }, this.hc = function () {
2412
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++) {
2413
2426
  var o = a[n].offsetTop + a[n].offsetHeight;
2414
2427
  i = Math.max(i, o);
2415
2428
  }
2416
2429
  return i > t.clientHeight;
2417
- }, this.Yb = function () {
2430
+ }, this.ec = function () {
2418
2431
  var e = document;
2419
2432
  if ("CSS1Compat" === e.compatMode && e.documentElement && e.documentElement.clientWidth) {
2420
2433
  var t = e.documentElement.clientWidth, i = e.documentElement.clientHeight;
@@ -2422,32 +2435,32 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2422
2435
  }
2423
2436
  var t = e.body.clientWidth, i = e.body.clientHeight;
2424
2437
  return { x: t, y: i };
2425
- }, 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) {
2426
- if (t.Rb) {
2427
- var e = e || window.event, i = t.mc(e), a = i.x - t.Rb.x, n = i.y - t.Rb.y;
2428
- 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";
2429
2442
  }
2430
- }, 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 () {
2431
2444
  if (this.useIframe) {
2432
2445
  var e = document.createElement("div");
2433
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;
2434
2447
  }
2435
- }, 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 () {
2436
2449
  if (!t.left && t.div) {
2437
2450
  var e = t.div.offsetWidth;
2438
2451
  t.div.style.marginLeft = "-" + Math.floor(e / 2) + "px";
2439
2452
  }
2440
- }, this.jc = function () {
2453
+ }, this.rc = function () {
2441
2454
  if (t.hideDiv && t.div && "none" !== t.hideDiv.style.display && "none" !== t.div.style.display) {
2442
- var e = t.kc.scrollY();
2455
+ var e = t.sc.scrollY();
2443
2456
  t.scrollWithPage || (t.div.style.top = e + t.top + "px");
2444
2457
  }
2445
- }, 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) {
2446
2459
  for (var t = { x: e.offsetLeft, y: e.offsetTop }; e.offsetParent;)
2447
2460
  e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop;
2448
2461
  return t;
2449
- }, 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 () {
2450
- 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++) {
2451
2464
  var o = i[n], r = o.name;
2452
2465
  if (r) {
2453
2466
  var s = o.value;
@@ -2455,11 +2468,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2455
2468
  }
2456
2469
  }
2457
2470
  t.close(a);
2458
- }, 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 () {
2459
2472
  if (e)
2460
2473
  for (var t in e)
2461
2474
  this[t] = e[t];
2462
- }, this.oc();
2475
+ }, this.vc();
2463
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) {
2464
2477
  "object" == typeof t && (i = t, t = ""), i = i || {}, i.height = i.height || 40, i.useIframe = !1;
2465
2478
  var a = i.okText || "OK", n = i.cancelText || "Cancel", o = t || "";
@@ -2560,8 +2573,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2560
2573
  g && g.focus();
2561
2574
  }
2562
2575
  else {
2563
- var w = h.firstFocusable();
2564
- o.autoFocus && w ? w.focus() : o.div.focus();
2576
+ var x = h.firstFocusable();
2577
+ o.autoFocus && x ? x.focus() : o.div.focus();
2565
2578
  }
2566
2579
  });
2567
2580
  }, DayPilot.Modal.close = function (e) { var t = DayPilot.Modal.opener(); t && t.close(e); }, DayPilot.Modal.stretch = function (e) {
@@ -2571,11 +2584,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2571
2584
  t.stretch();
2572
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)); });
2573
2586
  var r = function (e) {
2574
- 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 || {};
2575
2588
  for (var t in e)
2576
2589
  this[t] = e[t];
2577
2590
  };
2578
- 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) {
2579
2592
  var t = this.theme, i = this, a = document.createElement("div");
2580
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) {
2581
2594
  var n = document.createElement("div");
@@ -2583,26 +2596,26 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2583
2596
  }
2584
2597
  var o = this.createInteractive(e);
2585
2598
  o.onInput = function (e) {
2586
- 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) {
2587
2601
  var t = {};
2588
2602
  t.result = i.serialize(), i.onChange(t);
2589
2603
  }
2590
- }, 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);
2591
- }, 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) {
2592
- 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); }
2593
2607
  t = t || {};
2594
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;
2595
2609
  if (d) {
2596
2610
  var c = {};
2597
- c.valid = !0, c.value = e.save()[o.field], c.message = "Error", c.values = this.serialize(),
2598
- 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);
2599
2612
  var u = this.theme + "_form_item_invalid", h = this.theme + "_form_item_invalid_message";
2600
2613
  if (c.valid)
2601
- 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);
2602
2615
  else if (!n)
2603
2616
  if (a) {
2604
2617
  var f = 1e3;
2605
- 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);
2606
2619
  }
2607
2620
  else
2608
2621
  i();
@@ -2622,34 +2635,34 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2622
2635
  }
2623
2636
  for (var n in i)
2624
2637
  this.setValue(n, i[n]);
2625
- }, 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) {
2626
2639
  var i = this, a = this.getFieldType(e), n = [];
2627
2640
  if ("radio" === a) {
2628
2641
  if (e.name) {
2629
2642
  var o = new s;
2630
- 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);
2631
2644
  }
2632
- 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); }); });
2633
2646
  }
2634
2647
  else if ("title" === a) {
2635
2648
  var o = new s;
2636
- 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);
2637
2650
  }
2638
2651
  else if ("image" === a) {
2639
2652
  var o = new s;
2640
- 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);
2641
2654
  }
2642
2655
  else if ("html" === a) {
2643
2656
  var o = new s;
2644
- 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);
2645
2658
  }
2646
2659
  else if ("scrollable" === a) {
2647
2660
  var o = new s;
2648
- 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);
2649
2662
  }
2650
2663
  else {
2651
2664
  var o = new s;
2652
- 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);
2653
2666
  }
2654
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;
2655
2668
  }, r.prototype.doOnKey = function (e) {
@@ -2714,21 +2727,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2714
2727
  }
2715
2728
  i || (e.preventDefault(), e.stopPropagation());
2716
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;
2717
- }, "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 () {
2718
2731
  var i = new l;
2719
2732
  i.apply = function (e) { i.row = e; var t = i.radio; t.checked = e.checked, t.disabled = !e.enabled; };
2720
2733
  var a = document.createElement("label"), n = document.createElement("input");
2721
- 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);
2722
2735
  var o = document.createTextNode(e.text);
2723
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 () {
2724
2737
  if (!n.checked)
2725
2738
  return {};
2726
- var t = n.xc, i = {};
2739
+ var t = n.Ec, i = {};
2727
2740
  return i[e.field] = t, i;
2728
2741
  }, i;
2729
- }, "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; } };
2730
2743
  return t.plugins && t.plugins[e.type] ? t.plugins[e.type](e) : i[e.type]();
2731
- }, r.prototype.vc = function (e) {
2744
+ }, r.prototype.Cc = function (e) {
2732
2745
  var t = this, i = new l;
2733
2746
  i.apply = function (e) { i.row = e; var t = i.searchable; t.disabled = !e.enabled, t.select(e.value); };
2734
2747
  var a = [], n = e.data.timeInterval || 15;
@@ -2739,7 +2752,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2739
2752
  }
2740
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();
2741
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;
2742
- }, r.prototype.wc = function (e) {
2755
+ }, r.prototype.Dc = function (e) {
2743
2756
  var t = this, i = new l;
2744
2757
  i.apply = function (e) {
2745
2758
  i.row = e;
@@ -2789,9 +2802,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2789
2802
  return i.searchable = f, f.create();
2790
2803
  }(), o = document.createElement("div");
2791
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;
2792
- }, 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) {
2793
- var i = this.qc ? this.qc : this.pc, a = i.indexOf(e);
2794
- 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) {
2795
2808
  if (i !== e)
2796
2809
  return i;
2797
2810
  if (e.propsEqual(t))
@@ -2800,11 +2813,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2800
2813
  for (var n in t)
2801
2814
  a[n] = t[n];
2802
2815
  return a;
2803
- }), this.qc[a];
2804
- }, 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 () {
2805
2818
  var e = this;
2806
- if (this.updateDependentState(), this.qc) {
2807
- 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;
2808
2821
  }
2809
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 () {
2810
2823
  var e = {};
@@ -2827,18 +2840,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2827
2840
  return !0;
2828
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)); };
2829
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) {
2830
- 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 || {};
2831
- 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); } } };
2832
- 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()); } });
2833
2846
  for (var a in e)
2834
2847
  i[a] || (this[a] = e[a]);
2835
2848
  for (var a in e)
2836
2849
  i[a] && i[a].post(e[a]);
2837
2850
  };
2838
- 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 () {
2839
2852
  function e(e) {
2840
2853
  var i = l.strategy;
2841
- "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 = [];
2842
2855
  var n = null;
2843
2856
  l.data.forEach(function (i) {
2844
2857
  var o = i.name || i.id;
@@ -2849,27 +2862,27 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2849
2862
  else if ("startsWith" === e && 0 !== o.toLowerCase().indexOf(m.value.toLowerCase()))
2850
2863
  return;
2851
2864
  var r = document.createElement("div");
2852
- 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);
2853
- }), 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();
2854
2867
  }
2855
- 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()); }
2856
2869
  function i(e, t) { var i = e.getBoundingClientRect(), a = t.getBoundingClientRect(); return i.top >= a.top && i.bottom <= a.bottom; }
2857
- function a(e) { var t = e.item; l.zc = t, l.Gc(!0), o(), r(); }
2858
- 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(); }
2859
2872
  function o() { l.q(); }
2860
- function r() { l.Bc = !0, m.setAttribute("readonly", "readonly"), m.focus(); }
2861
- 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"); }
2862
2875
  var l = this, d = this, c = document.createElement("div");
2863
2876
  c.className = this.theme + "_main", c.style.position = "relative";
2864
2877
  var u = document.createElement("div");
2865
- 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()); });
2866
2879
  var h = document.createElement("div");
2867
2880
  h.className = this.theme + "_list", h.style.display = "none", h.style.position = "absolute", h.style.zIndex = this.listZIndex;
2868
2881
  var f = document.createElement("input");
2869
- 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;
2870
2883
  var m = document.createElement("input");
2871
- 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) {
2872
- 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) {
2873
2886
  if ("Enter" === e.key)
2874
2887
  return;
2875
2888
  if ("Esc" === e.key || "Escape" === e.key)
@@ -2877,24 +2890,24 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2877
2890
  s();
2878
2891
  }
2879
2892
  if ("ArrowDown" === e.key) {
2880
- var i = d.p.indexOf(d.Ac);
2881
- 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();
2882
2895
  }
2883
2896
  else if ("ArrowUp" === e.key) {
2884
- var i = d.p.indexOf(d.Ac);
2885
- 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();
2886
2899
  }
2887
2900
  else
2888
- "Enter" === e.key ? l.Ac ? (e.stopPropagation(), a(l.Ac)) : (e.stopPropagation(), n(), r()) : "Esc" !== e.key && "Escape" !== e.key || (e.stopPropagation(), n(), r());
2889
- }), 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;
2890
- }, 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) {
2891
- 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) {
2892
2905
  var t = { control: this, ui: e };
2893
2906
  this.onSelect(t);
2894
2907
  }
2895
2908
  };
2896
2909
  var c = function (e) {
2897
- 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 || {};
2898
2911
  for (var t in e)
2899
2912
  this[t] = e[t];
2900
2913
  };
@@ -2905,11 +2918,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2905
2918
  i.type = "hidden", i.name = e.name, i.table = this, t.appendChild(i);
2906
2919
  var a = document.createElement("div");
2907
2920
  a.className = this.theme + "_table";
2908
- var n = this.Ic();
2921
+ var n = this.Pc();
2909
2922
  a.appendChild(n);
2910
- var o = e.Jc({});
2923
+ var o = e.Qc({});
2911
2924
  o.spacer = !0;
2912
- var r = this.Kc(o);
2925
+ var r = this.Rc(o);
2913
2926
  r.classList.add(e.theme + "_spacer"), a.appendChild(r);
2914
2927
  var s = document.createElement("div");
2915
2928
  s.className = e.theme + "_tbody", a.appendChild(s), t.appendChild(a);
@@ -2923,18 +2936,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2923
2936
  var n = {};
2924
2937
  n.result = e.form.serialize(), n.value = {}, i(n), a = n.value;
2925
2938
  }
2926
- var o = e.Jc(a);
2927
- e.pc.push(o), e.Lc(), e.Mc();
2939
+ var o = e.Qc(a);
2940
+ e.wc.push(o), e.Sc(), e.Tc();
2928
2941
  }
2929
2942
  }), this.nav.plus = c, d.appendChild(c), t.appendChild(d), t;
2930
- }, 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) {
2931
2944
  if ("[object Array]" !== Object.prototype.toString.call(e))
2932
2945
  throw new Error("Array expected");
2933
- this.data = e, this.Oc(), this.Lc();
2934
- }, 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) {
2935
2948
  var t = this, i = {};
2936
2949
  return i.data = e, i.cells = [], t.item.columns.forEach(function (a) {
2937
- var n = a.id, o = e[n], r = t.Rc(a);
2950
+ var n = a.id, o = e[n], r = t.Yc(a);
2938
2951
  if ("undefined" == typeof o)
2939
2952
  if ("text" === r)
2940
2953
  o = "";
@@ -2947,19 +2960,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2947
2960
  var l = {};
2948
2961
  l.id = n, l.value = o, l.type = r, l.data = a, i.cells.push(l);
2949
2962
  }), i;
2950
- }, 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 () {
2951
2964
  var e = this;
2952
- 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) {
2953
- 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();
2954
2967
  e.nav.after.appendChild(t);
2955
2968
  }
2956
- this.Pc();
2957
- }, 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) {
2958
2971
  var t = this, i = document.createElement("div");
2959
2972
  i.className = t.theme + "_row", e.cells.forEach(function (a) {
2960
2973
  var n = document.createElement("div");
2961
2974
  n.className = t.theme + "_cell";
2962
- var o = t.Tc(a);
2975
+ var o = t.$c(a);
2963
2976
  if (e.spacer) {
2964
2977
  var r = document.createElement("div");
2965
2978
  r.style.height = "0px", r.style.overflow = "hidden", r.appendChild(o), n.appendChild(r);
@@ -2971,22 +2984,22 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2971
2984
  var a = document.createElement("div");
2972
2985
  a.classList.add(t.theme + "_cell"), a.classList.add(t.theme + "_rowaction");
2973
2986
  var n = document.createElement("span");
2974
- 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;
2975
- }, 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 () {
2976
2989
  var e = this;
2977
2990
  if ("function" == typeof e.onInput) {
2978
2991
  var t = {};
2979
2992
  e.onInput(t);
2980
2993
  }
2981
- }, c.prototype.Tc = function (e) {
2994
+ }, c.prototype.$c = function (e) {
2982
2995
  var t = this, i = e.type;
2983
2996
  if ("text" === i || "number" === i) {
2984
2997
  var a = document.createElement("input");
2985
- 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;
2986
2999
  }
2987
3000
  if ("select" === i) {
2988
3001
  var n = document.createElement("select");
2989
- 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;
2990
3003
  }
2991
3004
  throw new Error("Unsupported item type: " + i);
2992
3005
  }, c.prototype.focus = function () { };
@@ -2997,9 +3010,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2997
3010
  if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
2998
3011
  var e = {}, t = DayPilot.Util.isVueVNode;
2999
3012
  e.Month = function (i, a) {
3000
- this.v = "2025.1.635-lite", this.nav = {};
3013
+ this.v = "2025.2.643-lite", this.nav = {};
3001
3014
  var n = this;
3002
- 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) {
3003
3016
  var t = null;
3004
3017
  if (e instanceof DayPilot.Event)
3005
3018
  t = e.data;
@@ -3008,7 +3021,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3008
3021
  throw "DayPilot.Month.events.add() expects an object or DayPilot.Event instance.";
3009
3022
  t = e;
3010
3023
  }
3011
- 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();
3012
3025
  }, this.events.find = function (e) {
3013
3026
  if (!n.events.list)
3014
3027
  return null;
@@ -3036,7 +3049,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3036
3049
  n.events.list.splice(i, 1, e);
3037
3050
  }
3038
3051
  }
3039
- n.update(), n.ta.notify();
3052
+ n.update(), n.ua.notify();
3040
3053
  }, this.events.remove = function (e) {
3041
3054
  var t;
3042
3055
  if (e instanceof DayPilot.Event)
@@ -3050,7 +3063,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3050
3063
  i && (t = i.data);
3051
3064
  }
3052
3065
  var a = DayPilot.indexOf(n.events.list, t);
3053
- n.events.list.splice(a, 1), n.update(), n.ta.notify();
3066
+ n.events.list.splice(a, 1), n.update(), n.ua.notify();
3054
3067
  }, this.events.load = function (e, t, i) {
3055
3068
  var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) {
3056
3069
  var i, o = e.request;
@@ -3065,7 +3078,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3065
3078
  var s = {};
3066
3079
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
3067
3080
  return;
3068
- n.events.list = i, n.Ca && n.update();
3081
+ n.events.list = i, n.Ia && n.update();
3069
3082
  }
3070
3083
  };
3071
3084
  if (n.eventsLoadMethod && "POST" === n.eventsLoadMethod.toUpperCase())
@@ -3074,18 +3087,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3074
3087
  var r = e, s = "start=" + n.visibleStart().toString() + "&end=" + n.visibleEnd().toString();
3075
3088
  r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": a });
3076
3089
  }
3077
- }, 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) {
3078
- if (n.kb(e), this.Ca) {
3079
- 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)
3080
3093
  throw new DayPilot.Exception("You are trying to update a DayPilot.Month instance that has been disposed.");
3081
3094
  if (this.cells) {
3082
- 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();
3083
3096
  }
3084
3097
  }
3085
- }, this.mb = null, this.kb = function (e) {
3098
+ }, this.sb = null, this.qb = function (e) {
3086
3099
  if (e) {
3087
3100
  var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? n.events.list = e.list : n.events.list = e; } } };
3088
- this.mb = t;
3101
+ this.sb = t;
3089
3102
  for (var i in e)
3090
3103
  if (t[i]) {
3091
3104
  var a = t[i];
@@ -3094,14 +3107,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3094
3107
  else
3095
3108
  n[i] = e[i];
3096
3109
  }
3097
- }, this.nb = function () {
3098
- var e = this.mb;
3110
+ }, this.tb = function () {
3111
+ var e = this.sb;
3099
3112
  for (var t in e) {
3100
3113
  var i = e[t];
3101
3114
  i.postInit && i.postInit();
3102
3115
  }
3103
- }, this.pb = {}, this.pb.events = [], this.qb = function (e) {
3104
- 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 = {};
3105
3118
  for (var o in i)
3106
3119
  a[o] = i[o];
3107
3120
  if ("function" == typeof this.onBeforeEventRender) {
@@ -3109,14 +3122,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3109
3122
  r.control = n, r.data = a, this.onBeforeEventRender(r);
3110
3123
  }
3111
3124
  t[e] = a;
3112
- }, this.fa = function () {
3125
+ }, this.ga = function () {
3113
3126
  var e = this.events.list;
3114
3127
  if (e) {
3115
3128
  if (!DayPilot.isArray(e))
3116
3129
  throw new DayPilot.Exception("DayPilot.Month.events.list expects an array object. You supplied: " + typeof e);
3117
3130
  if ("function" == typeof this.onBeforeEventRender)
3118
3131
  for (var t = 0; t < e.length; t++)
3119
- this.qb(t);
3132
+ this.wb(t);
3120
3133
  for (var i = 0; i < e.length; i++) {
3121
3134
  var a = e[i];
3122
3135
  if ("object" != typeof a)
@@ -3129,41 +3142,41 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3129
3142
  if (!(n.getTime() > o.getTime()))
3130
3143
  for (var t = 0; t < this.rows.length; t++) {
3131
3144
  var r = this.rows[t], s = new DayPilot.Event(a, this);
3132
- 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]));
3133
3146
  }
3134
3147
  }
3135
3148
  for (var l = 0; l < this.rows.length; l++) {
3136
3149
  var r = this.rows[l];
3137
- r.events.sort(this.rb);
3150
+ r.events.sort(this.xb);
3138
3151
  for (var d = 0; d < this.rows[l].events.length; d++) {
3139
3152
  var c = r.events[d], u = r.getStartColumn(c), h = r.getWidth(c);
3140
3153
  r.putIntoLine(c, u, h, l);
3141
3154
  }
3142
3155
  }
3143
3156
  }
3144
- }, this.W = function () {
3157
+ }, this.X = function () {
3145
3158
  for (var e = 0; e < this.elements.events.length; e++) {
3146
3159
  var t = this.elements.events[e];
3147
- n.Fa(t);
3160
+ n.La(t);
3148
3161
  }
3149
3162
  this.elements.events = [];
3150
- }, this.Fa = function (e) {
3163
+ }, this.La = function (e) {
3151
3164
  !function () {
3152
3165
  var i = e.domArgs;
3153
3166
  if (e.domArgs = null, i && "function" == typeof n.onBeforeEventDomRemove && n.onBeforeEventDomRemove(i), i && "function" == typeof n.onBeforeEventDomAdd) {
3154
- var a = i && i.Ga;
3167
+ var a = i && i.Ma;
3155
3168
  if (a) {
3156
- 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);
3157
3170
  }
3158
3171
  }
3159
3172
  }(), e.event = null, e.click = null, e.parentNode.removeChild(e);
3160
- }, this.la = function () { this.Xc(); }, this.Xc = function () {
3173
+ }, this.ma = function () { this.cd(); }, this.cd = function () {
3161
3174
  this.elements.events = [];
3162
3175
  for (var e = 0; e < this.rows.length; e++)
3163
3176
  for (var t = this.rows[e], i = 0; i < t.lines.length; i++)
3164
3177
  for (var a = t.lines[i], n = 0; n < a.length; n++)
3165
- this.La(a[n]);
3166
- }, this.rb = function (e, t) {
3178
+ this.Ra(a[n]);
3179
+ }, this.xb = function (e, t) {
3167
3180
  if (!(e && t && e.start && t.start))
3168
3181
  return 0;
3169
3182
  var i = e.start().getTime() - t.start().getTime();
@@ -3201,11 +3214,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3201
3214
  for (var i = this.headerHeight, a = 0; a < e; a++)
3202
3215
  i += this.rows[a].getHeight();
3203
3216
  return i += this.cellHeaderHeight, i += t * this.lineHeight();
3204
- }, 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) {
3205
3218
  var a = i.cache || i.data, o = a.borderRadius || n.eventBorderRadius;
3206
3219
  "number" == typeof o && (o += "px");
3207
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");
3208
- 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) {
3209
3222
  t = t || window.event;
3210
3223
  var a = t.which || t.button;
3211
3224
  if (t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), 1 === a)
@@ -3242,7 +3255,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3242
3255
  }
3243
3256
  if (i.client.deleteEnabled()) {
3244
3257
  var y = Math.floor(n.eventHeight / 2 - 9), g = document.createElement("div");
3245
- 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);
3246
3259
  }
3247
3260
  var b = a.areas ? DayPilot.Areas.copy(a.areas) : [];
3248
3261
  if (DayPilot.Areas.attach(f, i, { "areas": b }), "function" == typeof n.onAfterEventRender) {
@@ -3254,11 +3267,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3254
3267
  if (e.control = n, e.e = i, e.element = null, f.domArgs = e, "function" == typeof n.onBeforeEventDomAdd && n.onBeforeEventDomAdd(e), e.element) {
3255
3268
  var a = m;
3256
3269
  if (a) {
3257
- e.Ga = a;
3270
+ e.Ma = a;
3258
3271
  if (t(e.element)) {
3259
- if (!n.Ia.Ha)
3272
+ if (!n.Oa.Na)
3260
3273
  throw new DayPilot.Exception("Can't reach Vue");
3261
- 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;
3262
3275
  }
3263
3276
  else
3264
3277
  a.appendChild(e.element);
@@ -3267,7 +3280,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3267
3280
  else
3268
3281
  m.innerHTML = i.client.innerHTML();
3269
3282
  }(), this.elements.events.push(f), this.nav.events.appendChild(f);
3270
- }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.Uc = function () {
3283
+ }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this._c = function () {
3271
3284
  "string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart());
3272
3285
  var e, t = (this.startDate, this.lastVisibleDayOfMonth()), i = DayPilot.DateUtil.daysDiff(this.firstDate, t) + 1;
3273
3286
  e = Math.ceil(i / 7), this.days = 7 * e, this.rows = [];
@@ -3295,7 +3308,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3295
3308
  for (var e = this.headerHeight, t = 0; t < this.rows.length; t++)
3296
3309
  e += this.rows[t].getHeight();
3297
3310
  return e;
3298
- }, 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 () {
3299
3312
  var t = this.nav.top;
3300
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");
3301
3314
  var i = document.createElement("div");
@@ -3347,7 +3360,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3347
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);
3348
3361
  }
3349
3362
  };
3350
- }, this.ka = function () {
3363
+ }, this.la = function () {
3351
3364
  this.nav.top.style.height = this.getHeight() + "px";
3352
3365
  for (var e = 0; e < this.cells.length; e++)
3353
3366
  for (var t = 0; t < this.cells[e].length; t++)
@@ -3367,7 +3380,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3367
3380
  for (var t = DayPilot.DateUtil.daysDiff(this.firstDate, e), i = { x: 0, y: 0 }; t >= 7;)
3368
3381
  i.y++, t -= 7;
3369
3382
  return i.x = t, i;
3370
- }, this.Wc = function () {
3383
+ }, this.bd = function () {
3371
3384
  var e = document.createElement("div");
3372
3385
  e.oncontextmenu = function () { return !1; }, this.nav.cells.appendChild(e), this.cells = [];
3373
3386
  for (var t = 0; t < this.getColCount(); t++) {
@@ -3379,27 +3392,27 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3379
3392
  var n = document.createElement("div");
3380
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);
3381
3394
  for (var r = 0; r < this.rows.length; r++)
3382
- this.Zc(t, r, e);
3395
+ this.ed(t, r, e);
3383
3396
  }
3384
- }, this.Vc = function () {
3397
+ }, this.ad = function () {
3385
3398
  for (var e = 0; e < this.cells.length; e++)
3386
3399
  for (var t = 0; t < this.cells[e].length; t++) {
3387
3400
  var i = n.cells[e][t];
3388
- n.Za(i);
3401
+ n.db(i);
3389
3402
  }
3390
3403
  this.nav.cells.innerHTML = "";
3391
- }, this.Za = function (e) {
3404
+ }, this.db = function (e) {
3392
3405
  !function () {
3393
3406
  var i = e.domArgs;
3394
3407
  if (e.domArgs = null, i && "function" == typeof n.onBeforeCellDomRemove && n.onBeforeCellDomRemove(i), i && "function" == typeof n.onBeforeCellDomAdd) {
3395
- var a = i && i.Ga;
3408
+ var a = i && i.Ma;
3396
3409
  if (a) {
3397
- var o = n.$c.reactDOM && isReactCmp(i.element), r = n.Ia.Ha && (isVueCmp(i.element) || t(i.element));
3398
- 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);
3399
3412
  }
3400
3413
  }
3401
3414
  }(), e.onclick = null;
3402
- }, 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) {
3403
3416
  var s = this.rows[a], l = this.firstDate.addDays(7 * a + i), d = l.getDay(), c = null;
3404
3417
  c = 1 === d ? o.locale().monthNames[l.getMonth()] + " " + d : "" + d;
3405
3418
  var u = !n.isWeekend(l), h = { "start": l, "end": l.addDays(1), "properties": { "headerHtml": c, "backColor": null, "business": u, "html": null } }, f = {};
@@ -3411,7 +3424,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3411
3424
  }
3412
3425
  var v = (this.startDate.addMonths(-1).getMonth(), this.startDate.addMonths(1).getMonth(), this.startDate.getMonth(), document.createElement("div"));
3413
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 () {
3414
- 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); };
3415
3428
  if ("Disabled" !== n.timeRangeSelectedHandling)
3416
3429
  return void e(l);
3417
3430
  };
@@ -3432,11 +3445,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3432
3445
  if (e.control = n, e.cell = h, e.element = null, p.domArgs = e, "function" == typeof n.onBeforeCellDomAdd && n.onBeforeCellDomAdd(e), e.element) {
3433
3446
  var i = v;
3434
3447
  if (i) {
3435
- e.Ga = i;
3448
+ e.Ma = i;
3436
3449
  if (t(e.element)) {
3437
- if (!n.Ia.Ha)
3450
+ if (!n.Oa.Na)
3438
3451
  throw new DayPilot.Exception("Can't reach Vue");
3439
- 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;
3440
3453
  }
3441
3454
  else
3442
3455
  i.appendChild(e.element);
@@ -3454,12 +3467,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3454
3467
  for (var t = this.headerHeight, i = 0; i < e; i++)
3455
3468
  t += this.rows[i].getHeight();
3456
3469
  return t;
3457
- }, 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) {
3458
3471
  var i = e.event;
3459
3472
  if (i && i.client.clickEnabled())
3460
- if (n.ra()) {
3473
+ if (n.sa()) {
3461
3474
  var a = {};
3462
- 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))
3463
3476
  return;
3464
3477
  switch (n.eventClickHandling) {
3465
3478
  case "CallBack":
@@ -3469,7 +3482,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3469
3482
  var o = i.client.contextMenu();
3470
3483
  o ? o.show(i) : n.contextMenu && n.contextMenu.show(i);
3471
3484
  }
3472
- "function" == typeof n.onEventClicked && n.ta.apply(function () { n.onEventClicked(a); });
3485
+ "function" == typeof n.onEventClicked && n.ua.apply(function () { n.onEventClicked(a); });
3473
3486
  }
3474
3487
  else
3475
3488
  switch (n.eventClickHandling) {
@@ -3478,7 +3491,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3478
3491
  break;
3479
3492
  case "JavaScript": n.onEventClick(i);
3480
3493
  }
3481
- }, 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) {
3482
3495
  if (this.event = e, !e.client.rightClickEnabled())
3483
3496
  return !1;
3484
3497
  var t = {};
@@ -3490,10 +3503,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3490
3503
  }
3491
3504
  return "function" == typeof n.onEventRightClicked && n.onEventRightClicked(t), !1;
3492
3505
  }
3493
- }, this.va = function (e) {
3494
- if (n.ra()) {
3506
+ }, this.wa = function (e) {
3507
+ if (n.sa()) {
3495
3508
  var t = {};
3496
- 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))
3497
3510
  return;
3498
3511
  switch (n.eventDeleteHandling) {
3499
3512
  case "CallBack":
@@ -3504,7 +3517,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3504
3517
  break;
3505
3518
  case "Update": n.events.remove(e);
3506
3519
  }
3507
- "function" == typeof n.onEventDeleted && n.ta.apply(function () { n.onEventDeleted(t); });
3520
+ "function" == typeof n.onEventDeleted && n.ua.apply(function () { n.onEventDeleted(t); });
3508
3521
  }
3509
3522
  else
3510
3523
  switch (n.eventDeleteHandling) {
@@ -3516,22 +3529,22 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3516
3529
  break;
3517
3530
  case "JavaScript": n.onEventDelete(e);
3518
3531
  }
3519
- }, 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) {
3520
3533
  if (!t)
3521
3534
  throw "newStart is null";
3522
3535
  if (!i)
3523
3536
  throw "newEnd is null";
3524
3537
  var o = {};
3525
- 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);
3526
3539
  }, this.L = function (e, t, i, a, o, r) {
3527
3540
  var s = e.start().getTimePart(), l = e.end().getDatePart();
3528
3541
  l.getTime() !== e.end().getTime() && (l = l.addDays(1));
3529
3542
  var d = DayPilot.DateUtil.diff(e.end(), l), c = this.getDateFromCell(t, i);
3530
3543
  c = c.addDays(-a);
3531
3544
  var u = DayPilot.DateUtil.daysSpan(e.start(), e.end()) + 1, h = c.addDays(u), f = c.addTime(s), m = h.addTime(d);
3532
- if (n.ra()) {
3545
+ if (n.sa()) {
3533
3546
  var p = {};
3534
- 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))
3535
3548
  return;
3536
3549
  switch (n.eventMoveHandling) {
3537
3550
  case "CallBack":
@@ -3539,7 +3552,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3539
3552
  break;
3540
3553
  case "Update": e.start(f), e.end(m), n.events.update(e);
3541
3554
  }
3542
- "function" == typeof n.onEventMoved && n.ta.apply(function () { n.onEventMoved(p); });
3555
+ "function" == typeof n.onEventMoved && n.ua.apply(function () { n.onEventMoved(p); });
3543
3556
  }
3544
3557
  else
3545
3558
  switch (n.eventMoveHandling) {
@@ -3554,14 +3567,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3554
3567
  if (!i)
3555
3568
  throw "newEnd is null";
3556
3569
  var n = {};
3557
- 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);
3558
3571
  }, this.J = function (e, t, i) {
3559
3572
  var a = e.start().getTimePart(), o = e.end().getDatePart();
3560
3573
  o.getTime() !== e.end().getTime() && (o = o.addDays(1));
3561
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);
3562
- if (n.ra()) {
3575
+ if (n.sa()) {
3563
3576
  var u = {};
3564
- 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))
3565
3578
  return;
3566
3579
  switch (n.eventResizeHandling) {
3567
3580
  case "CallBack":
@@ -3569,7 +3582,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3569
3582
  break;
3570
3583
  case "Update": e.start(d), e.end(c), n.events.update(e);
3571
3584
  }
3572
- "function" == typeof n.onEventResized && n.ta.apply(function () { n.onEventResized(u); });
3585
+ "function" == typeof n.onEventResized && n.ua.apply(function () { n.onEventResized(u); });
3573
3586
  }
3574
3587
  else
3575
3588
  switch (n.eventResizeHandling) {
@@ -3578,15 +3591,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3578
3591
  break;
3579
3592
  case "JavaScript": n.onEventResize(e, d, c);
3580
3593
  }
3581
- }, this.timeRangeSelectedCallBack = function (e, t, i) { var a = {}; a.start = e, a.end = t, this.S("TimeRangeSelected", i, a); }, this.M = function (e, t) {
3582
- 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()) {
3583
3596
  var i = {};
3584
- 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))
3585
3598
  return;
3586
3599
  switch (n.timeRangeSelectedHandling) {
3587
3600
  case "CallBack": n.timeRangeSelectedCallBack(e, t);
3588
3601
  }
3589
- "function" == typeof n.onTimeRangeSelected && n.ta.apply(function () { n.onTimeRangeSelected(i); });
3602
+ "function" == typeof n.onTimeRangeSelected && n.ua.apply(function () { n.onTimeRangeSelected(i); });
3590
3603
  }
3591
3604
  else
3592
3605
  switch (n.timeRangeSelectedHandling) {
@@ -3595,9 +3608,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3595
3608
  break;
3596
3609
  case "JavaScript": n.onTimeRangeSelected(e, t);
3597
3610
  }
3598
- }, 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; };
3599
- var o = this.aa;
3600
- 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 () {
3601
3614
  if (this.id && this.id.tagName)
3602
3615
  this.nav.top = this.id;
3603
3616
  else {
@@ -3606,19 +3619,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3606
3619
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
3607
3620
  throw "DayPilot.Month: The placeholder element not found: '" + id + "'.";
3608
3621
  }
3609
- }, 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) {
3610
- 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;
3611
3624
  if ("function" == typeof a.createVNode && "function" == typeof a.render) {
3612
3625
  var o = a.createVNode(e, i);
3613
3626
  a.render(o, t);
3614
3627
  }
3615
- }, this.Ia.Ma = function (e, t, i) {
3616
- var a = n.Ia.Ha;
3628
+ }, this.Oa.Sa = function (e, t, i) {
3629
+ var a = n.Oa.Na;
3617
3630
  if ("function" == typeof a.render) {
3618
3631
  var o = e;
3619
3632
  DayPilot.isArray(e) && (o = a.h("div", i, e)), a.render(o, t);
3620
3633
  }
3621
- }, 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);
3622
3635
  }, e.gMouseUp = function (t) {
3623
3636
  if (e.movingEvent) {
3624
3637
  var i = e.movingEvent;
@@ -3651,7 +3664,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3651
3664
  if (e.timeRangeSelecting) {
3652
3665
  if (e.timeRangeSelecting.moved) {
3653
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);
3654
- a.M(o, c), a.clearShadow();
3667
+ a.N(o, c), a.clearShadow();
3655
3668
  }
3656
3669
  e.timeRangeSelecting = null;
3657
3670
  }
@@ -3673,7 +3686,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3673
3686
  e && e.directive("daypilotMonth", ["$parse", function (e) {
3674
3687
  return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) {
3675
3688
  var n = new DayPilot.Month(i[0]);
3676
- n.ta.scope = t, n.init();
3689
+ n.ua.scope = t, n.init();
3677
3690
  var o = a["id"];
3678
3691
  o && (t[o] = n);
3679
3692
  var r = a["publishAs"];
@@ -3699,25 +3712,25 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3699
3712
  if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.def) {
3700
3713
  var e = DayPilot.Util.isVueVNode;
3701
3714
  DayPilot.Navigator = function (t, i) {
3702
- this.v = "2025.1.635-lite";
3715
+ this.v = "2025.2.643-lite";
3703
3716
  var a = this;
3704
- 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 () {
3705
- 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())
3706
3719
  return null;
3707
3720
  var e = 7;
3708
3721
  return this.showWeekNumbers && e++, 100 / e;
3709
- }, 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) {
3710
3723
  var n = {};
3711
3724
  n.cells = [], n.days = [], n.weeks = [];
3712
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;
3713
3726
  n.rowCount = f;
3714
- 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();
3715
3728
  n.width = p;
3716
3729
  var v = this.cellHeight * f + this.titleHeight + this.dayHeaderHeight;
3717
3730
  n.height = v;
3718
3731
  var y = document.createElement("div");
3719
- 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)
3720
- 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;
3721
3734
  else {
3722
3735
  y.style.position = "relative";
3723
3736
  var g = t > 0 ? a.months[t - 1].top + a.months[t - 1].height : 0;
@@ -3725,12 +3738,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3725
3738
  }
3726
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);
3727
3740
  var b = this.titleHeight + this.dayHeaderHeight, D = document.createElement("div");
3728
- 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;
3729
- var w = document.createElement("div");
3730
- 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;
3731
3742
  var x = document.createElement("div");
3732
- 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;
3733
- 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);
3734
3747
  if (this.showWeekNumbers)
3735
3748
  for (var P = 0; P < f; P++) {
3736
3749
  var k = c.addDays(7 * P), _ = null;
@@ -3747,73 +3760,73 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3747
3760
  default: throw "Unknown weekNumberAlgorithm value.";
3748
3761
  }
3749
3762
  var S = document.createElement("div");
3750
- 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);
3751
3764
  }
3752
3765
  for (var M = 0; M < 7; M++) {
3753
3766
  n.cells[M] = [];
3754
3767
  var S = document.createElement("div");
3755
- 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);
3756
3769
  for (var P = 0; P < f; P++) {
3757
- 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);
3758
- if ("month" === this.od())
3759
- A = A && T;
3760
- else if ("day" === this.od())
3761
- A = A && (T || s && H || l && E);
3762
- else if ("week" === this.od()) {
3763
- var I = k.firstDayOfMonth() === o;
3764
- 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);
3765
3778
  }
3766
- var N = document.createElement("div");
3767
- n.cells[M][P] = N;
3768
- var R = a.pd(M, P), O = R.x, z = R.y, B = r.bd() ? "%" : "px";
3769
- 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";
3770
- var U = document.createElement("div");
3771
- 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);
3772
- var L = null;
3773
- this.cells && this.cells[k.toStringSortable()] && (L = this.cells[k.toStringSortable()]);
3774
- var j = L || {};
3775
- 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) {
3776
3790
  var W = {};
3777
- W.cell = j, a.onBeforeCellRender(W), L = W.cell;
3791
+ W.cell = L, a.onBeforeCellRender(W), j = W.cell;
3778
3792
  }
3779
- if (L && DayPilot.Util.addClass(N, L.cssClass || L.css),
3780
- T || s && H || l && E) {
3793
+ if (j && DayPilot.Util.addClass(I, j.cssClass || j.css), A || s && H || l && E) {
3781
3794
  var F = document.createElement("div");
3782
- 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);
3783
3796
  }
3784
- N.setAttribute("unselectable", "on"), N.onclick = this.qd, function () {
3797
+ I.setAttribute("unselectable", "on"), I.onclick = this.xd, function () {
3785
3798
  if ("function" == typeof a.onBeforeCellDomAdd || "function" == typeof a.onBeforeCellDomRemove) {
3786
3799
  var t = {};
3787
- if (t.control = a, t.cell = j, t.element = null, N.domArgs = t, "function" == typeof a.onBeforeCellDomAdd && a.onBeforeCellDomAdd(t), t.element) {
3788
- 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;
3789
3802
  if (i) {
3790
- t.Ga = i;
3803
+ t.Ma = i;
3791
3804
  if (e(t.element)) {
3792
- if (!a.Ia.Ha)
3805
+ if (!a.Oa.Na)
3793
3806
  throw new DayPilot.Exception("Can't reach Vue");
3794
- 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;
3795
3808
  }
3796
3809
  else
3797
3810
  i.appendChild(t.element);
3798
3811
  }
3799
3812
  }
3800
3813
  }
3801
- }(), 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));
3802
3815
  }
3803
3816
  }
3804
3817
  var J = document.createElement("div");
3805
- 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);
3806
- }, 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 () {
3807
3820
  if (this.items)
3808
3821
  for (var e = 0; e < this.showMonths; e++)
3809
3822
  for (var t = 0; t < 7; t++)
3810
3823
  for (var i = 0; i < 6; i++) {
3811
3824
  var a = this.months[e].cells[t][i];
3812
- 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")));
3813
3826
  }
3814
- }, 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 () {
3815
3828
  var e = this.selectionDay || this.selectionStart;
3816
- 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()) {
3817
3830
  case "day":
3818
3831
  this.selectionStart = e, this.selectionDay = e, this.selectionEnd = e;
3819
3832
  break;
@@ -3828,10 +3841,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3828
3841
  break;
3829
3842
  default: throw "Unknown selectMode value.";
3830
3843
  }
3831
- }, this.wd = null, this.select = function (e, t, i) {
3844
+ }, this.Dd = null, this.select = function (e, t, i) {
3832
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;
3833
- if (!this.Ca)
3834
- 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 });
3835
3848
  var d = !0, c = !0;
3836
3849
  l && "object" == typeof l ? (l.dontFocus && (d = !1), l.dontNotify && (c = !1)) : "boolean" == typeof l && (d = !l);
3837
3850
  var u = this.selectionStart, h = this.selectionEnd;
@@ -3839,21 +3852,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3839
3852
  var f = !1;
3840
3853
  if (d) {
3841
3854
  var m = this.startDate;
3842
- (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;
3843
3856
  }
3844
- 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();
3845
3858
  }, this.update = function (e) {
3846
- if (a.kb(e), this.Ca) {
3847
- if (a.O)
3859
+ if (a.qb(e), this.Ia) {
3860
+ if (a.P)
3848
3861
  throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed.");
3849
- a.Bd();
3862
+ a.Id();
3850
3863
  var t = { "day": a.selectionDay, "start": a.selectionStart, "end": a.selectionEnd };
3851
- 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();
3852
3865
  }
3853
- }, 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) {
3854
3867
  if (e) {
3855
3868
  var t = { "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? a.events.list = e.list : a.events.list = e); } } };
3856
- this.mb = t;
3869
+ this.sb = t;
3857
3870
  for (var i in e)
3858
3871
  if (t[i]) {
3859
3872
  var n = t[i];
@@ -3862,20 +3875,20 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3862
3875
  else
3863
3876
  a[i] = e[i];
3864
3877
  }
3865
- }, this.nb = function () {
3866
- var e = this.mb;
3878
+ }, this.tb = function () {
3879
+ var e = this.sb;
3867
3880
  for (var t in e) {
3868
3881
  var i = e[t];
3869
3882
  i.postInit && i.postInit();
3870
3883
  }
3871
- }, 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) {
3872
3885
  if ("function" == typeof a.onAjaxError) {
3873
3886
  var t = {};
3874
3887
  t.request = e, a.onAjaxError(t);
3875
3888
  }
3876
3889
  else
3877
3890
  "function" == typeof a.ajaxError && a.ajaxError(e);
3878
- }, 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) {
3879
3892
  for (var t = 0; t < a.months.length; t++) {
3880
3893
  var i = a.months[t];
3881
3894
  if (!i)
@@ -3889,14 +3902,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3889
3902
  }
3890
3903
  }
3891
3904
  return null;
3892
- }, this.Fd = function (e) { }, this.Gd = function () {
3893
- if (!r.bd())
3894
- 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);
3895
3908
  var e = a.months[0].cells[0][0], t = e.clientWidth;
3896
- 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; }); }); });
3897
- }, this.Id = function (e) {
3898
- a.Gd();
3899
- 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);
3900
3913
  if (null === i)
3901
3914
  return null;
3902
3915
  var n = a.months[i], o = this.titleHeight + this.dayHeaderHeight;
@@ -3905,18 +3918,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3905
3918
  for (var r = 0; r < n.cells.length; r++)
3906
3919
  for (var s = 0; s < n.cells[r].length; s++) {
3907
3920
  var l = n.cells[r][s], d = l.top + n.top, c = l.left + n.left;
3908
- 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)
3909
3922
  return { "month": i, "x": r, "y": s, "coords": t };
3910
3923
  }
3911
3924
  return null;
3912
- }, this.Jd = function (e) {
3925
+ }, this.Qd = function (e) {
3913
3926
  if (a.freeHandSelectionEnabled) {
3914
- var t = a.Id(e);
3927
+ var t = a.Pd(e);
3915
3928
  t && !t.header && (n.start = t), a.months[t.month].cells[t.x][t.y], e.preventDefault();
3916
3929
  }
3917
- }, this.Kd = function (e) {
3930
+ }, this.Rd = function (e) {
3918
3931
  if (n.start) {
3919
- var t = a.Id(e);
3932
+ var t = a.Pd(e);
3920
3933
  if (n.end)
3921
3934
  n.end = t;
3922
3935
  else if (t) {
@@ -3925,13 +3938,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3925
3938
  }
3926
3939
  n.end && (n.clear(), n.draw());
3927
3940
  }
3928
- }, this.Ld = {};
3929
- var n = this.Ld;
3941
+ }, this.Sd = {};
3942
+ var n = this.Sd;
3930
3943
  n.start = null, n.drawCell = function (e) {
3931
- 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();
3932
- 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()) {
3933
3946
  var c = "Horizontal" === a.orientation ? a.showMonths : 1;
3934
- 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);
3935
3948
  }
3936
3949
  var u = document.createElement("div");
3937
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);
@@ -4004,54 +4017,54 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
4004
4017
  return e;
4005
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(); };
4006
4019
  };
4007
- this.qd = function (e) {
4020
+ this.xd = function (e) {
4008
4021
  var t = this.parentNode, i = this.parentNode.month, n = this.x, o = this.y, r = i.cells[n][o].day;
4009
4022
  if (i.cells[n][o].isClickable) {
4010
4023
  a.clearSelection(), a.selectionDay = r;
4011
4024
  var r = a.selectionDay;
4012
- switch (a.od()) {
4025
+ switch (a.vd()) {
4013
4026
  case "none":
4014
4027
  a.selectionStart = r, a.selectionEnd = r;
4015
4028
  break;
4016
4029
  case "day":
4017
4030
  if (a.autoFocusOnClick) {
4018
4031
  var s = r;
4019
- if (r < a.xd() || r >= a.yd())
4032
+ if (r < a.Ed() || r >= a.Fd())
4020
4033
  return void a.select(r);
4021
4034
  }
4022
4035
  var l = i.cells[n][o];
4023
- 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;
4024
4037
  break;
4025
4038
  case "week":
4026
4039
  if (a.autoFocusOnClick) {
4027
4040
  var s = i.cells[0][o].day, d = i.cells[6][o].day;
4028
- if (s.firstDayOfMonth() === d.firstDayOfMonth() && (s < a.xd() || d >= a.yd()))
4041
+ if (s.firstDayOfMonth() === d.firstDayOfMonth() && (s < a.Ed() || d >= a.Fd()))
4029
4042
  return void a.select(r);
4030
4043
  }
4031
4044
  for (var c = 0; c < 7; c++)
4032
- 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]);
4033
4046
  a.selectionStart = i.cells[0][o].day, a.selectionEnd = i.cells[6][o].day;
4034
4047
  break;
4035
4048
  case "month":
4036
4049
  if (a.autoFocusOnClick) {
4037
4050
  var s = r;
4038
- if (r < a.xd() || r >= a.yd())
4051
+ if (r < a.Ed() || r >= a.Fd())
4039
4052
  return void a.select(r);
4040
4053
  }
4041
4054
  for (var s = null, d = null, o = 0; o < 6; o++)
4042
4055
  for (var n = 0; n < 7; n++) {
4043
4056
  var l = i.cells[n][o];
4044
- 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);
4045
4058
  }
4046
4059
  a.selectionStart = s, a.selectionEnd = d;
4047
4060
  break;
4048
4061
  default: throw "unknown selectMode";
4049
4062
  }
4050
- a.ud(), a.M();
4063
+ a.Bd(), a.N();
4051
4064
  }
4052
- }, this.M = function (e) {
4065
+ }, this.N = function (e) {
4053
4066
  var t = a.selectionStart, i = a.selectionEnd.addDays(1), n = DayPilot.DateUtil.daysDiff(t, i), o = a.selectionDay;
4054
- if (e = e || {}, a.ra()) {
4067
+ if (e = e || {}, a.sa()) {
4055
4068
  var r = {};
4056
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))
4057
4070
  return;
@@ -4081,9 +4094,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
4081
4094
  case "None": break;
4082
4095
  case "PostBack": a.timeRangeSelectedPostBack(t, i, o);
4083
4096
  }
4084
- }, 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 () {
4085
4098
  var e = this.visibleStart(), t = this.visibleEnd();
4086
- if (a.ra()) {
4099
+ if (a.sa()) {
4087
4100
  var i = {};
4088
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))
4089
4102
  return;
@@ -4111,13 +4124,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
4111
4124
  break;
4112
4125
  case "Disabled":
4113
4126
  }
4114
- }, 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 () {
4115
4128
  for (var e = 0; e < this.showMonths; e++) {
4116
- var t = this.Nd(e);
4117
- this.Wc(e, t);
4129
+ var t = this.Ud(e);
4130
+ this.bd(e, t);
4118
4131
  }
4119
- 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);
4120
- }, 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 () {
4121
4134
  if ("Horizontal" === this.orientation) {
4122
4135
  for (var e = 0, t = 0; t < this.months.length; t++) {
4123
4136
  var i = this.months[t];
@@ -4130,25 +4143,25 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
4130
4143
  a += i.height;
4131
4144
  }
4132
4145
  return a;
4133
- }, this.Nd = function (e) {
4146
+ }, this.Ud = function (e) {
4134
4147
  if (this.internal.showLinks)
4135
4148
  return this.internal.showLinks;
4136
4149
  var t = {};
4137
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;
4138
- }, 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) {
4139
- 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;
4140
4153
  if ("function" == typeof n.createVNode && "function" == typeof n.render) {
4141
4154
  var o = n.createVNode(e, i);
4142
4155
  n.render(o, t);
4143
4156
  }
4144
- }, this.Ia.Ma = function (e, t) {
4145
- var i = a.Ia.Ha;
4157
+ }, this.Oa.Sa = function (e, t) {
4158
+ var i = a.Oa.Na;
4146
4159
  if ("function" == typeof i.render) {
4147
4160
  var n = e;
4148
4161
  DayPilot.isArray(e) && (n = i.h("div", null, e)), i.render(n, t);
4149
4162
  }
4150
- }, 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 = {};
4151
- 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;
4152
4165
  r.locale = function () { return DayPilot.Locale.find(a.locale); }, r.weekStarts = function () {
4153
4166
  if ("Auto" === a.weekStarts) {
4154
4167
  var e = r.locale();
@@ -4156,33 +4169,33 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
4156
4169
  }
4157
4170
  return a.weekStarts;
4158
4171
  }, r.cellWidth = function () {
4159
- if (a.pb.cellWidth)
4160
- return a.pb.cellWidth;
4161
- var e = a.Pd("_cell_dimensions").width;
4162
- return e || (e = a.cellWidth), a.pb.cellWidth = e, e;
4163
- }, 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 () {
4164
4177
  for (var e = 0; e < this.selected.length; e++) {
4165
4178
  var t = this.selected[e];
4166
- a.sd(t.parentNode, t.x, t.y);
4179
+ a.zd(t.parentNode, t.x, t.y);
4167
4180
  }
4168
4181
  this.selected = [];
4169
- }, 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 () {
4170
4183
  if (DayPilot.isArray(this.events.list)) {
4171
4184
  this.items = {};
4172
4185
  for (var e = 0; e < this.events.list.length; e++) {
4173
4186
  var t = this.events.list[e];
4174
4187
  if (!t.hidden) {
4175
- var i = this.Rd(t);
4188
+ var i = this.Yd(t);
4176
4189
  for (var a in i)
4177
4190
  this.items[a] = 1;
4178
4191
  }
4179
4192
  }
4180
4193
  }
4181
- }, 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) {
4182
4195
  for (var t = new DayPilot.Date(e.start), i = new DayPilot.Date(e.end), a = {}, n = t.getDatePart(); n.getTime() <= i.getTime();)
4183
4196
  a[n.toStringSortable()] = 1, n = n.addDays(1);
4184
4197
  return a;
4185
- }, 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 () {
4186
4199
  if (this.id && this.id.tagName)
4187
4200
  this.nav.top = this.id;
4188
4201
  else {
@@ -4193,26 +4206,26 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
4193
4206
  }
4194
4207
  this.root = this.nav.top;
4195
4208
  }, this.init = function () {
4196
- if (this.ob(), !this.root.dp) {
4197
- this.vd(), this.ad(), this.zd(), this.fa(), this.td(), this.Z(), this.Sd(), this.hb();
4198
- if (this.Qd() && this.Ad(), this.Ca = !0, this.nb(), this.wd) {
4199
- var e = this.wd;
4200
- 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;
4201
4214
  }
4202
4215
  return this;
4203
4216
  }
4204
- }, 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) {
4205
4218
  if (n.start && n.end) {
4206
4219
  var t = DayPilot.mo3(a.nav.top, e);
4207
4220
  if (t.x === n.start.coords.x && t.y === n.start.coords.y)
4208
4221
  return n.start = null, void n.clear();
4209
4222
  n.clear();
4210
4223
  var i = n.ordered();
4211
- 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();
4212
- 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" });
4213
4226
  }
4214
4227
  n.start = null, n.end = null;
4215
- }, 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);
4216
4229
  }, "undefined" != typeof jQuery && !function (e) {
4217
4230
  e.fn.daypilotNavigator = function (e) {
4218
4231
  var t = null, i = this.each(function () {
@@ -4232,7 +4245,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
4232
4245
  return { "restrict": "E", "template": "<div id='{{id}}'></div>", "compile": function (t, i) {
4233
4246
  return t.replaceWith(this["template"].replace("{{id}}", i["id"])), function (t, i, a) {
4234
4247
  var n = new DayPilot.Navigator(i[0]);
4235
- n.ta.scope = t, n.init();
4248
+ n.ua.scope = t, n.init();
4236
4249
  var o = a["id"];
4237
4250
  o && (t[o] = n);
4238
4251
  var r = a["publishAs"];
@@ -4249,7 +4262,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
4249
4262
  for (var i in e)
4250
4263
  n[i] = e[i];
4251
4264
  n.update();
4252
- }, !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);
4253
4266
  };
4254
4267
  } };
4255
4268
  }]);