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