@daypilot/daypilot-lite-angular 3.28.0 → 3.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -130,7 +130,7 @@ DayPilot Lite
130
130
  Copyright (c) 2005 - 2024 Annpoint s.r.o.
131
131
  https://www.daypilot.org/
132
132
  Licensed under Apache Software License 2.0
133
- Version: 2024.4.575-lite
133
+ Version: 2024.4.622-lite
134
134
  */
135
135
  var DayPilot = {};
136
136
  if ("undefined" == typeof DayPilot)
@@ -322,7 +322,7 @@ if (function () {
322
322
  a.key = i, a.val = e[i], t.push(a);
323
323
  }
324
324
  return t;
325
- }, DayPilot.Util.replaceCharAt = function (e, t, i) { return e.substr(0, t) + i + e.substr(t + i.length); }, DayPilot.Util.isNullOrUndefined = function (e) { return null === e || "undefined" == typeof e; }, DayPilot.Util.escapeHtml = function (e) { var t = document.createElement("div"); return t.innerText = e, t.innerHTML; }, DayPilot.Util.escapeTextHtml = function (e, t) { return DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : DayPilot.Util.escapeHtml(e) : t; }, DayPilot.Util.overlaps = function (e, t, i, a) { return !(t <= i || e >= a); }, DayPilot.Areas = {}, DayPilot.Areas.attach = function (e, t, i) {
325
+ }, DayPilot.Util.replaceCharAt = function (e, t, i) { return e.substr(0, t) + i + e.substr(t + i.length); }, DayPilot.Util.isNullOrUndefined = function (e) { return null === e || "undefined" == typeof e; }, DayPilot.Util.escapeHtml = function (e) { var t = document.createElement("div"); return t.innerText = e, t.innerHTML; }, DayPilot.Util.escapeTextHtml = function (e, t) { return DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : DayPilot.Util.escapeHtml(e) : t; }, DayPilot.Util.overlaps = function (e, t, i, a) { return !(t <= i || e >= a); }, DayPilot.Util.isVueVNode = function (e) { return !!e && (DayPilot.isArray(e) ? DayPilot.Util.isVueVNode(e[0]) : e["__v_isVNode"]); }, DayPilot.Areas = {}, DayPilot.Areas.attach = function (e, t, i) {
326
326
  var i = i || {}, n = i.areas, o = i.allowed || function () { return !0; }, r = i.offsetX || 0;
327
327
  n = a(t, n), n && DayPilot.isArray(n) && 0 !== n.length && (DayPilot.re(e, "mousemove", function (a) { e.active || e.areasDisabled || !o() || DayPilot.Areas.showAreas(e, t, a, n, { "offsetX": r, "eventDiv": i.eventDiv }); }), DayPilot.re(e, "mouseleave", function (t) { DayPilot.Areas.hideAreas(e, t); }), n.forEach(function (a) {
328
328
  if (DayPilot.Areas.isVisible(a)) {
@@ -357,9 +357,9 @@ if (function () {
357
357
  function r(e, t, i, a) {
358
358
  DayPilot.Menu && DayPilot.Menu.touchPosition(a);
359
359
  var n = i.contextMenu || i.menu;
360
- if (n instanceof DayPilot.Menu || (t.isEvent && t.client.contextMenu() ? n = t.client.contextMenu() : t.isEvent && t.calendar.contextMenu && (n = t.calendar.contextMenu)), n && n.show) {
361
- var o = { "type": "area", "div": e, "e": t, "area": i,
362
- "a": d };
360
+ if (n instanceof DayPilot.Menu || (t.isEvent && t.client.contextMenu() ? n = t.client.contextMenu() : t.isEvent && t.calendar.contextMenu && (n = t.calendar.contextMenu)),
361
+ n && n.show) {
362
+ var o = { "type": "area", "div": e, "e": t, "area": i, "a": d };
363
363
  n.show(t, { "initiator": o });
364
364
  }
365
365
  }
@@ -985,29 +985,31 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
985
985
  }
986
986
  else
987
987
  t.selecting = !1;
988
- }, t.deleteShadow = function (e) { e && e.parentNode && e.parentNode.removeChild(e); }, t.moveShadow = function (e) { var i = t.movingShadow, a = i.parentNode; a.style.display = "none", i.parentNode.removeChild(i), e.firstChild.appendChild(i), i.style.left = "0px", a.style.display = "", i.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px"; }, t.Calendar = function (e, i) {
989
- var a = !1;
990
- if (this instanceof t.Calendar && !this.N && (a = !0, this.N = !0), !a)
988
+ }, t.deleteShadow = function (e) { e && e.parentNode && e.parentNode.removeChild(e); }, t.moveShadow = function (e) { var i = t.movingShadow, a = i.parentNode; a.style.display = "none", i.parentNode.removeChild(i), e.firstChild.appendChild(i), i.style.left = "0px", a.style.display = "", i.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px"; };
989
+ var i = DayPilot.Util.isVueVNode, a = DayPilot.Util.overlaps;
990
+ t.Calendar = function (e, n) {
991
+ var o = !1;
992
+ if (this instanceof t.Calendar && !this.N && (o = !0, this.N = !0), !o)
991
993
  throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
992
- var n = this;
993
- this.uniqueID = null, this.isCalendar = !0, this.v = "2024.4.575-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(n.elements.selection), n.elements.selection = [], n.nav.activeSelection = null; }, this.cleanSelection = this.clearSelection, this.Q = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.R(); var o = "JSON" + DayPilot.JSON.stringify(a); __doPostBack(n.uniqueID, o); }, this.S = function (e, t, i) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.callbackTimeout = window.setTimeout(function () { n.loadingStart(); }, 100); var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.R(); var o = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.T, o, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, o, this.U, this.clientName, this.onCallbackError, !0); }, this.onCallbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.dispose = function () { var e = n; e.O || (e.O = !0, clearInterval(e.V), e.W(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.X(), e.Y(), e.nav.select = null, e.nav.cornerRight = null, e.nav.scrollable = null, e.nav.zoom = null, e.nav.loading = null, e.nav.header = null, e.nav.hourTable = null, e.nav.scrolltop = null, e.nav.scroll.onscroll = null, e.nav.scroll = null, e.nav.main = null, e.nav.message = null, e.nav.messageClose = null, e.nav.top = null, t.unregister(e)); }, this.disposed = function () { return this.O; }, this.Z = function () { this.nav.top.dispose = this.dispose; }, this.T = function (e) { n.U(e.responseText); }, this.R = function () { var e = {}; return e.control = "dpc", e.id = this.id, e.v = this.v, e.days = n.days, e.startDate = n.startDate, e.heightSpec = n.heightSpec, e.businessBeginsHour = n.businessBeginsHour, e.businessEndsHour = n.businessEndsHour, e.hashes = n.hashes, e.timeFormat = n.timeFormat, e.viewType = n.viewType, e.locale = n.locale, e; }, this._ = function (e, t) {
994
+ var r = this;
995
+ this.uniqueID = null, this.isCalendar = !0, this.v = "2024.4.622-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) {
994
996
  for (var i = e.parentNode; i && "TD" !== i.tagName;)
995
997
  i = i.parentNode;
996
- var a = n.eventBorderRadius;
998
+ var a = r.eventBorderRadius;
997
999
  "number" == typeof a && (a += "px");
1000
+ var n = document.createElement("div");
1001
+ n.setAttribute("unselectable", "on"), n.style.position = "absolute", n.style.width = e.offsetWidth + "px",
1002
+ n.style.height = e.offsetHeight + "px", n.style.left = e.offsetLeft + "px", n.style.top = e.offsetTop + "px", n.style.boxSizing = "border-box", n.style.zIndex = 101, n.className = r.K("_shadow");
998
1003
  var o = document.createElement("div");
999
- o.setAttribute("unselectable", "on"), o.style.position = "absolute", o.style.width = e.offsetWidth + "px", o.style.height = e.offsetHeight + "px", o.style.left = e.offsetLeft + "px", o.style.top = e.offsetTop + "px", o.style.boxSizing = "border-box",
1000
- o.style.zIndex = 101, o.className = n.K("_shadow");
1001
- var r = document.createElement("div");
1002
- return r.className = n.K("_shadow_inner"), a && (r.style.borderRadius = a, o.style.borderRadius = a), o.appendChild(r), i.firstChild.appendChild(o), o;
1003
- }, this.aa = {}, this.aa.locale = function () { var e = DayPilot.Locale.find(n.locale); return e ? e : DayPilot.Locale.US; }, this.aa.timeFormat = function () { return "Auto" !== n.timeFormat ? n.timeFormat : this.locale().timeFormat; }, this.aa.ba = function () { return "Disabled" !== n.xssProtection; }, this.aa.ca = function () {
1004
- if ("Auto" === n.weekStarts) {
1005
- var e = o.locale();
1004
+ return o.className = r.K("_shadow_inner"), a && (o.style.borderRadius = a, n.style.borderRadius = a), n.appendChild(o), i.firstChild.appendChild(n), n;
1005
+ }, this.aa = {}, this.aa.locale = function () { var e = DayPilot.Locale.find(r.locale); return e ? e : DayPilot.Locale.US; }, this.aa.timeFormat = function () { return "Auto" !== r.timeFormat ? r.timeFormat : this.locale().timeFormat; }, this.aa.ba = function () { return "Disabled" !== r.xssProtection; }, this.aa.ca = function () {
1006
+ if ("Auto" === r.weekStarts) {
1007
+ var e = s.locale();
1006
1008
  return e ? e.weekStarts : 0;
1007
1009
  }
1008
- return n.weekStarts || 0;
1010
+ return r.weekStarts || 0;
1009
1011
  };
1010
- var o = this.aa;
1012
+ var s = this.aa;
1011
1013
  this.U = function (e, t) {
1012
1014
  if (e && 0 === e.indexOf("$$$")) {
1013
1015
  if (!window.console)
@@ -1018,79 +1020,79 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1018
1020
  if (e.CallBackRedirect)
1019
1021
  return void (document.location.href = e.CallBackRedirect);
1020
1022
  if ("None" === e.UpdateType)
1021
- return n.loadingStop(), void n.t();
1022
- if (n.W(), "Full" === e.UpdateType && (n.columns = e.Columns, n.days = e.Days, n.startDate = new DayPilot.Date(e.StartDate), n.heightSpec = e.HeightSpec ? e.HeightSpec : n.heightSpec, n.businessBeginsHour = e.BusinessBeginsHour ? e.BusinessBeginsHour : n.businessBeginsHour, n.businessEndsHour = e.BusinessEndsHour ? e.BusinessEndsHour : n.businessEndsHour, n.headerDateFormat = e.HeaderDateFormat ? e.HeaderDateFormat : n.headerDateFormat, n.viewType = e.ViewType, n.backColor = e.BackColor ? e.BackColor : n.backColor, n.eventHeaderVisible = e.EventHeaderVisible ? e.EventHeaderVisible : n.eventHeaderVisible, n.timeFormat = e.TimeFormat ? e.TimeFormat : n.timeFormat, n.locale = e.Locale ? e.Locale : n.locale, n.da()), e.Hashes)
1023
+ return r.loadingStop(), void r.t();
1024
+ if (r.W(), "Full" === e.UpdateType && (r.columns = e.Columns, r.days = e.Days, r.startDate = new DayPilot.Date(e.StartDate), r.heightSpec = e.HeightSpec ? e.HeightSpec : r.heightSpec, r.businessBeginsHour = e.BusinessBeginsHour ? e.BusinessBeginsHour : r.businessBeginsHour, r.businessEndsHour = e.BusinessEndsHour ? e.BusinessEndsHour : r.businessEndsHour, r.headerDateFormat = e.HeaderDateFormat ? e.HeaderDateFormat : r.headerDateFormat, r.viewType = e.ViewType, r.backColor = e.BackColor ? e.BackColor : r.backColor, r.eventHeaderVisible = e.EventHeaderVisible ? e.EventHeaderVisible : r.eventHeaderVisible, r.timeFormat = e.TimeFormat ? e.TimeFormat : r.timeFormat, r.locale = e.Locale ? e.Locale : r.locale, r.da()), e.Hashes)
1023
1025
  for (var i in e.Hashes)
1024
- n.hashes[i] = e.Hashes[i];
1025
- n.events.list = e.Events, n.ea(), n.fa(), "Full" === e.UpdateType && (n.ga(), n.ha(), n.ia(), n.ja()), n.t(), n.ka(), n.clearSelection(), n.afterRender(e.CallBackData, !0), n.loadingStop();
1026
- }, this.la = function () { return this.ma() / 36e5; }, this.na = function () { return this.businessBeginsHour > this.businessEndsHour ? 24 - this.businessBeginsHour + this.businessEndsHour : this.businessEndsHour - this.businessBeginsHour; }, this.oa = function () { return this.ma() / 18e5; }, this.ma = function () { var e = 0; return e = "BusinessHoursNoScroll" === this.heightSpec ? this.na() : 24, 60 * e * 60 * 1e3; }, this.pa = function () { return "BusinessHoursNoScroll" === this.heightSpec ? this.businessBeginsHour : 0; }, this.qa = function () { return 2 === n.api; }, this.eventClickCallBack = function (e, t) { this.S("EventClick", t, e); }, this.eventClickPostBack = function (e, t) { this.Q("EventClick", t, e); }, this.ra = function (e) {
1026
+ r.hashes[i] = e.Hashes[i];
1027
+ r.events.list = e.Events, r.ea(), r.fa(), "Full" === e.UpdateType && (r.ga(), r.ha(), r.ia(), r.ja()), r.t(), r.ka(), r.clearSelection(), r.afterRender(e.CallBackData, !0), r.loadingStop();
1028
+ }, this.la = function () { return this.ma() / 36e5; }, this.na = function () { return this.businessBeginsHour > this.businessEndsHour ? 24 - this.businessBeginsHour + this.businessEndsHour : this.businessEndsHour - this.businessBeginsHour; }, this.oa = function () { return this.ma() / 18e5; }, this.ma = function () { var e = 0; return e = "BusinessHoursNoScroll" === this.heightSpec ? this.na() : 24, 60 * e * 60 * 1e3; }, this.pa = function () { return "BusinessHoursNoScroll" === this.heightSpec ? this.businessBeginsHour : 0; }, this.qa = function () { return 2 === r.api; }, this.eventClickCallBack = function (e, t) { this.S("EventClick", t, e); }, this.eventClickPostBack = function (e, t) { this.Q("EventClick", t, e); }, this.ra = function (e) {
1027
1029
  var t = this, i = t.event;
1028
1030
  if (i.client.clickEnabled())
1029
- if (n.qa()) {
1031
+ if (r.qa()) {
1030
1032
  var a = {};
1031
- if (a.e = i, a.originalEvent = e, a.meta = e.metaKey, a.ctrl = e.ctrlKey, a.control = n, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventClick && (n.sa.apply(function () { n.onEventClick(a); }), a.preventDefault.value))
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))
1032
1034
  return;
1033
- switch (n.eventClickHandling) {
1035
+ switch (r.eventClickHandling) {
1034
1036
  case "CallBack":
1035
- n.eventClickCallBack(i);
1037
+ r.eventClickCallBack(i);
1036
1038
  break;
1037
1039
  case "PostBack":
1038
- n.eventClickPostBack(i);
1040
+ r.eventClickPostBack(i);
1039
1041
  break;
1040
1042
  case "ContextMenu":
1041
- var o = i.client.contextMenu();
1042
- o ? o.show(i) : n.contextMenu && n.contextMenu.show(i);
1043
+ var n = i.client.contextMenu();
1044
+ n ? n.show(i) : r.contextMenu && r.contextMenu.show(i);
1043
1045
  }
1044
- "function" == typeof n.onEventClicked && n.sa.apply(function () { n.onEventClicked(a); });
1046
+ "function" == typeof r.onEventClicked && r.sa.apply(function () { r.onEventClicked(a); });
1045
1047
  }
1046
1048
  else
1047
- switch (n.eventClickHandling) {
1049
+ switch (r.eventClickHandling) {
1048
1050
  case "PostBack":
1049
- n.eventClickPostBack(i);
1051
+ r.eventClickPostBack(i);
1050
1052
  break;
1051
1053
  case "CallBack":
1052
- n.eventClickCallBack(i);
1054
+ r.eventClickCallBack(i);
1053
1055
  break;
1054
- case "JavaScript": n.onEventClick(i);
1056
+ case "JavaScript": r.onEventClick(i);
1055
1057
  }
1056
1058
  }, this.ta = function (e) {
1057
1059
  var t = this.event;
1058
1060
  if (e.stopPropagation && e.stopPropagation(), !t.client.rightClickEnabled())
1059
1061
  return !1;
1060
1062
  var i = {};
1061
- if (i.e = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventRightClick && (n.onEventRightClick(i), i.preventDefault.value))
1063
+ if (i.e = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onEventRightClick && (r.onEventRightClick(i), i.preventDefault.value))
1062
1064
  return !1;
1063
- switch (n.eventRightClickHandling) {
1065
+ switch (r.eventRightClickHandling) {
1064
1066
  case "ContextMenu":
1065
1067
  var a = t.client.contextMenu();
1066
- a ? a.show(t) : n.contextMenu && n.contextMenu.show(this.event);
1068
+ a ? a.show(t) : r.contextMenu && r.contextMenu.show(this.event);
1067
1069
  }
1068
- return "function" == typeof n.onEventRightClicked && n.onEventRightClicked(i), e.preventDefault && e.preventDefault(), !1;
1070
+ return "function" == typeof r.onEventRightClicked && r.onEventRightClicked(i), e.preventDefault && e.preventDefault(), !1;
1069
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) {
1070
- if (n.qa()) {
1072
+ if (r.qa()) {
1071
1073
  var t = {};
1072
- if (t.e = e, t.control = n, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventDelete && (n.sa.apply(function () { n.onEventDelete(t); }), t.preventDefault.value))
1074
+ if (t.e = e, t.control = r, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onEventDelete && (r.sa.apply(function () { r.onEventDelete(t); }), t.preventDefault.value))
1073
1075
  return;
1074
- switch (n.eventDeleteHandling) {
1076
+ switch (r.eventDeleteHandling) {
1075
1077
  case "CallBack":
1076
- n.eventDeleteCallBack(e);
1078
+ r.eventDeleteCallBack(e);
1077
1079
  break;
1078
1080
  case "PostBack":
1079
- n.eventDeletePostBack(e);
1081
+ r.eventDeletePostBack(e);
1080
1082
  break;
1081
- case "Update": n.events.remove(e);
1083
+ case "Update": r.events.remove(e);
1082
1084
  }
1083
- "function" == typeof n.onEventDeleted && n.sa.apply(function () { n.onEventDeleted(t); });
1085
+ "function" == typeof r.onEventDeleted && r.sa.apply(function () { r.onEventDeleted(t); });
1084
1086
  }
1085
1087
  else
1086
- switch (n.eventDeleteHandling) {
1088
+ switch (r.eventDeleteHandling) {
1087
1089
  case "PostBack":
1088
- n.eventDeletePostBack(e);
1090
+ r.eventDeletePostBack(e);
1089
1091
  break;
1090
1092
  case "CallBack":
1091
- n.eventDeleteCallBack(e);
1093
+ r.eventDeleteCallBack(e);
1092
1094
  break;
1093
- case "JavaScript": n.onEventDelete(e);
1095
+ case "JavaScript": r.onEventDelete(e);
1094
1096
  }
1095
1097
  }, this.eventResizeCallBack = function (e, t, i, a) {
1096
1098
  if (!t)
@@ -1107,39 +1109,39 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1107
1109
  var n = {};
1108
1110
  n.e = e, n.newStart = t, n.newEnd = i, this.Q("EventResize", a, n);
1109
1111
  }, this.J = function (e, t, i, a) {
1110
- var o = 1, r = new Date, s = new Date, l = e.start(), d = e.end();
1112
+ var n = 1, o = new Date, s = new Date, l = e.start(), d = e.end();
1111
1113
  if ("top" === a) {
1112
- var c = l.getDatePart(), u = Math.floor((i - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.pa() * 60 * 1e3;
1113
- r = c.addTime(f + m), s = e.end();
1114
+ var c = l.getDatePart(), u = Math.floor((i - n) / r.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * r.pa() * 60 * 1e3;
1115
+ o = c.addTime(f + m), s = e.end();
1114
1116
  }
1115
1117
  else if ("bottom" === a) {
1116
- var c = d.getDatePart(), u = Math.floor((i + t - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.pa() * 60 * 1e3;
1117
- r = l, s = c.addTime(f + m);
1118
+ var c = d.getDatePart(), u = Math.floor((i + t - n) / r.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * r.pa() * 60 * 1e3;
1119
+ o = l, s = c.addTime(f + m);
1118
1120
  }
1119
- if (n.qa()) {
1121
+ if (r.qa()) {
1120
1122
  var p = {};
1121
- if (p.e = e, p.control = n, p.newStart = r, p.newEnd = s, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventResize && (n.sa.apply(function () { n.onEventResize(p); }), p.preventDefault.value))
1123
+ if (p.e = e, p.control = r, p.newStart = o, p.newEnd = s, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onEventResize && (r.sa.apply(function () { r.onEventResize(p); }), p.preventDefault.value))
1122
1124
  return;
1123
- switch (n.eventResizeHandling) {
1125
+ switch (r.eventResizeHandling) {
1124
1126
  case "PostBack":
1125
- n.eventResizePostBack(e, r, s);
1127
+ r.eventResizePostBack(e, o, s);
1126
1128
  break;
1127
1129
  case "CallBack":
1128
- n.eventResizeCallBack(e, r, s);
1130
+ r.eventResizeCallBack(e, o, s);
1129
1131
  break;
1130
- case "Update": e.start(r), e.end(s), n.events.update(e);
1132
+ case "Update": e.start(o), e.end(s), r.events.update(e);
1131
1133
  }
1132
- "function" == typeof n.onEventResized && n.sa.apply(function () { n.onEventResized(p); });
1134
+ "function" == typeof r.onEventResized && r.sa.apply(function () { r.onEventResized(p); });
1133
1135
  }
1134
1136
  else
1135
- switch (n.eventResizeHandling) {
1137
+ switch (r.eventResizeHandling) {
1136
1138
  case "PostBack":
1137
- n.eventResizePostBack(e, r, s);
1139
+ r.eventResizePostBack(e, o, s);
1138
1140
  break;
1139
1141
  case "CallBack":
1140
- n.eventResizeCallBack(e, r, s);
1142
+ r.eventResizeCallBack(e, o, s);
1141
1143
  break;
1142
- case "JavaScript": n.onEventResize(e, r, s);
1144
+ case "JavaScript": r.onEventResize(e, o, s);
1143
1145
  }
1144
1146
  }, this.eventMovePostBack = function (e, t, i, a, n) {
1145
1147
  if (!t)
@@ -1156,64 +1158,64 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1156
1158
  var o = {};
1157
1159
  o.e = e, o.newStart = t, o.newEnd = i, this.S("EventMove", n, o);
1158
1160
  }, this.L = function (e, t, i, a) {
1159
- var o = 1, r = Math.floor((i - o) / n.cellHeight), s = 30 * r * 60 * 1e3, l = e.start(), d = e.end(), c = new Date;
1161
+ var n = 1, o = Math.floor((i - n) / r.cellHeight), s = 30 * o * 60 * 1e3, l = e.start(), d = e.end(), c = new Date;
1160
1162
  l instanceof DayPilot.Date && (l = l.toDate()), c.setTime(Date.UTC(l.getUTCFullYear(), l.getUTCMonth(), l.getUTCDate()));
1161
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;
1162
1164
  v.setTime(p + s + u);
1163
1165
  var y = new DayPilot.Date(v), g = y.addTime(h);
1164
- if (n.qa()) {
1166
+ if (r.qa()) {
1165
1167
  var b = {};
1166
- if (b.e = e, b.newStart = y, b.newEnd = g, b.newResource = m, b.ctrl = a.ctrlKey, b.shift = a.shiftKey, b.control = n, b.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventMove && (n.sa.apply(function () { n.onEventMove(b); }), b.preventDefault.value))
1168
+ if (b.e = e, b.newStart = y, b.newEnd = g, b.newResource = m, b.ctrl = a.ctrlKey, b.shift = a.shiftKey, b.control = r, b.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onEventMove && (r.sa.apply(function () { r.onEventMove(b); }), b.preventDefault.value))
1167
1169
  return;
1168
- switch (n.eventMoveHandling) {
1170
+ switch (r.eventMoveHandling) {
1169
1171
  case "PostBack":
1170
- n.eventMovePostBack(e, y, g, f.id);
1172
+ r.eventMovePostBack(e, y, g, f.id);
1171
1173
  break;
1172
1174
  case "CallBack":
1173
- n.eventMoveCallBack(e, y, g, f.id);
1175
+ r.eventMoveCallBack(e, y, g, f.id);
1174
1176
  break;
1175
- case "Update": e.start(y), e.end(g), e.resource(m), n.events.update(e);
1177
+ case "Update": e.start(y), e.end(g), e.resource(m), r.events.update(e);
1176
1178
  }
1177
- "function" == typeof n.onEventMoved && n.sa.apply(function () { n.onEventMoved(b); });
1179
+ "function" == typeof r.onEventMoved && r.sa.apply(function () { r.onEventMoved(b); });
1178
1180
  }
1179
1181
  else
1180
- switch (n.eventMoveHandling) {
1182
+ switch (r.eventMoveHandling) {
1181
1183
  case "PostBack":
1182
- n.eventMovePostBack(e, y, g, f.id);
1184
+ r.eventMovePostBack(e, y, g, f.id);
1183
1185
  break;
1184
1186
  case "CallBack":
1185
- n.eventMoveCallBack(e, y, g, f.id);
1187
+ r.eventMoveCallBack(e, y, g, f.id);
1186
1188
  break;
1187
- case "JavaScript": n.onEventMove(e, y, g, f.id, !1);
1189
+ case "JavaScript": r.onEventMove(e, y, g, f.id, !1);
1188
1190
  }
1189
1191
  }, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, this.Q("TimeRangeSelected", a, n); }, this.timeRangeSelectedCallBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, this.S("TimeRangeSelected", a, n); }, this.M = function (e, t, i) {
1190
1192
  if (e = new DayPilot.Date(e), t = new DayPilot.Date(t), this.qa()) {
1191
1193
  var a = {};
1192
- if (a.start = e, a.end = t, a.resource = i, a.control = n, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.sa.apply(function () { n.onTimeRangeSelect(a); }), a.preventDefault.value))
1194
+ if (a.start = e, a.end = t, a.resource = i, a.control = r, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onTimeRangeSelect && (r.sa.apply(function () { r.onTimeRangeSelect(a); }), a.preventDefault.value))
1193
1195
  return;
1194
- switch (n.timeRangeSelectedHandling) {
1196
+ switch (r.timeRangeSelectedHandling) {
1195
1197
  case "PostBack":
1196
- n.timeRangeSelectedPostBack(e, t);
1198
+ r.timeRangeSelectedPostBack(e, t);
1197
1199
  break;
1198
- case "CallBack": n.timeRangeSelectedCallBack(e, t);
1200
+ case "CallBack": r.timeRangeSelectedCallBack(e, t);
1199
1201
  }
1200
- "function" == typeof n.onTimeRangeSelected && n.sa.apply(function () { n.onTimeRangeSelected(a); });
1202
+ "function" == typeof r.onTimeRangeSelected && r.sa.apply(function () { r.onTimeRangeSelected(a); });
1201
1203
  }
1202
1204
  else
1203
- switch (n.timeRangeSelectedHandling) {
1205
+ switch (r.timeRangeSelectedHandling) {
1204
1206
  case "PostBack":
1205
- n.timeRangeSelectedPostBack(e, t);
1207
+ r.timeRangeSelectedPostBack(e, t);
1206
1208
  break;
1207
1209
  case "CallBack":
1208
- n.timeRangeSelectedCallBack(e, t);
1210
+ r.timeRangeSelectedCallBack(e, t);
1209
1211
  break;
1210
- case "JavaScript": n.onTimeRangeSelected(e, t);
1212
+ case "JavaScript": r.onTimeRangeSelected(e, t);
1211
1213
  }
1212
1214
  }, this.wa = function (e) {
1213
- if (!t.selecting && "Disabled" !== n.timeRangeSelectedHandling) {
1215
+ if (!t.selecting && "Disabled" !== r.timeRangeSelectedHandling) {
1214
1216
  var i = e.which;
1215
1217
  if (1 === i || 0 === i)
1216
- return t.firstMousePos = DayPilot.mc(e), t.selecting = {}, t.selecting.calendar = n, t.selectedCells && (n.clearSelection(), t.selectedCells = []), t.column = t.getColumn(this), t.selectedCells.push(this), t.firstSelected = this, t.topSelectedCell = this, t.bottomSelectedCell = this, n.xa(), !1;
1218
+ return t.firstMousePos = DayPilot.mc(e), t.selecting = {}, t.selecting.calendar = r, t.selectedCells && (r.clearSelection(), t.selectedCells = []), t.column = t.getColumn(this), t.selectedCells.push(this), t.firstSelected = this, t.topSelectedCell = this, t.bottomSelectedCell = this, r.xa(), !1;
1217
1219
  }
1218
1220
  }, this.xa = function () {
1219
1221
  this.getSelection();
@@ -1225,71 +1227,71 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1225
1227
  if (t[i] === e)
1226
1228
  return i;
1227
1229
  return -1;
1228
- }(), o = n.va[a];
1229
- if (o) {
1230
- var r = o.start, s = n.getPixels(e.start, r).boxTop, l = n.getPixels(i.end, r).boxBottom, d = l - s, c = n.eventBorderRadius;
1230
+ }(), n = r.va[a];
1231
+ if (n) {
1232
+ var o = n.start, s = r.getPixels(e.start, o).boxTop, l = r.getPixels(i.end, o).boxBottom, d = l - s, c = r.eventBorderRadius;
1231
1233
  "number" == typeof c && (c += "px");
1232
1234
  var u = function () {
1233
- if (n.nav.activeSelection)
1234
- return n.nav.activeSelection;
1235
+ if (r.nav.activeSelection)
1236
+ return r.nav.activeSelection;
1235
1237
  var e = document.createElement("div");
1236
1238
  e.setAttribute("unselectable", "on"), e.style.position = "absolute", e.style.left = "0px", e.style.width = "100%";
1237
1239
  var t = document.createElement("div");
1238
- return t.setAttribute("unselectable", "on"), t.className = n.K("_shadow_inner"), c && (t.style.borderRadius = c, e.style.borderRadius = c), e.appendChild(t), n.nav.events.rows[0].cells[a].selection.appendChild(e), n.elements.selection.push(e), n.nav.activeSelection = e, e;
1240
+ return t.setAttribute("unselectable", "on"), t.className = r.K("_shadow_inner"), c && (t.style.borderRadius = c, e.style.borderRadius = c), e.appendChild(t), r.nav.events.rows[0].cells[a].selection.appendChild(e), r.elements.selection.push(e), r.nav.activeSelection = e, e;
1239
1241
  }();
1240
- u.className = n.K("_shadow"), u.firstChild.innerHTML = "", u.style.top = s + "px", u.style.height = d + "px";
1242
+ u.className = r.K("_shadow"), u.firstChild.innerHTML = "", u.style.top = s + "px", u.style.height = d + "px";
1241
1243
  }
1242
1244
  }();
1243
1245
  }, this.ya = function (e) {
1244
1246
  if ("undefined" != typeof t && t.selecting) {
1245
1247
  var i = DayPilot.mc(e);
1246
- t.getColumn(this) === t.column && (n.clearSelection(), i.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(this), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(this), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), n.xa());
1248
+ t.getColumn(this) === t.column && (r.clearSelection(), i.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(this), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(this), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), r.xa());
1247
1249
  }
1248
- }, this.getSelection = function () { var e = t.topSelectedCell.start, i = t.bottomSelectedCell.end, a = t.topSelectedCell.resource; return new DayPilot.Selection(e, i, a, n); }, this.za = function (e) {
1250
+ }, this.getSelection = function () { var e = t.topSelectedCell.start, i = t.bottomSelectedCell.end, a = t.topSelectedCell.resource; return new DayPilot.Selection(e, i, a, r); }, this.za = function (e) {
1249
1251
  if (e < 0)
1250
1252
  return null;
1251
- for (var t = 0, i = n.nav.events.rows[0].cells, a = 0; a < i.length; a++) {
1253
+ for (var t = 0, i = r.nav.events.rows[0].cells, a = 0; a < i.length; a++) {
1252
1254
  if (t += i[a].offsetWidth, e < t)
1253
1255
  return a;
1254
1256
  }
1255
1257
  return null;
1256
1258
  }, this.Aa = {}, this.Aa.getCellCoords = function () {
1257
1259
  var e = {};
1258
- if (e.x = 0, e.y = 0, !n.coords)
1260
+ if (e.x = 0, e.y = 0, !r.coords)
1259
1261
  return null;
1260
- e.x = n.za(n.coords.x);
1261
- var t = 0, i = Math.floor((n.coords.y - t) / n.cellHeight);
1262
+ e.x = r.za(r.coords.x);
1263
+ var t = 0, i = Math.floor((r.coords.y - t) / r.cellHeight);
1262
1264
  return e.y = i, e.x < 0 ? null : e;
1263
1265
  }, this.columns = {}, this.columns.list = [], this.columns.load = function (e, t, i) {
1264
1266
  if (!e)
1265
1267
  throw new DayPilot.Exception("columns.load(): 'url' parameter required");
1266
- var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) {
1267
- var i, o = e.request;
1268
+ var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, n = function (e) {
1269
+ var i, n = e.request;
1268
1270
  try {
1269
- i = JSON.parse(o.responseText);
1271
+ i = JSON.parse(n.responseText);
1270
1272
  }
1271
1273
  catch (e) {
1272
- var r = {};
1273
- return r.exception = e, void a(r);
1274
+ var o = {};
1275
+ return o.exception = e, void a(o);
1274
1276
  }
1275
1277
  if (DayPilot.isArray(i)) {
1276
1278
  var s = {};
1277
1279
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
1278
1280
  return;
1279
- n.columns.list = i, n.Ba && n.update();
1281
+ r.columns.list = i, r.Ba && r.update();
1280
1282
  }
1281
1283
  };
1282
- n.columnsLoadMethod && "POST" === n.columnsLoadMethod.toUpperCase() ? DayPilot.ajax({ "method": "POST", "url": e, "success": o, "error": a }) : DayPilot.ajax({ "method": "GET", "url": e, "success": o, "error": a });
1284
+ r.columnsLoadMethod && "POST" === r.columnsLoadMethod.toUpperCase() ? DayPilot.ajax({ "method": "POST", "url": e, "success": n, "error": a }) : DayPilot.ajax({ "method": "GET", "url": e, "success": n, "error": a });
1283
1285
  }, this.da = function () {
1284
1286
  var e;
1285
- e = "Resources" !== n.viewType ? this.Ca() : n.columns.list, this.va = [];
1287
+ e = "Resources" !== r.viewType ? this.Ca() : r.columns.list, this.va = [];
1286
1288
  for (var t = 0; t < e.length; t++) {
1287
1289
  var i = this.Da(e[t]);
1288
1290
  this.va.push(i);
1289
1291
  }
1290
1292
  }, this.Da = function (e) {
1291
1293
  var t = {};
1292
- return t.name = e.name, t.html = e.html, t.id = e.id, t.toolTip = e.toolTip, t.data = e, e.start ? t.start = new DayPilot.Date(e.start) : t.start = new DayPilot.Date(n.startDate), t.putIntoBlock = function (e) {
1294
+ return t.name = e.name, t.html = e.html, t.id = e.id, t.toolTip = e.toolTip, t.data = e, e.start ? t.start = new DayPilot.Date(e.start) : t.start = new DayPilot.Date(r.startDate), t.putIntoBlock = function (e) {
1293
1295
  for (var t = 0; t < this.blocks.length; t++) {
1294
1296
  var i = this.blocks[t];
1295
1297
  if (i.overlapsWith(e.part.top, e.part.height))
@@ -1336,30 +1338,30 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1336
1338
  break;
1337
1339
  case "Week":
1338
1340
  i = 7;
1339
- var a = o.ca();
1341
+ var a = s.ca();
1340
1342
  t = t.firstDayOfWeek(a);
1341
1343
  break;
1342
1344
  case "WorkWeek": i = 5, t = t.firstDayOfWeek(1);
1343
1345
  }
1344
1346
  "BusinessHoursNoScroll" === this.heightSpec && (t = t.addHours(this.businessBeginsHour));
1345
- for (var r = 0; r < i; r++) {
1346
- var s = n.headerDateFormat ? n.headerDateFormat : o.locale().datePattern, l = {};
1347
- l.start = t.addDays(r), l.name = l.start.toString(s, o.locale()), e.push(l);
1347
+ for (var n = 0; n < i; n++) {
1348
+ var o = r.headerDateFormat ? r.headerDateFormat : s.locale().datePattern, l = {};
1349
+ l.start = t.addDays(n), l.name = l.start.toString(o, s.locale()), e.push(l);
1348
1350
  }
1349
1351
  return e;
1350
1352
  }, this.visibleStart = function () {
1351
- if ("Resources" === n.viewType) {
1352
- if (0 === n.va.length)
1353
+ if ("Resources" === r.viewType) {
1354
+ if (0 === r.va.length)
1353
1355
  return DayPilot.Date.today();
1354
- var e = n.va.map(function (e) { return e.start.getTime(); }), t = Math.min.apply(null, e);
1356
+ var e = r.va.map(function (e) { return e.start.getTime(); }), t = Math.min.apply(null, e);
1355
1357
  return new DayPilot.Date(t);
1356
1358
  }
1357
1359
  return this.va[0].start;
1358
1360
  }, this.visibleEnd = function () {
1359
- if ("Resources" === n.viewType) {
1360
- if (0 === n.va.length)
1361
+ if ("Resources" === r.viewType) {
1362
+ if (0 === r.va.length)
1361
1363
  return DayPilot.Date.today().addDays(1);
1362
- var e = n.va.map(function (e) { return e.start.getTime(); }), t = Math.max.apply(null, e);
1364
+ var e = r.va.map(function (e) { return e.start.getTime(); }), t = Math.max.apply(null, e);
1363
1365
  return new DayPilot.Date(t).addDays(1);
1364
1366
  }
1365
1367
  var t = this.va.length - 1;
@@ -1367,68 +1369,97 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1367
1369
  }, this.K = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.W = function () {
1368
1370
  if (this.elements.events)
1369
1371
  for (var e = 0; e < this.elements.events.length; e++) {
1370
- var t = this.elements.events[e], i = t.event;
1371
- if (i && (i.calendar = null), t.onclick = null, t.onclickSave = null, t.onmouseover = null, t.onmouseout = null, t.onmousemove = null, t.onmousedown = null, t.firstChild && t.firstChild.firstChild && t.firstChild.firstChild.tagName && "IMG" === t.firstChild.firstChild.tagName.toUpperCase()) {
1372
- var a = t.firstChild.firstChild;
1373
- a.onmousedown = null, a.onmousemove = null, a.onclick = null;
1374
- }
1375
- t.helper = null, t.data = null, t.event = null, DayPilot.de(t);
1372
+ var t = this.elements.events[e];
1373
+ r.Ea(t);
1376
1374
  }
1377
1375
  this.elements.events = [];
1378
1376
  }, this.Ea = function (e) {
1379
- var i = e.cache || e.data, a = this.nav.events, o = i.borderRadius || n.eventBorderRadius;
1377
+ !function () {
1378
+ var t = e.domArgs;
1379
+ if (e.domArgs = null, t && "function" == typeof r.onBeforeEventDomRemove && r.onBeforeEventDomRemove(t), t && "function" == typeof r.onBeforeEventDomAdd) {
1380
+ var a = t && t.Fa;
1381
+ if (a) {
1382
+ r.Ha.Ga && i(t.element) && (r.Ha.Ia = !0, r.Ha.Ja(a), r.Ha.Ia = !1);
1383
+ }
1384
+ }
1385
+ }();
1386
+ var t = e.event;
1387
+ if (t && (t.calendar = null), e.onclick = null, e.onclickSave = null, e.onmouseover = null, e.onmouseout = null, e.onmousemove = null, e.onmousedown = null, e.firstChild && e.firstChild.firstChild && e.firstChild.firstChild.tagName && "IMG" === e.firstChild.firstChild.tagName.toUpperCase()) {
1388
+ var a = e.firstChild.firstChild;
1389
+ a.onmousedown = null, a.onmousemove = null, a.onclick = null;
1390
+ }
1391
+ e.helper = null, e.data = null, e.event = null, DayPilot.de(e);
1392
+ }, this.Ka = function (e) {
1393
+ var a = e.cache || e.data, n = this.nav.events, o = a.borderRadius || r.eventBorderRadius;
1380
1394
  "number" == typeof o && (o += "px");
1381
- var r = document.createElement("div");
1382
- r.style.position = "absolute", r.style.left = e.part.left + "%", r.style.top = e.part.top + "px", r.style.width = e.part.width + "%", r.style.height = Math.max(e.part.height, 2) + "px", r.style.overflow = "hidden", r.data = e, r.event = e, r.unselectable = "on", r.style.MozUserSelect = "none", r.style.KhtmlUserSelect = "none", r.className = this.K("_event"), i.cssClass && DayPilot.Util.addClass(r, i.cssClass), n.showToolTip && e.client.toolTip() && (r.title = e.client.toolTip()), r.isFirst = e.part.start.getTime() === e.start().getTime(), r.isLast = e.part.end.getTime() === e.end().getTime(), r.onclick = this.ra, DayPilot.re(r, "contextmenu", this.ta), r.onmouseout = function (e) { r.deleteIcon && (r.deleteIcon.style.display = "none"); }, r.onmousemove = function (i) {
1395
+ var s = document.createElement("div");
1396
+ s.style.position = "absolute", s.style.left = e.part.left + "%", s.style.top = e.part.top + "px", s.style.width = e.part.width + "%", s.style.height = Math.max(e.part.height, 2) + "px", s.style.overflow = "hidden", s.data = e, s.event = e, s.unselectable = "on", s.style.MozUserSelect = "none", s.style.KhtmlUserSelect = "none", s.className = this.K("_event"), a.cssClass && DayPilot.Util.addClass(s, a.cssClass), r.showToolTip && e.client.toolTip() && (s.title = e.client.toolTip()), s.isFirst = e.part.start.getTime() === e.start().getTime(), s.isLast = e.part.end.getTime() === e.end().getTime(), s.onclick = this.ra, DayPilot.re(s, "contextmenu", this.ta), s.onmouseout = function (e) { s.deleteIcon && (s.deleteIcon.style.display = "none"); }, s.onmousemove = function (i) {
1383
1397
  var a = 5;
1384
1398
  if ("undefined" != typeof t) {
1385
- var o = DayPilot.mo3(r, i);
1386
- if (o && !t.resizing && !t.moving) {
1387
- r.deleteIcon && (r.deleteIcon.style.display = "");
1388
- var s = this.isLast;
1389
- o.y <= a && e.client.resizeEnabled() ? (this.style.cursor = "n-resize", this.dpBorder = "top") : this.offsetHeight - o.y <= a && e.client.resizeEnabled() ? s ? (this.style.cursor = "s-resize", this.dpBorder = "bottom") : this.style.cursor = "not-allowed" : t.resizing || t.moving || ("Disabled" !== n.eventClickHandling ? this.style.cursor = "pointer" : this.style.cursor = "default");
1399
+ var n = DayPilot.mo3(s, i);
1400
+ if (n && !t.resizing && !t.moving) {
1401
+ s.deleteIcon && (s.deleteIcon.style.display = "");
1402
+ var o = this.isLast;
1403
+ n.y <= a && e.client.resizeEnabled() ? (this.style.cursor = "n-resize", this.dpBorder = "top") : this.offsetHeight - n.y <= a && e.client.resizeEnabled() ? o ? (this.style.cursor = "s-resize", this.dpBorder = "bottom") : this.style.cursor = "not-allowed" : t.resizing || t.moving || ("Disabled" !== r.eventClickHandling ? this.style.cursor = "pointer" : this.style.cursor = "default");
1390
1404
  }
1391
1405
  }
1392
- }, r.onmousedown = function (i) {
1406
+ }, s.onmousedown = function (i) {
1393
1407
  var a = i.which || i.button;
1394
1408
  if ("n-resize" !== this.style.cursor && "s-resize" !== this.style.cursor || 1 !== a) {
1395
1409
  if (1 === a && e.client.moveEnabled()) {
1396
1410
  t.moving = this, DayPilot.Global.moving = this, t.moving.event = this.event;
1397
- var o = t.moving.helper = {};
1398
- o.oldColumn = n.va[this.data.part.dayIndex].id, t.originalMouse = DayPilot.mc(i), t.originalTop = this.offsetTop;
1399
- var r = DayPilot.mo3(this, i);
1400
- r ? t.moveOffsetY = r.y : t.moveOffsetY = 0, n.nav.top.style.cursor = "move";
1411
+ var n = t.moving.helper = {};
1412
+ n.oldColumn = r.va[this.data.part.dayIndex].id, t.originalMouse = DayPilot.mc(i), t.originalTop = this.offsetTop;
1413
+ var o = DayPilot.mo3(this, i);
1414
+ o ? t.moveOffsetY = o.y : t.moveOffsetY = 0, r.nav.top.style.cursor = "move";
1401
1415
  }
1402
1416
  }
1403
1417
  else
1404
- t.resizing = this, DayPilot.Global.resizing = this, t.originalMouse = DayPilot.mc(i), t.originalHeight = this.offsetHeight, t.originalTop = this.offsetTop, n.nav.top.style.cursor = this.style.cursor;
1418
+ t.resizing = this, DayPilot.Global.resizing = this, t.originalMouse = DayPilot.mc(i), t.originalHeight = this.offsetHeight, t.originalTop = this.offsetTop, r.nav.top.style.cursor = this.style.cursor;
1405
1419
  return !1;
1406
1420
  };
1407
- var s = document.createElement("div");
1408
- if (s.setAttribute("unselectable", "on"), s.className = n.K("_event_inner"), s.innerHTML = e.client.html(), "darker" === i.borderColor && i.backColor ? s.style.borderColor = DayPilot.ColorUtil.darker(i.backColor, 2) : s.style.borderColor = i.borderColor, i.backColor && (s.style.background = i.backColor), i.fontColor && (s.style.color = i.fontColor), o && (r.style.borderRadius = o, s.style.borderRadius = o), r.appendChild(s), e.client.barVisible()) {
1409
- var l = e.part.height - 2, d = 100 * e.part.barTop / l, c = Math.ceil(100 * e.part.barHeight / l), u = document.createElement("div");
1410
- u.setAttribute("unselectable", "on"), u.className = this.K("_event_bar"), u.style.position = "absolute", i.barBackColor && (u.style.backgroundColor = i.barBackColor);
1411
- var h = document.createElement("div");
1412
- h.setAttribute("unselectable", "on"), h.className = this.K("_event_bar_inner"), h.style.top = d + "%", 0 < c && c <= 1 ? h.style.height = "1px" : h.style.height = c + "%", i.barColor && (h.style.backgroundColor = i.barColor), u.appendChild(h), r.appendChild(u);
1421
+ var l = document.createElement("div");
1422
+ if (l.setAttribute("unselectable", "on"), l.className = r.K("_event_inner"), "darker" === a.borderColor && a.backColor ? l.style.borderColor = DayPilot.ColorUtil.darker(a.backColor, 2) : l.style.borderColor = a.borderColor, a.backColor && (l.style.background = a.backColor), a.fontColor && (l.style.color = a.fontColor), o && (s.style.borderRadius = o, l.style.borderRadius = o), s.appendChild(l), e.client.barVisible()) {
1423
+ var d = e.part.height - 2, c = 100 * e.part.barTop / d, u = Math.ceil(100 * e.part.barHeight / d), h = document.createElement("div");
1424
+ h.setAttribute("unselectable", "on"), h.className = this.K("_event_bar"), h.style.position = "absolute", a.barBackColor && (h.style.backgroundColor = a.barBackColor);
1425
+ var f = document.createElement("div");
1426
+ f.setAttribute("unselectable", "on"), f.className = this.K("_event_bar_inner"), f.style.top = c + "%", 0 < u && u <= 1 ? f.style.height = "1px" : f.style.height = u + "%", a.barColor && (f.style.backgroundColor = a.barColor), h.appendChild(f), s.appendChild(h);
1413
1427
  }
1414
1428
  if (e.client.deleteEnabled()) {
1415
- var f = document.createElement("div");
1416
- f.style.position = "absolute", f.style.right = "2px", f.style.top = "2px", f.style.width = "17px", f.style.height = "17px", f.className = n.K("_event_delete"), f.onmousedown = function (e) { e.stopPropagation(); }, f.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && n.ua(t); }, f.style.display = "none", r.deleteIcon = f, r.appendChild(f);
1429
+ var m = document.createElement("div");
1430
+ m.style.position = "absolute", m.style.right = "2px", m.style.top = "2px", m.style.width = "17px", m.style.height = "17px", m.className = r.K("_event_delete"), m.onmousedown = function (e) { e.stopPropagation(); }, m.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && r.ua(t); }, m.style.display = "none", s.deleteIcon = m, s.appendChild(m);
1417
1431
  }
1418
- var m = i.areas ? DayPilot.Areas.copy(i.areas) : [];
1419
- if (DayPilot.Areas.attach(r, e, { "areas": m }), a.rows[0].cells[e.part.dayIndex]) {
1420
- a.rows[0].cells[e.part.dayIndex].firstChild.appendChild(r), n.Fa(r);
1432
+ var p = a.areas ? DayPilot.Areas.copy(a.areas) : [];
1433
+ if (DayPilot.Areas.attach(s, e, { "areas": p }), "function" == typeof r.onAfterEventRender) {
1434
+ var v = {};
1435
+ v.e = s.event, v.div = s, r.onAfterEventRender(v);
1421
1436
  }
1422
- if ("function" == typeof n.onAfterEventRender) {
1423
- var p = {};
1424
- p.e = r.event, p.div = r, n.onAfterEventRender(p);
1437
+ if (function () {
1438
+ var t = {};
1439
+ if (t.control = r, t.e = e, t.element = null, s.domArgs = t, "function" == typeof r.onBeforeEventDomAdd && r.onBeforeEventDomAdd(t), t.element) {
1440
+ var a = l;
1441
+ if (a) {
1442
+ t.Fa = a;
1443
+ if (i(t.element)) {
1444
+ if (!r.Ha.Ga)
1445
+ throw new DayPilot.Exception("Can't reach Vue");
1446
+ r.Ha.Ia = !0, r.Ha.La(t.element, a), r.Ha.Ia = !1;
1447
+ }
1448
+ else
1449
+ a.appendChild(t.element);
1450
+ }
1451
+ }
1452
+ else
1453
+ l.innerHTML = e.client.innerHTML();
1454
+ }(), n.rows[0].cells[e.part.dayIndex]) {
1455
+ n.rows[0].cells[e.part.dayIndex].firstChild.appendChild(s), r.Ma(s);
1425
1456
  }
1426
- n.elements.events.push(r);
1427
- }, this.Fa = function (e) {
1457
+ r.elements.events.push(s);
1458
+ }, this.Ma = function (e) {
1428
1459
  for (var t = e && e.childNodes ? e.childNodes.length : 0, i = 0; i < t; i++)
1429
1460
  try {
1430
1461
  var a = e.childNodes[i];
1431
- 1 === a.nodeType && (a.unselectable = "on", this.Fa(a));
1462
+ 1 === a.nodeType && (a.unselectable = "on", this.Ma(a));
1432
1463
  }
1433
1464
  catch (e) { }
1434
1465
  }, this.ka = function () {
@@ -1441,28 +1472,28 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1441
1472
  var s = o[r];
1442
1473
  s.part.width = 100 / a.lines.length, s.part.left = s.part.width * n;
1443
1474
  var l = n === a.lines.length - 1;
1444
- l || (s.part.width = 1.5 * s.part.width), this.Ea(s);
1475
+ l || (s.part.width = 1.5 * s.part.width), this.Ka(s);
1445
1476
  }
1446
1477
  }
1447
- }, this.Ga = function () { this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.K("_main")), this.nav.top.style.MozUserSelect = "none", this.nav.top.style.KhtmlUserSelect = "none", this.nav.top.style.position = "relative", this.nav.top.style.width = this.width ? this.width : "100%", this.hideUntilInit && (this.nav.top.style.visibility = "hidden"), this.visible || (this.nav.top.style.display = "none"), this.nav.scroll = document.createElement("div"), this.nav.scroll.style.height = this.Ha() + "px", "BusinessHours" === this.heightSpec ? this.nav.scroll.style.overflow = "auto" : this.nav.scroll.style.overflow = "hidden", this.nav.scroll.style.position = "relative"; var e = this.Ia(); this.nav.top.appendChild(e), this.nav.scroll.style.zoom = 1; var t = this.Ja(); this.nav.scrollable = t.firstChild, this.nav.scroll.appendChild(t), this.nav.top.appendChild(this.nav.scroll), this.nav.scrollLayer = document.createElement("div"), this.nav.scrollLayer.style.position = "absolute", this.nav.scrollLayer.style.top = "0px", this.nav.scrollLayer.style.left = "0px", this.nav.top.appendChild(this.nav.scrollLayer), this.nav.loading = document.createElement("div"), this.nav.loading.style.position = "absolute", this.nav.loading.style.top = "0px", this.nav.loading.style.left = this.hourWidth + 5 + "px", this.nav.loading.innerHTML = n.Ka(n.loadingLabelText, n.loadingLabelHtml), this.nav.loading.style.display = "none", this.nav.top.appendChild(this.nav.loading); }, this.ia = function () { this.fasterDispose || DayPilot.pu(this.nav.hourTable), this.nav.scrollable.rows[0].cells[0].innerHTML = "", this.nav.hourTable = this.La(), this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable); }, this.Ja = function () { var e = document.createElement("div"); e.style.zoom = 1, e.style.position = "relative"; var t = document.createElement("table"); t.cellSpacing = "0", t.cellPadding = "0", t.border = "0", t.style.border = "0px none", t.style.width = "100%", t.style.position = "absolute"; var i, a = t.insertRow(-1); i = a.insertCell(-1), i.valign = "top", i.style.padding = "0px", i.style.border = "0px none", this.nav.hourTable = this.La(), i.appendChild(this.nav.hourTable), i = a.insertCell(-1), i.valign = "top", i.width = "100%", i.style.padding = "0px", i.style.border = "0px none"; var n = document.createElement("div"); return n.style.position = "relative", i.appendChild(n), n.appendChild(this.Ma()), n.appendChild(this.Na()), e.appendChild(t), this.nav.zoom = e, e; }, this.Ma = function () { var e = document.createElement("table"); return e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.nav.main = e, this.nav.events = e, e; }, this.Na = function () {
1478
+ }, this.Na = function () { this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.K("_main")), this.nav.top.style.MozUserSelect = "none", this.nav.top.style.KhtmlUserSelect = "none", this.nav.top.style.position = "relative", this.nav.top.style.width = this.width ? this.width : "100%", this.hideUntilInit && (this.nav.top.style.visibility = "hidden"), this.visible || (this.nav.top.style.display = "none"), this.nav.scroll = document.createElement("div"), this.nav.scroll.style.height = this.Oa() + "px", "BusinessHours" === this.heightSpec ? this.nav.scroll.style.overflow = "auto" : this.nav.scroll.style.overflow = "hidden", this.nav.scroll.style.position = "relative"; var e = this.Pa(); this.nav.top.appendChild(e), this.nav.scroll.style.zoom = 1; var t = this.Qa(); this.nav.scrollable = t.firstChild, this.nav.scroll.appendChild(t), this.nav.top.appendChild(this.nav.scroll), this.nav.scrollLayer = document.createElement("div"), this.nav.scrollLayer.style.position = "absolute", this.nav.scrollLayer.style.top = "0px", this.nav.scrollLayer.style.left = "0px", this.nav.top.appendChild(this.nav.scrollLayer), this.nav.loading = document.createElement("div"), this.nav.loading.style.position = "absolute", this.nav.loading.style.top = "0px", this.nav.loading.style.left = this.hourWidth + 5 + "px", this.nav.loading.innerHTML = r.Ra(r.loadingLabelText, r.loadingLabelHtml), this.nav.loading.style.display = "none", this.nav.top.appendChild(this.nav.loading); }, this.ia = function () { this.fasterDispose || DayPilot.pu(this.nav.hourTable), this.nav.scrollable.rows[0].cells[0].innerHTML = "", this.nav.hourTable = this.Sa(), this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable); }, this.Qa = function () { var e = document.createElement("div"); e.style.zoom = 1, e.style.position = "relative"; var t = document.createElement("table"); t.cellSpacing = "0", t.cellPadding = "0", t.border = "0", t.style.border = "0px none", t.style.width = "100%", t.style.position = "absolute"; var i, a = t.insertRow(-1); i = a.insertCell(-1), i.valign = "top", i.style.padding = "0px", i.style.border = "0px none", this.nav.hourTable = this.Sa(), i.appendChild(this.nav.hourTable), i = a.insertCell(-1), i.valign = "top", i.width = "100%", i.style.padding = "0px", i.style.border = "0px none"; var n = document.createElement("div"); return n.style.position = "relative", i.appendChild(n), n.appendChild(this.Ta()), n.appendChild(this.Ua()), e.appendChild(t), this.nav.zoom = e, e; }, this.Ta = function () { var e = document.createElement("table"); return e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.nav.main = e, this.nav.events = e, e; }, this.Ua = function () {
1448
1479
  var e = document.createElement("table");
1449
1480
  e.style.top = "0px", e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.position = "absolute", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.nav.events = e;
1450
- for (var t = this.va, i = t.length, a = e.insertRow(-1), o = 0; o < i; o++) {
1451
- var r = a.insertCell(-1);
1452
- r.style.padding = "0px", r.style.border = "0px none", r.style.height = "0px", r.style.overflow = "visible", n.rtl || (r.style.textAlign = "left");
1481
+ for (var t = this.va, i = t.length, a = e.insertRow(-1), n = 0; n < i; n++) {
1482
+ var o = a.insertCell(-1);
1483
+ o.style.padding = "0px", o.style.border = "0px none", o.style.height = "0px", o.style.overflow = "visible", r.rtl || (o.style.textAlign = "left");
1453
1484
  var s = document.createElement("div");
1454
- s.style.marginRight = n.columnMarginRight + "px", s.style.marginLeft = n.columnMarginLeft + "px", s.style.position = "relative", s.style.height = "1px", s.style.marginTop = "-1px";
1485
+ s.style.marginRight = r.columnMarginRight + "px", s.style.marginLeft = r.columnMarginLeft + "px", s.style.position = "relative", s.style.height = "1px", s.style.marginTop = "-1px";
1455
1486
  var l = document.createElement("div");
1456
- r.selection = l, r.appendChild(s), r.appendChild(l);
1487
+ o.selection = l, o.appendChild(s), o.appendChild(l);
1457
1488
  }
1458
1489
  return e;
1459
- }, this.La = function () {
1490
+ }, this.Sa = function () {
1460
1491
  var e = document.createElement("table");
1461
1492
  e.cellSpacing = "0", e.cellPadding = "0", e.border = "0", e.style.border = "0px none", e.style.width = this.hourWidth + "px", e.oncontextmenu = function () { return !1; };
1462
- for (var t = n.la(), i = 0; i < t; i++)
1463
- this.Oa(e, i);
1493
+ for (var t = r.la(), i = 0; i < t; i++)
1494
+ this.Va(e, i);
1464
1495
  return e;
1465
- }, this.Oa = function (e, t) { var i = 2 * this.cellHeight, a = e.insertRow(-1); a.style.height = i + "px"; var r = a.insertCell(-1); r.valign = "bottom", r.unselectable = "on", r.style.cursor = "default", r.style.padding = "0px", r.style.border = "0px none"; var s = document.createElement("div"); s.style.position = "relative", s.className = this.K("_rowheader"), s.style.width = this.hourWidth + "px", s.style.height = i + "px", s.style.overflow = "hidden", s.unselectable = "on"; var l = document.createElement("div"); l.className = this.K("_rowheader_inner"), l.unselectable = "on"; var d = document.createElement("div"); d.unselectable = "on"; var c = this.startDate.addHours(t).addHours(n.pa()), u = c.getHours(), h = u < 12, f = o.timeFormat(); "Clock12Hours" === f && (u %= 12, 0 === u && (u = 12)), d.innerHTML = u; var m = document.createElement("span"); m.unselectable = "on", m.className = this.K("_rowheader_minutes"); var p; p = "Clock12Hours" === f ? h ? "AM" : "PM" : "00", m.innerHTML = p, d.appendChild(m), l.appendChild(d), s.appendChild(l), r.appendChild(s); }, this.Ha = function () {
1496
+ }, this.Va = function (e, t) { var i = 2 * this.cellHeight, a = e.insertRow(-1); a.style.height = i + "px"; var n = a.insertCell(-1); n.valign = "bottom", n.unselectable = "on", n.style.cursor = "default", n.style.padding = "0px", n.style.border = "0px none"; var o = document.createElement("div"); o.style.position = "relative", o.className = this.K("_rowheader"), o.style.width = this.hourWidth + "px", o.style.height = i + "px", o.style.overflow = "hidden", o.unselectable = "on"; var l = document.createElement("div"); l.className = this.K("_rowheader_inner"), l.unselectable = "on"; var d = document.createElement("div"); d.unselectable = "on"; var c = this.startDate.addHours(t).addHours(r.pa()), u = c.getHours(), h = u < 12, f = s.timeFormat(); "Clock12Hours" === f && (u %= 12, 0 === u && (u = 12)), d.innerHTML = u; var m = document.createElement("span"); m.unselectable = "on", m.className = this.K("_rowheader_minutes"); var p; p = "Clock12Hours" === f ? h ? "AM" : "PM" : "00", m.innerHTML = p, d.appendChild(m), l.appendChild(d), o.appendChild(l), n.appendChild(o); }, this.Oa = function () {
1466
1497
  switch (this.heightSpec) {
1467
1498
  case "Full": return 48 * this.cellHeight;
1468
1499
  case "BusinessHours":
@@ -1473,21 +1504,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1473
1504
  return e * this.cellHeight * 2;
1474
1505
  default: throw "DayPilot.Calendar: Unexpected 'heightSpec' value.";
1475
1506
  }
1476
- }, this.Pa = function () {
1477
- var e = n.nav.corner ? n.nav.corner.parentNode : null;
1507
+ }, this.Wa = function () {
1508
+ var e = r.nav.corner ? r.nav.corner.parentNode : null;
1478
1509
  if (e) {
1479
1510
  e.innerHTML = "";
1480
- var t = this.Qa();
1481
- e.appendChild(t), n.nav.corner = t;
1511
+ var t = this.Xa();
1512
+ e.appendChild(t), r.nav.corner = t;
1482
1513
  }
1483
- }, this.Ia = function () {
1514
+ }, this.Pa = function () {
1484
1515
  var e = document.createElement("div");
1485
1516
  e.style.overflow = "auto";
1486
1517
  var t = document.createElement("table");
1487
1518
  t.cellPadding = "0", t.cellSpacing = "0", t.border = "0", t.style.width = "100%", t.style.borderCollapse = "separate", t.style.border = "0px none";
1488
1519
  var i = t.insertRow(-1), a = i.insertCell(-1);
1489
1520
  a.style.padding = "0px", a.style.border = "0px none";
1490
- var n = this.Qa();
1521
+ var n = this.Xa();
1491
1522
  a.appendChild(n), this.nav.corner = n, a = i.insertCell(-1), a.style.width = "100%", a.valign = "top", a.style.position = "relative", a.style.padding = "0px", a.style.border = "0px none", this.nav.header = document.createElement("table"), this.nav.header.cellPadding = "0", this.nav.header.cellSpacing = "0", this.nav.header.border = "0", this.nav.header.width = "100%", this.nav.header.style.tableLayout = "fixed", this.nav.header.oncontextmenu = function () { return !1; };
1492
1523
  var o = "hidden" !== this.nav.scroll.style.overflow;
1493
1524
  if (a.appendChild(this.nav.header), o) {
@@ -1498,95 +1529,122 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1498
1529
  s.className = this.K("_cornerright_inner"), r.appendChild(s), a.appendChild(r), this.nav.cornerRight = r;
1499
1530
  }
1500
1531
  return e.appendChild(t), e;
1501
- }, this.Qa = function () { var e = document.createElement("div"); e.style.position = "relative", e.className = this.K("_corner"), e.style.width = this.hourWidth + "px", e.style.height = this.headerHeight + "px", e.oncontextmenu = function () { return !1; }; var t = document.createElement("div"); return t.unselectable = "on", t.className = this.K("_corner_inner"), e.appendChild(t), e; }, this.X = function () {
1532
+ }, this.Xa = function () { var e = document.createElement("div"); e.style.position = "relative", e.className = this.K("_corner"), e.style.width = this.hourWidth + "px", e.style.height = this.headerHeight + "px", e.oncontextmenu = function () { return !1; }; var t = document.createElement("div"); return t.unselectable = "on", t.className = this.K("_corner_inner"), e.appendChild(t), e; }, this.X = function () {
1502
1533
  var e = this.nav.main;
1503
1534
  e.root = null, e.onmouseup = null;
1504
1535
  for (var t = 0; t < e.rows.length; t++)
1505
1536
  for (var i = e.rows[t], a = 0; a < i.cells.length; a++) {
1506
1537
  var n = i.cells[a];
1507
- n.root = null, n.onmousedown = null, n.onmousemove = null, n.onmouseout = null, n.onmouseup = null;
1538
+ r.Ya(n);
1508
1539
  }
1509
1540
  this.fasterDispose || DayPilot.pu(e);
1541
+ }, this.Ya = function (e) {
1542
+ e && (!function () {
1543
+ var t = e, a = t.domArgs;
1544
+ if (t.domArgs = null, a && "function" == typeof r.onBeforeCellDomRemove && r.onBeforeCellDomRemove(a), a && "function" == typeof r.onBeforeCellDomAdd) {
1545
+ var n = a && a.Fa;
1546
+ if (n) {
1547
+ r.Ha.Ga && i(a.element) && (r.Ha.Ia = !0, r.Ha.Ja(n), r.Ha.Ia = !1);
1548
+ }
1549
+ }
1550
+ }(), e.root = null, e.onmousedown = null, e.onmousemove = null, e.onmouseout = null, e.onmouseup = null);
1510
1551
  }, this.ha = function () {
1511
- var e = this.nav.main, i = 18e5, a = this.oa(), o = n.va;
1552
+ var e = this.nav.main, a = 18e5, n = this.oa(), o = r.va;
1512
1553
  for (e && this.X(); e && e.rows && e.rows.length > 0;)
1513
1554
  this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
1514
1555
  this.tableCreated = !0;
1515
- for (var r = o.length, s = this.nav.events; s && s.rows && s.rows.length > 0;)
1516
- this.fasterDispose || DayPilot.pu(s.rows[0]), s.deleteRow(0);
1517
- for (var r = o.length, l = s.insertRow(-1), d = 0; d < r; d++) {
1518
- var c = l.insertCell(-1);
1519
- c.style.padding = "0px", c.style.border = "0px none", c.style.height = "0px", c.style.overflow = "visible", n.rtl || (c.style.textAlign = "left");
1520
- var u = document.createElement("div");
1521
- u.style.marginRight = n.columnMarginRight + "px", u.style.marginLeft = n.columnMarginLeft + "px", u.style.position = "relative", u.style.height = "1px", u.style.marginTop = "-1px";
1556
+ for (var s = o.length, l = this.nav.events; l && l.rows && l.rows.length > 0;)
1557
+ this.fasterDispose || DayPilot.pu(l.rows[0]), l.deleteRow(0);
1558
+ for (var s = o.length, d = l.insertRow(-1), c = 0; c < s; c++) {
1559
+ var u = d.insertCell(-1);
1560
+ u.style.padding = "0px", u.style.border = "0px none", u.style.height = "0px", u.style.overflow = "visible", r.rtl || (u.style.textAlign = "left");
1522
1561
  var h = document.createElement("div");
1523
- h.style.position = "relative", c.selection = h, c.appendChild(u), c.appendChild(h);
1524
- }
1525
- for (var f = 0; f < a; f++) {
1526
- var l = e.insertRow(-1);
1527
- l.style.MozUserSelect = "none", l.style.KhtmlUserSelect = "none";
1528
- for (var d = 0; d < r; d++) {
1529
- var m = this.va[d], c = l.insertCell(-1);
1530
- c.start = m.start.addTime(f * i), c.end = c.start.addTime(i), c.resource = m.id, c.onmousedown = this.wa, c.onmouseup = function () { return !1; }, c.onclick = function () { return !1; }, c.root = this, c.style.padding = "0px", c.style.border = "0px none", c.style.verticalAlign = "top", c.style.height = n.cellHeight + "px", c.style.overflow = "hidden", c.unselectable = "on";
1531
- var u = document.createElement("div");
1532
- u.unselectable = "on", u.style.height = n.cellHeight + "px", u.style.position = "relative", u.className = this.K("_cell");
1533
- var p = this.Ra(c.start, c.end), v = { "business": p, "text": null, "html": null, "cssClass": null, "backColor": null, "backImage": null, "backRepeat": null };
1562
+ h.style.marginRight = r.columnMarginRight + "px", h.style.marginLeft = r.columnMarginLeft + "px", h.style.position = "relative", h.style.height = "1px", h.style.marginTop = "-1px";
1563
+ var f = document.createElement("div");
1564
+ f.style.position = "relative", u.selection = f, u.appendChild(h), u.appendChild(f);
1565
+ }
1566
+ for (var m = 0; m < n; m++) {
1567
+ var d = e.insertRow(-1);
1568
+ d.style.MozUserSelect = "none", d.style.KhtmlUserSelect = "none";
1569
+ for (var c = 0; c < s; c++) {
1570
+ var p = this.va[c], u = d.insertCell(-1);
1571
+ u.start = p.start.addTime(m * a), u.end = u.start.addTime(a), u.resource = p.id, u.onmousedown = this.wa, u.onmouseup = function () { return !1; }, u.onclick = function () { return !1; }, u.root = this, u.style.padding = "0px", u.style.border = "0px none", u.style.verticalAlign = "top", u.style.height = r.cellHeight + "px", u.style.overflow = "hidden", u.unselectable = "on";
1572
+ var h = document.createElement("div");
1573
+ h.unselectable = "on", h.style.height = r.cellHeight + "px", h.style.position = "relative", h.className = this.K("_cell");
1574
+ var v = this.Za(u.start, u.end), y = { "business": v, "text": null, "html": null, "cssClass": null, "backColor": null, "backImage": null, "backRepeat": null }, g = { "start": u.start, "end": u.end, "resource": u.resource, "properties": y };
1534
1575
  !function () {
1535
- if ("function" == typeof n.onBeforeCellRender) {
1576
+ if ("function" == typeof r.onBeforeCellRender) {
1577
+ var e = {};
1578
+ e.cell = g, r.onBeforeCellRender(e);
1579
+ }
1580
+ }(), y.business && DayPilot.Util.addClass(h, r.K("_cell_business")), y.cssClass && DayPilot.Util.addClass(h, y.cssClass);
1581
+ var b = document.createElement("div");
1582
+ b.setAttribute("unselectable", "on"), b.className = this.K("_cell_inner");
1583
+ var D = DayPilot.Util.escapeTextHtml(y.text, y.html);
1584
+ D && (b.innerHTML = D), y.backColor && (b.style.backgroundColor = y.backColor), y.backImage && (b.style.backgroundImage = "url(" + y.backImage + ")"), y.backRepeat && (b.style.backgroundRepeat = y.backRepeat), h.appendChild(b), function () {
1585
+ if ("function" == typeof r.onBeforeCellDomAdd || "function" == typeof r.onBeforeCellDomRemove) {
1536
1586
  var e = {};
1537
- e.cell = { "start": c.start, "end": c.end, "resource": c.resource, "properties": v }, n.onBeforeCellRender(e);
1587
+ if (e.control = r, e.cell = g, e.element = null, u.domArgs = e, "function" == typeof r.onBeforeCellDomAdd && r.onBeforeCellDomAdd(e), e.element) {
1588
+ var t = b;
1589
+ if (t) {
1590
+ e.Fa = t;
1591
+ if (i(e.element)) {
1592
+ if (!r.Ha.Ga)
1593
+ throw new DayPilot.Exception("Can't reach Vue");
1594
+ r.Ha.Ia = !0, r.Ha.La(e.element, t), r.Ha.Ia = !1;
1595
+ }
1596
+ else
1597
+ t.appendChild(e.element);
1598
+ }
1599
+ }
1538
1600
  }
1539
- }(), v.business && DayPilot.Util.addClass(u, n.K("_cell_business")), v.cssClass && DayPilot.Util.addClass(u, v.cssClass);
1540
- var y = document.createElement("div");
1541
- y.setAttribute("unselectable", "on"), y.className = this.K("_cell_inner");
1542
- var g = DayPilot.Util.escapeTextHtml(v.text, v.html);
1543
- g && (y.innerHTML = g), v.backColor && (y.style.backgroundColor = v.backColor), v.backImage && (y.style.backgroundImage = "url(" + v.backImage + ")"), v.backRepeat && (y.style.backgroundRepeat = v.backRepeat), u.appendChild(y), c.appendChild(u), c.appendChild(u);
1601
+ }(), u.appendChild(h);
1544
1602
  }
1545
1603
  }
1546
- e.root = this, n.nav.scrollable.onmousemove = function (e) {
1547
- var i = n.nav.scrollable;
1548
- n.coords = DayPilot.mo3(i, e);
1604
+ e.root = this, r.nav.scrollable.onmousemove = function (e) {
1605
+ var i = r.nav.scrollable;
1606
+ r.coords = DayPilot.mo3(i, e);
1549
1607
  var a = DayPilot.mc(e);
1550
1608
  if (t.resizing) {
1551
- t.resizingShadow || (t.resizingShadow = n._(t.resizing, !1, n.shadow));
1552
- var o = n.cellHeight, r = 1, s = a.y - t.originalMouse.y;
1609
+ t.resizingShadow || (t.resizingShadow = r._(t.resizing, !1, r.shadow));
1610
+ var n = r.cellHeight, o = 1, s = a.y - t.originalMouse.y;
1553
1611
  if ("bottom" === t.resizing.dpBorder) {
1554
- var l = Math.floor((t.originalHeight + t.originalTop + s + o / 2) / o) * o - t.originalTop + r;
1555
- l < o && (l = o);
1556
- var d = n.nav.main.clientHeight;
1612
+ var l = Math.floor((t.originalHeight + t.originalTop + s + n / 2) / n) * n - t.originalTop + o;
1613
+ l < n && (l = n);
1614
+ var d = r.nav.main.clientHeight;
1557
1615
  t.originalTop + l > d && (l = d - t.originalTop), t.resizingShadow.style.height = l + "px";
1558
1616
  }
1559
1617
  else if ("top" === t.resizing.dpBorder) {
1560
- var c = Math.floor((t.originalTop + s - r + o / 2) / o) * o + r;
1561
- c < r && (c = r), c > t.originalTop + t.originalHeight - o && (c = t.originalTop + t.originalHeight - o);
1618
+ var c = Math.floor((t.originalTop + s - o + n / 2) / n) * n + o;
1619
+ c < o && (c = o), c > t.originalTop + t.originalHeight - n && (c = t.originalTop + t.originalHeight - n);
1562
1620
  var l = t.originalHeight - (c - t.originalTop);
1563
- l < o ? l = o : t.resizingShadow.style.top = c + "px", t.resizingShadow.style.height = l + "px";
1621
+ l < n ? l = n : t.resizingShadow.style.top = c + "px", t.resizingShadow.style.height = l + "px";
1564
1622
  }
1565
1623
  }
1566
1624
  else if (t.moving) {
1567
- if (!n.coords)
1625
+ if (!r.coords)
1568
1626
  return;
1569
1627
  if (!t.movingShadow) {
1570
1628
  var u = 3, a = DayPilot.mc(e), h = Math.abs(a.x - t.originalMouse.x) + Math.abs(a.y - t.originalMouse.y);
1571
1629
  if (h <= u)
1572
1630
  return;
1573
- t.movingShadow = n._(t.moving, !0, n.shadow), t.movingShadow.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px";
1631
+ t.movingShadow = r._(t.moving, !0, r.shadow), t.movingShadow.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px";
1574
1632
  }
1575
- var o = n.cellHeight, r = 1, f = t.moveOffsetY;
1576
- f || (f = o / 2);
1577
- var c = Math.floor((n.coords.y - f - r + o / 2) / o) * o + r;
1578
- c < r && (c = r);
1579
- var m = n.nav.events, d = n.nav.main.clientHeight + r, p = parseInt(t.movingShadow.style.height);
1580
- c + p > d && (c = d - p), DayPilot.Util.addClass(t.moving, n.K("_event_moving_source")), t.movingShadow.parentNode.style.display = "none", t.movingShadow.style.top = c + "px", t.movingShadow.parentNode.style.display = "";
1581
- var v = m.clientWidth / m.rows[0].cells.length, y = Math.floor((n.coords.x - 45) / v);
1633
+ var n = r.cellHeight, o = 1, f = t.moveOffsetY;
1634
+ f || (f = n / 2);
1635
+ var c = Math.floor((r.coords.y - f - o + n / 2) / n) * n + o;
1636
+ c < o && (c = o);
1637
+ var m = r.nav.events, d = r.nav.main.clientHeight + o, p = parseInt(t.movingShadow.style.height);
1638
+ c + p > d && (c = d - p), DayPilot.Util.addClass(t.moving, r.K("_event_moving_source")), t.movingShadow.parentNode.style.display = "none", t.movingShadow.style.top = c + "px", t.movingShadow.parentNode.style.display = "";
1639
+ var v = m.clientWidth / m.rows[0].cells.length, y = Math.floor((r.coords.x - 45) / v);
1582
1640
  y < 0 && (y = 0), y < m.rows[0].cells.length && y >= 0 && t.movingShadow.column !== y && (t.movingShadow.column = y, t.moveShadow(m.rows[0].cells[y]));
1583
1641
  }
1584
1642
  else if (t.selecting) {
1585
- var a = DayPilot.mc(e), g = n.Aa.getCellCoords(), b = t.column, D = n.nav.main.rows[g.y].cells[b];
1586
- a.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(D), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(D), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), n.xa();
1643
+ var a = DayPilot.mc(e), g = r.Aa.getCellCoords(), b = t.column, D = r.nav.main.rows[g.y].cells[b];
1644
+ a.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(D), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(D), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), r.xa();
1587
1645
  }
1588
- }, n.nav.scrollable.style.display = "";
1589
- }, this.Ra = function (e, t) { return this.businessBeginsHour < this.businessEndsHour ? !(e.getHours() < this.businessBeginsHour || e.getHours() >= this.businessEndsHour || 6 === e.getDayOfWeek() || 0 === e.getDayOfWeek()) : e.getHours() >= this.businessBeginsHour || e.getHours() < this.businessEndsHour; }, this.Y = function () {
1646
+ }, r.nav.scrollable.style.display = "";
1647
+ }, this.Za = function (e, t) { return this.businessBeginsHour < this.businessEndsHour ? !(e.getHours() < this.businessBeginsHour || e.getHours() >= this.businessEndsHour || 6 === e.getDayOfWeek() || 0 === e.getDayOfWeek()) : e.getHours() >= this.businessBeginsHour || e.getHours() < this.businessEndsHour; }, this.Y = function () {
1590
1648
  var e = this.nav.header;
1591
1649
  if (e && e.rows)
1592
1650
  for (var t = 0; t < e.rows.length; t++)
@@ -1595,15 +1653,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1595
1653
  n.onclick = null, n.onmousemove = null, n.onmouseout = null;
1596
1654
  }
1597
1655
  this.fasterDispose || DayPilot.pu(e);
1598
- }, this.Sa = function (e) {
1656
+ }, this.$a = function (e) {
1599
1657
  function t(t) {
1600
- var o = a[t], r = e ? i.insertCell(-1) : i.cells[t];
1601
- r.data = o, r.style.overflow = "hidden", r.style.padding = "0px", r.style.border = "0px none", r.style.height = n.headerHeight + "px", r.onclick = n.Ta;
1602
- var s, l = e ? document.createElement("div") : r.firstChild;
1603
- e ? (l.unselectable = "on", l.style.MozUserSelect = "none", l.style.cursor = "default", l.style.position = "relative", l.className = n.K("_colheader"), l.style.height = n.headerHeight + "px", n.headerTextWrappingEnabled || (l.style.whiteSpace = "nowrap"), s = document.createElement("div"), s.className = n.K("_colheader_inner"), s.unselectable = "on", l.appendChild(s), r.appendChild(l)) : s = l.firstChild;
1658
+ var n = a[t], o = e ? i.insertCell(-1) : i.cells[t];
1659
+ o.data = n, o.style.overflow = "hidden", o.style.padding = "0px", o.style.border = "0px none", o.style.height = r.headerHeight + "px", o.onclick = r._a;
1660
+ var s, l = e ? document.createElement("div") : o.firstChild;
1661
+ e ? (l.unselectable = "on", l.style.MozUserSelect = "none", l.style.cursor = "default", l.style.position = "relative",
1662
+ l.className = r.K("_colheader"), l.style.height = r.headerHeight + "px", r.headerTextWrappingEnabled || (l.style.whiteSpace = "nowrap"), s = document.createElement("div"), s.className = r.K("_colheader_inner"), s.unselectable = "on", l.appendChild(s), o.appendChild(l)) : s = l.firstChild;
1604
1663
  var d = {};
1605
- d.header = {}, d.header.cssClass = null, d.header.verticalAlignment = "center", d.column = n.Ua(o, n), "function" == typeof n.onBeforeHeaderRender && (DayPilot.Util.copyProps(o, d.header, ["id", "start", "name", "html", "backColor", "toolTip", "areas"]), n.onBeforeHeaderRender(d), DayPilot.Util.copyProps(d.header, o, ["html", "backColor", "toolTip", "areas", "cssClass", "verticalAlignment"])), o.toolTip && (s.title = o.toolTip), o.cssClass && DayPilot.Util.addClass(l, o.cssClass), o.backColor && (s.style.background = o.backColor), o.areas && DayPilot.Areas.attach(l, o);
1606
- var c = o.verticalAlignment;
1664
+ d.header = {}, d.header.cssClass = null, d.header.verticalAlignment = "center", d.column = r.ab(n, r), "function" == typeof r.onBeforeHeaderRender && (DayPilot.Util.copyProps(n, d.header, ["id", "start", "name", "html", "backColor", "toolTip", "areas"]), r.onBeforeHeaderRender(d), DayPilot.Util.copyProps(d.header, n, ["html", "backColor", "toolTip", "areas", "cssClass", "verticalAlignment"])), n.toolTip && (s.title = n.toolTip), n.cssClass && DayPilot.Util.addClass(l, n.cssClass), n.backColor && (s.style.background = n.backColor), n.areas && DayPilot.Areas.attach(l, n);
1665
+ var c = n.verticalAlignment;
1607
1666
  if (c)
1608
1667
  switch (s.style.display = "flex", c) {
1609
1668
  case "center":
@@ -1614,24 +1673,22 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1614
1673
  break;
1615
1674
  case "bottom": s.style.alignItems = "flex-end";
1616
1675
  }
1617
- l.firstChild.innerHTML = n.Ka(o.name, o.html);
1618
- }
1619
- for (var i = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], a = this.va, o = a.length, r = 0; r < o; r++)
1620
- t(r);
1621
- }, this.Ta = function (e) {
1622
- if ("Disabled" !== n.headerClickHandling) {
1623
- var t = this.data, i = n.Ua(t), a = {};
1624
- 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 () {
1625
- this.preventDefault.value = !0;
1626
- }, "function" == typeof n.onHeaderClick && (n.onHeaderClick(a), a.preventDefault.value) || "function" == typeof n.onHeaderClicked && n.onHeaderClicked(a);
1627
- }
1628
- }, this.Ua = function (e) { return new DayPilot.CalendarColumn(e, n); }, this.Va = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.ga = function () {
1676
+ l.firstChild.innerHTML = r.Ra(n.name, n.html);
1677
+ }
1678
+ for (var i = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], a = this.va, n = a.length, o = 0; o < n; o++)
1679
+ t(o);
1680
+ }, this._a = function (e) {
1681
+ if ("Disabled" !== r.headerClickHandling) {
1682
+ var t = this.data, i = r.ab(t), a = {};
1683
+ a.header = {}, a.header.id = t.id, a.header.name = t.name, a.header.start = t.start, a.column = i, a.originalEvent = e, a.shift = e.shiftKey, a.ctrl = e.ctrlKey, a.meta = e.metaKey, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onHeaderClick && (r.onHeaderClick(a), a.preventDefault.value) || "function" == typeof r.onHeaderClicked && r.onHeaderClicked(a);
1684
+ }
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 () {
1629
1686
  var e = this.nav.header, t = !0, i = this.va;
1630
1687
  for (i.length; this.headerCreated && e && e.rows && e.rows.length > 0;)
1631
1688
  this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
1632
1689
  this.headerCreated = !0;
1633
- this.Sa(t);
1634
- }, this.loadingStart = function () { this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = ""); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.S("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.Wa = function () { var e = this.nav.scroll; e.onscroll || (e.onscroll = function () { n.Xa(); }); var t = "undefined" != typeof this.Ya.scrollpos ? this.Ya.scrollpos : this.initScrollPos; t && ("Auto" === t && (t = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), e.root = this, 0 === e.scrollTop && (e.scrollTop = t)); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.Za = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.$a = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp), DayPilot.re(window, "unload", t.gUnload)); }, this.events = {}, this.events.add = function (e) {
1690
+ this.$a(t);
1691
+ }, this.loadingStart = function () { this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = ""); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.S("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.cb = function () { var e = this.nav.scroll; e.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) {
1635
1692
  var t = null;
1636
1693
  if (e instanceof DayPilot.Event)
1637
1694
  t = e.data;
@@ -1640,108 +1697,108 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1640
1697
  throw "DayPilot.Calendar.events.add() expects an object or DayPilot.Event instance.";
1641
1698
  t = e;
1642
1699
  }
1643
- n.events.list || (n.events.list = []), n.events.list.push(t), n._a({ "eventsOnly": !0 }), n.sa.notify();
1700
+ r.events.list || (r.events.list = []), r.events.list.push(t), r.hb({ "eventsOnly": !0 }), r.sa.notify();
1644
1701
  }, this.events.find = function (e) {
1645
- if (!n.events.list)
1702
+ if (!r.events.list)
1646
1703
  return null;
1647
1704
  if ("function" == typeof e) {
1648
- for (var t = e, i = 0; i < n.events.list.length; i++) {
1649
- var a = new DayPilot.Event(n.events.list[i], n);
1705
+ for (var t = e, i = 0; i < r.events.list.length; i++) {
1706
+ var a = new DayPilot.Event(r.events.list[i], r);
1650
1707
  if (t(a))
1651
1708
  return a;
1652
1709
  }
1653
1710
  return null;
1654
1711
  }
1655
- for (var i = 0; i < n.events.list.length; i++) {
1656
- var o = n.events.list[i];
1657
- if (o.id === e)
1658
- return new DayPilot.Event(o, n);
1712
+ for (var i = 0; i < r.events.list.length; i++) {
1713
+ var n = r.events.list[i];
1714
+ if (n.id === e)
1715
+ return new DayPilot.Event(n, r);
1659
1716
  }
1660
1717
  return null;
1661
- }, this.events.update = function (e) {
1718
+ }, this.events.forRange = function (e, t) { return e = new DayPilot.Date(e), t = new DayPilot.Date(t), (r.events.list || []).filter(function (i) { return a(e, t, new DayPilot.Date(i.start), new DayPilot.Date(i.end)); }).map(function (e) { return new DayPilot.Event(e, r); }); }, this.events.update = function (e) {
1662
1719
  if (e instanceof DayPilot.Event)
1663
1720
  e.commit();
1664
1721
  else if ("object" == typeof e) {
1665
- var t = n.events.find(e.id);
1722
+ var t = r.events.find(e.id);
1666
1723
  if (t) {
1667
- var i = DayPilot.indexOf(n.events.list, t.data);
1668
- n.events.list.splice(i, 1, e);
1724
+ var i = DayPilot.indexOf(r.events.list, t.data);
1725
+ r.events.list.splice(i, 1, e);
1669
1726
  }
1670
1727
  }
1671
- n._a({ "eventsOnly": !0 }), n.sa.notify();
1728
+ r.hb({ "eventsOnly": !0 }), r.sa.notify();
1672
1729
  }, this.events.remove = function (e) {
1673
1730
  var t;
1674
1731
  if (e instanceof DayPilot.Event)
1675
1732
  t = e.data;
1676
1733
  else if ("object" == typeof e) {
1677
- var i = n.events.find(e.id);
1734
+ var i = r.events.find(e.id);
1678
1735
  i && (t = i.data);
1679
1736
  }
1680
1737
  else if ("string" == typeof e || "number" == typeof e) {
1681
- var i = n.events.find(e);
1738
+ var i = r.events.find(e);
1682
1739
  i && (t = i.data);
1683
1740
  }
1684
- var a = DayPilot.indexOf(n.events.list, t);
1685
- n.events.list.splice(a, 1), n._a({ "eventsOnly": !0 }), n.sa.notify();
1741
+ var a = DayPilot.indexOf(r.events.list, t);
1742
+ r.events.list.splice(a, 1), r.hb({ "eventsOnly": !0 }), r.sa.notify();
1686
1743
  }, this.events.load = function (e, t, i) {
1687
- var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) {
1688
- var i, o = e.request;
1744
+ var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, n = function (e) {
1745
+ var i, n = e.request;
1689
1746
  try {
1690
- i = JSON.parse(o.responseText);
1747
+ i = JSON.parse(n.responseText);
1691
1748
  }
1692
1749
  catch (e) {
1693
- var r = {};
1694
- return r.exception = e, void a(r);
1750
+ var o = {};
1751
+ return o.exception = e, void a(o);
1695
1752
  }
1696
1753
  if (DayPilot.isArray(i)) {
1697
1754
  var s = {};
1698
1755
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
1699
1756
  return;
1700
- n.events.list = i, n.Ba && n._a({ "eventsOnly": !0 });
1757
+ r.events.list = i, r.Ba && r.hb({ "eventsOnly": !0 });
1701
1758
  }
1702
1759
  };
1703
- if (n.eventsLoadMethod && "POST" === n.eventsLoadMethod.toUpperCase())
1704
- DayPilot.Http.ajax({ "method": "POST", "data": { "start": n.visibleStart().toString(), "end": n.visibleEnd().toString() }, "url": e, "success": o, "error": a });
1760
+ if (r.eventsLoadMethod && "POST" === r.eventsLoadMethod.toUpperCase())
1761
+ DayPilot.Http.ajax({ "method": "POST", "data": { "start": r.visibleStart().toString(), "end": r.visibleEnd().toString() }, "url": e, "success": n, "error": a });
1705
1762
  else {
1706
- var r = e, s = "start=" + n.visibleStart().toString() + "&end=" + n.visibleEnd().toString();
1707
- r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": a });
1763
+ var o = e, s = "start=" + r.visibleStart().toString() + "&end=" + r.visibleEnd().toString();
1764
+ o += o.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": o, "success": n, "error": a });
1708
1765
  }
1709
- }, this.ab = function () {
1710
- if (n.nav.top.className !== n.K("_main")) {
1711
- n.nav.top.className = n.K("_main");
1712
- var e = n.nav.corner;
1713
- e.className = n.K("_corner"), e.firstChild.className = n.K("_corner_inner");
1714
- var t = n.nav.cornerRight;
1715
- t && (t.className = n.K("_cornerright"), t.firstChild.className = n.K("_cornerright_inner"));
1766
+ }, this.ib = function () {
1767
+ if (r.nav.top.className !== r.K("_main")) {
1768
+ r.nav.top.className = r.K("_main");
1769
+ var e = r.nav.corner;
1770
+ e.className = r.K("_corner"), e.firstChild.className = r.K("_corner_inner");
1771
+ var t = r.nav.cornerRight;
1772
+ t && (t.className = r.K("_cornerright"), t.firstChild.className = r.K("_cornerright_inner"));
1716
1773
  }
1717
1774
  }, this.update = function (e) {
1718
- if (n.O)
1775
+ if (r.O)
1719
1776
  throw new DayPilot.Exception("You are trying to update a DayPilot.Calendar instance that has been disposed.");
1720
- n.bb(e), n._a();
1721
- }, this._a = function (e) {
1777
+ r.jb(e), r.hb();
1778
+ }, this.hb = function (e) {
1722
1779
  if (this.Ba) {
1723
1780
  var e = e || {}, t = !e.eventsOnly;
1724
- n.cb(), n.W(), n.nav.top.style.cursor = "auto", t && (n.da(), n.ga(), n.ha(), n.ia(), n.ja(), n.Pa(), n.Za(), n.ab(), n.db()), n.ea(), n.fa(), n.ka(), n.clearSelection(), this.visible ? this.show() : this.hide();
1781
+ r.kb(), r.W(), r.nav.top.style.cursor = "auto", t && (r.da(), r.ga(), r.ha(), r.ia(), r.ja(), r.Wa(), r.fb(), r.ib(), r.db()), r.ea(), r.fa(), r.ka(), r.clearSelection(), this.visible ? this.show() : this.hide();
1725
1782
  }
1726
- }, this.eb = null, this.bb = function (e) {
1783
+ }, this.lb = null, this.jb = function (e) {
1727
1784
  if (e) {
1728
- var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? n.events.list = e.list : n.events.list = e; } }, "columns": { "preInit": function () { n.columns.list = this.data; } } };
1729
- this.eb = t;
1785
+ var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? r.events.list = e.list : r.events.list = e; } }, "columns": { "preInit": function () { r.columns.list = this.data; } } };
1786
+ this.lb = t;
1730
1787
  for (var i in e)
1731
1788
  if (t[i]) {
1732
1789
  var a = t[i];
1733
1790
  a.data = e[i], a.preInit && a.preInit();
1734
1791
  }
1735
1792
  else
1736
- n[i] = e[i];
1793
+ r[i] = e[i];
1737
1794
  }
1738
- }, this.fb = function () {
1739
- var e = this.eb;
1795
+ }, this.mb = function () {
1796
+ var e = this.lb;
1740
1797
  for (var t in e) {
1741
1798
  var i = e[t];
1742
1799
  i.postInit && i.postInit();
1743
1800
  }
1744
- }, this.gb = function () {
1801
+ }, this.nb = function () {
1745
1802
  if (this.id && this.id.tagName)
1746
1803
  this.nav.top = this.id;
1747
1804
  else {
@@ -1750,26 +1807,26 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1750
1807
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
1751
1808
  throw "DayPilot.Calendar: The placeholder element not found: '" + e + "'.";
1752
1809
  }
1753
- }, this.hb = {}, this.hb.events = [], this.ib = function (e) {
1754
- var t = this.hb.events, i = this.events.list[e], a = {};
1755
- for (var o in i)
1756
- a[o] = i[o];
1757
- if ("function" == typeof this.onBeforeEventRender) {
1758
- var r = {};
1759
- r.control = n, r.data = a, this.onBeforeEventRender(r);
1810
+ }, this.ob = {}, this.ob.events = [], this.pb = function (e) {
1811
+ var t = this.ob.events, i = this.events.list[e], a = {};
1812
+ for (var n in i)
1813
+ a[n] = i[n];
1814
+ if (a.start = new DayPilot.Date(i.start), a.end = new DayPilot.Date(i.end), "function" == typeof this.onBeforeEventRender) {
1815
+ var o = {};
1816
+ o.control = r, o.data = a, this.onBeforeEventRender(o);
1760
1817
  }
1761
1818
  t[e] = a;
1762
1819
  }, this.ea = function () {
1763
1820
  var e = this.events.list;
1764
- if (n.hb.events = [], e) {
1821
+ if (r.ob.events = [], e) {
1765
1822
  if (!DayPilot.isArray(e))
1766
1823
  throw new DayPilot.Exception("DayPilot.Calendar.events.list expects an array object. You supplied: " + typeof e);
1767
1824
  var t = e.length, i = 864e5;
1768
1825
  this.cache.pixels = {};
1769
1826
  var a = [];
1770
1827
  this.scrollLabels = [], this.minStart = 1e4, this.maxEnd = 0;
1771
- for (var o = 0; o < t; o++) {
1772
- var r = e[o], s = r;
1828
+ for (var n = 0; n < t; n++) {
1829
+ var o = e[n], s = o;
1773
1830
  if ("object" != typeof s)
1774
1831
  throw new DayPilot.Exception("Event data item must be an object");
1775
1832
  if (!s.start)
@@ -1778,58 +1835,57 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1778
1835
  throw new DayPilot.Exception("Event data item must specify 'end' property");
1779
1836
  if (s instanceof DayPilot.Event)
1780
1837
  throw new DayPilot.Exception("DayPilot.Calendar: DayPilot.Event object detected in events.list array. Use raw event data instead.");
1781
- r.start = new DayPilot.Date(r.start), r.end = new DayPilot.Date(r.end);
1782
1838
  }
1783
1839
  if ("function" == typeof this.onBeforeEventRender)
1784
- for (var o = 0; o < t; o++)
1785
- this.ib(o);
1786
- for (var o = 0; o < this.va.length; o++) {
1840
+ for (var n = 0; n < t; n++)
1841
+ this.pb(n);
1842
+ for (var n = 0; n < this.va.length; n++) {
1787
1843
  var l = {};
1788
1844
  l.minEnd = 1e6, l.maxStart = -1, this.scrollLabels.push(l);
1789
- var d = this.va[o];
1845
+ var d = this.va[n];
1790
1846
  d.events = [], d.lines = [], d.blocks = [];
1791
1847
  for (var c = new DayPilot.Date(d.start), u = c.getTime(), h = c.addTime(i), f = h.getTime(), m = 0; m < t; m++)
1792
1848
  if (!a[m]) {
1793
- var r = e[m], p = r.start, v = r.end, y = p.getTime(), g = v.getTime();
1849
+ var o = e[m], p = new DayPilot.Date(o.start), v = new DayPilot.Date(o.end), y = p.getTime(), g = v.getTime();
1794
1850
  if (!(g < y)) {
1795
1851
  var b = !(g <= u || y >= f);
1796
- if ("Resources" === n.viewType && (b = b && d.id === r.resource), b) {
1797
- var D = new DayPilot.Event(r, n);
1798
- D.part.dayIndex = o, D.part.start = u < y ? r.start : c, D.part.end = f > g ? r.end : h;
1799
- var x = this.getPixels(D.part.start, d.start), w = this.getPixels(D.part.end, d.start), C = x.top, P = w.top;
1800
- if (C === P && (x.cut || w.cut))
1852
+ if ("Resources" === r.viewType && (b = b && d.id === o.resource), b) {
1853
+ var D = new DayPilot.Event(o, r);
1854
+ D.part.dayIndex = n, D.part.start = u < y ? p : c, D.part.end = f > g ? v : h;
1855
+ var w = this.getPixels(D.part.start, d.start), x = this.getPixels(D.part.end, d.start), C = w.top, P = x.top;
1856
+ if (C === P && (w.cut || x.cut))
1801
1857
  continue;
1802
- var k = w.boxBottom;
1858
+ var k = x.boxBottom;
1803
1859
  D.part.top = Math.floor(C / this.cellHeight) * this.cellHeight + 1, D.part.height = Math.max(Math.ceil(k / this.cellHeight) * this.cellHeight - D.part.top, this.cellHeight - 1) + 1, D.part.barTop = Math.max(C - D.part.top - 1, 0), D.part.barHeight = Math.max(P - C - 2, 1);
1804
1860
  var p = D.part.top, v = D.part.top + D.part.height;
1805
- p > l.maxStart && (l.maxStart = p), v < l.minEnd && (l.minEnd = v), p < this.minStart && (this.minStart = p), v > this.maxEnd && (this.maxEnd = v), d.events.push(D), "function" == typeof this.onBeforeEventRender && (D.cache = this.hb.events[m]), D.part.start.getTime() === y && D.part.end.getTime() === g && (a[m] = !0);
1861
+ p > l.maxStart && (l.maxStart = p), v < l.minEnd && (l.minEnd = v), p < this.minStart && (this.minStart = p), v > this.maxEnd && (this.maxEnd = v), d.events.push(D), "function" == typeof this.onBeforeEventRender && (D.cache = this.ob.events[m]), D.part.start.getTime() === y && D.part.end.getTime() === g && (a[m] = !0);
1806
1862
  }
1807
1863
  }
1808
1864
  }
1809
1865
  }
1810
- for (var o = 0; o < this.va.length; o++) {
1811
- var d = this.va[o];
1812
- d.events.sort(this.jb);
1866
+ for (var n = 0; n < this.va.length; n++) {
1867
+ var d = this.va[n];
1868
+ d.events.sort(this.qb);
1813
1869
  for (var m = 0; m < d.events.length; m++) {
1814
- var r = d.events[m];
1815
- d.putIntoBlock(r);
1870
+ var o = d.events[m];
1871
+ d.putIntoBlock(o);
1816
1872
  }
1817
1873
  for (var m = 0; m < d.blocks.length; m++) {
1818
1874
  var _ = d.blocks[m];
1819
- _.events.sort(this.jb);
1875
+ _.events.sort(this.qb);
1820
1876
  for (var S = 0; S < _.events.length; S++) {
1821
- var r = _.events[S];
1822
- _.putIntoLine(r);
1877
+ var o = _.events[S];
1878
+ _.putIntoLine(o);
1823
1879
  }
1824
1880
  }
1825
1881
  }
1826
1882
  }
1827
- }, this.jb = function (e, t) {
1883
+ }, this.qb = function (e, t) {
1828
1884
  if (!(e && t && e.start && t.start))
1829
1885
  return 0;
1830
1886
  var i = e.start().getTime() - t.start().getTime();
1831
1887
  return 0 !== i ? i : t.end().getTime() - e.end().getTime();
1832
- }, this.debug = function (e, t) { this.debuggingEnabled && (n.debugMessages || (n.debugMessages = []), n.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.getPixels = function (e, t) {
1888
+ }, this.debug = function (e, t) { this.debuggingEnabled && (r.debugMessages || (r.debugMessages = []), r.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.getPixels = function (e, t) {
1833
1889
  t || (t = this.startDate);
1834
1890
  var i = t.getTime(), a = e.getTime(), n = this.cache.pixels[a + "_" + i];
1835
1891
  if (n)
@@ -1838,30 +1894,42 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1838
1894
  var o = 18e5, r = a - i, s = r % o, l = r - s, d = l + o;
1839
1895
  0 === s && (d = l);
1840
1896
  var c = {};
1841
- return c.cut = !1, c.top = this.kb(r), c.boxTop = this.kb(l), c.boxBottom = this.kb(d), this.cache.pixels[a + "_" + i] = c, c;
1842
- }, this.kb = function (e) { return Math.floor(this.cellHeight * e / 18e5); }, this.cb = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.fa = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.ja = function () { var e = this.Ha(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.sa = {}, this.sa.scope = null, this.sa.notify = function () { n.sa.scope && n.sa.scope["$apply"](); }, this.sa.apply = function (e) { e(); }, this.Xa = function () {
1843
- if (n.nav.scroll) {
1844
- var e = n.nav.scroll.scrollTop, t = e / (2 * n.cellHeight);
1845
- n.Ya.scrollHour = t;
1846
- }
1847
- }, this.db = function () { var e = 0; "number" == typeof n.Ya.scrollHour ? e = 2 * n.cellHeight * n.Ya.scrollHour : "Auto" === n.initScrollPos && (e = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), n.nav.scroll.scrollTop = e; }, this.getScrollY = function () { return n.nav.scroll.scrollTop; }, this.setScrollY = function (e) { n.nav.scroll.scrollTop = e, n.Xa(); }, this.lb = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof n.events.list || !n.events.list); }, this.t = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { n.visible = !0, n.nav.top.style.display = "", this.Za(); }, this.hide = function () { n.visible = !1, n.nav.top.style.display = "none"; }, this.mb = function () { this.cb(), this.da(), this.Ga(), this.ga(), this.ha(), this.Za(), this.Wa(), this.$a(), t.register(this), this.nb(), this.S("Init"); }, this.Ya = {}, this.ob = function () { this.Ya.themes = [], this.Ya.themes.push(this.theme || this.cssClassPrefix); }, this.pb = function () {
1848
- for (var e = this.Ya.themes, t = 0; t < e.length; t++) {
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()) {
1900
+ var e = r.nav.scroll.scrollTop, t = e / (2 * r.cellHeight);
1901
+ r.tb.scrollHour = t;
1902
+ }
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++) {
1849
1905
  var i = e[t];
1850
1906
  DayPilot.Util.removeClass(this.nav.top, i + "_main");
1851
1907
  }
1852
- this.Ya.themes = [];
1853
- }, this.qb = function () {
1908
+ this.tb.themes = [];
1909
+ }, this.zb = function () {
1854
1910
  if (this.afterRender(null, !1), "function" == typeof this.onAfterRender) {
1855
1911
  var e = {};
1856
1912
  e.isCallBack = !1, this.onAfterRender(e);
1857
1913
  }
1858
- }, this.rb = function () {
1859
- if ("function" == typeof this.onInit && !this.sb) {
1860
- this.sb = !0;
1914
+ }, this.Ab = function () {
1915
+ if ("function" == typeof this.onInit && !this.Bb) {
1916
+ this.Bb = !0;
1861
1917
  var e = {};
1862
1918
  this.onInit(e);
1863
1919
  }
1864
- }, this.tb = function () { var e = n.nav.top; return !!e && (e.offsetWidth > 0 && e.offsetHeight > 0); }, this.nb = function () { var e = n.tb; e() || (n.V = setInterval(function () { e() && (n.Wa(), n.Za(), clearInterval(n.V)); }, 100)); }, this.Ka = function (e, t) { return n.aa.ba() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.loadOptions = n.bb, this.internal.xssTextHtml = n.Ka, this.init = function () { this.gb(); var e = this.lb(); return this.ob(), e ? void this.mb() : (this.cb(), this.da(), this.ea(), this.Ga(), this.ga(), this.ha(), this.t(), this.Za(), this.Wa(), this.$a(), t.register(this), this.events && (this.fa(), this.ka()), this.qb(), this.rb(), this.nb(), this.Ba = !0, this); }, this.Init = this.init, this.bb(i);
1920
+ }, this.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;
1922
+ if ("function" == typeof a.createVNode && "function" == typeof a.render) {
1923
+ var n = a.createVNode(e, i);
1924
+ a.render(n, t);
1925
+ }
1926
+ }, this.Ha.La = function (e, t) {
1927
+ var i = r.Ha.Ga;
1928
+ if ("function" == typeof i.render) {
1929
+ var a = e;
1930
+ DayPilot.isArray(e) && (a = i.h("div", null, e)), i.render(a, t);
1931
+ }
1932
+ }, this.Ha.Ja = function (e) { var t = r.Ha.Ga; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = r.jb, this.internal.xssTextHtml = r.Ra, this.internal.enableVue = function (e) { r.Ha.Ga = e; }, this.internal.vueRef = function () { return r.Ha.Ga; }, this.internal.vueRendering = function () { return r.Ha.Ia; }, this.init = function () { this.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);
1865
1933
  }, DayPilot.CalendarColumn = function (e, t) { var i = this; i.id = e.id, i.name = e.name, i.data = e.data, i.start = new DayPilot.Date(e.start), i.calendar = t, i.toJSON = function () { var e = {}; return e.id = this.id, this.start && (e.start = this.start.toString()), e.name = this.name, e; }; }, DayPilot.Calendar = t.Calendar, "undefined" != typeof jQuery && !function (e) {
1866
1934
  e.fn.daypilotCalendar = function (e) {
1867
1935
  var t = null, i = this.each(function () {
@@ -1893,7 +1961,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1893
1961
  l.call(t, d, function (e) {
1894
1962
  for (var t in e)
1895
1963
  n[t] = e[t];
1896
- n.update(), n.rb();
1964
+ n.update(), n.Ab();
1897
1965
  }, !0), l.call(t, c, function (e) { n.events.list = e, n.update(); }, !0);
1898
1966
  } };
1899
1967
  }]);
@@ -1903,13 +1971,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1903
1971
  var DayPilot = {};
1904
1972
  if (function () {
1905
1973
  "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) {
1906
- this.v = "2024.4.575-lite";
1974
+ this.v = "2024.4.622-lite";
1907
1975
  var t = "navigator_" + (new Date).getTime(), i = this;
1908
1976
  this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () {
1909
1977
  if (this.locale = "en-us", this.target = null, this.targetAlignment = "left", this.resetTarget = !0, this.pattern = this.aa.locale().datePattern, this.theme = "navigator_default", this.patterns = [], this.zIndex = null, e)
1910
1978
  for (var t in e)
1911
1979
  this[t] = e[t];
1912
- }, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.ub(); this.resetTarget && !e ? this.vb(this.date) : this.resetTarget || (i.date = e); var t = this.C(); return t && t.addEventListener("input", function () { i.date = i.ub(), i.date && i.navigator.select(i.date, { dontNotify: !0 }); }), document.addEventListener("mousedown", function () { i.close(); }), this; }, this.close = function () { this.tb && (this.tb = !1, this.navigator && this.navigator.dispose(), this.div.innerHTML = "", this.div && this.div.parentNode === document.body && document.body.removeChild(this.div)); }, this.setDate = function (e) { this.date = new DayPilot.Date(e), this.vb(this.date); }, this.ub = function () {
1980
+ }, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.Db(); this.resetTarget && !e ? this.Eb(this.date) : this.resetTarget || (i.date = e); var t = this.C(); return t && t.addEventListener("input", function () { i.date = i.Db(), i.date && i.navigator.select(i.date, { dontNotify: !0 }); }), document.addEventListener("mousedown", function () { i.close(); }), this; }, this.close = function () { this.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 () {
1913
1981
  var e = this.C();
1914
1982
  if (!e)
1915
1983
  return this.date;
@@ -1922,26 +1990,26 @@ if (function () {
1922
1990
  a = DayPilot.Date.parse(t, i.patterns[n]);
1923
1991
  }
1924
1992
  return a;
1925
- }, this.vb = function (e) {
1993
+ }, this.Eb = function (e) {
1926
1994
  var t = this.C();
1927
1995
  if (t) {
1928
1996
  var a = e.toString(i.pattern, i.locale);
1929
1997
  "INPUT" === t.tagName ? t.value = a : t.innerHTML = a;
1930
1998
  }
1931
- }, 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 () {
1932
- if (!this.tb) {
1999
+ }, this.aa = {}, this.aa.locale = function () { return DayPilot.Locale.find(i.locale); }, this.C = function () { var e = this.target; return e && e.nodeType && 1 === e.nodeType ? e : document.getElementById(e); }, Object.defineProperty(this, "visible", { get: function () { return i.sb; } }), this.show = function () {
2000
+ if (!this.sb) {
1933
2001
  var e = this.C(), a = this.navigator, a = new DayPilot.Navigator(t);
1934
- a.api = 2, a.cssOnly = !0, a.theme = i.theme, a.weekStarts = "Auto", a.locale = i.locale, a.onTimeRangeSelected = function (e) { i.date = e.start; var t = e.start.addTime(a.wb), n = t.toString(i.pattern, i.locale), e = {}; e.start = t, e.date = t, e.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(e), e.preventDefault.value) || (i.vb(n), i.close(), "function" == typeof i.onTimeRangeSelected && i.onTimeRangeSelected(e)); }, this.navigator = a;
2002
+ a.api = 2, a.cssOnly = !0, a.theme = i.theme, a.weekStarts = "Auto", a.locale = i.locale, a.onTimeRangeSelected = function (e) { i.date = e.start; var t = e.start.addTime(a.Fb), n = t.toString(i.pattern, i.locale), e = {}; e.start = t, e.date = t, e.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(e), e.preventDefault.value) || (i.Eb(n), i.close(), "function" == typeof i.onTimeRangeSelected && i.onTimeRangeSelected(e)); }, this.navigator = a;
1935
2003
  var n = DayPilot.abs(e), o = e.offsetHeight, r = i.targetAlignment, s = document.createElement("div");
1936
2004
  s.style.position = "absolute", "left" === r && (s.style.left = n.x + "px"), s.style.top = n.y + o + "px", i.zIndex && (s.style.zIndex = i.zIndex);
1937
2005
  var l = document.createElement("div");
1938
2006
  l.id = t, s.appendChild(l), s.addEventListener("mousedown", function (e) { var e = e || window.event; e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(); }), document.body.appendChild(s), this.div = s;
1939
- var d = i.ub() || (new DayPilot.Date).getDatePart();
1940
- if (a.startDate = d, a.wb = d.getTimePart(), a.selectionDay = d.getDatePart(), a.init(), "right" === r) {
2007
+ var d = i.Db() || (new DayPilot.Date).getDatePart();
2008
+ if (a.startDate = d, a.Fb = d.getTimePart(), a.selectionDay = d.getDatePart(), a.init(), "right" === r) {
1941
2009
  var c = n.x + e.offsetWidth - a.nav.top.offsetWidth;
1942
2010
  s.style.left = c + "px";
1943
2011
  }
1944
- this.tb = !0, this.onShow && this.onShow();
2012
+ this.sb = !0, this.onShow && this.onShow();
1945
2013
  }
1946
2014
  }, this.prepare(), this.init();
1947
2015
  });
@@ -1953,10 +2021,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1953
2021
  var e = function () { }, t = {};
1954
2022
  t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) {
1955
2023
  var a = this, n = null;
1956
- this.v = "2024.4.575-lite", this.zIndex = 120, this.cssClassPrefix = "menu_default", this.cssOnly = !0, this.menuTitle = null, this.showMenuTitle = !1, this.hideOnMouseOut = !1, this.hideAfter = 200, this.theme = null, this.onShow = null, this.xb = function () { }, i && DayPilot.isArray(i) && (this.items = i), this.toJSON = function () { return null; }, this.show = function (i, o) {
2024
+ this.v = "2024.4.622-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) {
1957
2025
  o = o || {};
1958
2026
  var r = null;
1959
- if (i ? "string" == typeof i.id || "number" == typeof i.id ? r = i.id : "function" == typeof i.id ? r = i.id() : "function" == typeof i.value && (r = i.value()) : r = null, "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), o.submenu || t.menuClean(), this.xb.submenu = null, null !== t.mouse) {
2027
+ if (i ? "string" == typeof i.id || "number" == typeof i.id ? r = i.id : "function" == typeof i.id ? r = i.id() : "function" == typeof i.value && (r = i.value()) : r = null, "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), o.submenu || t.menuClean(), this.Gb.submenu = null, null !== t.mouse) {
1960
2028
  a.cssOnly || (a.cssOnly = !0);
1961
2029
  var s = null;
1962
2030
  if (i && i.isRow && i.$.row.task ? (s = new DayPilot.Task(i.$.row.task, i.calendar), s.menuType = "resource") : s = i && i.isEvent && i.data.task ? new DayPilot.Task(i, i.calendar) : i, "function" == typeof a.onShow) {
@@ -1965,15 +2033,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1965
2033
  return;
1966
2034
  }
1967
2035
  var d = document.createElement("div");
1968
- if (d.style.position = "absolute", d.style.top = "0px", d.style.left = "0px", d.style.display = "none", d.style.overflow = "hidden", d.style.zIndex = this.zIndex + 1, d.className = this.yb("main"), d.onclick = function (e) { e.cancelBubble = !0, this.parentNode.removeChild(this); }, this.hideOnMouseOut && (d.onmousemove = function (e) { clearTimeout(t.hideTimeout); }, d.onmouseleave = function (e) { a.delayedHide({ "hideParent": !0 }); }), !this.items || 0 === this.items.length)
2036
+ if (d.style.position = "absolute", d.style.top = "0px", d.style.left = "0px", d.style.display = "none", d.style.overflow = "hidden", d.style.zIndex = this.zIndex + 1, d.className = this.Hb("main"), d.onclick = function (e) { e.cancelBubble = !0, this.parentNode.removeChild(this); }, this.hideOnMouseOut && (d.onmousemove = function (e) { clearTimeout(t.hideTimeout); }, d.onmouseleave = function (e) { a.delayedHide({ "hideParent": !0 }); }), !this.items || 0 === this.items.length)
1969
2037
  throw "No menu items defined.";
1970
2038
  if (this.showMenuTitle) {
1971
2039
  var c = document.createElement("div");
1972
- c.innerHTML = this.menuTitle, c.className = this.yb("title"), d.appendChild(c);
2040
+ c.innerHTML = this.menuTitle, c.className = this.Hb("title"), d.appendChild(c);
1973
2041
  }
1974
2042
  for (var u = 0; u < this.items.length; u++) {
1975
2043
  var h = this.items[u], f = document.createElement("div");
1976
- if (DayPilot.Util.addClass(f, this.yb("item")), h.items && (DayPilot.Util.addClass(f, this.yb("item_haschildren")), DayPilot.Util.addClass(d, this.yb("withchildren"))), "undefined" != typeof h && !h.hidden) {
2044
+ if (DayPilot.Util.addClass(f, this.Hb("item")), h.items && (DayPilot.Util.addClass(f, this.Hb("item_haschildren")), DayPilot.Util.addClass(d, this.Hb("withchildren"))), "undefined" != typeof h && !h.hidden) {
1977
2045
  if ("-" === h.text) {
1978
2046
  var m = document.createElement("div");
1979
2047
  m.addEventListener("click", function (e) { e.stopPropagation(); }), f.appendChild(m);
@@ -1981,7 +2049,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1981
2049
  else {
1982
2050
  var p = document.createElement("a");
1983
2051
  if (p.style.position = "relative", p.style.display = "block", h.cssClass && DayPilot.Util.addClass(p, h.cssClass), h.disabled)
1984
- DayPilot.Util.addClass(p, a.yb("item_disabled"));
2052
+ DayPilot.Util.addClass(p, a.Hb("item_disabled"));
1985
2053
  else {
1986
2054
  if (h.onclick || h.onClick) {
1987
2055
  p.item = h, p.onclick = function (e, t) {
@@ -2009,7 +2077,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2009
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));
2010
2078
  }
2011
2079
  if (h.items && !h.disabled) {
2012
- var y = function (e, t) { return function (i) { i.preventDefault(), i.stopPropagation(), a.zb(e, t); }; };
2080
+ var y = function (e, t) { return function (i) { i.preventDefault(), i.stopPropagation(), a.Ib(e, t); }; };
2013
2081
  p.ontouchend = y(h, p);
2014
2082
  }
2015
2083
  if (h.onclick)
@@ -2045,23 +2113,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2045
2113
  }
2046
2114
  h.items && p.addEventListener("click", function (e) { e.stopPropagation(); }), p.source = s, p.menuSource = i;
2047
2115
  var g = document.createElement("span");
2048
- if (g.className = a.yb("item_text"), g.innerHTML = DayPilot.Util.escapeTextHtml(h.text, h.html), p.appendChild(g), h.image) {
2116
+ if (g.className = a.Hb("item_text"), g.innerHTML = DayPilot.Util.escapeTextHtml(h.text, h.html), p.appendChild(g), h.image) {
2049
2117
  var b = document.createElement("img");
2050
2118
  b.src = h.image, b.style.position = "absolute", b.style.top = "0px", b.style.left = "0px", p.appendChild(b);
2051
2119
  }
2052
2120
  if (h.icon) {
2053
2121
  var D = document.createElement("span");
2054
- D.className = a.yb("item_icon");
2055
- var x = document.createElement("i");
2056
- x.className = h.icon, D.appendChild(x), p.appendChild(D);
2122
+ D.className = a.Hb("item_icon");
2123
+ var w = document.createElement("i");
2124
+ w.className = h.icon, D.appendChild(w), p.appendChild(D);
2057
2125
  }
2058
2126
  if (h.symbol) {
2059
- var w = "http://www.w3.org/2000/svg", C = document.createElementNS(w, "svg");
2127
+ var x = "http://www.w3.org/2000/svg", C = document.createElementNS(x, "svg");
2060
2128
  C.setAttribute("width", "100%"), C.setAttribute("height", "100%");
2061
- var P = document.createElementNS(w, "use");
2129
+ var P = document.createElementNS(x, "use");
2062
2130
  P.setAttribute("href", h.symbol), C.appendChild(P);
2063
2131
  var k = document.createElement("span");
2064
- k.className = a.yb("item_symbol"), k.style.position = "absolute", k.style.top = "0px", k.style.left = "0px", k.appendChild(C), p.appendChild(k);
2132
+ k.className = a.Hb("item_symbol"), k.style.position = "absolute", k.style.top = "0px", k.style.left = "0px", k.appendChild(C), p.appendChild(k);
2065
2133
  }
2066
2134
  var _ = function (e, i) {
2067
2135
  return function () {
@@ -2071,7 +2139,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2071
2139
  return;
2072
2140
  clearTimeout(o.timeout), t.waitingSubmenu = null;
2073
2141
  }
2074
- e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = n, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, a.zb(n, i); }, 300));
2142
+ e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = n, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, a.Ib(n, i); }, 300));
2075
2143
  };
2076
2144
  };
2077
2145
  p.onmouseover = _(h, p), f.appendChild(p);
@@ -2080,10 +2148,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2080
2148
  }
2081
2149
  }
2082
2150
  var S = function (e) { window.setTimeout(function () { t.menuClean(), DayPilot.MenuBar.deactivate(); }, 100); };
2083
- d.onclick = S, d.ontouchend = S, d.onmousedown = function (e) { e = e || window.event, e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(); }, d.oncontextmenu = function () { return !1; }, document.body.appendChild(d), a.xb.visible = !0, a.xb.source = i, d.style.display = "";
2084
- var M = d.offsetHeight, T = d.offsetWidth;
2151
+ d.onclick = S, d.ontouchend = S, d.onmousedown = function (e) { e = e || window.event, e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(); }, d.oncontextmenu = function () { return !1; }, document.body.appendChild(d), a.Gb.visible = !0, a.Gb.source = i, d.style.display = "";
2152
+ var M = d.offsetHeight, H = d.offsetWidth;
2085
2153
  d.style.display = "none";
2086
- var A = document.documentElement.clientHeight, H = window.innerWidth, E = "number" == typeof o.windowMargin ? o.windowMargin : 5;
2154
+ var T = document.documentElement.clientHeight, A = window.innerWidth, E = "number" == typeof o.windowMargin ? o.windowMargin : 5;
2087
2155
  if (function () {
2088
2156
  var e = o.initiator;
2089
2157
  if (e) {
@@ -2095,36 +2163,36 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2095
2163
  }
2096
2164
  }(), function () {
2097
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;
2098
- if (i - a > A - M && 0 !== A) {
2099
- var r = i - a - (A - M) + E;
2166
+ if (i - a > T - M && 0 !== T) {
2167
+ var r = i - a - (T - M) + E;
2100
2168
  d.style.top = i - r + "px";
2101
2169
  }
2102
2170
  else
2103
2171
  d.style.top = i + "px";
2104
- if ("right" === o.align && (e -= T), e - n > H - T && 0 !== H) {
2105
- var s = e - n - (H - T) + E;
2172
+ if ("right" === o.align && (e -= H), e - n > A - H && 0 !== A) {
2173
+ var s = e - n - (A - H) + E;
2106
2174
  d.style.left = e - s + "px";
2107
2175
  }
2108
2176
  else
2109
2177
  d.style.left = e + "px";
2110
2178
  }(), o.parentLink) {
2111
- var N = o.parentLink, I = parseInt(new DayPilot.StyleReader(d).get("border-top-width")), O = DayPilot.abs(o.parentLink.parentNode), R = O.x + N.offsetWidth, U = O.y - I;
2112
- R + T > H && (R = Math.max(0, O.x - T));
2113
- var z = document.body.scrollTop + document.documentElement.scrollTop;
2114
- U + M - z > A && (U = Math.max(0, A - M + z)), d.style.left = R + "px", d.style.top = U + "px";
2179
+ var N = o.parentLink, I = parseInt(new DayPilot.StyleReader(d).get("border-top-width")), R = DayPilot.abs(o.parentLink.parentNode), B = R.x + N.offsetWidth, z = R.y - I;
2180
+ B + H > 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";
2115
2183
  }
2116
- d.style.display = "", this.addShadow(d), this.xb.div = d, o.submenu || (DayPilot.Menu.active = this);
2184
+ d.style.display = "", this.addShadow(d), this.Gb.div = d, o.submenu || (DayPilot.Menu.active = this);
2117
2185
  }
2118
- }, this.zb = function (e, t) {
2186
+ }, this.Ib = function (e, t) {
2119
2187
  var i = e, n = t.source;
2120
- if ((!a.xb.submenu || a.xb.submenu.item !== e) && (a.xb.submenu && a.xb.submenu.item !== e && (DayPilot.Util.removeClass(a.xb.submenu.link.parentNode, a.yb("item_haschildren_active")), a.xb.submenu.menu.hide(), a.xb.submenu = null), e.items)) {
2188
+ if ((!a.Gb.submenu || a.Gb.submenu.item !== e) && (a.Gb.submenu && a.Gb.submenu.item !== e && (DayPilot.Util.removeClass(a.Gb.submenu.link.parentNode, a.Hb("item_haschildren_active")), a.Gb.submenu.menu.hide(), a.Gb.submenu = null), e.items)) {
2121
2189
  var o = a.cloneOptions();
2122
- o.items = e.items, a.xb.submenu = {}, a.xb.submenu.menu = new DayPilot.Menu(o), a.xb.submenu.menu.Ab = a, a.xb.submenu.menu.show(n, { "submenu": !0, "parentLink": t, "parentItem": i }), a.xb.submenu.item = e, a.xb.submenu.link = t, DayPilot.Util.addClass(t.parentNode, a.yb("item_haschildren_active"));
2190
+ o.items = e.items, a.Gb.submenu = {}, a.Gb.submenu.menu = new DayPilot.Menu(o), a.Gb.submenu.menu.Jb = a, a.Gb.submenu.menu.show(n, { "submenu": !0, "parentLink": t, "parentItem": i }), a.Gb.submenu.item = e, a.Gb.submenu.link = t, DayPilot.Util.addClass(t.parentNode, a.Hb("item_haschildren_active"));
2123
2191
  }
2124
- }, this.yb = function (e) { var t = this.theme || this.cssClassPrefix, i = this.cssOnly ? "_" : ""; return t ? t + i + e : ""; }, this.cloneOptions = function () { return DayPilot.Util.copyProps(o, {}, ["cssClassPrefix", "theme", "hideAfter", "hideOnMouseOut", "zIndex"]); }, this.hide = function (e) {
2125
- e = e || {}, this.xb.submenu && this.xb.submenu.menu.hide();
2192
+ }, this.Hb = function (e) { var t = this.theme || this.cssClassPrefix, i = this.cssOnly ? "_" : ""; return t ? t + i + e : ""; }, this.cloneOptions = function () { return DayPilot.Util.copyProps(o, {}, ["cssClassPrefix", "theme", "hideAfter", "hideOnMouseOut", "zIndex"]); }, this.hide = function (e) {
2193
+ e = e || {}, this.Gb.submenu && this.Gb.submenu.menu.hide();
2126
2194
  var i = t.waitingSubmenu;
2127
- if (i && (t.waitingSubmenu = null, clearTimeout(i.timeout)), this.removeShadow(), this.xb.div && this.xb.div.parentNode === document.body && document.body.removeChild(this.xb.div), n && (DayPilot.de(n), n = null), a.xb.visible = !1, a.xb.source = null, a.Ab && e.hideParent && a.Ab.hide(e), DayPilot.Menu.active === a && (DayPilot.Menu.active = null), "function" == typeof this.onHide) {
2195
+ if (i && (t.waitingSubmenu = null, clearTimeout(i.timeout)), this.removeShadow(), this.Gb.div && this.Gb.div.parentNode === document.body && document.body.removeChild(this.Gb.div), n && (DayPilot.de(n), n = null), a.Gb.visible = !1, a.Gb.source = null, a.Jb && e.hideParent && a.Jb.hide(e), DayPilot.Menu.active === a && (DayPilot.Menu.active = null), "function" == typeof this.onHide) {
2128
2196
  var o = {};
2129
2197
  this.onHide(o);
2130
2198
  }
@@ -2138,28 +2206,28 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2138
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;
2139
2207
  for (var a in t)
2140
2208
  this[a] = t[a];
2141
- this.Bb = function (e) { return this.theme + "_" + e; }, this.t = function () {
2209
+ this.Kb = function (e) { return this.theme + "_" + e; }, this.t = function () {
2142
2210
  this.nav.top = document.getElementById(e);
2143
2211
  var t = this.nav.top;
2144
- t.className = this.Bb("main"), DayPilot.list(i.items).forEach(function (e) {
2212
+ t.className = this.Kb("main"), DayPilot.list(i.items).forEach(function (e) {
2145
2213
  var a = document.createElement("span");
2146
- a.innerHTML = DayPilot.Util.escapeTextHtml(e.text, e.html), a.className = i.Bb("item"), e.cssClass && a.classList.add(e.cssClass), a.data = e, a.onclick = function (t) {
2214
+ a.innerHTML = DayPilot.Util.escapeTextHtml(e.text, e.html), a.className = i.Kb("item"), e.cssClass && a.classList.add(e.cssClass), a.data = e, a.onclick = function (t) {
2147
2215
  if (i.active && i.active.item === e)
2148
- i.Cb();
2216
+ i.Lb();
2149
2217
  else if (e.children)
2150
- return void i.Db(a);
2218
+ return void i.Mb(a);
2151
2219
  if ("function" == typeof e.onClick) {
2152
2220
  var n = {};
2153
2221
  n.item = e, n.originalEvent = t, e.onClick(n);
2154
2222
  }
2155
- }, a.onmousedown = function (e) { e.stopPropagation(); }, a.onmouseover = function () { i.active && i.active.item !== e && i.Db(a); }, t.appendChild(a), i.elements.items.push(a);
2223
+ }, a.onmousedown = function (e) { e.stopPropagation(); }, a.onmouseover = function () { i.active && i.active.item !== e && i.Mb(a); }, t.appendChild(a), i.elements.items.push(a);
2156
2224
  });
2157
- }, this.Cb = function () { var e = i.Bb("item_active"); i.elements.items.forEach(function (t) { DayPilot.Util.removeClass(t, e); }), i.active && i.active.menu && i.active.menu.hide(), i.active = null; }, this.Eb = function (e) { return !!i.active && i.active.item === e.data; }, this.Db = function (e) {
2158
- if (!i.Eb(e)) {
2159
- i.Cb();
2225
+ }, this.Lb = function () { var e = i.Kb("item_active"); i.elements.items.forEach(function (t) { DayPilot.Util.removeClass(t, e); }), i.active && i.active.menu && i.active.menu.hide(), i.active = null; }, this.Nb = function (e) { return !!i.active && i.active.item === e.data; }, this.Mb = function (e) {
2226
+ if (!i.Nb(e)) {
2227
+ i.Lb();
2160
2228
  var t = e.data, a = i.active = {};
2161
2229
  a.item = t, a.div = e;
2162
- var n = i.Bb("item_active");
2230
+ var n = i.Kb("item_active");
2163
2231
  DayPilot.Util.addClass(e, n);
2164
2232
  var o = DayPilot.abs(e);
2165
2233
  if (t.children) {
@@ -2170,7 +2238,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2170
2238
  DayPilot.MenuBar.active = i;
2171
2239
  }
2172
2240
  }, this.init = function () { return this.t(), this.Ba = !0, this; }, this.dispose = function () { this.Ba && (this.nav.top.innerHTML = "", this.elements.items = []); };
2173
- }, DayPilot.MenuBar.deactivate = function () { DayPilot.MenuBar.active && (DayPilot.MenuBar.active.Cb(), DayPilot.MenuBar.active = null); }, t.menuClean = function () { "undefined" != typeof DayPilot.Menu.active && DayPilot.Menu.active && (DayPilot.Menu.active.hide(), DayPilot.Menu.active = null); }, t.mouseDown = function (e) { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.wheel = function (e) { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.mouseMove = function (e) { "undefined" != typeof t && (t.mouse = t.mousePosition(e)); }, t.touchMove = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchStart = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchEnd = function (e) { }, t.touchPosition = function (e) {
2241
+ }, DayPilot.MenuBar.deactivate = function () { DayPilot.MenuBar.active && (DayPilot.MenuBar.active.Lb(), DayPilot.MenuBar.active = null); }, t.menuClean = function () { "undefined" != typeof DayPilot.Menu.active && DayPilot.Menu.active && (DayPilot.Menu.active.hide(), DayPilot.Menu.active = null); }, t.mouseDown = function (e) { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.wheel = function (e) { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.mouseMove = function (e) { "undefined" != typeof t && (t.mouse = t.mousePosition(e)); }, t.touchMove = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchStart = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchEnd = function (e) { }, t.touchPosition = function (e) {
2174
2242
  if (!e || !e.touches)
2175
2243
  return null;
2176
2244
  var t = e.touches[0], i = {};
@@ -2179,7 +2247,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2179
2247
  if (e = e || {}, e.calendar) {
2180
2248
  var i = DayPilot.Menu.active;
2181
2249
  if (i) {
2182
- var a = i.xb.source;
2250
+ var a = i.Gb.source;
2183
2251
  a && a.calendar === e.calendar && t.menuClean();
2184
2252
  }
2185
2253
  }
@@ -2253,36 +2321,35 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2253
2321
  }
2254
2322
  }, e;
2255
2323
  }, a = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxwYXRoCiAgICAgICBpZD0icGF0aDMxNzMiCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojOTk5OTk5O3N0cm9rZS13aWR0aDoxLjg1MTk2ODUzO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZSIKICAgICAgIGQ9Ik0gMC45NTQxNDgzOCwwLjY4MTYwMzEgNS4wMzkwNjI1LDUuNDExNTM4NiA5LjEyMzk3NjYsMC42ODE2MDMxIgogICAgICAgIC8+CiAgPC9nPgo8L3N2Zz4K", n = new i;
2256
- 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;"),
2257
- 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) {
2324
+ n.add(".modal_default_main", "border: 10px solid #ccc; max-width: 90%;"), n.add(".modal_default_main:focus", "outline: none;"), n.add(".modal_default_content", "padding: 10px 0px;"), n.add(".modal_default_inner", "padding: 20px;"), n.add(".modal_default_input", "padding: 10px 0px;"), n.add(".modal_default_buttons", "margin-top: 10px;"), n.add(".modal_default_buttons", "padding: 10px 0px;"), n.add(".modal_default_form_item", "padding: 10px 0px; position: relative;"), n.add(".modal_default_form_item_level1", "border-left: 2px solid #ccc; margin-left: 10px; padding-left: 20px;"), n.add(".modal_default_form_item.modal_default_form_title", "font-size: 1.5rem; font-weight: bold;"), n.add(".modal_default_form_item input[type=text]", "width: 100%; box-sizing: border-box;"), n.add(".modal_default_form_item textarea", "width: 100%; height: 200px; box-sizing: border-box;"), n.add(".modal_default_form_item input[type=select]", "width: 100%; box-sizing: border-box;"), n.add(".modal_default_form_item label", "display: block;"), n.add(".modal_default_form_item select", "width: 100%; box-sizing: border-box;"), n.add(".modal_default_form_item_label", "margin: 2px 0px;"), n.add(".modal_default_form_item_image img", "max-width: 100%; height: auto;"), n.add(".modal_default_form_item_invalid", ""), n.add(".modal_default_form_item_invalid_message", "position: absolute; right: 0px; top: 9px; background-color: red; color: #ffffff; padding: 2px; border-radius: 2px;"), n.add(".modal_default_background", "opacity: 0.5; background-color: #000;"), n.add(".modal_default_ok", "padding: 3px; width: 80px;"), n.add(".modal_default_cancel", "padding: 3px; width: 80px;"), n.add(".modal_default_form_item_date", "position: relative;"), n.add(".modal_default_form_item_date:after", "content: ''; position: absolute; right: 7px; top: 50%; margin-top: 3px; width: 10px; height: 15px; background-image:url(" + "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojY2NjY2NjO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjM4MDM3MzM2O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDE5MjgiCiAgICAgICB3aWR0aD0iOS45MTUzMDYxIgogICAgICAgaGVpZ2h0PSIxMS4zNjkzNyIKICAgICAgIHg9IjAuMTE3MTg3NSIKICAgICAgIHk9Ii0zLjAwOTk5NTciCiAgICAgICByeT0iMS4zMTE4NTA1IiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNjY2NjY2M7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNTk4MTQwMTI7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MTkzMCIKICAgICAgIHdpZHRoPSIxLjUzNDQxMzYiCiAgICAgICBoZWlnaHQ9IjIuMjE5ODI1IgogICAgICAgeD0iMi4xNTU4NDgzIgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHJ5PSIwLjY3MTc4OTE3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iMS41MjM5NTA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QxOTQ4IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjY3MTc4OTE3IgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHg9IjYuNDUyNzIzNSIKICAgICAgIGhlaWdodD0iMi4yMTk4MjUiCiAgICAgICB3aWR0aD0iMS41MzQ0MTM2IgogICAgICAgaWQ9InJlY3QyMDAzIgogICAgICAgc3R5bGU9ImZpbGw6I2NjY2NjYztmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS41OTgxNDAxMjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAwNSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIHk9Ii0xLjE2NTg0NjYiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iNi45OTI3MDA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDA3IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAxMyIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjEuNTIzOTUwNiIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHJ5PSIwLjI5NjAxNDciIC8+CiAgICA8cmVjdAogICAgICAgcnk9IjAuMjk2MDE0NyIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGlkPSJyZWN0MjAxNSIKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIgLz4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDIwMTciCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB4PSI2Ljk5MjcwMDYiCiAgICAgICB5PSIxLjgwMjkwMzQiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSI0LjczMjU5MDciCiAgICAgICB4PSIxLjU2MzAxMzEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBpZD0icmVjdDIwMTkiCiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiIC8+CiAgICA8cmVjdAogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgaWQ9InJlY3QyMDIxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgeD0iNC4yNTgzMjU2IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgcnk9IjAuMjk2MDE0NyIgLz4KICAgIDxyZWN0CiAgICAgICByeT0iMC4yOTYwMTQ3IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgeD0iNy4wMzE3NjMxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDIzIgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogIDwvZz4KPC9zdmc+Cg==" + ")"), "undefined" != typeof navigator && navigator.userAgent.indexOf("Edge") !== -1 && n.add(".modal_default_form_item_date input::-ms-clear", "display: none;"), n.add(".modal_default_form_item_scrollable_scroll", "width: 100%; height: 200px; box-sizing: border-box; border: 1px solid #ccc; overflow-y: auto;"), n.add(".modal_default_form_item_scrollable_scroll_content", "padding: 5px;"), n.add(".modal_default_form_item_searchable", "position: relative;"), n.add(".modal_default_form_item_searchable_icon", ""), n.add(".modal_default_form_item_searchable_icon:after", "content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url(" + a + ");"), n.add(".modal_default_form_item_searchable_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), n.add(".modal_default_form_item_searchable_list_item", "background: white; padding: 2px; cursor: default;"), n.add(".modal_default_form_item_searchable_list_item_highlight", "background: #ccc;"), n.add(".modal_default_form_item_time", "position: relative;"), n.add(".modal_default_form_item_time_icon", ""), n.add(".modal_default_form_item_time_icon:after", "content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url(" + a + ");"), n.add(".modal_default_form_item_time_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), n.add(".modal_default_form_item_time_list_item", "background: white; padding: 2px; cursor: default;"), n.add(".modal_default_form_item_time_list_item_highlight", "background: #ccc;"), n.add(".modal_default_form_item_datetime_parent", "display: flex;"), n.add(".modal_default_form_item_datetime .modal_default_form_item_time_main", "margin-left: 5px;"), n.add(".modal_default_form_item_datetime input[type='text'].modal_default_input_date ", ""), n.add(".modal_default_form_item_tabular_main", "margin-top: 10px;"), n.add(".modal_default_form_item_tabular_table", "display: table; width: 100%; xbackground-color: #fff; border-collapse: collapse;"), n.add(".modal_default_form_item_tabular_tbody", "display: table-row-group;"), n.add(".modal_default_form_item_tabular_row", "display: table-row;"), n.add(".modal_default_form_item_tabular_row.modal_default_form_item_tabular_header", ""), n.add(".modal_default_form_item_tabular_cell.modal_default_form_item_tabular_rowaction", "padding: 0px; width: 23px;"), n.add(".modal_default_form_item_tabular_cell", "display: table-cell; border: 0px; padding: 2px 2px 2px 0px; cursor: default; vertical-align: bottom;"), n.add(".modal_default_form_item_tabular_header .modal_default_form_item_tabular_cell", "padding-left: 0px; padding-bottom: 0px;"), n.add(".modal_default_form_item_tabular_table input[type=text], .modal_default_form_item_tabular_table input[type=number]", "width:100%; box-sizing: border-box;"), n.add(".modal_default_form_item_tabular_table select", "width:100%; height:100%; box-sizing: border-box;"), n.add(".modal_default_form_item_tabular_plus", "display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"), n.add(".modal_default_form_item_tabular_plus:after", "content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSA1LjAgMC41IEwgNS4wIDkuNSBNIDAuNSA1LjAgTCA5LjUgNS4wJyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"), n.add(".modal_default_form_item_tabular_delete", "display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"), n.add(".modal_default_form_item_tabular_delete:after", "content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgOS41IDkuNSBNIDAuNSA5LjUgTCA5LjUgMC41JyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"), n.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_plus", "display: none;"), n.add(".modal_default_form_item_tabular_plus_max.modal_default_form_item_tabular_plus", "display: none;"), n.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_delete", "visibility: hidden;"), n.add(".modal_default_form_item_tabular_empty", "height: 1px; margin: 5px 23px 5px 0px; background-color: #ccc;"), n.add(".modal_default_form_item_tabular_spacer .modal_default_form_item_tabular_cell", "padding: 0px;"), n.add(".modal_min_main", "border: 1px solid #ccc; max-width: 90%;"), n.add(".modal_min_background", "opacity: 0.5; background-color: #000;"), n.add(".modal_min_ok", "padding: 3px 10px;"), n.add(".modal_min_cancel", "padding: 3px 10px;"), n.add(".navigator_modal_main", "border-left: 1px solid #c0c0c0;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;background-color: white;color: #000000; box-sizing: content-box;"), n.add(".navigator_modal_main *, .navigator_modal_main *:before, .navigator_modal_main *:after", "box-sizing: content-box;"), n.add(".navigator_modal_month", "font-size: 11px;"), n.add(".navigator_modal_day", "color: black;"), n.add(".navigator_modal_weekend", "background-color: #f0f0f0;"), n.add(".navigator_modal_dayheader", "color: black;"), n.add(".navigator_modal_line", "border-bottom: 1px solid #c0c0c0;"), n.add(".navigator_modal_dayother", "color: gray;"), n.add(".navigator_modal_todaybox", "border: 1px solid red;"), n.add(".navigator_modal_title, .navigator_modal_titleleft, .navigator_modal_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), n.add(".navigator_modal_busy", "font-weight: bold;"), n.add(".navigator_modal_cell", "text-align: center;"), n.add(".navigator_modal_select .navigator_modal_cell_box", "background-color: #FFE794; opacity: 0.5;"), n.add(".navigator_modal_title", "text-align: center;"), n.add(".navigator_modal_titleleft, .navigator_modal_titleright", "text-align: center;"), n.add(".navigator_modal_dayheader", "text-align: center;"), n.add(".navigator_modal_weeknumber", "text-align: center;"), n.add(".navigator_modal_cell_text", "cursor: pointer;"), n.commit(), DayPilot.Modal = function (e) {
2258
2325
  this.autoFocus = !0, this.focus = null, this.autoStretch = !0, this.autoStretchFirstLoadOnly = !1, this.className = null, this.theme = "modal_default", this.disposeOnClose = !0, this.dragDrop = !0, this.loadingHtml = null, this.maxHeight = null, this.scrollWithPage = !0, this.useIframe = !0, this.zIndex = 99999, this.left = null, this.width = 600, this.top = 20, this.height = 200, this.locale = null, this.closed = null, this.onClose = null, this.onClosed = null, this.onShow = null;
2259
2326
  var t = this;
2260
- this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.Fb = !1, this.Gb = null, this.Hb = null, this.showHtml = function (e) {
2327
+ this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.Ob = !1, this.Pb = null, this.Qb = null, this.showHtml = function (e) {
2261
2328
  if (DayPilot.ModalStatic.displayed(this))
2262
2329
  throw "This modal dialog is already displayed.";
2263
- if (this.div || this.Ib(), this._a(), this.useIframe) {
2330
+ if (this.div || this.Rb(), this.hb(), this.useIframe) {
2264
2331
  var t = function (e, t) { return function () { e.setInnerHTML(e.id + "iframe", t); }; };
2265
2332
  window.setTimeout(t(this, e), 0);
2266
2333
  }
2267
2334
  else
2268
2335
  e.nodeType ? this.div.appendChild(e) : this.div.innerHTML = e;
2269
- this._a(), this.Jb(), this.Kb();
2336
+ this.hb(), this.Sb(), this.Tb();
2270
2337
  }, this.showUrl = function (e) {
2271
2338
  if (DayPilot.ModalStatic.displayed(this))
2272
2339
  throw "This modal dialog is already displayed.";
2273
2340
  if (this.useIframe) {
2274
- this.div || this.Ib();
2341
+ this.div || this.Rb();
2275
2342
  var i = this.loadingHtml;
2276
- i && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", i)), this.re(this.iframe, "load", this.Lb), this.iframe.src = e, this._a(), this.Jb(), this.Kb();
2343
+ i && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", i)), this.re(this.iframe, "load", this.Ub), this.iframe.src = e, this.hb(), this.Sb(), this.Tb();
2277
2344
  }
2278
2345
  else
2279
- t.Mb({ "url": e, "success": function (e) { var i = e.request.responseText; t.showHtml(i); }, "error": function (e) { t.showHtml("Error loading the modal dialog"); } });
2280
- }, this.Kb = function () {
2346
+ t.Vb({ "url": e, "success": function (e) { var i = e.request.responseText; t.showHtml(i); }, "error": function (e) { t.showHtml("Error loading the modal dialog"); } });
2347
+ }, this.Tb = function () {
2281
2348
  if ("function" == typeof t.onShow) {
2282
2349
  var e = {};
2283
- e.root = t.Nb(), e.modal = t, t.onShow(e);
2350
+ e.root = t.Wb(), e.modal = t, t.onShow(e);
2284
2351
  }
2285
- }, this.Nb = function () { return t.iframe ? t.iframe.contentWindow.document : t.div; }, this.Mb = function (e) {
2352
+ }, this.Wb = function () { return t.iframe ? t.iframe.contentWindow.document : t.div; }, this.Vb = function (e) {
2286
2353
  var t = new XMLHttpRequest;
2287
2354
  if (t) {
2288
2355
  var i = e.method || "GET", a = e.success || function () { }, n = e.error || function () { }, o = e.data, r = e.url;
@@ -2300,30 +2367,30 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2300
2367
  window.console && console.log("HTTP error " + t.status);
2301
2368
  }, 4 !== t.readyState && ("object" == typeof o && (o = JSON.stringify(o)), t.send(o));
2302
2369
  }
2303
- }, this._a = function () { delete this.result; var e = window, i = document, a = e.pageYOffset ? e.pageYOffset : i.documentElement && i.documentElement.scrollTop ? i.documentElement.scrollTop : i.body.scrollTop; this.theme && (this.hideDiv.className = this.theme + "_background"), this.zIndex && (this.hideDiv.style.zIndex = this.zIndex), this.hideDiv.style.display = "", window.setTimeout(function () { t.hideDiv && (t.hideDiv.onclick = function () { t.hide({ "backgroundClick": !0 }); }); }, 500), this.theme ? this.div.className = this.theme + "_main" : this.div.className = "", this.className && (this.div.className += " " + this.className), this.left ? this.div.style.left = this.left + "px" : this.div.style.marginLeft = "-" + Math.floor(this.width / 2) + "px", this.div.style.position = "absolute", this.div.style.boxSizing = "content-box", this.div.style.top = a + this.top + "px", this.div.style.width = this.width + "px", this.zIndex && (this.div.style.zIndex = this.zIndex), this.height && (this.useIframe || !this.autoStretch ? this.div.style.height = this.height + "px" : this.div.style.height = ""), this.useIframe && this.height && (this.iframe.style.height = this.height + "px"), this.div.style.display = "", this.Pb(), DayPilot.ModalStatic.remove(this), DayPilot.ModalStatic.list.push(this); }, this.Lb = function () { t.iframe.contentWindow.modal = t, t.autoStretch && t.stretch(); }, this.stretch = function () {
2304
- var e = function () { return t.Ob().y; }, i = function () { return t.Ob().x; };
2370
+ }, this.hb = function () { delete this.result; var e = window, i = document, a = e.pageYOffset ? e.pageYOffset : i.documentElement && i.documentElement.scrollTop ? i.documentElement.scrollTop : i.body.scrollTop; this.theme && (this.hideDiv.className = this.theme + "_background"), this.zIndex && (this.hideDiv.style.zIndex = this.zIndex), this.hideDiv.style.display = "", window.setTimeout(function () { t.hideDiv && (t.hideDiv.onclick = function () { t.hide({ "backgroundClick": !0 }); }); }, 500), this.theme ? this.div.className = this.theme + "_main" : this.div.className = "", this.className && (this.div.className += " " + this.className), this.left ? this.div.style.left = this.left + "px" : this.div.style.marginLeft = "-" + Math.floor(this.width / 2) + "px", this.div.style.position = "absolute", this.div.style.boxSizing = "content-box", this.div.style.top = a + this.top + "px", this.div.style.width = this.width + "px", this.zIndex && (this.div.style.zIndex = this.zIndex), this.height && (this.useIframe || !this.autoStretch ? this.div.style.height = this.height + "px" : this.div.style.height = ""), this.useIframe && this.height && (this.iframe.style.height = this.height + "px"), this.div.style.display = "", this.Yb(), DayPilot.ModalStatic.remove(this), DayPilot.ModalStatic.list.push(this); }, this.Ub = function () { t.iframe.contentWindow.modal = t, t.autoStretch && t.stretch(); }, this.stretch = function () {
2371
+ var e = function () { return t.Xb().y; }, i = function () { return t.Xb().x; };
2305
2372
  if (this.useIframe) {
2306
- for (var a = i() - 40, n = this.width; n < a && this.Qb(); n += 10)
2373
+ for (var a = i() - 40, n = this.width; n < a && this.Zb(); n += 10)
2307
2374
  this.div.style.width = n + "px", this.div.style.marginLeft = "-" + Math.floor(n / 2) + "px";
2308
- for (var o = this.maxHeight || e() - 2 * this.top, r = this.height; r < o && this.Rb(); r += 10)
2375
+ for (var o = this.maxHeight || e() - 2 * this.top, r = this.height; r < o && this.$b(); r += 10)
2309
2376
  this.iframe.style.height = r + "px", this.div.style.height = r + "px";
2310
- this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.Lb);
2377
+ this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.Ub);
2311
2378
  }
2312
2379
  else
2313
2380
  this.div.style.height = "";
2314
- }, this.Qb = function () {
2381
+ }, this.Zb = function () {
2315
2382
  for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement, i = t.scrollWidth, a = e.body.children, n = 0; n < a.length; n++) {
2316
2383
  var o = a[n].offsetLeft + a[n].offsetWidth;
2317
2384
  i = Math.max(i, o);
2318
2385
  }
2319
2386
  return i > t.clientWidth;
2320
- }, this.Rb = function () {
2387
+ }, this.$b = function () {
2321
2388
  for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement, i = t.scrollHeight, a = e.body.children, n = 0; n < a.length; n++) {
2322
2389
  var o = a[n].offsetTop + a[n].offsetHeight;
2323
2390
  i = Math.max(i, o);
2324
2391
  }
2325
2392
  return i > t.clientHeight;
2326
- }, this.Ob = function () {
2393
+ }, this.Xb = function () {
2327
2394
  var e = document;
2328
2395
  if ("CSS1Compat" === e.compatMode && e.documentElement && e.documentElement.clientWidth) {
2329
2396
  var t = e.documentElement.clientWidth, i = e.documentElement.clientHeight;
@@ -2331,32 +2398,32 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2331
2398
  }
2332
2399
  var t = e.body.clientWidth, i = e.body.clientHeight;
2333
2400
  return { x: t, y: i };
2334
- }, this.Jb = function () { this.Fb || (this.re(window, "resize", this.Sb), this.re(window, "scroll", this.Tb), this.dragDrop && (this.re(document, "mousemove", this.Ub), this.re(document, "mouseup", this.Vb)), this.Fb = !0); }, this.Wb = function () { this.ue(window, "resize", this.Sb), this.ue(window, "scroll", this.Tb), this.dragDrop && (this.ue(document, "mousemove", this.Ub), this.ue(document, "mouseup", this.Vb)), this.Fb = !1; }, this.Xb = function (e) { e.target === t.div && (e.preventDefault(), t.div.style.cursor = "move", t.Yb(), t.Hb = t.mc(e || window.event), t.Gb = { x: t.div.offsetLeft, y: t.div.offsetTop }); }, this.Ub = function (e) {
2335
- if (t.Hb) {
2336
- var e = e || window.event, i = t.mc(e), a = i.x - t.Hb.x, n = i.y - t.Hb.y;
2337
- t.div.style.marginLeft = "0px", t.div.style.top = t.Gb.y + n + "px", t.div.style.left = t.Gb.x + a + "px";
2401
+ }, this.Sb = function () { this.Ob || (this.re(window, "resize", this._b), this.re(window, "scroll", this.bc), this.dragDrop && (this.re(document, "mousemove", this.cc), this.re(document, "mouseup", this.dc)), this.Ob = !0); }, this.ec = function () { this.ue(window, "resize", this._b), this.ue(window, "scroll", this.bc), this.dragDrop && (this.ue(document, "mousemove", this.cc), this.ue(document, "mouseup", this.dc)), this.Ob = !1; }, this.fc = function (e) { e.target === t.div && (e.preventDefault(), t.div.style.cursor = "move", t.gc(), t.Qb = t.mc(e || window.event), t.Pb = { x: t.div.offsetLeft, y: t.div.offsetTop }); }, this.cc = function (e) {
2402
+ if (t.Qb) {
2403
+ var e = e || window.event, i = t.mc(e), a = i.x - t.Qb.x, n = i.y - t.Qb.y;
2404
+ t.div.style.marginLeft = "0px", t.div.style.top = t.Pb.y + n + "px", t.div.style.left = t.Pb.x + a + "px";
2338
2405
  }
2339
- }, this.Vb = function (e) { t.Hb && (t.Zb(), t.div.style.cursor = null, t.Hb = null); }, this.Yb = function () {
2406
+ }, this.dc = function (e) { t.Qb && (t.hc(), t.div.style.cursor = null, t.Qb = null); }, this.gc = function () {
2340
2407
  if (this.useIframe) {
2341
2408
  var e = document.createElement("div");
2342
2409
  e.style.backgroundColor = "#ffffff", e.style.filter = "alpha(opacity=80)", e.style.opacity = "0.80", e.style.width = "100%", e.style.height = this.height + "px", e.style.position = "absolute", e.style.left = "0px", e.style.top = "0px", this.div.appendChild(e), this.mask = e;
2343
2410
  }
2344
- }, this.Zb = function () { this.useIframe && (this.div.removeChild(this.mask), this.mask = null); }, this.Sb = function () { t.$b(), t.Pb(); }, this.Tb = function () { t.$b(); }, this.Pb = function () {
2411
+ }, this.hc = function () { this.useIframe && (this.div.removeChild(this.mask), this.mask = null); }, this._b = function () { t.ic(), t.Yb(); }, this.bc = function () { t.ic(); }, this.Yb = function () {
2345
2412
  if (!t.left && t.div) {
2346
2413
  var e = t.div.offsetWidth;
2347
2414
  t.div.style.marginLeft = "-" + Math.floor(e / 2) + "px";
2348
2415
  }
2349
- }, this.$b = function () {
2416
+ }, this.ic = function () {
2350
2417
  if (t.hideDiv && t.div && "none" !== t.hideDiv.style.display && "none" !== t.div.style.display) {
2351
- var e = t._b.scrollY();
2418
+ var e = t.jc.scrollY();
2352
2419
  t.scrollWithPage || (t.div.style.top = e + t.top + "px");
2353
2420
  }
2354
- }, this._b = {}, this._b.container = function () { return t.container || document.body; }, this._b.scrollY = function () { var e = t._b.container(); return e === document.body ? window.pageYOffset ? window.pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop : e.scrollTop; }, this.re = function (e, t, i) { e.addEventListener ? e.addEventListener(t, i, !1) : e.attachEvent && e.attachEvent("on" + t, i); }, this.ue = function (e, t, i) { e.removeEventListener ? e.removeEventListener(t, i, !1) : e.detachEvent && e.detachEvent("on" + t, i); }, this.mc = function (e) { return e.pageX || e.pageY ? { x: e.pageX, y: e.pageY } : { x: e.clientX + document.documentElement.scrollLeft, y: e.clientY + document.documentElement.scrollTop }; }, this.abs = function (e) {
2421
+ }, this.jc = {}, this.jc.container = function () { return t.container || document.body; }, this.jc.scrollY = function () { var e = t.jc.container(); return e === document.body ? window.pageYOffset ? window.pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop : e.scrollTop; }, this.re = function (e, t, i) { e.addEventListener ? e.addEventListener(t, i, !1) : e.attachEvent && e.attachEvent("on" + t, i); }, this.ue = function (e, t, i) { e.removeEventListener ? e.removeEventListener(t, i, !1) : e.detachEvent && e.detachEvent("on" + t, i); }, this.mc = function (e) { return e.pageX || e.pageY ? { x: e.pageX, y: e.pageY } : { x: e.clientX + document.documentElement.scrollLeft, y: e.clientY + document.documentElement.scrollTop }; }, this.abs = function (e) {
2355
2422
  for (var t = { x: e.offsetLeft, y: e.offsetTop }; e.offsetParent;)
2356
2423
  e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop;
2357
2424
  return t;
2358
- }, this.Ib = function () { var e = t._b.container(), i = e === document.body, a = i ? "fixed" : "absolute", n = document.createElement("div"); n.id = this.id + "hide", n.style.position = a, n.style.left = "0px", n.style.top = "0px", n.style.right = "0px", n.style.bottom = "0px", n.oncontextmenu = function () { return !1; }, n.onmousedown = function () { return !1; }, e.appendChild(n); var o = document.createElement("div"); o.id = this.id + "popup", o.style.position = a, o.style.left = "50%", o.style.top = "0px", o.style.backgroundColor = "white", o.style.width = "50px", o.style.height = "50px", this.dragDrop && (o.onmousedown = this.Xb), o.addEventListener("keydown", function (e) { e.stopPropagation(); }); var r = null; this.useIframe && (r = document.createElement("iframe"), r.id = this.id + "iframe", r.name = this.id + "iframe", r.frameBorder = "0", r.style.width = "100%", r.style.height = "50px", o.appendChild(r)), e.appendChild(o), this.div = o, this.iframe = r, this.hideDiv = n; }, this.setInnerHTML = function (e, i) { var a = window.frames[e], n = a.contentWindow || a.document || a.contentDocument; n.document && (n = n.document), null == n.body && n.write("<body></body>"), i.nodeType ? n.body.appendChild(i) : n.body.innerHTML = i, t.autoStretch && (t.autoStretchFirstLoadOnly && t.bc || (t.stretch(), t.bc = !0)); }, this.close = function (e) { this.result = e, this.hide(); }, this.closeSerialized = function () {
2359
- for (var e = t.Nb(), i = e.querySelectorAll("input, textarea, select"), a = {}, n = 0; n < i.length; n++) {
2425
+ }, this.Rb = function () { var e = t.jc.container(), i = e === document.body, a = i ? "fixed" : "absolute", n = document.createElement("div"); n.id = this.id + "hide", n.style.position = a, n.style.left = "0px", n.style.top = "0px", n.style.right = "0px", n.style.bottom = "0px", n.oncontextmenu = function () { return !1; }, n.onmousedown = function () { return !1; }, e.appendChild(n); var o = document.createElement("div"); o.id = this.id + "popup", o.style.position = a, o.style.left = "50%", o.style.top = "0px", o.style.backgroundColor = "white", o.style.width = "50px", o.style.height = "50px", this.dragDrop && (o.onmousedown = this.fc), o.addEventListener("keydown", function (e) { e.stopPropagation(); }); var r = null; this.useIframe && (r = document.createElement("iframe"), r.id = this.id + "iframe", r.name = this.id + "iframe", r.frameBorder = "0", r.style.width = "100%", r.style.height = "50px", o.appendChild(r)), e.appendChild(o), this.div = o, this.iframe = r, this.hideDiv = n; }, this.setInnerHTML = function (e, i) { var a = window.frames[e], n = a.contentWindow || a.document || a.contentDocument; n.document && (n = n.document), null == n.body && n.write("<body></body>"), i.nodeType ? n.body.appendChild(i) : n.body.innerHTML = i, t.autoStretch && (t.autoStretchFirstLoadOnly && t.kc || (t.stretch(), t.kc = !0)); }, this.close = function (e) { this.result = e, this.hide(); }, this.closeSerialized = function () {
2426
+ for (var e = t.Wb(), i = e.querySelectorAll("input, textarea, select"), a = {}, n = 0; n < i.length; n++) {
2360
2427
  var o = i[n], r = o.name;
2361
2428
  if (r) {
2362
2429
  var s = o.value;
@@ -2364,11 +2431,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2364
2431
  }
2365
2432
  }
2366
2433
  t.close(a);
2367
- }, this.hide = function (e) { e = e || {}; var i = {}; i.backgroundClick = !!e.backgroundClick, i.result = this.result, i.canceled = "undefined" == typeof this.result, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof this.onClose && (this.onClose(i), i.preventDefault.value) || (this.div && (this.div.style.display = "none", this.hideDiv.style.display = "none", this.useIframe || (this.div.innerHTML = null)), window.focus(), DayPilot.ModalStatic.remove(this), "function" == typeof this.onClosed ? this.onClosed(i) : this.closed && this.closed(), delete this.result, this.disposeOnClose && (t.Wb(), t.cc(t.div), t.cc(t.hideDiv), t.div = null, t.hideDiv = null, t.iframe = null)); }, this.cc = function (e) { e && e.parentNode && e.parentNode.removeChild(e); }, this.dc = function () {
2434
+ }, this.hide = function (e) { e = e || {}; var i = {}; i.backgroundClick = !!e.backgroundClick, i.result = this.result, i.canceled = "undefined" == typeof this.result, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof this.onClose && (this.onClose(i), i.preventDefault.value) || (this.div && (this.div.style.display = "none", this.hideDiv.style.display = "none", this.useIframe || (this.div.innerHTML = null)), window.focus(), DayPilot.ModalStatic.remove(this), "function" == typeof this.onClosed ? this.onClosed(i) : this.closed && this.closed(), delete this.result, this.disposeOnClose && (t.ec(), t.lc(t.div), t.lc(t.hideDiv), t.div = null, t.hideDiv = null, t.iframe = null)); }, this.lc = function (e) { e && e.parentNode && e.parentNode.removeChild(e); }, this.nc = function () {
2368
2435
  if (e)
2369
2436
  for (var t in e)
2370
2437
  this[t] = e[t];
2371
- }, this.dc();
2438
+ }, this.nc();
2372
2439
  }, DayPilot.Modal.alert = function (e, t) { t = t || {}, t.height = t.height || 40, t.useIframe = !1; var i = t.okText || "OK"; t.cancelText || "Cancel"; return DayPilot.getPromise(function (a, n) { t.onClosed = function (e) { a(e); }; var o = new DayPilot.Modal(t), r = document.createElement("div"); r.className = o.theme + "_inner"; var s = document.createElement("div"); s.className = o.theme + "_content", s.innerHTML = e; var l = document.createElement("div"); l.className = o.theme + "_buttons"; var d = document.createElement("button"); d.innerText = i, d.className = o.theme + "_ok", d.onclick = function (e) { DayPilot.ModalStatic.close("OK"); }, l.appendChild(d), r.appendChild(s), r.appendChild(l), o.showHtml(r), o.autoFocus && d.focus(); }); }, DayPilot.Modal.confirm = function (e, t) { t = t || {}, t.height = t.height || 40, t.useIframe = !1; var i = t.okText || "OK", a = t.cancelText || "Cancel"; return DayPilot.getPromise(function (n, o) { t.onClosed = function (e) { n(e); }; var r = new DayPilot.Modal(t), s = document.createElement("div"); s.className = r.theme + "_inner"; var l = document.createElement("div"); l.className = r.theme + "_content", l.innerHTML = e; var d = document.createElement("div"); d.className = r.theme + "_buttons"; var c = document.createElement("button"); c.innerText = i, c.className = r.theme + "_ok", c.onclick = function (e) { DayPilot.ModalStatic.close("OK"); }; var u = document.createTextNode(" "), h = document.createElement("button"); h.innerText = a, h.className = r.theme + "_cancel", h.onclick = function (e) { DayPilot.ModalStatic.close(); }, d.appendChild(c), d.appendChild(u), d.appendChild(h), s.appendChild(l), s.appendChild(d), r.showHtml(s), r.autoFocus && c.focus(); }); }, DayPilot.Modal.prompt = function (e, t, i) {
2373
2440
  "object" == typeof t && (i = t, t = ""), i = i || {}, i.height = i.height || 40, i.useIframe = !1;
2374
2441
  var a = i.okText || "OK", n = i.cancelText || "Cancel", o = t || "";
@@ -2469,8 +2536,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2469
2536
  g && g.focus();
2470
2537
  }
2471
2538
  else {
2472
- var x = h.firstFocusable();
2473
- o.autoFocus && x ? x.focus() : o.div.focus();
2539
+ var w = h.firstFocusable();
2540
+ o.autoFocus && w ? w.focus() : o.div.focus();
2474
2541
  }
2475
2542
  });
2476
2543
  }, DayPilot.Modal.close = function (e) { var t = DayPilot.Modal.opener(); t && t.close(e); }, DayPilot.Modal.stretch = function (e) {
@@ -2480,11 +2547,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2480
2547
  t.stretch();
2481
2548
  }, DayPilot.Modal.closeSerialized = function () { var e = DayPilot.Modal.opener() || DayPilot.ModalStatic.last(); e && e.closeSerialized(); }, DayPilot.Modal.opener = function () { return "undefined" != typeof DayPilot && "undefined" != typeof DayPilot.ModalStatic && DayPilot.ModalStatic.list.length > 0 ? DayPilot.ModalStatic.list[DayPilot.ModalStatic.list.length - 1] : parent && parent.DayPilot && parent.DayPilot.ModalStatic && parent.DayPilot.ModalStatic.list[parent.DayPilot.ModalStatic.list.length - 1]; }, DayPilot.Modal.Experimental = {}, DayPilot.Modal.Experimental.Form = r, "undefined" == typeof DayPilot.getPromise && (DayPilot.getPromise = function (e) { return "undefined" != typeof Promise ? new Promise(e) : (DayPilot.Promise = function (e) { var t = this; this.then = function (t, i) { return t = t || function () { }, i = i || function () { }, e(t, i), DayPilot.getPromise(e); }, this["catch"] = function (i) { return t.then(null, i), DayPilot.getPromise(e); }; }, new DayPilot.Promise(e)); });
2482
2549
  var r = function (e) {
2483
- this.form = [], this.data = {}, this.theme = "form_default", this.zIndex = 99999, this.locale = "en-us", this.plugins = {}, this.onKey = null, this.ec = [], this.fc = null, this.canceling = !1, this.gc = [], this.f = [], this.hc = null, e = e || {};
2550
+ this.form = [], this.data = {}, this.theme = "form_default", this.zIndex = 99999, this.locale = "en-us", this.plugins = {}, this.onKey = null, this.oc = [], this.pc = null, this.canceling = !1, this.qc = [], this.f = [], this.rc = null, e = e || {};
2484
2551
  for (var t in e)
2485
2552
  this[t] = e[t];
2486
2553
  };
2487
- r.prototype.create = function () { return this.load(), this.render(), this.hc; }, r.prototype.render = function () { var e = this; this.hc = document.createElement("div"), this.ec.forEach(function (t) { e.createView(t); }), this.applyState(); }, r.prototype.createView = function (e) {
2554
+ r.prototype.create = function () { return this.load(), this.render(), this.rc; }, r.prototype.render = function () { var e = this; this.rc = document.createElement("div"), this.oc.forEach(function (t) { e.createView(t); }), this.applyState(); }, r.prototype.createView = function (e) {
2488
2555
  var t = this.theme, i = this, a = document.createElement("div");
2489
2556
  if (a.className = t + "_form_item " + t + "_form_item_level" + e.level, e.interactive || "title" !== e.type ? a.className += " " + t + "_form_item_" + e.type : a.className += " " + t + "_form_title", e.data.cssClass && (a.className += " " + e.data.cssClass), !e.isValue) {
2490
2557
  var n = document.createElement("div");
@@ -2492,13 +2559,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2492
2559
  }
2493
2560
  var o = this.createInteractive(e);
2494
2561
  o.onInput = function (e) {
2495
- if (e = e || {}, i.ic(o, { "debounce": !e.immediate }), "function" == typeof i.onChange) {
2562
+ if (e = e || {}, i.sc(o, { "debounce": !e.immediate }), "function" == typeof i.onChange) {
2496
2563
  var t = {};
2497
2564
  t.result = i.serialize(), i.onChange(t);
2498
2565
  }
2499
- }, o.onBlur = function () { i.canceling || i.ic(o); }, o.apply(e), o.hc = a, o.row = e, o.element && a.appendChild(o.element), this.f.push(o), this.hc.appendChild(a);
2500
- }, r.prototype.validate = function () { var e = this, t = !0; return this.f.forEach(function (i) { var a = e.ic(i); t = t && a; }), t; }, r.prototype.ic = function (e, t) {
2501
- function i() { e.jc && (e.jc.remove(), e.jc = null), e.hc.classList.add(u); var t = document.createElement("div"); t.classList.add(h), t.innerText = c.message, e.jc = t, e.hc.appendChild(t); }
2566
+ }, o.onBlur = function () { i.canceling || i.sc(o); }, o.apply(e), o.rc = a, o.row = e, o.element && a.appendChild(o.element), this.f.push(o), this.rc.appendChild(a);
2567
+ }, r.prototype.validate = function () { var e = this, t = !0; return this.f.forEach(function (i) { var a = e.sc(i); t = t && a; }), t; }, r.prototype.sc = function (e, t) {
2568
+ function i() { e.tc && (e.tc.remove(), e.tc = null), e.rc.classList.add(u); var t = document.createElement("div"); t.classList.add(h), t.innerText = c.message, e.tc = t, e.rc.appendChild(t); }
2502
2569
  t = t || {};
2503
2570
  var a = t.debounce, n = t.silent, o = e.row, r = !0, s = "function" == typeof o.data.onValidate ? o.data.onValidate : null, l = "function" == typeof o.data.validate ? o.data.validate : null, d = s || l;
2504
2571
  if (d) {
@@ -2506,11 +2573,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2506
2573
  c.valid = !0, c.value = e.save()[o.field], c.message = "Error", c.values = this.serialize(), c.result = this.serialize(), d(c);
2507
2574
  var u = this.theme + "_form_item_invalid", h = this.theme + "_form_item_invalid_message";
2508
2575
  if (c.valid)
2509
- clearTimeout(this.gc[o.field]), e.jc && (e.jc.remove(), e.jc = null), e.hc.classList.remove(u);
2576
+ clearTimeout(this.qc[o.field]), e.tc && (e.tc.remove(), e.tc = null), e.rc.classList.remove(u);
2510
2577
  else if (!n)
2511
2578
  if (a) {
2512
2579
  var f = 1e3;
2513
- clearTimeout(this.gc[o.field]), this.gc[o.field] = setTimeout(function () { i(); }, f);
2580
+ clearTimeout(this.qc[o.field]), this.qc[o.field] = setTimeout(function () { i(); }, f);
2514
2581
  }
2515
2582
  else
2516
2583
  i();
@@ -2530,34 +2597,38 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2530
2597
  }
2531
2598
  for (var n in i)
2532
2599
  this.setValue(n, i[n]);
2533
- }, r.prototype.setValue = function (e, t) { this.ec.forEach(function (i) { i.applyValue(e, t); }); }, r.prototype.updateDependentState = function () { var e = this, t = [!0]; (this.fc ? this.fc : this.ec).forEach(function (i) { var a = e.updateState(i, { enabled: t[i.level] && !i.data.disabled }); a.isValue && (t[a.level + 1] = a.enabled && a.checked); }); }, r.prototype.processFormItem = function (e, t) {
2600
+ }, r.prototype.setValue = function (e, t) { this.oc.forEach(function (i) { i.applyValue(e, t); }); }, r.prototype.updateDependentState = function () { var e = this, t = [!0]; (this.pc ? this.pc : this.oc).forEach(function (i) { var a = e.updateState(i, { enabled: t[i.level] && !i.data.disabled }); a.isValue && (t[a.level + 1] = a.enabled && a.checked); }); }, r.prototype.processFormItem = function (e, t) {
2534
2601
  var i = this, a = this.getFieldType(e), n = [];
2535
2602
  if ("radio" === a) {
2536
2603
  if (e.name) {
2537
2604
  var o = new s;
2538
- o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, i.ec.push(o), n.push(o);
2605
+ o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, i.oc.push(o), n.push(o);
2539
2606
  }
2540
- e.options.forEach(function (o) { var r = new s; r.field = e.id, r.data = o, r.level = t, r.type = a, r.isValue = !0, r.text = o.name, r.resolved = o.id, i.ec.push(r), n.push(r), o.children && o.children.forEach(function (e) { var a = i.processFormItem(e, t + 1); n = n.concat(a); }); });
2607
+ e.options.forEach(function (o) {
2608
+ var r = new s;
2609
+ r.field = e.id, r.data = o, r.level = t, r.type = a, r.isValue = !0, r.text = o.name, r.resolved = o.id, i.oc.push(r),
2610
+ n.push(r), o.children && o.children.forEach(function (e) { var a = i.processFormItem(e, t + 1); n = n.concat(a); });
2611
+ });
2541
2612
  }
2542
2613
  else if ("title" === a) {
2543
2614
  var o = new s;
2544
- o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = e.name, i.ec.push(o), n.push(o);
2615
+ o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = e.name, i.oc.push(o), n.push(o);
2545
2616
  }
2546
2617
  else if ("image" === a) {
2547
2618
  var o = new s;
2548
- o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.ec.push(o), n.push(o);
2619
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.oc.push(o), n.push(o);
2549
2620
  }
2550
2621
  else if ("html" === a) {
2551
2622
  var o = new s;
2552
- o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.ec.push(o), n.push(o);
2623
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.oc.push(o), n.push(o);
2553
2624
  }
2554
2625
  else if ("scrollable" === a) {
2555
2626
  var o = new s;
2556
- o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.ec.push(o), n.push(o);
2627
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.oc.push(o), n.push(o);
2557
2628
  }
2558
2629
  else {
2559
2630
  var o = new s;
2560
- o.field = e.id, o.data = e, o.level = t, o.type = a, o.text = e.name, o.children = [], i.ec.push(o), n.push(o);
2631
+ o.field = e.id, o.data = e, o.level = t, o.type = a, o.text = e.name, o.children = [], i.oc.push(o), n.push(o);
2561
2632
  }
2562
2633
  return "checkbox" === a && (o.isValue = !0, o.resolved = !0, e.children && e.children.forEach(function (e) { var a = i.processFormItem(e, t + 1); n = n.concat(a); })), n;
2563
2634
  }, r.prototype.doOnKey = function (e) {
@@ -2566,12 +2637,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2566
2637
  this.onKey(t);
2567
2638
  }
2568
2639
  }, r.prototype.createInteractive = function (e) {
2569
- var t = this, i = { "label": function () { return new l; }, "title": function () { return new l; }, "image": function () { var t = new l, i = document.createElement("img"); return i.src = e.data.image, t.element = i, t; }, "html": function () { var t = new l, i = document.createElement("div"); return "string" == typeof e.data.text ? i.innerText = e.data.text : "string" == typeof e.data.html && (i.innerHTML = e.data.html), t.element = i, t; }, "scrollable": function () {
2570
- var i = new l, a = document.createElement("div");
2571
- a.className = t.theme + "_form_item_scrollable_scroll", e.data.height && (a.style.height = e.data.height + "px");
2572
- var n = document.createElement("div");
2573
- return n.className = t.theme + "_form_item_scrollable_scroll_content", "string" == typeof e.data.text ? n.innerText = e.data.text : "string" == typeof e.data.html && (n.innerHTML = e.data.html), a.appendChild(n), i.element = a, i;
2574
- }, "text": function () {
2640
+ var t = this, i = { "label": function () { return new l; }, "title": function () { return new l; }, "image": function () { var t = new l, i = document.createElement("img"); return i.src = e.data.image, t.element = i, t; }, "html": function () { var t = new l, i = document.createElement("div"); return "string" == typeof e.data.text ? i.innerText = e.data.text : "string" == typeof e.data.html && (i.innerHTML = e.data.html), t.element = i, t; }, "scrollable": function () { var i = new l, a = document.createElement("div"); a.className = t.theme + "_form_item_scrollable_scroll", e.data.height && (a.style.height = e.data.height + "px"); var n = document.createElement("div"); return n.className = t.theme + "_form_item_scrollable_scroll_content", "string" == typeof e.data.text ? n.innerText = e.data.text : "string" == typeof e.data.html && (n.innerHTML = e.data.html), a.appendChild(n), i.element = a, i; }, "text": function () {
2575
2641
  var i = new l;
2576
2642
  i.apply = function (e) { i.row = e; var t = i.element; t.value = e.value, t.disabled = !e.enabled; };
2577
2643
  var a = document.createElement("input");
@@ -2627,21 +2693,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2627
2693
  }
2628
2694
  i || (e.preventDefault(), e.stopPropagation());
2629
2695
  }, a.onfocus = function () { n.show(); }, a.onclick = function () { n.show(); }, a.oninput = function (e) { i.onInput(); }, a.onblur = function (e) { i.onBlur(); }, i.element = a, i.picker = n, i.canFocus = function () { return !i.element.disabled; }, i.focus = function () { i.element.focus(); }, i.save = function () { var t = n.date ? n.date.toString() : null, i = {}; return i[e.field] = t, i; }, i;
2630
- }, "time": function () { return t.kc(e); }, "datetime": function () { return t.lc(e); }, "select": function () { var t = new l; t.apply = function (e) { t.row = e; var i = t.element; i.value = e.value, i.disabled = !e.enabled; }; var i = document.createElement("select"); return i.name = e.field, e.data.options && e.data.options.forEach && e.data.options.forEach(function (e) { var t = document.createElement("option"); t.innerText = e.name || e.id, t.value = e.id, t.nc = e.id, i.appendChild(t); }), i.onchange = function (e) { t.onInput({ "immediate": !0 }); }, i.onblur = function (e) { t.onBlur(); }, t.element = i, t.canFocus = function () { return !t.element.disabled; }, t.focus = function () { t.element.focus(); }, t.save = function () { var t = null, a = i.options[i.selectedIndex]; a && "undefined" != typeof a.nc && (t = a.nc); var n = {}; return n[e.field] = t, n; }, t; }, "searchable": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.searchable; t.disabled = !e.enabled, t.select(e.value); }; var a = new d({ data: e.data.options || [], name: e.field, theme: t.theme + "_form_item_searchable", listZIndex: t.zIndex + 1, onSelect: function (e) { e.ui && i.onInput({ "immediate": !0 }); } }), n = a.create(); return i.element = n, i.searchable = a, i.canFocus = function () { return !i.searchable.disabled; }, i.focus = function () { i.searchable.focus(); }, i.save = function () { var t = a.selected && a.selected.id, i = {}; return i[e.field] = t, i; }, i; }, "radio": function () {
2696
+ }, "time": function () { return t.uc(e); }, "datetime": function () { return t.vc(e); }, "select": function () { var t = new l; t.apply = function (e) { t.row = e; var i = t.element; i.value = e.value, i.disabled = !e.enabled; }; var i = document.createElement("select"); return i.name = e.field, e.data.options && e.data.options.forEach && e.data.options.forEach(function (e) { var t = document.createElement("option"); t.innerText = e.name || e.id, t.value = e.id, t.wc = e.id, i.appendChild(t); }), i.onchange = function (e) { t.onInput({ "immediate": !0 }); }, i.onblur = function (e) { t.onBlur(); }, t.element = i, t.canFocus = function () { return !t.element.disabled; }, t.focus = function () { t.element.focus(); }, t.save = function () { var t = null, a = i.options[i.selectedIndex]; a && "undefined" != typeof a.wc && (t = a.wc); var n = {}; return n[e.field] = t, n; }, t; }, "searchable": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.searchable; t.disabled = !e.enabled, t.select(e.value); }; var a = new d({ data: e.data.options || [], name: e.field, theme: t.theme + "_form_item_searchable", listZIndex: t.zIndex + 1, onSelect: function (e) { e.ui && i.onInput({ "immediate": !0 }); } }), n = a.create(); return i.element = n, i.searchable = a, i.canFocus = function () { return !i.searchable.disabled; }, i.focus = function () { i.searchable.focus(); }, i.save = function () { var t = a.selected && a.selected.id, i = {}; return i[e.field] = t, i; }, i; }, "radio": function () {
2631
2697
  var i = new l;
2632
2698
  i.apply = function (e) { i.row = e; var t = i.radio; t.checked = e.checked, t.disabled = !e.enabled; };
2633
2699
  var a = document.createElement("label"), n = document.createElement("input");
2634
- n.type = "radio", n.name = e.field, n.nc = e.resolved, n.onchange = function (e) { var a = i.row; t.findRowsByField(a.field).forEach(function (e) { t.updateState(e, { checked: !1 }); }), t.updateState(a, { checked: !0 }), t.applyState(), i.onInput({ "immediate": !0 }); }, n.onblur = function (e) { i.onBlur(); }, a.appendChild(n);
2700
+ n.type = "radio", n.name = e.field, n.wc = e.resolved, n.onchange = function (e) { var a = i.row; t.findRowsByField(a.field).forEach(function (e) { t.updateState(e, { checked: !1 }); }), t.updateState(a, { checked: !0 }), t.applyState(), i.onInput({ "immediate": !0 }); }, n.onblur = function (e) { i.onBlur(); }, a.appendChild(n);
2635
2701
  var o = document.createTextNode(e.text);
2636
2702
  return a.append(o), i.element = a, i.radio = n, i.canFocus = function () { return !1; }, i.focus = function () { i.radio.focus(); }, i.save = function () {
2637
2703
  if (!n.checked)
2638
2704
  return {};
2639
- var t = n.nc, i = {};
2705
+ var t = n.wc, i = {};
2640
2706
  return i[e.field] = t, i;
2641
2707
  }, i;
2642
- }, "checkbox": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.checkbox; t.checked = e.checked, t.disabled = !e.enabled; }; var a = document.createElement("label"), n = document.createElement("input"); n.type = "checkbox", n.name = e.field, n.nc = e.resolved, n.onchange = function (e) { var a = i.row; t.updateState(a, { checked: this.checked }), t.applyState(), i.onInput({ "immediate": !0 }); }, n.onblur = function (e) { i.onBlur(); }, a.appendChild(n); var o = document.createTextNode(e.text); return a.append(o), i.element = a, i.checkbox = n, i.canFocus = function () { return !1; }, i.focus = function () { i.checkbox.focus(); }, i.save = function () { var t = n.checked, i = {}; return i[e.field] = t, i; }, i; }, "table": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.table; t.disabled = !e.enabled, t.load(e.value || []); }; var a = new c({ name: e.field, form: t, theme: t.theme + "_form_item_tabular", item: e.data, onInput: function (e) { i.onInput(); } }), n = a.create(); return i.element = n, i.table = a, i.canFocus = function () { return !1; }, i.focus = function () { i.table.focus(); }, i.save = function () { var t = a.save(), i = {}; return i[e.field] = t, i; }, i; } };
2708
+ }, "checkbox": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.checkbox; t.checked = e.checked, t.disabled = !e.enabled; }; var a = document.createElement("label"), n = document.createElement("input"); n.type = "checkbox", n.name = e.field, n.wc = e.resolved, n.onchange = function (e) { var a = i.row; t.updateState(a, { checked: this.checked }), t.applyState(), i.onInput({ "immediate": !0 }); }, n.onblur = function (e) { i.onBlur(); }, a.appendChild(n); var o = document.createTextNode(e.text); return a.append(o), i.element = a, i.checkbox = n, i.canFocus = function () { return !1; }, i.focus = function () { i.checkbox.focus(); }, i.save = function () { var t = n.checked, i = {}; return i[e.field] = t, i; }, i; }, "table": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.table; t.disabled = !e.enabled, t.load(e.value || []); }; var a = new c({ name: e.field, form: t, theme: t.theme + "_form_item_tabular", item: e.data, onInput: function (e) { i.onInput(); } }), n = a.create(); return i.element = n, i.table = a, i.canFocus = function () { return !1; }, i.focus = function () { i.table.focus(); }, i.save = function () { var t = a.save(), i = {}; return i[e.field] = t, i; }, i; } };
2643
2709
  return t.plugins && t.plugins[e.type] ? t.plugins[e.type](e) : i[e.type]();
2644
- }, r.prototype.kc = function (e) {
2710
+ }, r.prototype.uc = function (e) {
2645
2711
  var t = this, i = new l;
2646
2712
  i.apply = function (e) { i.row = e; var t = i.searchable; t.disabled = !e.enabled, t.select(e.value); };
2647
2713
  var a = [], n = e.data.timeInterval || 15;
@@ -2652,7 +2718,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2652
2718
  }
2653
2719
  var m = new d({ data: a, name: e.field, theme: t.theme + "_form_item_time", listZIndex: t.zIndex + 1, strategy: "startsWith", onSelect: function (e) { e.ui && i.onInput({ "immediate": !0 }); } }), p = m.create();
2654
2720
  return i.element = p, i.searchable = m, i.canFocus = function () { return !i.searchable.disabled; }, i.focus = function () { i.searchable.focus(); }, i.save = function () { var t = m.selected && m.selected.id, i = {}; return i[e.field] = t, i; }, i;
2655
- }, r.prototype.lc = function (e) {
2721
+ }, r.prototype.vc = function (e) {
2656
2722
  var t = this, i = new l;
2657
2723
  i.apply = function (e) {
2658
2724
  i.row = e;
@@ -2702,9 +2768,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2702
2768
  return i.searchable = f, f.create();
2703
2769
  }(), o = document.createElement("div");
2704
2770
  return o.className = t.theme + "_form_item_datetime_parent", o.appendChild(a), o.appendChild(n), i.element = o, i.canFocus = function () { return !i.searchable.disabled; }, i.focus = function () { i.dateInput.focus(); }, i.save = function () { var t = i.searchable.selected && i.searchable.selected.id, a = i.picker.date ? i.picker.date.toString() : null, n = new DayPilot.Date(a).getDatePart(), o = DayPilot.Date.parse(n.toString("yyyy-dd-MM ") + t, "yyyy-dd-MM HH:mm"), r = {}; return r[e.field] = o, r; }, i;
2705
- }, r.prototype.findRowsByField = function (e) { return this.ec.filter(function (t) { return t.field === e; }); }, r.prototype.findViewById = function (e, t) { return this.f.find(function (i) { return i.row.field === e && ("radio" !== i.row.type || i.row.resolved === t); }); }, r.prototype.firstFocusable = function () { return this.f.find(function (e) { return e.canFocus && e.canFocus(); }); }, r.prototype.updateState = function (e, t) {
2706
- var i = this.fc ? this.fc : this.ec, a = i.indexOf(e);
2707
- return this.fc = i.map(function (i) {
2771
+ }, r.prototype.findRowsByField = function (e) { return this.oc.filter(function (t) { return t.field === e; }); }, r.prototype.findViewById = function (e, t) { return this.f.find(function (i) { return i.row.field === e && ("radio" !== i.row.type || i.row.resolved === t); }); }, r.prototype.firstFocusable = function () { return this.f.find(function (e) { return e.canFocus && e.canFocus(); }); }, r.prototype.updateState = function (e, t) {
2772
+ var i = this.pc ? this.pc : this.oc, a = i.indexOf(e);
2773
+ return this.pc = i.map(function (i) {
2708
2774
  if (i !== e)
2709
2775
  return i;
2710
2776
  if (e.propsEqual(t))
@@ -2713,11 +2779,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2713
2779
  for (var n in t)
2714
2780
  a[n] = t[n];
2715
2781
  return a;
2716
- }), this.fc[a];
2717
- }, r.prototype.updateInteractive = function (e) { var t = this.fc.indexOf(e); this.f[t].apply(e); }, r.prototype.applyState = function () {
2782
+ }), this.pc[a];
2783
+ }, r.prototype.updateInteractive = function (e) { var t = this.pc.indexOf(e); this.f[t].apply(e); }, r.prototype.applyState = function () {
2718
2784
  var e = this;
2719
- if (this.updateDependentState(), this.fc) {
2720
- this.fc.filter(function (t, i) { return e.ec[i] !== t; }).forEach(function (t) { e.updateInteractive(t); }), this.ec = this.fc, this.fc = null;
2785
+ if (this.updateDependentState(), this.pc) {
2786
+ this.pc.filter(function (t, i) { return e.oc[i] !== t; }).forEach(function (t) { e.updateInteractive(t); }), this.oc = this.pc, this.pc = null;
2721
2787
  }
2722
2788
  }, r.prototype.getFieldType = function (e) { return ["text", "date", "select", "searchable", "radio", "checkbox", "table", "title", "image", "html", "textarea", "scrollable", "time", "datetime"].indexOf(e.type) !== -1 ? e.type : e.type && this.plugins && this.plugins[e.type] ? e.type : e.image ? "image" : e.html || e.text ? "html" : e.id ? e.options ? "searchable" : e.dateFormat ? "date" : e.columns ? "table" : "text" : "title"; }, r.prototype.serialize = function () {
2723
2789
  var e = {};
@@ -2740,18 +2806,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2740
2806
  return !0;
2741
2807
  }, s.prototype.guid = function () { var e = function () { return (65536 * (1 + Math.random()) | 0).toString(16).substring(1); }; return "" + e() + e() + "-" + e() + "-" + e() + "-" + e() + "-" + e() + e() + e(); }, s.prototype.applyValue = function (e, t) { this.field === e && (this.value = t, this.isValue && t === this.resolved && (this.checked = !0)); };
2742
2808
  var l = function () { this.element = null, this.canFocus = function () { return !1; }, this.apply = function (e) { }, this.focus = function () { }, this.save = function () { return {}; }; }, d = function (e) {
2743
- this.data = [], this.name = null, this.theme = "searchable_default", this.oc = !1, this.listZIndex = 1e5, this.onSelect = null, this.pc = null, this.qc = null, this.rc = !1, this.sc = null, this.tc = null, this.p = [], this.uc = null, e = e || {};
2744
- var t = this, i = { "selected": { post: function (e) { "object" == typeof e && e.id ? t.pc = e : "string" != typeof e && "number" != typeof e || t.select(e); } } };
2745
- Object.defineProperty(this, "selected", { get: function () { return this.pc; } }), Object.defineProperty(this, "disabled", { get: function () { return this.oc; }, set: function (e) { this.oc = e, this.sc && (this.sc.disabled = e, e && this.vc()); } });
2809
+ this.data = [], this.name = null, this.theme = "searchable_default", this.xc = !1, this.listZIndex = 1e5, this.onSelect = null, this.yc = null, this.zc = null, this.Ac = !1, this.Bc = null, this.Cc = null, this.p = [], this.Dc = null, e = e || {};
2810
+ var t = this, i = { "selected": { post: function (e) { "object" == typeof e && e.id ? t.yc = e : "string" != typeof e && "number" != typeof e || t.select(e); } } };
2811
+ Object.defineProperty(this, "selected", { get: function () { return this.yc; } }), Object.defineProperty(this, "disabled", { get: function () { return this.xc; }, set: function (e) { this.xc = e, this.Bc && (this.Bc.disabled = e, e && this.Ec()); } });
2746
2812
  for (var a in e)
2747
2813
  i[a] || (this[a] = e[a]);
2748
2814
  for (var a in e)
2749
2815
  i[a] && i[a].post(e[a]);
2750
2816
  };
2751
- d.prototype.select = function (e) { return this.pc = this.data.find(function (t) { return t.id === e; }), this.wc(!1), this; }, d.prototype.create = function () {
2817
+ d.prototype.select = function (e) { return this.yc = this.data.find(function (t) { return t.id === e; }), this.Fc(!1), this; }, d.prototype.create = function () {
2752
2818
  function e(e) {
2753
2819
  var i = l.strategy;
2754
- "includes" !== l.strategy && "startsWith" !== l.strategy && (i = "includes"), e = e || i || "includes", h.style.display = "", h.style.top = m.offsetHeight + "px", h.style.left = "0px", h.style.width = m.offsetWidth + "px", h.innerHTML = "", h.addEventListener("mousedown", function (e) { e.preventDefault(); }), l.qc = null, l.p = [];
2820
+ "includes" !== l.strategy && "startsWith" !== l.strategy && (i = "includes"), e = e || i || "includes", h.style.display = "", h.style.top = m.offsetHeight + "px", h.style.left = "0px", h.style.width = m.offsetWidth + "px", h.innerHTML = "", h.addEventListener("mousedown", function (e) { e.preventDefault(); }), l.zc = null, l.p = [];
2755
2821
  var n = null;
2756
2822
  l.data.forEach(function (i) {
2757
2823
  var o = i.name || i.id;
@@ -2762,27 +2828,27 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2762
2828
  else if ("startsWith" === e && 0 !== o.toLowerCase().indexOf(m.value.toLowerCase()))
2763
2829
  return;
2764
2830
  var r = document.createElement("div");
2765
- r.className = l.theme + "_list_item", r.innerText = o, r.item = i, i === l.pc && (l.qc = r), n || (n = r), r.addEventListener("mousedown", function (e) { a(r), e.preventDefault(); }), r.addEventListener("mousemove", function (e) { l.qc !== r && (l.qc = r, t({ dontScroll: !0 })); }), h.appendChild(r), l.p.push(r);
2766
- }), l.qc || (l.qc = n), t();
2831
+ r.className = l.theme + "_list_item", r.innerText = o, r.item = i, i === l.yc && (l.zc = r), n || (n = r), r.addEventListener("mousedown", function (e) { a(r), e.preventDefault(); }), r.addEventListener("mousemove", function (e) { l.zc !== r && (l.zc = r, t({ dontScroll: !0 })); }), h.appendChild(r), l.p.push(r);
2832
+ }), l.zc || (l.zc = n), t();
2767
2833
  }
2768
- function t(e) { e = e || {}; var t = !e.dontScroll; document.querySelectorAll("." + l.theme + "_list_item_highlight").forEach(function (e) { e.className = e.className.replace(l.theme + "_list_item_highlight", ""); }), l.qc && (l.qc.className += " " + l.theme + "_list_item_highlight", t && !i(l.qc, h) && l.qc.scrollIntoView()); }
2834
+ function t(e) { e = e || {}; var t = !e.dontScroll; document.querySelectorAll("." + l.theme + "_list_item_highlight").forEach(function (e) { e.className = e.className.replace(l.theme + "_list_item_highlight", ""); }), l.zc && (l.zc.className += " " + l.theme + "_list_item_highlight", t && !i(l.zc, h) && l.zc.scrollIntoView()); }
2769
2835
  function i(e, t) { var i = e.getBoundingClientRect(), a = t.getBoundingClientRect(); return i.top >= a.top && i.bottom <= a.bottom; }
2770
- function a(e) { var t = e.item; l.pc = t, l.wc(!0), o(), r(); }
2771
- function n() { l.vc(); }
2836
+ function a(e) { var t = e.item; l.yc = t, l.Fc(!0), o(), r(); }
2837
+ function n() { l.Ec(); }
2772
2838
  function o() { l.q(); }
2773
- function r() { l.rc = !0, m.setAttribute("readonly", "readonly"), m.focus(); }
2774
- function s() { l.rc = !1, m.removeAttribute("readonly"), m.select(), e("all"); }
2839
+ function r() { l.Ac = !0, m.setAttribute("readonly", "readonly"), m.focus(); }
2840
+ function s() { l.Ac = !1, m.removeAttribute("readonly"), m.select(), e("all"); }
2775
2841
  var l = this, d = this, c = document.createElement("div");
2776
2842
  c.className = this.theme + "_main", c.style.position = "relative";
2777
2843
  var u = document.createElement("div");
2778
- u.className = this.theme + "_icon", u.style.position = "absolute", u.style.right = "0", u.style.top = "0", u.style.bottom = "0", u.style.width = "20px", u.addEventListener("mousedown", function (e) { e.preventDefault(), l.rc ? (l.focus(), s()) : (n(), r()); });
2844
+ u.className = this.theme + "_icon", u.style.position = "absolute", u.style.right = "0", u.style.top = "0", u.style.bottom = "0", u.style.width = "20px", u.addEventListener("mousedown", function (e) { e.preventDefault(), l.Ac ? (l.focus(), s()) : (n(), r()); });
2779
2845
  var h = document.createElement("div");
2780
2846
  h.className = this.theme + "_list", h.style.display = "none", h.style.position = "absolute", h.style.zIndex = this.listZIndex;
2781
2847
  var f = document.createElement("input");
2782
- f.type = "hidden", f.name = this.name, f.searchable = d, this.uc = f;
2848
+ f.type = "hidden", f.name = this.name, f.searchable = d, this.Dc = f;
2783
2849
  var m = document.createElement("input");
2784
- return m.type = "text", m.className = this.theme + "_input", m.disabled = this.oc, m.addEventListener("click", function (e) { s(); }), m.addEventListener("focus", function (t) { e("all"); }), m.addEventListener("input", function (t) { e(); }), m.addEventListener("blur", function (e) { m.removeAttribute("readonly"), n(); }), m.addEventListener("keydown", function (e) {
2785
- if (l.rc) {
2850
+ return m.type = "text", m.className = this.theme + "_input", m.disabled = this.xc, m.addEventListener("click", function (e) { s(); }), m.addEventListener("focus", function (t) { e("all"); }), m.addEventListener("input", function (t) { e(); }), m.addEventListener("blur", function (e) { m.removeAttribute("readonly"), n(); }), m.addEventListener("keydown", function (e) {
2851
+ if (l.Ac) {
2786
2852
  if ("Enter" === e.key)
2787
2853
  return;
2788
2854
  if ("Esc" === e.key || "Escape" === e.key)
@@ -2790,24 +2856,24 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2790
2856
  s();
2791
2857
  }
2792
2858
  if ("ArrowDown" === e.key) {
2793
- var i = d.p.indexOf(d.qc);
2794
- i + 1 < d.p.length && (d.qc = d.p[i + 1]), t();
2859
+ var i = d.p.indexOf(d.zc);
2860
+ i + 1 < d.p.length && (d.zc = d.p[i + 1]), t();
2795
2861
  }
2796
2862
  else if ("ArrowUp" === e.key) {
2797
- var i = d.p.indexOf(d.qc);
2798
- i - 1 >= 0 && (d.qc = d.p[i - 1]), t();
2863
+ var i = d.p.indexOf(d.zc);
2864
+ i - 1 >= 0 && (d.zc = d.p[i - 1]), t();
2799
2865
  }
2800
2866
  else
2801
- "Enter" === e.key ? l.qc ? (e.stopPropagation(), a(l.qc)) : (e.stopPropagation(), n(), r()) : "Esc" !== e.key && "Escape" !== e.key || (e.stopPropagation(), n(), r());
2802
- }), this.sc = m, this.tc = h, this.pc || (this.pc = this.data[0], this.pc && (m.value = this.pc.name)), c.appendChild(m), c.appendChild(u), c.appendChild(f), c.appendChild(h), c;
2803
- }, d.prototype.vc = function () { this.q(), this.pc ? this.sc.value = this.pc.name : (this.sc.value = "", this.wc(!0)); }, d.prototype.focus = function () { this.rc = !0, this.sc.setAttribute("readonly", "readonly"), this.sc.focus(), this.vc(); }, d.prototype.q = function () { this.tc.style.display = "none"; }, d.prototype.wc = function (e) {
2804
- if (this.uc.value = this.selected ? this.selected.id : null, this.pc ? this.sc.value = this.pc.name : this.sc.value = "", "function" == typeof this.onSelect) {
2867
+ "Enter" === e.key ? l.zc ? (e.stopPropagation(), a(l.zc)) : (e.stopPropagation(), n(), r()) : "Esc" !== e.key && "Escape" !== e.key || (e.stopPropagation(), n(), r());
2868
+ }), this.Bc = m, this.Cc = h, this.yc || (this.yc = this.data[0], this.yc && (m.value = this.yc.name)), c.appendChild(m), c.appendChild(u), c.appendChild(f), c.appendChild(h), c;
2869
+ }, d.prototype.Ec = function () { this.q(), this.yc ? this.Bc.value = this.yc.name : (this.Bc.value = "", this.Fc(!0)); }, d.prototype.focus = function () { this.Ac = !0, this.Bc.setAttribute("readonly", "readonly"), this.Bc.focus(), this.Ec(); }, d.prototype.q = function () { this.Cc.style.display = "none"; }, d.prototype.Fc = function (e) {
2870
+ if (this.Dc.value = this.selected ? this.selected.id : null, this.yc ? this.Bc.value = this.yc.name : this.Bc.value = "", "function" == typeof this.onSelect) {
2805
2871
  var t = { control: this, ui: e };
2806
2872
  this.onSelect(t);
2807
2873
  }
2808
2874
  };
2809
2875
  var c = function (e) {
2810
- this.form = null, this.item = null, this.data = null, this.name = null, this.theme = "edit_table_default", this.onInput = null, this.nav = {}, this.xc = null, this.ec = [], e = e || {};
2876
+ this.form = null, this.item = null, this.data = null, this.name = null, this.theme = "edit_table_default", this.onInput = null, this.nav = {}, this.Gc = null, this.oc = [], e = e || {};
2811
2877
  for (var t in e)
2812
2878
  this[t] = e[t];
2813
2879
  };
@@ -2818,11 +2884,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2818
2884
  i.type = "hidden", i.name = e.name, i.table = this, t.appendChild(i);
2819
2885
  var a = document.createElement("div");
2820
2886
  a.className = this.theme + "_table";
2821
- var n = this.yc();
2887
+ var n = this.Hc();
2822
2888
  a.appendChild(n);
2823
- var o = e.zc({});
2889
+ var o = e.Ic({});
2824
2890
  o.spacer = !0;
2825
- var r = this.Ac(o);
2891
+ var r = this.Jc(o);
2826
2892
  r.classList.add(e.theme + "_spacer"), a.appendChild(r);
2827
2893
  var s = document.createElement("div");
2828
2894
  s.className = e.theme + "_tbody", a.appendChild(s), t.appendChild(a);
@@ -2836,18 +2902,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2836
2902
  var n = {};
2837
2903
  n.result = e.form.serialize(), n.value = {}, i(n), a = n.value;
2838
2904
  }
2839
- var o = e.zc(a);
2840
- e.ec.push(o), e.Bc(), e.Cc();
2905
+ var o = e.Ic(a);
2906
+ e.oc.push(o), e.Kc(), e.Lc();
2841
2907
  }
2842
2908
  }), this.nav.plus = c, d.appendChild(c), t.appendChild(d), t;
2843
- }, c.prototype.yc = function () { var e = this, t = document.createElement("div"); return t.classList.add(this.theme + "_row"), t.classList.add(this.theme + "_header"), this.item.columns.forEach(function (i) { var a = document.createElement("div"); a.classList.add(e.theme + "_cell"), a.innerText = i.name, t.appendChild(a); }), t; }, c.prototype.Dc = function () { var e = this.item.max || 0; return !!(e && this.ec.length >= e); }, c.prototype.save = function () { var e = this, t = []; return e.ec.forEach(function (e) { var i = {}; e.cells.forEach(function (e) { i[e.id] = e.value; }), t.push(i); }), t; }, c.prototype.load = function (e) {
2909
+ }, c.prototype.Hc = function () { var e = this, t = document.createElement("div"); return t.classList.add(this.theme + "_row"), t.classList.add(this.theme + "_header"), this.item.columns.forEach(function (i) { var a = document.createElement("div"); a.classList.add(e.theme + "_cell"), a.innerText = i.name, t.appendChild(a); }), t; }, c.prototype.Mc = function () { var e = this.item.max || 0; return !!(e && this.oc.length >= e); }, c.prototype.save = function () { var e = this, t = []; return e.oc.forEach(function (e) { var i = {}; e.cells.forEach(function (e) { i[e.id] = e.value; }), t.push(i); }), t; }, c.prototype.load = function (e) {
2844
2910
  if ("[object Array]" !== Object.prototype.toString.call(e))
2845
2911
  throw new Error("Array expected");
2846
- this.data = e, this.Ec(), this.Bc();
2847
- }, c.prototype.Fc = function () { this.disabled ? this.nav.main.classList.add(this.theme + "_disabled") : this.nav.main.classList.remove(this.theme + "_disabled"), this.Dc() ? this.nav.plus.classList.add(this.theme + "_plus_max") : this.nav.plus.classList.remove(this.theme + "_plus_max"); }, c.prototype.Ec = function () { var e = this; this.ec = [], this.data.forEach(function (t) { var i = e.zc(t); e.ec.push(i); }); }, c.prototype.Gc = function (e) { var t = this, i = t.ec.indexOf(e); t.ec.splice(i, 1); }, c.prototype.zc = function (e) {
2912
+ this.data = e, this.Nc(), this.Kc();
2913
+ }, c.prototype.Oc = function () { this.disabled ? this.nav.main.classList.add(this.theme + "_disabled") : this.nav.main.classList.remove(this.theme + "_disabled"), this.Mc() ? this.nav.plus.classList.add(this.theme + "_plus_max") : this.nav.plus.classList.remove(this.theme + "_plus_max"); }, c.prototype.Nc = function () { var e = this; this.oc = [], this.data.forEach(function (t) { var i = e.Ic(t); e.oc.push(i); }); }, c.prototype.Pc = function (e) { var t = this, i = t.oc.indexOf(e); t.oc.splice(i, 1); }, c.prototype.Ic = function (e) {
2848
2914
  var t = this, i = {};
2849
2915
  return i.data = e, i.cells = [], t.item.columns.forEach(function (a) {
2850
- var n = a.id, o = e[n], r = t.Hc(a);
2916
+ var n = a.id, o = e[n], r = t.Qc(a);
2851
2917
  if ("undefined" == typeof o)
2852
2918
  if ("text" === r)
2853
2919
  o = "";
@@ -2860,19 +2926,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2860
2926
  var l = {};
2861
2927
  l.id = n, l.value = o, l.type = r, l.data = a, i.cells.push(l);
2862
2928
  }), i;
2863
- }, c.prototype.Hc = function (e) { var t = e.type; return t || (t = e.options ? "select" : "text"), t; }, c.prototype.Bc = function () {
2929
+ }, c.prototype.Qc = function (e) { var t = e.type; return t || (t = e.options ? "select" : "text"), t; }, c.prototype.Kc = function () {
2864
2930
  var e = this;
2865
- if (this.nav.body.innerHTML = "", this.nav.after.innerHTML = "", this.ec.forEach(function (t) { var i = e.Ac(t); e.nav.body.appendChild(i); }), 0 === this.ec.length) {
2866
- var t = e.Ic();
2931
+ if (this.nav.body.innerHTML = "", this.nav.after.innerHTML = "", this.oc.forEach(function (t) { var i = e.Jc(t); e.nav.body.appendChild(i); }), 0 === this.oc.length) {
2932
+ var t = e.Rc();
2867
2933
  e.nav.after.appendChild(t);
2868
2934
  }
2869
- this.Fc();
2870
- }, c.prototype.Ic = function () { var e = document.createElement("div"); return e.className = this.theme + "_empty", e; }, c.prototype.Ac = function (e) {
2935
+ this.Oc();
2936
+ }, c.prototype.Rc = function () { var e = document.createElement("div"); return e.className = this.theme + "_empty", e; }, c.prototype.Jc = function (e) {
2871
2937
  var t = this, i = document.createElement("div");
2872
2938
  i.className = t.theme + "_row", e.cells.forEach(function (a) {
2873
2939
  var n = document.createElement("div");
2874
2940
  n.className = t.theme + "_cell";
2875
- var o = t.Jc(a);
2941
+ var o = t.Sc(a);
2876
2942
  if (e.spacer) {
2877
2943
  var r = document.createElement("div");
2878
2944
  r.style.height = "0px", r.style.overflow = "hidden", r.appendChild(o), n.appendChild(r);
@@ -2884,22 +2950,22 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2884
2950
  var a = document.createElement("div");
2885
2951
  a.classList.add(t.theme + "_cell"), a.classList.add(t.theme + "_rowaction");
2886
2952
  var n = document.createElement("span");
2887
- return n.className = this.theme + "_delete", n.addEventListener("click", function (i) { t.disabled || (t.Gc(e), t.Bc(), t.Cc()); }), e.spacer || a.appendChild(n), i.appendChild(a), i;
2888
- }, c.prototype.Cc = function () {
2953
+ return n.className = this.theme + "_delete", n.addEventListener("click", function (i) { t.disabled || (t.Pc(e), t.Kc(), t.Lc()); }), e.spacer || a.appendChild(n), i.appendChild(a), i;
2954
+ }, c.prototype.Lc = function () {
2889
2955
  var e = this;
2890
2956
  if ("function" == typeof e.onInput) {
2891
2957
  var t = {};
2892
2958
  e.onInput(t);
2893
2959
  }
2894
- }, c.prototype.Jc = function (e) {
2960
+ }, c.prototype.Sc = function (e) {
2895
2961
  var t = this, i = e.type;
2896
2962
  if ("text" === i || "number" === i) {
2897
2963
  var a = document.createElement("input");
2898
- return a.type = i, t.disabled && (a.disabled = !0), e.value && (a.value = e.value), a.addEventListener("keyup", function (a) { "number" === i ? e.value = Number(this.value) : e.value = this.value, t.Cc(); }), a;
2964
+ return a.type = i, t.disabled && (a.disabled = !0), e.value && (a.value = e.value), a.addEventListener("keyup", function (a) { "number" === i ? e.value = Number(this.value) : e.value = this.value, t.Lc(); }), a;
2899
2965
  }
2900
2966
  if ("select" === i) {
2901
2967
  var n = document.createElement("select");
2902
- return t.disabled && (n.disabled = !0), e.data.options.forEach(function (t) { var i = document.createElement("option"); i.innerText = t.name, i.value = t.id, i.nc = t.id, n.appendChild(i), e.value === t.id && i.setAttribute("selected", !0); }), n.addEventListener("change", function (i) { var a = n.options[n.selectedIndex]; a && "undefined" != typeof a.nc && (e.value = a.nc), t.Cc(); }), n;
2968
+ return t.disabled && (n.disabled = !0), e.data.options.forEach(function (t) { var i = document.createElement("option"); i.innerText = t.name, i.value = t.id, i.wc = t.id, n.appendChild(i), e.value === t.id && i.setAttribute("selected", !0); }), n.addEventListener("change", function (i) { var a = n.options[n.selectedIndex]; a && "undefined" != typeof a.wc && (e.value = a.wc), t.Lc(); }), n;
2903
2969
  }
2904
2970
  throw new Error("Unsupported item type: " + i);
2905
2971
  }, c.prototype.focus = function () { };
@@ -2908,11 +2974,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2908
2974
  var DayPilot = {};
2909
2975
  if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () {
2910
2976
  if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
2911
- var e = {};
2912
- e.Month = function (t, i) {
2913
- this.v = "2024.4.575-lite", this.nav = {};
2914
- var a = this;
2915
- this.id = t, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, this.cellMarginBottom = 0, this.contextMenu = null, this.cssClassPrefix = "month_default", this.eventBarVisible = !0, this.eventHeight = 25, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.hideUntilInit = !0, this.lineSpace = 1, this.locale = "en-us", this.showToolTip = !0, this.startDate = new DayPilot.Date, this.theme = null, this.visible = !0, this.weekStarts = "Auto", this.width = "100%", this.xssProtection = "Enabled", this.afterRender = function () { }, this.cellHeaderClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.headerClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onCellHeaderClick = null, this.onCellHeaderClicked = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.onBeforeEventRender = null, this.onBeforeCellRender = null, this.cellEvents = [], this.elements = {}, this.elements.events = [], this.cache = {}, this.O = !1, this.U = function (e, t) { var e = JSON.parse(e); return e.CallBackRedirect ? void (document.location.href = e.CallBackRedirect) : "None" === e.UpdateType ? void a.fireAfterRenderDetached(e.CallBackData, !0) : (a.events.list = e.Events, "Full" === e.UpdateType && (a.startDate = e.StartDate, a.timeFormat = e.TimeFormat ? e.TimeFormat : a.timeFormat, "undefined" != typeof e.WeekStarts && (a.weekStarts = e.WeekStarts), a.hashes = e.Hashes), a.W(), a.Kc(), a.ea(), "Full" === e.UpdateType && (a.Lc(), a.Mc()), a.ja(), a.show(), a.ka(), void a.fireAfterRenderDetached(e.CallBackData, !0)); }, this.fireAfterRenderDetached = function (e, t) { var i = function (e, t) { return function () { a.afterRender && a.afterRender(e, t); }; }; window.setTimeout(i(e, t), 0); }, this.lineHeight = function () { return this.eventHeight + this.lineSpace; }, this.events = {}, this.events.add = function (e) {
2977
+ var e = {}, t = DayPilot.Util.isVueVNode;
2978
+ e.Month = function (i, a) {
2979
+ this.v = "2024.4.622-lite", this.nav = {};
2980
+ var n = this;
2981
+ this.id = i, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, this.cellMarginBottom = 0, this.contextMenu = null, this.cssClassPrefix = "month_default", this.eventBarVisible = !0, this.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) {
2916
2982
  var t = null;
2917
2983
  if (e instanceof DayPilot.Event)
2918
2984
  t = e.data;
@@ -2921,107 +2987,107 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2921
2987
  throw "DayPilot.Month.events.add() expects an object or DayPilot.Event instance.";
2922
2988
  t = e;
2923
2989
  }
2924
- a.events.list || (a.events.list = []), a.events.list.push(t), a.update(), a.sa.notify();
2990
+ n.events.list || (n.events.list = []), n.events.list.push(t), n.update(), n.sa.notify();
2925
2991
  }, this.events.find = function (e) {
2926
- if (!a.events.list)
2992
+ if (!n.events.list)
2927
2993
  return null;
2928
2994
  if ("function" == typeof e) {
2929
- for (var t = e, i = 0; i < a.events.list.length; i++) {
2930
- var n = new DayPilot.Event(a.events.list[i], a);
2931
- if (t(n))
2932
- return n;
2995
+ for (var t = e, i = 0; i < n.events.list.length; i++) {
2996
+ var a = new DayPilot.Event(n.events.list[i], n);
2997
+ if (t(a))
2998
+ return a;
2933
2999
  }
2934
3000
  return null;
2935
3001
  }
2936
- for (var i = 0; i < a.events.list.length; i++) {
2937
- var o = a.events.list[i];
3002
+ for (var i = 0; i < n.events.list.length; i++) {
3003
+ var o = n.events.list[i];
2938
3004
  if (o.id === e)
2939
- return new DayPilot.Event(o, a);
3005
+ return new DayPilot.Event(o, n);
2940
3006
  }
2941
3007
  return null;
2942
3008
  }, this.events.update = function (e) {
2943
3009
  if (e instanceof DayPilot.Event)
2944
3010
  e.commit();
2945
3011
  else if ("object" == typeof e) {
2946
- var t = a.events.find(e.id);
3012
+ var t = n.events.find(e.id);
2947
3013
  if (t) {
2948
- var i = DayPilot.indexOf(a.events.list, t.data);
2949
- a.events.list.splice(i, 1, e);
3014
+ var i = DayPilot.indexOf(n.events.list, t.data);
3015
+ n.events.list.splice(i, 1, e);
2950
3016
  }
2951
3017
  }
2952
- a.update(), a.sa.notify();
3018
+ n.update(), n.sa.notify();
2953
3019
  }, this.events.remove = function (e) {
2954
3020
  var t;
2955
3021
  if (e instanceof DayPilot.Event)
2956
3022
  t = e.data;
2957
3023
  else if ("object" == typeof e) {
2958
- var i = a.events.find(e.id);
3024
+ var i = n.events.find(e.id);
2959
3025
  i && (t = i.data);
2960
3026
  }
2961
3027
  else if ("string" == typeof e || "number" == typeof e) {
2962
- var i = a.events.find(e);
3028
+ var i = n.events.find(e);
2963
3029
  i && (t = i.data);
2964
3030
  }
2965
- var n = DayPilot.indexOf(a.events.list, t);
2966
- a.events.list.splice(n, 1), a.update(), a.sa.notify();
3031
+ var a = DayPilot.indexOf(n.events.list, t);
3032
+ n.events.list.splice(a, 1), n.update(), n.sa.notify();
2967
3033
  }, this.events.load = function (e, t, i) {
2968
- var n = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) {
3034
+ var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) {
2969
3035
  var i, o = e.request;
2970
3036
  try {
2971
3037
  i = JSON.parse(o.responseText);
2972
3038
  }
2973
3039
  catch (e) {
2974
3040
  var r = {};
2975
- return r.exception = e, void n(r);
3041
+ return r.exception = e, void a(r);
2976
3042
  }
2977
3043
  if (DayPilot.isArray(i)) {
2978
3044
  var s = {};
2979
3045
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
2980
3046
  return;
2981
- a.events.list = i, a.Ba && a.update();
3047
+ n.events.list = i, n.Ba && n.update();
2982
3048
  }
2983
3049
  };
2984
- if (a.eventsLoadMethod && "POST" === a.eventsLoadMethod.toUpperCase())
2985
- DayPilot.Http.ajax({ "method": "POST", "data": { "start": a.visibleStart().toString(), "end": a.visibleEnd().toString() }, "url": e, "success": o, "error": n });
3050
+ if (n.eventsLoadMethod && "POST" === n.eventsLoadMethod.toUpperCase())
3051
+ DayPilot.Http.ajax({ "method": "POST", "data": { "start": n.visibleStart().toString(), "end": n.visibleEnd().toString() }, "url": e, "success": o, "error": a });
2986
3052
  else {
2987
- var r = e, s = "start=" + a.visibleStart().toString() + "&end=" + a.visibleEnd().toString();
2988
- r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": n });
3053
+ var r = e, s = "start=" + n.visibleStart().toString() + "&end=" + n.visibleEnd().toString();
3054
+ r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": a });
2989
3055
  }
2990
- }, this.events.forRange = function (e, t) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var i = (a.events.list || []).map(function (e) { return new DayPilot.Event(e); }); return i.sort(a.jb), i.filter(function (i) { var a = i.start(), n = i.end(); return a === n && a === e || DayPilot.Util.overlaps(e, t, a, n); }); }, this.update = function (e) {
2991
- if (a.bb(e), this.Ba) {
2992
- if (a.O)
3056
+ }, this.events.forRange = function (e, t) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var i = (n.events.list || []).map(function (e) { return new DayPilot.Event(e); }); return i.sort(n.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) {
3057
+ if (n.jb(e), this.Ba) {
3058
+ if (n.O)
2993
3059
  throw new DayPilot.Exception("You are trying to update a DayPilot.Month instance that has been disposed.");
2994
3060
  if (this.cells) {
2995
- a.W(), a.Kc(), a.ea(), a.Lc(), a.Mc(), a.ja(), a.t(), a.ka(), this.visible ? this.show() : this.hide();
3061
+ n.W(), n.Tc(), n.ea(), n.Uc(), n.Vc(), n.ja(), n.t(), n.ka(), this.visible ? this.show() : this.hide();
2996
3062
  }
2997
3063
  }
2998
- }, this.eb = null, this.bb = function (e) {
3064
+ }, this.lb = null, this.jb = function (e) {
2999
3065
  if (e) {
3000
- var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? a.events.list = e.list : a.events.list = e; } } };
3001
- this.eb = t;
3066
+ var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? n.events.list = e.list : n.events.list = e; } } };
3067
+ this.lb = t;
3002
3068
  for (var i in e)
3003
3069
  if (t[i]) {
3004
- var n = t[i];
3005
- n.data = e[i], n.preInit && n.preInit();
3070
+ var a = t[i];
3071
+ a.data = e[i], a.preInit && a.preInit();
3006
3072
  }
3007
3073
  else
3008
- a[i] = e[i];
3074
+ n[i] = e[i];
3009
3075
  }
3010
- }, this.fb = function () {
3011
- var e = this.eb;
3076
+ }, this.mb = function () {
3077
+ var e = this.lb;
3012
3078
  for (var t in e) {
3013
3079
  var i = e[t];
3014
3080
  i.postInit && i.postInit();
3015
3081
  }
3016
- }, this.hb = {}, this.hb.events = [], this.ib = function (e) {
3017
- var t = this.hb.events, i = this.events.list[e], n = {};
3082
+ }, this.ob = {}, this.ob.events = [], this.pb = function (e) {
3083
+ var t = this.ob.events, i = this.events.list[e], a = {};
3018
3084
  for (var o in i)
3019
- n[o] = i[o];
3085
+ a[o] = i[o];
3020
3086
  if ("function" == typeof this.onBeforeEventRender) {
3021
3087
  var r = {};
3022
- r.control = a, r.data = n, this.onBeforeEventRender(r);
3088
+ r.control = n, r.data = a, this.onBeforeEventRender(r);
3023
3089
  }
3024
- t[e] = n;
3090
+ t[e] = a;
3025
3091
  }, this.ea = function () {
3026
3092
  var e = this.events.list;
3027
3093
  if (e) {
@@ -3029,7 +3095,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3029
3095
  throw new DayPilot.Exception("DayPilot.Month.events.list expects an array object. You supplied: " + typeof e);
3030
3096
  if ("function" == typeof this.onBeforeEventRender)
3031
3097
  for (var t = 0; t < e.length; t++)
3032
- this.ib(t);
3098
+ this.pb(t);
3033
3099
  for (var i = 0; i < e.length; i++) {
3034
3100
  var a = e[i];
3035
3101
  if ("object" != typeof a)
@@ -3042,12 +3108,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3042
3108
  if (!(n.getTime() > o.getTime()))
3043
3109
  for (var t = 0; t < this.rows.length; t++) {
3044
3110
  var r = this.rows[t], s = new DayPilot.Event(a, this);
3045
- r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.hb.events[i]));
3111
+ r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.ob.events[i]));
3046
3112
  }
3047
3113
  }
3048
3114
  for (var l = 0; l < this.rows.length; l++) {
3049
3115
  var r = this.rows[l];
3050
- r.events.sort(this.jb);
3116
+ r.events.sort(this.qb);
3051
3117
  for (var d = 0; d < this.rows[l].events.length; d++) {
3052
3118
  var c = r.events[d], u = r.getStartColumn(c), h = r.getWidth(c);
3053
3119
  r.putIntoLine(c, u, h, l);
@@ -3057,21 +3123,31 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3057
3123
  }, this.W = function () {
3058
3124
  for (var e = 0; e < this.elements.events.length; e++) {
3059
3125
  var t = this.elements.events[e];
3060
- t.event = null, t.click = null, t.parentNode.removeChild(t);
3126
+ n.Ea(t);
3061
3127
  }
3062
3128
  this.elements.events = [];
3063
- }, this.ka = function () { this.Nc(); }, this.Nc = function () {
3129
+ }, this.Ea = function (e) {
3130
+ !function () {
3131
+ var i = e.domArgs;
3132
+ if (e.domArgs = null, i && "function" == typeof n.onBeforeEventDomRemove && n.onBeforeEventDomRemove(i), i && "function" == typeof n.onBeforeEventDomAdd) {
3133
+ var a = i && i.Fa;
3134
+ if (a) {
3135
+ n.Ha.Ga && t(i.element) && (n.Ha.Ia = !0, n.Ha.Ja(a), n.Ha.Ia = !1);
3136
+ }
3137
+ }
3138
+ }(), e.event = null, e.click = null, e.parentNode.removeChild(e);
3139
+ }, this.ka = function () { this.Wc(); }, this.Wc = function () {
3064
3140
  this.elements.events = [];
3065
3141
  for (var e = 0; e < this.rows.length; e++)
3066
3142
  for (var t = this.rows[e], i = 0; i < t.lines.length; i++)
3067
3143
  for (var a = t.lines[i], n = 0; n < a.length; n++)
3068
- this.Ea(a[n]);
3069
- }, this.jb = function (e, t) {
3144
+ this.Ka(a[n]);
3145
+ }, this.qb = function (e, t) {
3070
3146
  if (!(e && t && e.start && t.start))
3071
3147
  return 0;
3072
3148
  var i = e.start().getTime() - t.start().getTime();
3073
3149
  return 0 !== i ? i : t.end().getTime() - e.end().getTime();
3074
- }, this.drawShadow = function (t, i, n, o, r, s) {
3150
+ }, this.drawShadow = function (t, i, a, o, r, s) {
3075
3151
  r || (r = 0);
3076
3152
  var l = o;
3077
3153
  this.shadow = {}, this.shadow.list = [], this.shadow.start = { x: t, y: i }, this.shadow.width = o;
@@ -3086,11 +3162,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3086
3162
  t -= c;
3087
3163
  i < 0 && (i = 0, t = 0);
3088
3164
  var u = null;
3089
- for (e.resizingEvent ? u = "w-resize" : e.movingEvent && (u = "move"), this.nav.top.style.cursor = u; l > 0 && i < this.rows.length;) {
3090
- var h = Math.min(this.getColCount() - t, l), f = this.rows[i], m = this.getRowTop(i), p = f.getHeight(), v = document.createElement("div");
3091
- v.setAttribute("unselectable", "on"), v.style.position = "absolute", v.style.left = this.getCellWidth() * t + "%", v.style.width = this.getCellWidth() * h + "%", v.style.top = m + "px", v.style.height = p + "px", v.style.cursor = u, v.classList.add(a.K("_shadow"));
3092
- var y = document.createElement("div");
3093
- y.setAttribute("unselectable", "on"), v.appendChild(y), y.style.position = "absolute", y.style.top = "0px", y.style.right = "0px", y.style.left = "0px", y.style.bottom = "0px", y.classList.add(a.K("_shadow_inner")), this.nav.top.appendChild(v), this.shadow.list.push(v), l -= h + 7 - this.getColCount(), t = 0, i++;
3165
+ e.resizingEvent ? u = "w-resize" : e.movingEvent && (u = "move"), this.nav.top.style.cursor = u;
3166
+ var h = n.eventBorderRadius;
3167
+ for ("number" == typeof h && (h += "px"); l > 0 && i < this.rows.length;) {
3168
+ var f = Math.min(this.getColCount() - t, l), m = this.rows[i], p = this.getRowTop(i), v = m.getHeight(), y = document.createElement("div");
3169
+ y.setAttribute("unselectable", "on"), y.style.position = "absolute", y.style.left = this.getCellWidth() * t + "%", y.style.width = this.getCellWidth() * f + "%", y.style.top = p + "px", y.style.height = v + "px", y.style.cursor = u, y.classList.add(n.K("_shadow"));
3170
+ var g = document.createElement("div");
3171
+ g.setAttribute("unselectable", "on"), y.appendChild(g), g.style.position = "absolute", g.style.top = "0px", g.style.right = "0px", g.style.left = "0px", g.style.bottom = "0px", g.classList.add(n.K("_shadow_inner")), h && (l === o && (y.style.borderTopLeftRadius = h, y.style.borderBottomLeftRadius = h, g.style.borderTopLeftRadius = h, g.style.borderBottomLeftRadius = h), l <= f && (y.style.borderTopRightRadius = h, y.style.borderBottomRightRadius = h, g.style.borderTopRightRadius = h, g.style.borderBottomRightRadius = h)), this.nav.top.appendChild(y), this.shadow.list.push(y), l -= f + 7 - this.getColCount(), t = 0, i++;
3094
3172
  }
3095
3173
  }, this.clearShadow = function () {
3096
3174
  if (this.shadow) {
@@ -3102,62 +3180,80 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3102
3180
  for (var i = this.headerHeight, a = 0; a < e; a++)
3103
3181
  i += this.rows[a].getHeight();
3104
3182
  return i += this.cellHeaderHeight, i += t * this.lineHeight();
3105
- }, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.Ea = function (t) {
3106
- var i = t.cache || t.data, n = t.part.row, o = t.part.line, r = t.part.colStart, s = t.part.colWidth, l = this.getCellWidth() * r, d = this.getCellWidth() * s, c = this.getEventTop(n, o), u = document.createElement("div");
3107
- u.setAttribute("unselectable", "on"), u.style.height = this.eventHeight + "px", u.className = this.K("_event"), i.cssClass && DayPilot.Util.addClass(u, i.cssClass), t.part.startsHere || DayPilot.Util.addClass(u, this.K("_event_continueleft")), t.part.endsHere || DayPilot.Util.addClass(u, this.K("_event_continueright")), u.event = t, u.style.width = d + "%", u.style.position = "absolute", u.style.left = l + "%", u.style.top = c + "px", this.showToolTip && t.client.toolTip() && (u.title = t.client.toolTip()), u.onclick = a.ra, u.oncontextmenu = a.Oc, u.onmousedown = function (i) {
3108
- i = i || window.event;
3109
- var l = i.which || i.button;
3110
- if (i.cancelBubble = !0, i.stopPropagation && i.stopPropagation(), 1 === l)
3183
+ }, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.Ka = function (i) {
3184
+ var a = i.cache || i.data, o = a.borderRadius || n.eventBorderRadius;
3185
+ "number" == typeof o && (o += "px");
3186
+ 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");
3187
+ 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.ra, f.oncontextmenu = n.Xc, f.onmousedown = function (t) {
3188
+ t = t || window.event;
3189
+ var a = t.which || t.button;
3190
+ if (t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), 1 === a)
3111
3191
  if (e.movingEvent = null, "w-resize" === this.style.cursor || "e-resize" === this.style.cursor) {
3112
- var d = {};
3113
- d.start = {}, d.start.x = r, d.start.y = n, d.event = u.event, d.width = DayPilot.DateUtil.daysSpan(d.event.start(), d.event.end()) + 1, d.direction = this.style.cursor, e.resizingEvent = d;
3192
+ var o = {};
3193
+ o.start = {}, o.start.x = l, o.start.y = r, o.event = f.event, o.width = DayPilot.DateUtil.daysSpan(o.event.start(), o.event.end()) + 1,
3194
+ o.direction = this.style.cursor, e.resizingEvent = o;
3114
3195
  }
3115
- else if ("move" === this.style.cursor || t.client.moveEnabled()) {
3116
- a.clearShadow();
3117
- var c = DayPilot.mo3(a.nav.top, i);
3196
+ else if ("move" === this.style.cursor || i.client.moveEnabled()) {
3197
+ n.clearShadow();
3198
+ var c = DayPilot.mo3(n.nav.top, t);
3118
3199
  if (!c)
3119
3200
  return;
3120
- var h = a.getCellBelowPoint(c.x, c.y), f = DayPilot.DateUtil.daysDiff(t.start(), a.rows[n].start), m = 7 * h.y + h.x - (7 * n + r);
3121
- f && (m += f);
3201
+ var u = n.getCellBelowPoint(c.x, c.y), h = DayPilot.DateUtil.daysDiff(i.start(), n.rows[r].start), m = 7 * u.y + u.x - (7 * r + l);
3202
+ h && (m += h);
3122
3203
  var p = {};
3123
- p.start = {}, p.start.x = r, p.start.y = n, p.start.line = o, p.offset = a.eventMoveToPosition ? 0 : m, p.colWidth = s, p.event = u.event, p.coords = c, e.movingEvent = p;
3204
+ p.start = {}, p.start.x = l, p.start.y = r, p.start.line = s, p.offset = n.eventMoveToPosition ? 0 : m, p.colWidth = d, p.event = f.event, p.coords = c, e.movingEvent = p;
3124
3205
  }
3125
- }, u.onmousemove = function (i) {
3206
+ }, f.onmousemove = function (t) {
3126
3207
  if ("undefined" != typeof e && !e.movingEvent && !e.resizingEvent) {
3127
- var a = DayPilot.mo3(u, i);
3208
+ var a = DayPilot.mo3(f, t);
3128
3209
  if (a) {
3129
- u.deleteIcon && (u.deleteIcon.style.display = "");
3210
+ f.deleteIcon && (f.deleteIcon.style.display = "");
3130
3211
  var n = 6;
3131
- a.x <= n && t.client.resizeEnabled() ? t.part.startsHere ? (u.style.cursor = "w-resize", u.dpBorder = "left") : u.style.cursor = "not-allowed" : u.clientWidth - a.x <= n && t.client.resizeEnabled() ? t.part.endsHere ? (u.style.cursor = "e-resize", u.dpBorder = "right") : u.style.cursor = "not-allowed" : t.client.clickEnabled() ? u.style.cursor = "pointer" : u.style.cursor = "default";
3212
+ a.x <= n && i.client.resizeEnabled() ? i.part.startsHere ? (f.style.cursor = "w-resize", f.dpBorder = "left") : f.style.cursor = "not-allowed" : f.clientWidth - a.x <= n && i.client.resizeEnabled() ? i.part.endsHere ? (f.style.cursor = "e-resize", f.dpBorder = "right") : f.style.cursor = "not-allowed" : i.client.clickEnabled() ? f.style.cursor = "pointer" : f.style.cursor = "default";
3132
3213
  }
3133
3214
  }
3134
- }, u.onmouseleave = function (e) { u.deleteIcon && (u.deleteIcon.style.display = "none"), u.style.cursor = ""; }, u.onmouseenter = function (e) { u.deleteIcon && (u.deleteIcon.style.display = ""); };
3135
- var h = document.createElement("div");
3136
- if (h.setAttribute("unselectable", "on"), h.className = this.K("_event_inner"), "darker" === i.borderColor && i.backColor ? h.style.borderColor = DayPilot.ColorUtil.darker(i.backColor, 2) : h.style.borderColor = i.borderColor, i.backColor && (h.style.background = i.backColor), i.fontColor && (h.style.color = i.fontColor), h.innerHTML = t.client.html(), u.appendChild(h), t.client.barVisible()) {
3137
- var f = document.createElement("div");
3138
- f.setAttribute("unselectable", "on"), f.className = this.K("_event_bar"), f.style.position = "absolute";
3139
- var m = document.createElement("div");
3140
- m.setAttribute("unselectable", "on"), m.className = this.K("_event_bar_inner"), m.style.top = "0%", m.style.height = "100%", i.barColor && (m.style.backgroundColor = i.barColor), f.appendChild(m), u.appendChild(f);
3215
+ }, f.onmouseleave = function (e) { f.deleteIcon && (f.deleteIcon.style.display = "none"), f.style.cursor = ""; }, f.onmouseenter = function (e) { f.deleteIcon && (f.deleteIcon.style.display = ""); };
3216
+ var m = document.createElement("div");
3217
+ if (m.setAttribute("unselectable", "on"), m.className = this.K("_event_inner"), "darker" === a.borderColor && a.backColor ? m.style.borderColor = DayPilot.ColorUtil.darker(a.backColor, 2) : m.style.borderColor = a.borderColor, a.backColor && (m.style.background = a.backColor), a.fontColor && (m.style.color = a.fontColor), o && (f.style.borderRadius = o, m.style.borderRadius = o), f.appendChild(m), i.client.barVisible()) {
3218
+ var p = document.createElement("div");
3219
+ p.setAttribute("unselectable", "on"), p.className = this.K("_event_bar"), p.style.position = "absolute";
3220
+ var v = document.createElement("div");
3221
+ v.setAttribute("unselectable", "on"), v.className = this.K("_event_bar_inner"), v.style.top = "0%", v.style.height = "100%", a.barColor && (v.style.backgroundColor = a.barColor), p.appendChild(v), f.appendChild(p);
3141
3222
  }
3142
- if (t.client.deleteEnabled()) {
3143
- var p = Math.floor(a.eventHeight / 2 - 9), v = document.createElement("div");
3144
- v.style.position = "absolute", v.style.right = "2px", v.style.top = p + "px", v.style.width = "18px", v.style.height = "18px", v.className = a.K("_event_delete"), v.onmousedown = function (e) { e.stopPropagation(); }, v.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && a.ua(t); }, v.style.display = "none", u.deleteIcon = v, u.appendChild(v);
3223
+ if (i.client.deleteEnabled()) {
3224
+ var y = Math.floor(n.eventHeight / 2 - 9), g = document.createElement("div");
3225
+ 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);
3145
3226
  }
3146
- var y = i.areas ? DayPilot.Areas.copy(i.areas) : [];
3147
- if (DayPilot.Areas.attach(u, t, {
3148
- "areas": y
3149
- }), "function" == typeof a.onAfterEventRender) {
3150
- var g = {};
3151
- g.e = u.event, g.div = u, a.onAfterEventRender(g);
3227
+ var b = a.areas ? DayPilot.Areas.copy(a.areas) : [];
3228
+ if (DayPilot.Areas.attach(f, i, { "areas": b }), "function" == typeof n.onAfterEventRender) {
3229
+ var D = {};
3230
+ D.e = f.event, D.div = f, n.onAfterEventRender(D);
3152
3231
  }
3153
- this.elements.events.push(u), this.nav.events.appendChild(u);
3154
- }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.Kc = function () {
3232
+ !function () {
3233
+ var e = {};
3234
+ if (e.control = n, e.e = i, e.element = null, f.domArgs = e, "function" == typeof n.onBeforeEventDomAdd && n.onBeforeEventDomAdd(e), e.element) {
3235
+ var a = m;
3236
+ if (a) {
3237
+ e.Fa = a;
3238
+ if (t(e.element)) {
3239
+ if (!n.Ha.Ga)
3240
+ throw new DayPilot.Exception("Can't reach Vue");
3241
+ n.Ha.Ia = !0, n.Ha.La(e.element, a, { "style": { "flexGrow": 1 } }), n.Ha.Ia = !1;
3242
+ }
3243
+ else
3244
+ a.appendChild(e.element);
3245
+ }
3246
+ }
3247
+ else
3248
+ m.innerHTML = i.client.innerHTML();
3249
+ }(), this.elements.events.push(f), this.nav.events.appendChild(f);
3250
+ }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.Tc = function () {
3155
3251
  "string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart());
3156
3252
  var e, t = (this.startDate, this.lastVisibleDayOfMonth()), i = DayPilot.DateUtil.daysDiff(this.firstDate, t) + 1;
3157
3253
  e = Math.ceil(i / 7), this.days = 7 * e, this.rows = [];
3158
- for (var n = 0; n < e; n++) {
3254
+ for (var a = 0; a < e; a++) {
3159
3255
  var o = {};
3160
- o.start = this.firstDate.addDays(7 * n), o.end = o.start.addDays(this.getColCount()), o.events = [], o.lines = [], o.index = n, o.minHeight = this.cellHeight, o.calendar = this, o.belongsHere = function (e) { return e.end().getTime() === e.start().getTime() && e.start().getTime() === this.start.getTime() || !(e.end().getTime() <= this.start.getTime() || e.start().getTime() >= this.end.getTime()); }, o.getPartStart = function (e) { return DayPilot.DateUtil.max(this.start, e.start()); }, o.getPartEnd = function (e) { return DayPilot.DateUtil.min(this.end, e.end()); }, o.getStartColumn = function (e) { var t = this.getPartStart(e); return DayPilot.DateUtil.daysDiff(this.start, t); }, o.getWidth = function (e) { return DayPilot.DateUtil.daysSpan(this.getPartStart(e), this.getPartEnd(e)) + 1; }, o.putIntoLine = function (e, t, i, a) {
3256
+ o.start = this.firstDate.addDays(7 * a), o.end = o.start.addDays(this.getColCount()), o.events = [], o.lines = [], o.index = a, o.minHeight = this.cellHeight, o.calendar = this, o.belongsHere = function (e) { return e.end().getTime() === e.start().getTime() && e.start().getTime() === this.start.getTime() || !(e.end().getTime() <= this.start.getTime() || e.start().getTime() >= this.end.getTime()); }, o.getPartStart = function (e) { return DayPilot.DateUtil.max(this.start, e.start()); }, o.getPartEnd = function (e) { return DayPilot.DateUtil.min(this.end, e.end()); }, o.getStartColumn = function (e) { var t = this.getPartStart(e); return DayPilot.DateUtil.daysDiff(this.start, t); }, o.getWidth = function (e) { return DayPilot.DateUtil.daysSpan(this.getPartStart(e), this.getPartEnd(e)) + 1; }, o.putIntoLine = function (e, t, i, a) {
3161
3257
  for (var n = this, o = 0; o < this.lines.length; o++) {
3162
3258
  var r = this.lines[o];
3163
3259
  if (r.isFree(t, i))
@@ -3170,43 +3266,43 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3170
3266
  return i;
3171
3267
  }, r.addEvent = function (e, t, i, a, o) { e.part.colStart = t, e.part.colWidth = i, e.part.row = a, e.part.line = o, e.part.startsHere = n.start.getTime() <= e.start().getTime(), e.part.endsHere = n.end.getTime() >= e.end().getTime(), this.push(e); }, r.addEvent(e, t, i, a, this.lines.length), this.lines.push(r), this.lines.length - 1;
3172
3268
  }, o.getStart = function () {
3173
- for (var e = 0, t = 0; t < a.rows.length && t < this.index; t++)
3174
- e += a.rows[t].getHeight();
3175
- }, o.getHeight = function () { return Math.max(this.lines.length * a.lineHeight() + a.cellHeaderHeight + a.cellMarginBottom, this.calendar.cellHeight); }, this.rows.push(o);
3269
+ for (var e = 0, t = 0; t < n.rows.length && t < this.index; t++)
3270
+ e += n.rows[t].getHeight();
3271
+ }, o.getHeight = function () { return Math.max(this.lines.length * n.lineHeight() + n.cellHeaderHeight + n.cellMarginBottom, this.calendar.cellHeight); }, this.rows.push(o);
3176
3272
  }
3177
3273
  this.endDate = this.firstDate.addDays(7 * e);
3178
- }, this.visibleStart = function () { return a.firstDate; }, this.visibleEnd = function () { return a.endDate; }, this.getHeight = function () {
3274
+ }, this.visibleStart = function () { return n.firstDate; }, this.visibleEnd = function () { return n.endDate; }, this.getHeight = function () {
3179
3275
  for (var e = this.headerHeight, t = 0; t < this.rows.length; t++)
3180
3276
  e += this.rows[t].getHeight();
3181
3277
  return e;
3182
- }, this.getWidth = function (e, t) { return 7 * t.y + t.x - (7 * e.y + e.x) + 1; }, this.getMinCoords = function (e, t) { return 7 * e.y + e.x < 7 * t.y + t.x ? e : t; }, this.K = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Ga = function () {
3278
+ }, 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 () {
3183
3279
  var t = this.nav.top;
3184
3280
  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");
3185
3281
  var i = document.createElement("div");
3186
3282
  this.nav.cells = i, i.style.position = "absolute", i.style.left = "0px", i.style.right = "0px", i.setAttribute("unselectable", "on"), t.appendChild(i);
3187
- var n = document.createElement("div");
3188
- this.nav.events = n, n.style.position = "absolute", n.style.left = "0px", n.style.right = "0px", n.setAttribute("unselectable", "on"), t.appendChild(n), t.onmousemove = function (t) {
3283
+ var a = document.createElement("div");
3284
+ this.nav.events = a, a.style.position = "absolute", a.style.left = "0px", a.style.right = "0px", a.setAttribute("unselectable", "on"), t.appendChild(a), t.onmousemove = function (t) {
3189
3285
  if (e.resizingEvent) {
3190
- var i = DayPilot.mo3(a.nav.top, t);
3286
+ var i = DayPilot.mo3(n.nav.top, t);
3191
3287
  if (!i)
3192
3288
  return;
3193
- var n = a.getCellBelowPoint(i.x, i.y);
3194
- a.clearShadow();
3289
+ var a = n.getCellBelowPoint(i.x, i.y);
3290
+ n.clearShadow();
3195
3291
  var o, r, s = e.resizingEvent;
3196
3292
  s.start;
3197
3293
  if ("w-resize" === s.direction) {
3198
- r = n;
3294
+ r = a;
3199
3295
  var l = s.event.end();
3200
3296
  l.getDatePart() === l && (l = l.addDays(-1));
3201
- var d = a.getCellFromDate(l);
3202
- o = a.getWidth(n, d);
3297
+ var d = n.getCellFromDate(l);
3298
+ o = n.getWidth(a, d);
3203
3299
  }
3204
3300
  else
3205
- r = a.getCellFromDate(s.event.start()), o = a.getWidth(r, n);
3206
- o < 1 && (o = 1), a.drawShadow(r.x, r.y, 0, o);
3301
+ r = n.getCellFromDate(s.event.start()), o = n.getWidth(r, a);
3302
+ o < 1 && (o = 1), n.drawShadow(r.x, r.y, 0, o);
3207
3303
  }
3208
3304
  else if (e.movingEvent) {
3209
- var i = DayPilot.mo3(a.nav.top, t);
3305
+ var i = DayPilot.mo3(n.nav.top, t);
3210
3306
  if (!i)
3211
3307
  return;
3212
3308
  if (i.x === e.movingEvent.coords.x && i.y === e.movingEvent.coords.y)
@@ -3214,21 +3310,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3214
3310
  var c = 3, u = Math.abs(i.x - e.movingEvent.coords.x) + Math.abs(i.y - e.movingEvent.coords.y);
3215
3311
  if (u <= c)
3216
3312
  return;
3217
- var n = a.getCellBelowPoint(i.x, i.y);
3218
- a.clearShadow();
3219
- var h = e.movingEvent.event, f = e.movingEvent.offset, o = a.cellMode ? 1 : DayPilot.DateUtil.daysSpan(h.start(), h.end()) + 1;
3220
- o < 1 && (o = 1), a.drawShadow(n.x, n.y, 0, o, f, h);
3313
+ var a = n.getCellBelowPoint(i.x, i.y);
3314
+ n.clearShadow();
3315
+ var h = e.movingEvent.event, f = e.movingEvent.offset, o = n.cellMode ? 1 : DayPilot.DateUtil.daysSpan(h.start(), h.end()) + 1;
3316
+ o < 1 && (o = 1), n.drawShadow(a.x, a.y, 0, o, f, h);
3221
3317
  }
3222
3318
  else if (e.timeRangeSelecting) {
3223
- var i = DayPilot.mo3(a.nav.top, t);
3319
+ var i = DayPilot.mo3(n.nav.top, t);
3224
3320
  if (!i)
3225
3321
  return;
3226
- var n = a.getCellBelowPoint(i.x, i.y);
3227
- a.clearShadow();
3228
- var r = e.timeRangeSelecting, m = 7 * r.y + r.x, p = 7 * n.y + n.x, o = Math.abs(p - m) + 1;
3322
+ var a = n.getCellBelowPoint(i.x, i.y);
3323
+ n.clearShadow();
3324
+ var r = e.timeRangeSelecting, m = 7 * r.y + r.x, p = 7 * a.y + a.x, o = Math.abs(p - m) + 1;
3229
3325
  o < 1 && (o = 1);
3230
- var v = m < p ? r : n;
3231
- e.timeRangeSelecting.from = { x: v.x, y: v.y }, e.timeRangeSelecting.width = o, e.timeRangeSelecting.moved = !0, a.drawShadow(v.x, v.y, 0, o, 0, null);
3326
+ var v = m < p ? r : a;
3327
+ 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);
3232
3328
  }
3233
3329
  };
3234
3330
  }, this.ja = function () {
@@ -3251,7 +3347,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3251
3347
  for (var t = DayPilot.DateUtil.daysDiff(this.firstDate, e), i = { x: 0, y: 0 }; t >= 7;)
3252
3348
  i.y++, t -= 7;
3253
3349
  return i.x = t, i;
3254
- }, this.Mc = function () {
3350
+ }, this.Vc = function () {
3255
3351
  var e = document.createElement("div");
3256
3352
  e.oncontextmenu = function () { return !1; }, this.nav.cells.appendChild(e), this.cells = [];
3257
3353
  for (var t = 0; t < this.getColCount(); t++) {
@@ -3260,115 +3356,145 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3260
3356
  i.setAttribute("unselectable", "on"), i.style.position = "absolute", i.style.left = this.getCellWidth() * t + "%", i.style.width = this.getCellWidth() + "%", i.style.top = "0px", i.style.height = this.headerHeight + "px";
3261
3357
  var a = t + this.getWeekStart();
3262
3358
  a > 6 && (a -= 7), i.className = this.K("_header");
3263
- var o = document.createElement("div");
3264
- o.setAttribute("unselectable", "on"), o.innerHTML = n.locale().dayNames[a], i.appendChild(o), o.style.position = "absolute", o.style.top = "0px", o.style.bottom = "0px", o.style.left = "0px", o.style.right = "0px", o.className = this.K("_header_inner"), o.innerHTML = n.locale().dayNames[a], e.appendChild(i);
3359
+ var n = document.createElement("div");
3360
+ 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);
3265
3361
  for (var r = 0; r < this.rows.length; r++)
3266
- this.Pc(t, r, e);
3362
+ this.Yc(t, r, e);
3267
3363
  }
3268
- }, this.Lc = function () {
3364
+ }, this.Uc = function () {
3269
3365
  for (var e = 0; e < this.cells.length; e++)
3270
- for (var t = 0; t < this.cells[e].length; t++)
3271
- this.cells[e][t].onclick = null;
3366
+ for (var t = 0; t < this.cells[e].length; t++) {
3367
+ var i = n.cells[e][t];
3368
+ n.Ya(i);
3369
+ }
3272
3370
  this.nav.cells.innerHTML = "";
3273
- }, this.qa = function () { return 2 === a.api; }, this.Pc = function (t, i, o) {
3274
- var r = this.rows[i], s = this.firstDate.addDays(7 * i + t), l = s.getDay(), d = null;
3275
- d = 1 === l ? n.locale().monthNames[s.getMonth()] + " " + l : "" + l;
3276
- var c = !a.isWeekend(s), u = {};
3277
- u.control = a, u.cell = {}, u.cell.start = s, u.cell.end = s.addDays(1), u.cell.properties = { "headerHtml": d, "backColor": null, "business": c, "html": null }, "function" == typeof a.onBeforeCellRender && a.onBeforeCellRender(u);
3278
- var h = u.cell.properties, f = document.createElement("div");
3279
- if (f.setAttribute("unselectable", "on"), f.style.position = "absolute", f.style.cursor = "default", f.style.left = this.getCellWidth() * t + "%", f.style.width = this.getCellWidth() + "%", f.style.top = this.getRowTop(i) + "px", f.style.height = r.getHeight() + "px", f.className = this.K("_cell"), h.business) {
3280
- var c = this.K("_cell_business");
3281
- DayPilot.Util.addClass(f, c);
3282
- }
3283
- var m = (this.startDate.addMonths(-1).getMonth(), this.startDate.addMonths(1).getMonth(), this.startDate.getMonth(), document.createElement("div"));
3284
- m.setAttribute("unselectable", "on"), f.appendChild(m), m.style.position = "absolute", m.style.left = "0px", m.style.right = "0px", m.style.top = "0px", m.style.bottom = "0px", m.className = this.K("_cell_inner"), h.backColor && (m.style.backgroundColor = u.cell.properties.backColor), f.onmousedown = function (n) { "Disabled" !== a.timeRangeSelectedHandling && (a.clearShadow(), e.timeRangeSelecting = { "root": a, "x": t, "y": i, "from": { x: t, y: i }, "width": 1 }); }, f.onclick = function () {
3285
- var e = function (e) { var t = new DayPilot.Date(e), i = t.addDays(1); a.M(t, i); };
3286
- if ("Disabled" !== a.timeRangeSelectedHandling)
3287
- return void e(s);
3371
+ }, this.Ya = function (e) {
3372
+ !function () {
3373
+ var i = e.domArgs;
3374
+ if (e.domArgs = null, i && "function" == typeof n.onBeforeCellDomRemove && n.onBeforeCellDomRemove(i), i && "function" == typeof n.onBeforeCellDomAdd) {
3375
+ var a = i && i.Fa;
3376
+ if (a) {
3377
+ var o = n.Zc.reactDOM && isReactCmp(i.element), r = n.Ha.Ga && (isVueCmp(i.element) || t(i.element));
3378
+ o ? n.Zc.$c(a) : r && (n.Ha.Ia = !0, n.Ha.Ja(a), n.Ha.Ia = !1);
3379
+ }
3380
+ }
3381
+ }(), e.onclick = null;
3382
+ }, this.qa = function () { return 2 === n.api; }, this.Yc = function (i, a, r) {
3383
+ var s = this.rows[a], l = this.firstDate.addDays(7 * a + i), d = l.getDay(), c = null;
3384
+ c = 1 === d ? o.locale().monthNames[l.getMonth()] + " " + d : "" + d;
3385
+ var u = !n.isWeekend(l), h = { "start": l, "end": l.addDays(1), "properties": { "headerHtml": c, "backColor": null, "business": u, "html": null } }, f = {};
3386
+ f.control = n, f.cell = h, "function" == typeof n.onBeforeCellRender && n.onBeforeCellRender(f);
3387
+ var m = f.cell.properties, p = document.createElement("div");
3388
+ if (p.setAttribute("unselectable", "on"), p.style.position = "absolute", p.style.cursor = "default", p.style.left = this.getCellWidth() * i + "%", p.style.width = this.getCellWidth() + "%", p.style.top = this.getRowTop(a) + "px", p.style.height = s.getHeight() + "px", p.className = this.K("_cell"), m.business) {
3389
+ var u = this.K("_cell_business");
3390
+ DayPilot.Util.addClass(p, u);
3391
+ }
3392
+ var v = (this.startDate.addMonths(-1).getMonth(), this.startDate.addMonths(1).getMonth(), this.startDate.getMonth(), document.createElement("div"));
3393
+ v.setAttribute("unselectable", "on"), p.appendChild(v), v.style.position = "absolute", v.style.left = "0px", v.style.right = "0px", v.style.top = "0px", v.style.bottom = "0px", v.className = this.K("_cell_inner"), m.backColor && (v.style.backgroundColor = f.cell.properties.backColor), p.onmousedown = function (t) { "Disabled" !== n.timeRangeSelectedHandling && (n.clearShadow(), e.timeRangeSelecting = { "root": n, "x": i, "y": a, "from": { x: i, y: a }, "width": 1 }); }, p.onclick = function () {
3394
+ var e = function (e) { var t = new DayPilot.Date(e), i = t.addDays(1); n.M(t, i); };
3395
+ if ("Disabled" !== n.timeRangeSelectedHandling)
3396
+ return void e(l);
3288
3397
  };
3289
- var p = document.createElement("div");
3290
- if (p.setAttribute("unselectable", "on"), p.style.height = this.cellHeaderHeight + "px", p.className = this.K("_cell_header"), p.onclick = function (e) {
3291
- if ("Enabled" === a.cellHeaderClickHandling) {
3398
+ var y = document.createElement("div");
3399
+ if (y.setAttribute("unselectable", "on"), y.style.height = this.cellHeaderHeight + "px", y.className = this.K("_cell_header"), y.onclick = function (e) {
3400
+ if ("Enabled" === n.cellHeaderClickHandling) {
3292
3401
  e.stopPropagation();
3293
3402
  var t = {};
3294
- t.control = a, t.start = s, t.end = s.addDays(1), t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onCellHeaderClick && (a.onCellHeaderClick(t), t.preventDefault.value) || "function" == typeof a.onCellHeaderClicked && a.onCellHeaderClicked(t);
3403
+ t.control = n, t.start = l, t.end = l.addDays(1), t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onCellHeaderClick && (n.onCellHeaderClick(t), t.preventDefault.value) || "function" == typeof n.onCellHeaderClicked && n.onCellHeaderClicked(t);
3295
3404
  }
3296
- }, p.innerHTML = h.headerHtml, m.appendChild(p), h.html) {
3297
- var v = document.createElement("div");
3298
- v.style.height = r.getHeight() - this.cellHeaderHeight + "px", v.style.overflow = "hidden", v.innerHTML = h.html, m.appendChild(v);
3405
+ }, y.innerHTML = m.headerHtml, v.appendChild(y), m.html) {
3406
+ var g = document.createElement("div");
3407
+ g.style.height = s.getHeight() - this.cellHeaderHeight + "px", g.style.overflow = "hidden", g.innerHTML = m.html, v.appendChild(g);
3299
3408
  }
3300
- this.cells[t][i] = f, o.appendChild(f);
3409
+ !function () {
3410
+ if ("function" == typeof n.onBeforeCellDomAdd || "function" == typeof n.onBeforeCellDomRemove) {
3411
+ var e = {};
3412
+ if (e.control = n, e.cell = h, e.element = null, p.domArgs = e, "function" == typeof n.onBeforeCellDomAdd && n.onBeforeCellDomAdd(e), e.element) {
3413
+ var i = v;
3414
+ if (i) {
3415
+ e.Fa = i;
3416
+ if (t(e.element)) {
3417
+ if (!n.Ha.Ga)
3418
+ throw new DayPilot.Exception("Can't reach Vue");
3419
+ n.Ha.Ia = !0, n.Ha.La(e.element, i), n.Ha.Ia = !1;
3420
+ }
3421
+ else
3422
+ i.appendChild(e.element);
3423
+ }
3424
+ }
3425
+ }
3426
+ }(), this.cells[i][a] = p, r.appendChild(p);
3301
3427
  }, this.getWeekStart = function () {
3302
- if ("Auto" === a.weekStarts) {
3303
- var e = n.locale();
3428
+ if ("Auto" === n.weekStarts) {
3429
+ var e = o.locale();
3304
3430
  return e ? e.weekStarts : 0;
3305
3431
  }
3306
- return a.weekStarts || 0;
3432
+ return n.weekStarts || 0;
3307
3433
  }, this.getColCount = function () { return 7; }, this.getCellWidth = function () { return 14.285; }, this.getRowTop = function (e) {
3308
3434
  for (var t = this.headerHeight, i = 0; i < e; i++)
3309
3435
  t += this.rows[i].getHeight();
3310
3436
  return t;
3311
- }, this.S = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.R(); var n = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl && DayPilot.request(this.backendUrl, this.T, n, this.ajaxError); }, this.T = function (e) { a.U(e.responseText); }, this.R = function () { var e = {}; return e.control = "dpm", e.id = this.id, e.v = this.v, e.visibleStart = new DayPilot.Date(this.firstDate), e.visibleEnd = e.visibleStart.addDays(this.days), e.startDate = a.startDate, e.timeFormat = this.timeFormat, e.weekStarts = this.weekStarts, e; }, this.eventClickCallBack = function (e, t) { this.S("EventClick", t, e); }, this.ra = function (t) { e.movingEvent = null, e.resizingEvent = null; var i = this, t = t || window.event; t.ctrlKey; t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), a.eventClickSingle(i, t); }, this.eventClickSingle = function (e, t) {
3437
+ }, 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) {
3312
3438
  var i = e.event;
3313
3439
  if (i && i.client.clickEnabled())
3314
- if (a.qa()) {
3315
- var n = {};
3316
- if (n.e = i, n.control = a, n.div = e, n.originalEvent = t, n.meta = t.metaKey, n.ctrl = t.ctrlKey, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventClick && (a.sa.apply(function () { a.onEventClick(n); }), n.preventDefault.value))
3440
+ if (n.qa()) {
3441
+ var a = {};
3442
+ 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))
3317
3443
  return;
3318
- switch (a.eventClickHandling) {
3444
+ switch (n.eventClickHandling) {
3319
3445
  case "CallBack":
3320
- a.eventClickCallBack(i);
3446
+ n.eventClickCallBack(i);
3321
3447
  break;
3322
3448
  case "ContextMenu":
3323
3449
  var o = i.client.contextMenu();
3324
- o ? o.show(i) : a.contextMenu && a.contextMenu.show(i);
3450
+ o ? o.show(i) : n.contextMenu && n.contextMenu.show(i);
3325
3451
  }
3326
- "function" == typeof a.onEventClicked && a.sa.apply(function () { a.onEventClicked(n); });
3452
+ "function" == typeof n.onEventClicked && n.sa.apply(function () { n.onEventClicked(a); });
3327
3453
  }
3328
3454
  else
3329
- switch (a.eventClickHandling) {
3455
+ switch (n.eventClickHandling) {
3330
3456
  case "CallBack":
3331
- a.eventClickCallBack(i);
3457
+ n.eventClickCallBack(i);
3332
3458
  break;
3333
- case "JavaScript": a.onEventClick(i);
3459
+ case "JavaScript": n.onEventClick(i);
3334
3460
  }
3335
- }, this.Oc = function () { var e = this; return a.ta(e.event), !1; }, this.ta = function (e) {
3461
+ }, this.Xc = function () { var e = this; return n.ta(e.event), !1; }, this.ta = function (e) {
3336
3462
  if (this.event = e, !e.client.rightClickEnabled())
3337
3463
  return !1;
3338
3464
  var t = {};
3339
- if (t.e = e, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" != typeof a.onEventRightClick || (a.onEventRightClick(t), !t.preventDefault.value)) {
3340
- switch (a.eventRightClickHandling) {
3465
+ if (t.e = e, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" != typeof n.onEventRightClick || (n.onEventRightClick(t), !t.preventDefault.value)) {
3466
+ switch (n.eventRightClickHandling) {
3341
3467
  case "ContextMenu":
3342
3468
  var i = e.client.contextMenu();
3343
- i ? i.show(e) : a.contextMenu && a.contextMenu.show(this.event);
3469
+ i ? i.show(e) : n.contextMenu && n.contextMenu.show(this.event);
3344
3470
  }
3345
- return "function" == typeof a.onEventRightClicked && a.onEventRightClicked(t), !1;
3471
+ return "function" == typeof n.onEventRightClicked && n.onEventRightClicked(t), !1;
3346
3472
  }
3347
3473
  }, this.ua = function (e) {
3348
- if (a.qa()) {
3474
+ if (n.qa()) {
3349
3475
  var t = {};
3350
- if (t.e = e, t.control = a, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventDelete && (a.sa.apply(function () { a.onEventDelete(t); }), t.preventDefault.value))
3476
+ 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))
3351
3477
  return;
3352
- switch (a.eventDeleteHandling) {
3478
+ switch (n.eventDeleteHandling) {
3353
3479
  case "CallBack":
3354
- a.eventDeleteCallBack(e);
3480
+ n.eventDeleteCallBack(e);
3355
3481
  break;
3356
3482
  case "PostBack":
3357
- a.eventDeletePostBack(e);
3483
+ n.eventDeletePostBack(e);
3358
3484
  break;
3359
- case "Update": a.events.remove(e);
3485
+ case "Update": n.events.remove(e);
3360
3486
  }
3361
- "function" == typeof a.onEventDeleted && a.sa.apply(function () { a.onEventDeleted(t); });
3487
+ "function" == typeof n.onEventDeleted && n.sa.apply(function () { n.onEventDeleted(t); });
3362
3488
  }
3363
3489
  else
3364
- switch (a.eventDeleteHandling) {
3490
+ switch (n.eventDeleteHandling) {
3365
3491
  case "PostBack":
3366
- a.eventDeletePostBack(e);
3492
+ n.eventDeletePostBack(e);
3367
3493
  break;
3368
3494
  case "CallBack":
3369
- a.eventDeleteCallBack(e);
3495
+ n.eventDeleteCallBack(e);
3370
3496
  break;
3371
- case "JavaScript": a.onEventDelete(e);
3497
+ case "JavaScript": n.onEventDelete(e);
3372
3498
  }
3373
3499
  }, this.eventDeleteCallBack = function (e, t) { this.S("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.Q("EventDelete", t, e); }, this.eventMoveCallBack = function (e, t, i, a, n) {
3374
3500
  if (!t)
@@ -3377,30 +3503,30 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3377
3503
  throw "newEnd is null";
3378
3504
  var o = {};
3379
3505
  o.e = e, o.newStart = t, o.newEnd = i, o.position = n, this.S("EventMove", a, o);
3380
- }, this.L = function (e, t, i, n, o, r) {
3506
+ }, this.L = function (e, t, i, a, o, r) {
3381
3507
  var s = e.start().getTimePart(), l = e.end().getDatePart();
3382
3508
  l.getTime() !== e.end().getTime() && (l = l.addDays(1));
3383
3509
  var d = DayPilot.DateUtil.diff(e.end(), l), c = this.getDateFromCell(t, i);
3384
- c = c.addDays(-n);
3510
+ c = c.addDays(-a);
3385
3511
  var u = DayPilot.DateUtil.daysSpan(e.start(), e.end()) + 1, h = c.addDays(u), f = c.addTime(s), m = h.addTime(d);
3386
- if (a.qa()) {
3512
+ if (n.qa()) {
3387
3513
  var p = {};
3388
- if (p.e = e, p.control = a, p.newStart = f, p.newEnd = m, p.ctrl = o.ctrlKey, p.shift = o.shiftKey, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventMove && (a.sa.apply(function () { a.onEventMove(p); }), p.preventDefault.value))
3514
+ 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))
3389
3515
  return;
3390
- switch (a.eventMoveHandling) {
3516
+ switch (n.eventMoveHandling) {
3391
3517
  case "CallBack":
3392
- a.eventMoveCallBack(e, f, m);
3518
+ n.eventMoveCallBack(e, f, m);
3393
3519
  break;
3394
- case "Update": e.start(f), e.end(m), a.events.update(e);
3520
+ case "Update": e.start(f), e.end(m), n.events.update(e);
3395
3521
  }
3396
- "function" == typeof a.onEventMoved && a.sa.apply(function () { a.onEventMoved(p); });
3522
+ "function" == typeof n.onEventMoved && n.sa.apply(function () { n.onEventMoved(p); });
3397
3523
  }
3398
3524
  else
3399
- switch (a.eventMoveHandling) {
3525
+ switch (n.eventMoveHandling) {
3400
3526
  case "CallBack":
3401
- a.eventMoveCallBack(e, f, m);
3527
+ n.eventMoveCallBack(e, f, m);
3402
3528
  break;
3403
- case "JavaScript": a.onEventMove(e, f, m);
3529
+ case "JavaScript": n.onEventMove(e, f, m);
3404
3530
  }
3405
3531
  }, this.eventResizeCallBack = function (e, t, i, a) {
3406
3532
  if (!t)
@@ -3410,48 +3536,48 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3410
3536
  var n = {};
3411
3537
  n.e = e, n.newStart = t, n.newEnd = i, this.S("EventResize", a, n);
3412
3538
  }, this.J = function (e, t, i) {
3413
- var n = e.start().getTimePart(), o = e.end().getDatePart();
3539
+ var a = e.start().getTimePart(), o = e.end().getDatePart();
3414
3540
  o.getTime() !== e.end().getTime() && (o = o.addDays(1));
3415
- var r = DayPilot.DateUtil.diff(e.end(), o), s = this.getDateFromCell(t.x, t.y), l = s.addDays(i), d = s.addTime(n), c = l.addTime(r);
3416
- if (a.qa()) {
3541
+ 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);
3542
+ if (n.qa()) {
3417
3543
  var u = {};
3418
- if (u.e = e, u.control = a, u.newStart = d, u.newEnd = c, u.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventResize && (a.sa.apply(function () { a.onEventResize(u); }), u.preventDefault.value))
3544
+ 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))
3419
3545
  return;
3420
- switch (a.eventResizeHandling) {
3546
+ switch (n.eventResizeHandling) {
3421
3547
  case "CallBack":
3422
- a.eventResizeCallBack(e, d, c);
3548
+ n.eventResizeCallBack(e, d, c);
3423
3549
  break;
3424
- case "Update": e.start(d), e.end(c), a.events.update(e);
3550
+ case "Update": e.start(d), e.end(c), n.events.update(e);
3425
3551
  }
3426
- "function" == typeof a.onEventResized && a.sa.apply(function () { a.onEventResized(u); });
3552
+ "function" == typeof n.onEventResized && n.sa.apply(function () { n.onEventResized(u); });
3427
3553
  }
3428
3554
  else
3429
- switch (a.eventResizeHandling) {
3555
+ switch (n.eventResizeHandling) {
3430
3556
  case "CallBack":
3431
- a.eventResizeCallBack(e, d, c);
3557
+ n.eventResizeCallBack(e, d, c);
3432
3558
  break;
3433
- case "JavaScript": a.onEventResize(e, d, c);
3559
+ case "JavaScript": n.onEventResize(e, d, c);
3434
3560
  }
3435
3561
  }, this.timeRangeSelectedCallBack = function (e, t, i) { var a = {}; a.start = e, a.end = t, this.S("TimeRangeSelected", i, a); }, this.M = function (e, t) {
3436
3562
  if (this.qa()) {
3437
3563
  var i = {};
3438
- if (i.control = a, i.start = e, i.end = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onTimeRangeSelect && (a.sa.apply(function () { a.onTimeRangeSelect(i); }), i.preventDefault.value))
3564
+ 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))
3439
3565
  return;
3440
- switch (a.timeRangeSelectedHandling) {
3441
- case "CallBack": a.timeRangeSelectedCallBack(e, t);
3566
+ switch (n.timeRangeSelectedHandling) {
3567
+ case "CallBack": n.timeRangeSelectedCallBack(e, t);
3442
3568
  }
3443
- "function" == typeof a.onTimeRangeSelected && a.sa.apply(function () { a.onTimeRangeSelected(i); });
3569
+ "function" == typeof n.onTimeRangeSelected && n.sa.apply(function () { n.onTimeRangeSelected(i); });
3444
3570
  }
3445
3571
  else
3446
- switch (a.timeRangeSelectedHandling) {
3572
+ switch (n.timeRangeSelectedHandling) {
3447
3573
  case "CallBack":
3448
- a.timeRangeSelectedCallBack(e, t);
3574
+ n.timeRangeSelectedCallBack(e, t);
3449
3575
  break;
3450
- case "JavaScript": a.onTimeRangeSelected(e, t);
3576
+ case "JavaScript": n.onTimeRangeSelected(e, t);
3451
3577
  }
3452
- }, this.sa = {}, this.sa.scope = null, this.sa.notify = function () { a.sa.scope && a.sa.scope["$apply"](); }, this.sa.apply = function (e) { e(); }, this.clearSelection = function () { a.clearShadow(); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.S("Command", t, i); }, this.isWeekend = function (e) { return e = new DayPilot.Date(e), 0 === e.dayOfWeek() || 6 === e.dayOfWeek(); }, this.aa = {}, this.aa.locale = function () { var e = DayPilot.Locale.find(a.locale); return e ? e : DayPilot.Locale.US; }, this.aa.ba = function () { return "Disabled" !== a.xssProtection; };
3453
- var n = this.aa;
3454
- this.debug = function (e, t) { this.debuggingEnabled && (a.debugMessages || (a.debugMessages = []), a.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.dispose = function () { var e = a; e.O || (e.O = !0, e.W(), e.nav.top.removeAttribute("style"), e.nav.top.removeAttribute("class"), e.nav.top.innerHTML = "", e.nav.top.dp = null, e.nav.top.onmousemove = null, e.nav.top = null); }, this.disposed = function () { return this.O; }, this.$a = function () { e.globalHandlers || (e.globalHandlers = !0, DayPilot.re(document, "mouseup", e.gMouseUp)); }, this.loadFromServer = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof a.events.list || !a.events.list); }, this.t = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { a.visible = !0, a.nav.top.style.display = ""; }, this.hide = function () { a.visible = !1, a.nav.top.style.display = "none"; }, this.gb = function () {
3578
+ }, 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; };
3579
+ var o = this.aa;
3580
+ 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 () {
3455
3581
  if (this.id && this.id.tagName)
3456
3582
  this.nav.top = this.id;
3457
3583
  else {
@@ -3460,7 +3586,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3460
3586
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
3461
3587
  throw "DayPilot.Month: The placeholder element not found: '" + id + "'.";
3462
3588
  }
3463
- }, this.mb = function () { this.Kc(), this.Ga(), this.Mc(), this.$a(), this.S("Init"); }, this.Ka = function (e, t) { return a.aa.ba() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.loadOptions = this.bb, this.internal.xssTextHtml = a.Ka, this.init = function () { return this.gb(), this.loadFromServer() ? void this.mb() : (this.Kc(), this.ea(), this.Ga(), this.Mc(), this.t(), this.ka(), this.$a(), this.fireAfterRenderDetached(null, !1), this.Ba = !0, this); }, this.Init = this.init, Object.defineProperty(this, "durationBarVisible", { get: function () { return a.eventBarVisible; } }), this.bb(i);
3589
+ }, 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) {
3590
+ var a = n.Ha.Ga;
3591
+ if ("function" == typeof a.createVNode && "function" == typeof a.render) {
3592
+ var o = a.createVNode(e, i);
3593
+ a.render(o, t);
3594
+ }
3595
+ }, this.Ha.La = function (e, t, i) {
3596
+ var a = n.Ha.Ga;
3597
+ if ("function" == typeof a.render) {
3598
+ var o = e;
3599
+ DayPilot.isArray(e) && (o = a.h("div", i, e)), a.render(o, t);
3600
+ }
3601
+ }, 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);
3464
3602
  }, e.gMouseUp = function (t) {
3465
3603
  if (e.movingEvent) {
3466
3604
  var i = e.movingEvent;
@@ -3539,107 +3677,130 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3539
3677
  "undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (DayPilot) {
3540
3678
  "use strict";
3541
3679
  if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.def) {
3542
- DayPilot.Navigator = function (e, t) {
3543
- this.v = "2024.4.575-lite";
3544
- var i = this;
3545
- this.id = e, this.api = 2, this.isNavigator = !0, this.autoFocusOnClick = !0, this.weekStarts = "Auto", this.selectMode = "Day", this.titleHeight = 30, this.dayHeaderHeight = 30, this.bound = null, this.cellWidth = 30, this.cellHeight = 30, this.cssClassPrefix = "navigator_default", this.freeHandSelectionEnabled = !1, this.selectionStart = (new DayPilot.Date).getDatePart(), this.selectionEnd = null, this.selectionDay = null, this.showMonths = 1, this.skipMonths = 1, this.command = "navigate", this.year = (new DayPilot.Date).getYear(), this.month = (new DayPilot.Date).getMonth() + 1, this.showWeekNumbers = !1, this.weekNumberAlgorithm = "Auto", this.rowsPerMonth = "Six", this.orientation = "Vertical", this.locale = "en-us", this.rtl = !1, this.visible = !0, this.timeRangeSelectedHandling = "Bind", this.visibleRangeChangedHandling = "Enabled", this.onVisibleRangeChange = null, this.onVisibleRangeChanged = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.nav = {}, this.hb = {}, this.Qc = function () { this.root.dp = this, this.root.className = this.K("_main"), "Horizontal" === this.orientation ? (o.Rc() || (this.root.style.width = this.showMonths * (7 * o.cellWidth() + this.Sc()) + "px"), this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : o.Rc() || (this.root.style.width = 7 * o.cellWidth() + this.Sc() + "px"), this.rtl && (this.root.style.direction = "rtl"), this.root.style.position = "relative", this.visible || (this.root.style.display = "none"); var e = document.createElement("input"); e.type = "hidden", e.name = i.id + "_state", e.id = e.name, this.root.appendChild(e), this.state = e, this.startDate ? this.startDate = new DayPilot.Date(this.startDate).firstDayOfMonth() : this.selectionDay ? this.startDate = new DayPilot.Date(this.selectionDay).firstDayOfMonth() : this.startDate = DayPilot.Date.fromYearMonthDay(this.year, this.month), this.calendars = [], this.selected = [], this.months = []; }, this.qa = function () { return 2 === i.api; }, this.Lc = function () { this.root.innerHTML = ""; }, this.K = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Tc = function (e, t) { var i = this.K("_" + t); DayPilot.Util.addClass(e, i); }, this.Uc = function (e, t) { var i = this.K("_" + t); DayPilot.Util.removeClass(e, i); }, this.Vc = function () {
3546
- if (!o.Rc())
3680
+ var e = DayPilot.Util.isVueVNode;
3681
+ DayPilot.Navigator = function (t, i) {
3682
+ this.v = "2024.4.622-lite";
3683
+ var a = this;
3684
+ 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 () {
3685
+ if (!r.ad())
3547
3686
  return null;
3548
3687
  var e = 7;
3549
3688
  return this.showWeekNumbers && e++, 100 / e;
3550
- }, this.Wc = function () { return o.Rc() ? null : o.cellWidth(); }, this.Xc = function (e) { return "number" != typeof e && (e = 1), o.Rc() ? this.Vc() * e : this.Wc() * e; }, this.Yc = function (e) { var t = o.Rc() ? "%" : "px"; return this.Xc(e) + t; }, this.Mc = function (e, t) {
3551
- var a = {};
3552
- a.cells = [], a.days = [], a.weeks = [];
3553
- var n = this.startDate.addMonths(e), r = t.before, s = t.after, l = n.firstDayOfMonth(), d = l.firstDayOfWeek(o.weekStarts()), c = l.addMonths(1), u = DayPilot.DateUtil.daysDiff(d, c), h = "Auto" === this.rowsPerMonth ? Math.ceil(u / 7) : 6;
3554
- a.rowCount = h;
3555
- var f = (new DayPilot.Date).getDatePart(), m = 7 * o.cellWidth() + this.Sc();
3556
- a.width = m;
3557
- var p = this.cellHeight * h + this.titleHeight + this.dayHeaderHeight;
3558
- a.height = p;
3559
- var v = document.createElement("div");
3560
- if (o.Rc() ? "Horizontal" === this.orientation && (v.style.width = 100 / i.showMonths + "%") : v.style.width = m + "px", v.style.height = p + "px", "Horizontal" === this.orientation)
3561
- v.style.position = "absolute", o.Rc() ? (v.style.left = 100 / i.showMonths * e + "%", a.leftPct = 100 / i.showMonths * e) : v.style.left = m * e + "px", v.style.top = "0px", a.top = 0, a.left = m * e;
3689
+ }, 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) {
3690
+ var n = {};
3691
+ n.cells = [], n.days = [], n.weeks = [];
3692
+ 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;
3693
+ n.rowCount = f;
3694
+ var m = (new DayPilot.Date).getDatePart(), p = 7 * r.cellWidth() + this.bd();
3695
+ n.width = p;
3696
+ var v = this.cellHeight * f + this.titleHeight + this.dayHeaderHeight;
3697
+ n.height = v;
3698
+ var y = document.createElement("div");
3699
+ 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)
3700
+ 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;
3562
3701
  else {
3563
- v.style.position = "relative";
3564
- var y = e > 0 ? i.months[e - 1].top + i.months[e - 1].height : 0;
3565
- a.top = y, a.left = 0, a.leftPct = 0;
3566
- }
3567
- v.className = this.K("_month"), v.style.cursor = "default", v.style.MozUserSelect = "none", v.style.KhtmlUserSelect = "none", v.style.WebkitUserSelect = "none", v.month = a, a.div = v, this.root.appendChild(v);
3568
- var g = this.titleHeight + this.dayHeaderHeight, b = document.createElement("div");
3569
- b.style.position = "absolute", b.style.left = "0px", b.style.right = "0px", b.style.top = "0px", b.style.width = i.Yc(), b.style.height = this.titleHeight + "px", b.style.lineHeight = this.titleHeight + "px", b.setAttribute("unselectable", "on"), b.className = this.K("_titleleft"), t.left && (b.style.cursor = "pointer", b.innerHTML = "<span>&lt;</span>", b.onclick = this.Zc), v.appendChild(b), this.tl = b;
3570
- var D = document.createElement("div");
3571
- D.style.position = "absolute", D.style.left = i.Yc(), D.style.top = "0px", D.style.width = i.Yc(i.showWeekNumbers ? 6 : 5), D.style.height = this.titleHeight + "px", D.style.lineHeight = this.titleHeight + "px", D.setAttribute("unselectable", "on"), D.className = this.K("_title"), D.innerHTML = o.locale().monthNames[n.getMonth()] + " " + n.getYear(), v.appendChild(D), this.ti = D;
3702
+ y.style.position = "relative";
3703
+ var g = t > 0 ? a.months[t - 1].top + a.months[t - 1].height : 0;
3704
+ n.top = g, n.left = 0, n.leftPct = 0;
3705
+ }
3706
+ 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);
3707
+ var b = this.titleHeight + this.dayHeaderHeight, D = document.createElement("div");
3708
+ 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;
3709
+ var w = document.createElement("div");
3710
+ 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;
3572
3711
  var x = document.createElement("div");
3573
- x.style.position = "absolute", x.style.left = i.Yc(i.showWeekNumbers ? 7 : 6), x.style.right = i.Yc(i.showWeekNumbers ? 7 : 6), x.style.top = "0px", x.style.width = i.Yc(), x.style.height = this.titleHeight + "px", x.style.lineHeight = this.titleHeight + "px", x.setAttribute("unselectable", "on"), x.className = this.K("_titleright"), t.right && (x.style.cursor = "pointer", x.innerHTML = "<span>&gt;</span>", x.onclick = this.$c), v.appendChild(x), this.tr = x;
3574
- var w = (this.Sc(), i.showWeekNumbers ? 1 : 0);
3712
+ 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;
3713
+ var C = (this.bd(), a.showWeekNumbers ? 1 : 0);
3575
3714
  if (this.showWeekNumbers)
3576
- for (var C = 0; C < h; C++) {
3577
- var P = d.addDays(7 * C), k = null;
3715
+ for (var P = 0; P < f; P++) {
3716
+ var k = c.addDays(7 * P), _ = null;
3578
3717
  switch (this.weekNumberAlgorithm) {
3579
3718
  case "Auto":
3580
- k = 1 === o.weekStarts() ? P.weekNumberISO() : P.weekNumber();
3719
+ _ = 1 === r.weekStarts() ? k.weekNumberISO() : k.weekNumber();
3581
3720
  break;
3582
3721
  case "US":
3583
- k = P.weekNumber();
3722
+ _ = k.weekNumber();
3584
3723
  break;
3585
3724
  case "ISO8601":
3586
- k = P.weekNumberISO();
3725
+ _ = k.weekNumberISO();
3587
3726
  break;
3588
3727
  default: throw "Unknown weekNumberAlgorithm value.";
3589
3728
  }
3590
- var _ = document.createElement("div");
3591
- _.style.position = "absolute", _.style.left = "0px", _.style.right = "0px", _.style.top = C * this.cellHeight + g + "px", _.style.width = i.Yc(), _.style.height = this.cellHeight + "px", _.style.lineHeight = this.cellHeight + "px", _.setAttribute("unselectable", "on"), _.className = this.K("_weeknumber"), _.innerHTML = "<span>" + k + "</span>", v.appendChild(_), a.weeks.push(_);
3729
+ var S = document.createElement("div");
3730
+ 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);
3592
3731
  }
3593
- for (var S = 0; S < 7; S++) {
3594
- a.cells[S] = [];
3595
- var _ = document.createElement("div");
3596
- _.style.position = "absolute", _.style.left = i.Yc(S + w), _.style.right = i.Yc(S + w), _.style.top = this.titleHeight + "px", _.style.width = i.Yc(), _.style.height = this.dayHeaderHeight + "px", _.style.lineHeight = this.dayHeaderHeight + "px", _.setAttribute("unselectable", "on"), _.className = this.K("_dayheader"), _.innerHTML = "<span>" + this._c(S) + "</span>", v.appendChild(_), a.days.push(_);
3597
- for (var C = 0; C < h; C++) {
3598
- var P = d.addDays(7 * C + S), M = this.ad(P) && "none" !== this.bd(), T = P.firstDayOfMonth() === n, A = P < n, H = P >= n.addMonths(1);
3599
- if ("month" === this.bd())
3600
- M = M && T;
3601
- else if ("day" === this.bd())
3602
- M = M && (T || r && A || s && H);
3603
- else if ("week" === this.bd()) {
3604
- var E = P.firstDayOfMonth() === n;
3605
- M = M && (E || r && A || s && H);
3732
+ for (var M = 0; M < 7; M++) {
3733
+ n.cells[M] = [];
3734
+ var S = document.createElement("div");
3735
+ 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);
3736
+ for (var P = 0; P < f; P++) {
3737
+ 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);
3738
+ if ("month" === this.nd())
3739
+ H = H && T;
3740
+ else if ("day" === this.nd())
3741
+ H = H && (T || s && A || l && E);
3742
+ else if ("week" === this.nd()) {
3743
+ var N = k.firstDayOfMonth() === o;
3744
+ H = H && (N || s && A || l && E);
3606
3745
  }
3607
- var N = document.createElement("div");
3608
- a.cells[S][C] = N;
3609
- var I = i.cd(S, C), O = I.x, R = I.y, U = o.Rc() ? "%" : "px";
3610
- N.day = P, N.x = S, N.y = C, N.left = O, N.top = R, N.isCurrentMonth = T, N.isNextMonth = H, N.isPrevMonth = A, N.showBefore = r, N.showAfter = s, N.className = this.K(T ? "_day" : "_dayother"), i.Tc(N, "cell"), P.getTime() === f.getTime() && T && this.Tc(N, "today"), 0 !== P.dayOfWeek() && 6 !== P.dayOfWeek() || this.Tc(N, "weekend"), N.style.position = "absolute", N.style.left = O + U, N.style.right = O + U, N.style.top = R + "px", N.style.width = i.Yc(), N.style.height = this.cellHeight + "px", N.style.lineHeight = this.cellHeight + "px";
3611
- var z = document.createElement("div");
3612
- z.style.position = "absolute", z.className = P.getTime() === f.getTime() && T ? this.K("_todaybox") : this.K("_daybox"), i.Tc(z, "cell_box"), z.style.left = "0px", z.style.top = "0px", z.style.right = "0px", z.style.bottom = "0px", N.appendChild(z);
3613
- var B = null;
3614
- if (this.cells && this.cells[P.toStringSortable()] && (B = this.cells[P.toStringSortable()]), "function" == typeof i.onBeforeCellRender) {
3615
- var j = {};
3616
- j.cell = B || {}, j.cell.day = P, j.cell.isCurrentMonth = T, j.cell.isToday = P.getTime() === f.getTime() && T, j.cell.isWeekend = 0 === P.dayOfWeek() || 6 === P.dayOfWeek(), B ? (j.cell.html = B.html || P.getDay(), j.cell.cssClass = B.css) : (j.cell.html = P.getDay(), j.cell.cssClass = null), i.onBeforeCellRender(j), B = j.cell;
3746
+ var I = document.createElement("div");
3747
+ n.cells[M][P] = I;
3748
+ var R = a.od(M, P), B = R.x, z = R.y, O = r.ad() ? "%" : "px";
3749
+ 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";
3750
+ var U = document.createElement("div");
3751
+ 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);
3752
+ var L = null;
3753
+ this.cells && this.cells[k.toStringSortable()] && (L = this.cells[k.toStringSortable()]);
3754
+ var j = L || {};
3755
+ if (j.day = k, j.isCurrentMonth = T, j.isToday = k.getTime() === m.getTime() && T, j.isWeekend = 0 === k.dayOfWeek() || 6 === k.dayOfWeek(), L ? (j.html = L.html || k.getDay(), j.cssClass = L.css) : (j.html = k.getDay(), j.cssClass = null), "function" == typeof a.onBeforeCellRender) {
3756
+ var W = {};
3757
+ W.cell = j, a.onBeforeCellRender(W), L = W.cell;
3617
3758
  }
3618
- if (B && DayPilot.Util.addClass(N, B.cssClass || B.css), T || r && A || s && H) {
3619
- var L = document.createElement("div");
3620
- L.innerHTML = P.getDay(), L.style.position = "absolute", L.style.left = "0px", L.style.top = "0px", L.style.right = "0px", L.style.bottom = "0px", i.Tc(L, "cell_text"), N.isClickable = !0, B && B.html && (L.innerHTML = B.html), N.appendChild(L);
3759
+ if (L && DayPilot.Util.addClass(I, L.cssClass || L.css), T || s && A || l && E) {
3760
+ var F = document.createElement("div");
3761
+ 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);
3621
3762
  }
3622
- N.setAttribute("unselectable", "on"), N.onclick = this.dd, v.appendChild(N), M && (i.ed(v, S, C), this.selected.push(N));
3763
+ I.setAttribute("unselectable", "on"), I.onclick = this.pd, function () {
3764
+ if ("function" == typeof a.onBeforeCellDomAdd || "function" == typeof a.onBeforeCellDomRemove) {
3765
+ var t = {};
3766
+ if (t.control = a, t.cell = j, t.element = null, I.domArgs = t, "function" == typeof a.onBeforeCellDomAdd && a.onBeforeCellDomAdd(t), t.element) {
3767
+ var i = U;
3768
+ if (i) {
3769
+ t.Fa = i;
3770
+ if (e(t.element)) {
3771
+ if (!a.Ha.Ga)
3772
+ throw new DayPilot.Exception("Can't reach Vue");
3773
+ a.Ha.Ia = !0, a.Ha.La(t.element, i), a.Ha.Ia = !1;
3774
+ }
3775
+ else
3776
+ i.appendChild(t.element);
3777
+ }
3778
+ }
3779
+ }
3780
+ }(), y.appendChild(I), H && (a.qd(y, M, P), this.selected.push(I));
3623
3781
  }
3624
3782
  }
3625
- var W = document.createElement("div");
3626
- W.style.position = "absolute", W.style.left = "0px", W.style.top = g - 2 + "px", W.style.width = i.Yc(7 + w), W.style.height = "1px", W.style.fontSize = "1px", W.style.lineHeight = "1px", W.className = this.K("_line"), v.appendChild(W), this.months.push(a);
3627
- }, this.cd = function (e, t) { var a = this.titleHeight + this.dayHeaderHeight, n = (this.Sc(), this.showWeekNumbers ? 1 : 0); return { "x": i.Xc(e + n), "y": t * this.cellHeight + a }; }, this.ed = function (e, t, a) { var n = e.month.cells[t][a]; i.Tc(n, "select"); }, this.fd = function (e, t, a) { var n = e.month.cells[t][a]; i.Uc(n, "select"); }, this.Sc = function () { return this.showWeekNumbers ? o.cellWidth() : 0; }, this.gd = function () {
3783
+ var J = document.createElement("div");
3784
+ 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);
3785
+ }, 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) {
3786
+ var n = e.month.cells[t][i];
3787
+ a.cd(n, "select");
3788
+ }, 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 () {
3628
3789
  if (this.items)
3629
3790
  for (var e = 0; e < this.showMonths; e++)
3630
3791
  for (var t = 0; t < 7; t++)
3631
3792
  for (var i = 0; i < 6; i++) {
3632
3793
  var a = this.months[e].cells[t][i];
3633
- a && (1 === this.items[a.day.toStringSortable()] ? (this.Tc(a, "busy"), this.Uc(a, "free")) : (this.Uc(a, "busy"), this.Tc(a, "free")));
3794
+ a && (1 === this.items[a.day.toStringSortable()] ? (this.cd(a, "busy"), this.dd(a, "free")) : (this.dd(a, "busy"), this.cd(a, "free")));
3634
3795
  }
3635
- }, this.hd = function () { var e = {}; e.startDate = i.startDate, e.selectionStart = i.selectionStart, e.selectionEnd = i.selectionEnd.addDays(1), i.state.value = JSON.stringify(e); }, this.bd = function () { return (this.selectMode || "").toLowerCase(); }, this.jd = function () {
3796
+ }, 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 () {
3636
3797
  var e = this.selectionDay || this.selectionStart;
3637
- switch (e || (e = DayPilot.Date.today()), e = new DayPilot.Date(e), this.bd()) {
3798
+ switch (e || (e = DayPilot.Date.today()), e = new DayPilot.Date(e), this.nd()) {
3638
3799
  case "day":
3639
3800
  this.selectionStart = e, this.selectionDay = e, this.selectionEnd = e;
3640
3801
  break;
3641
3802
  case "week":
3642
- this.selectionDay = e, this.selectionStart = e.firstDayOfWeek(o.weekStarts()), this.selectionEnd = this.selectionStart.addDays(6);
3803
+ this.selectionDay = e, this.selectionStart = e.firstDayOfWeek(r.weekStarts()), this.selectionEnd = this.selectionStart.addDays(6);
3643
3804
  break;
3644
3805
  case "month":
3645
3806
  this.selectionDay = e, this.selectionStart = e.firstDayOfMonth(), this.selectionEnd = this.selectionStart.lastDayOfMonth();
@@ -3649,10 +3810,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3649
3810
  break;
3650
3811
  default: throw "Unknown selectMode value.";
3651
3812
  }
3652
- }, this.kd = null, this.select = function (e, t, a) {
3653
- var n = t && (t instanceof DayPilot.Date || "string" == typeof t), o = t && "object" == typeof t || "boolean" == typeof t, r = e, s = n ? t : null, l = o ? t : a;
3813
+ }, this.vd = null, this.select = function (e, t, i) {
3814
+ 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;
3654
3815
  if (!this.Ba)
3655
- return void (this.kd = { "date1": r, "date2": s, "options": l });
3816
+ return void (this.vd = { "date1": r, "date2": s, "options": l });
3656
3817
  var d = !0, c = !0;
3657
3818
  l && "object" == typeof l ? (l.dontFocus && (d = !1), l.dontNotify && (c = !1)) : "boolean" == typeof l && (d = !l);
3658
3819
  var u = this.selectionStart, h = this.selectionEnd;
@@ -3660,158 +3821,158 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3660
3821
  var f = !1;
3661
3822
  if (d) {
3662
3823
  var m = this.startDate;
3663
- (this.selectionStart < this.ld() || this.selectionStart >= this.md()) && (m = this.selectionStart.firstDayOfMonth()), m.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = m;
3824
+ (this.selectionStart < this.wd() || this.selectionStart >= this.xd()) && (m = this.selectionStart.firstDayOfMonth()), m.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = m;
3664
3825
  }
3665
- s && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(s) : this.jd(), this.Lc(), this.Qc(), this.nd(), this.gd(), this.hd(), !c || u.equals(this.selectionStart) && h.equals(this.selectionEnd) || this.M(), f && this.od();
3826
+ 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();
3666
3827
  }, this.update = function (e) {
3667
- if (i.bb(e), this.Ba) {
3668
- if (i.O)
3828
+ if (a.jb(e), this.Ba) {
3829
+ if (a.O)
3669
3830
  throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed.");
3670
- i.pd();
3671
- var t = { "day": i.selectionDay, "start": i.selectionStart, "end": i.selectionEnd };
3672
- i._a(), t.start === i.selectionStart && t.end === i.selectionEnd && t.day === i.selectionDay || i.M();
3831
+ a.Ad();
3832
+ var t = { "day": a.selectionDay, "start": a.selectionStart, "end": a.selectionEnd };
3833
+ a.hb(), t.start === a.selectionStart && t.end === a.selectionEnd && t.day === a.selectionDay || a.M();
3673
3834
  }
3674
- }, this._a = function () { this.Lc(), this.Qc(), this.jd(), this.nd(), this.ea(), this.gd(), this.hd(), this.visible ? this.show() : this.hide(); }, this.pd = function () { i.hb = {}; }, this.eb = null, this.bb = function (e) {
3835
+ }, 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) {
3675
3836
  if (e) {
3676
- var t = { "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? i.events.list = e.list : i.events.list = e); } } };
3677
- this.eb = t;
3678
- for (var a in e)
3679
- if (t[a]) {
3680
- var n = t[a];
3681
- n.data = e[a], n.preInit && n.preInit();
3837
+ var t = { "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? a.events.list = e.list : a.events.list = e); } } };
3838
+ this.lb = t;
3839
+ for (var i in e)
3840
+ if (t[i]) {
3841
+ var n = t[i];
3842
+ n.data = e[i], n.preInit && n.preInit();
3682
3843
  }
3683
3844
  else
3684
- i[a] = e[a];
3845
+ a[i] = e[i];
3685
3846
  }
3686
- }, this.fb = function () {
3687
- var e = this.eb;
3847
+ }, this.mb = function () {
3848
+ var e = this.lb;
3688
3849
  for (var t in e) {
3689
3850
  var i = e[t];
3690
3851
  i.postInit && i.postInit();
3691
3852
  }
3692
- }, this.S = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.R(); var n = "JSON" + JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.T, n, this.qd) : WebForm_DoCallback(this.uniqueID, n, this.U, null, this.callbackError, !0); }, this.qd = function (e) {
3693
- if ("function" == typeof i.onAjaxError) {
3853
+ }, 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) {
3854
+ if ("function" == typeof a.onAjaxError) {
3694
3855
  var t = {};
3695
- t.request = e, i.onAjaxError(t);
3856
+ t.request = e, a.onAjaxError(t);
3696
3857
  }
3697
3858
  else
3698
- "function" == typeof i.ajaxError && i.ajaxError(e);
3699
- }, this.T = function (e) { i.U(e.responseText); }, this.Q = function (e, t, a) { var n = {}; n.action = e, n.parameters = a, n.data = t, n.header = this.R(); var o = "JSON" + JSON.stringify(n); __doPostBack(i.uniqueID, o); }, this.R = function () { var e = {}; return e.v = this.v, e.startDate = this.startDate, e.selectionStart = this.selectionStart, e.showMonths = this.showMonths, e; }, this.rd = function (e, t) { "refresh" === e && this.od(); }, this._c = function (e) { var t = e + o.weekStarts(); return t > 6 && (t -= 7), o.locale().dayNamesShort[t]; }, this.ad = function (e) { return null !== this.selectionStart && null !== this.selectionEnd && (this.selectionStart.getTime() <= e.getTime() && e.getTime() <= this.selectionEnd.getTime()); }, this.sd = function (e) {
3700
- for (var t = 0; t < i.months.length; t++) {
3701
- var a = i.months[t];
3702
- if (!a)
3859
+ "function" == typeof a.ajaxError && a.ajaxError(e);
3860
+ }, 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) {
3861
+ for (var t = 0; t < a.months.length; t++) {
3862
+ var i = a.months[t];
3863
+ if (!i)
3703
3864
  return null;
3704
- if (e.x < a.left)
3865
+ if (e.x < i.left)
3705
3866
  return null;
3706
- if (!(a.left + a.width < e.x)) {
3707
- i.months[t].height;
3708
- if (a.top <= e.y && e.y < a.top + a.height)
3867
+ if (!(i.left + i.width < e.x)) {
3868
+ a.months[t].height;
3869
+ if (i.top <= e.y && e.y < i.top + i.height)
3709
3870
  return t;
3710
3871
  }
3711
3872
  }
3712
3873
  return null;
3713
- }, this.td = function (e) { }, this.ud = function () {
3714
- if (!o.Rc())
3715
- return void (i.vd = i.cellWidth);
3716
- var e = i.months[0].cells[0][0], t = e.clientWidth;
3717
- i.vd = t, i.months.forEach(function (e) { e.width = e.div.clientWidth, "Horizontal" === i.orientation && (e.left = e.div.offsetLeft), e.cells.forEach(function (e, i) { e.forEach(function (e, a) { e.width = t, e.left = i * t; }); }); });
3718
- }, this.wd = function (e) {
3719
- i.ud();
3720
- var t = DayPilot.mo3(i.nav.top, e), a = i.sd(t);
3721
- if (null === a)
3874
+ }, this.Ed = function (e) { }, this.Fd = function () {
3875
+ if (!r.ad())
3876
+ return void (a.Gd = a.cellWidth);
3877
+ var e = a.months[0].cells[0][0], t = e.clientWidth;
3878
+ 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; }); }); });
3879
+ }, this.Hd = function (e) {
3880
+ a.Fd();
3881
+ var t = DayPilot.mo3(a.nav.top, e), i = a.Dd(t);
3882
+ if (null === i)
3722
3883
  return null;
3723
- var n = i.months[a], o = this.titleHeight + this.dayHeaderHeight;
3884
+ var n = a.months[i], o = this.titleHeight + this.dayHeaderHeight;
3724
3885
  if (n.top <= t.y && t.y < n.top + o)
3725
- return { "month": a, "x": 0, "y": 0, "coords": t, "header": !0 };
3886
+ return { "month": i, "x": 0, "y": 0, "coords": t, "header": !0 };
3726
3887
  for (var r = 0; r < n.cells.length; r++)
3727
3888
  for (var s = 0; s < n.cells[r].length; s++) {
3728
3889
  var l = n.cells[r][s], d = l.top + n.top, c = l.left + n.left;
3729
- if (c <= t.x && t.x < c + i.vd && d <= t.y && t.y < d + i.cellHeight)
3730
- return { "month": a, "x": r, "y": s, "coords": t };
3890
+ if (c <= t.x && t.x < c + a.Gd && d <= t.y && t.y < d + a.cellHeight)
3891
+ return { "month": i, "x": r, "y": s, "coords": t };
3731
3892
  }
3732
3893
  return null;
3733
- }, this.xd = function (e) {
3734
- if (i.freeHandSelectionEnabled) {
3735
- var t = i.wd(e);
3736
- t && !t.header && (a.start = t), i.months[t.month].cells[t.x][t.y], e.preventDefault();
3737
- }
3738
- }, this.yd = function (e) {
3739
- if (a.start) {
3740
- var t = i.wd(e);
3741
- if (a.end)
3742
- a.end = t;
3894
+ }, this.Id = function (e) {
3895
+ if (a.freeHandSelectionEnabled) {
3896
+ var t = a.Hd(e);
3897
+ t && !t.header && (n.start = t), a.months[t.month].cells[t.x][t.y], e.preventDefault();
3898
+ }
3899
+ }, this.Jd = function (e) {
3900
+ if (n.start) {
3901
+ var t = a.Hd(e);
3902
+ if (n.end)
3903
+ n.end = t;
3743
3904
  else if (t) {
3744
- var n = 3, o = DayPilot.distance(a.start.coords, t.coords);
3745
- o > n && (a.end = t);
3905
+ var i = 3, o = DayPilot.distance(n.start.coords, t.coords);
3906
+ o > i && (n.end = t);
3746
3907
  }
3747
- a.end && (a.clear(), a.draw());
3908
+ n.end && (n.clear(), n.draw());
3748
3909
  }
3749
- }, this.zd = {};
3750
- var a = this.zd;
3751
- a.start = null, a.drawCell = function (e) {
3752
- var t = i.months[e.month], n = i.cd(e.x, e.y), r = t.top + n.y, s = t.left + n.x, l = "px", d = i.Yc();
3753
- if (o.Rc()) {
3754
- var c = "Horizontal" === i.orientation ? i.showMonths : 1;
3755
- s = t.leftPct + n.x / c, l = "%", d = i.Yc(1 / c);
3910
+ }, this.Kd = {};
3911
+ var n = this.Kd;
3912
+ n.start = null, n.drawCell = function (e) {
3913
+ 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();
3914
+ if (r.ad()) {
3915
+ var c = "Horizontal" === a.orientation ? a.showMonths : 1;
3916
+ s = t.leftPct + i.x / c, l = "%", d = a.hd(1 / c);
3756
3917
  }
3757
3918
  var u = document.createElement("div");
3758
- u.style.position = "absolute", u.style.left = s + l, u.style.top = r + "px", u.style.height = i.cellHeight + "px", u.style.width = d, u.style.backgroundColor = "#ccc", u.style.opacity = .5, u.style.cursor = "default", i.nav.preselection.appendChild(u), a.cells.push(u);
3759
- }, a.clear = function () {
3760
- if (a.cells) {
3761
- for (var e = 0; e < a.cells.length; e++)
3762
- i.nav.preselection.removeChild(a.cells[e]);
3763
- a.cells = [];
3764
- }
3765
- }, a.draw = function () {
3766
- var e = a.ordered(), t = new n(e.start), o = e.end;
3767
- if (o) {
3768
- if (o === a.end && o.header && o.month > 0) {
3769
- o.month -= 1;
3770
- var r = i.months[o.month];
3771
- o.x = 6, o.y = r.rowCount - 1;
3919
+ 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);
3920
+ }, n.clear = function () {
3921
+ if (n.cells) {
3922
+ for (var e = 0; e < n.cells.length; e++)
3923
+ a.nav.preselection.removeChild(n.cells[e]);
3924
+ n.cells = [];
3925
+ }
3926
+ }, n.draw = function () {
3927
+ var e = n.ordered(), t = new o(e.start), i = e.end;
3928
+ if (i) {
3929
+ if (i === n.end && i.header && i.month > 0) {
3930
+ i.month -= 1;
3931
+ var r = a.months[i.month];
3932
+ i.x = 6, i.y = r.rowCount - 1;
3772
3933
  }
3773
- for (a.cells = []; !t.is(o);) {
3774
- t.visible() && a.drawCell(t);
3775
- var s = new n(t).next();
3934
+ for (n.cells = []; !t.is(i);) {
3935
+ t.visible() && n.drawCell(t);
3936
+ var s = new o(t).next();
3776
3937
  if (!s)
3777
3938
  return;
3778
3939
  t.month = s.month, t.x = s.x, t.y = s.y;
3779
3940
  }
3780
- t.visible() && a.drawCell(t);
3941
+ t.visible() && n.drawCell(t);
3781
3942
  }
3782
- }, a.ordered = function () { var e = a.start, t = a.end, i = {}; return !t || new n(e).before(t) ? (i.start = e, i.end = t) : (i.start = t, i.end = e), i; };
3783
- var n = function (e, t, a) {
3784
- if (e instanceof n)
3943
+ }, n.ordered = function () { var e = n.start, t = n.end, i = {}; return !t || new o(e).before(t) ? (i.start = e, i.end = t) : (i.start = t, i.end = e), i; };
3944
+ var o = function (e, t, i) {
3945
+ if (e instanceof o)
3785
3946
  return e;
3786
3947
  if ("object" == typeof e) {
3787
- var o = e;
3788
- this.month = o.month, this.x = o.x, this.y = o.y;
3948
+ var n = e;
3949
+ this.month = n.month, this.x = n.x, this.y = n.y;
3789
3950
  }
3790
3951
  else
3791
- this.month = e, this.x = t, this.y = a;
3952
+ this.month = e, this.x = t, this.y = i;
3792
3953
  this.is = function (e) { return this.month === e.month && this.x === e.x && this.y === e.y; }, this.next = function () {
3793
3954
  var e = this;
3794
3955
  if (e.x < 6)
3795
3956
  return { "month": e.month, "x": e.x + 1, "y": e.y };
3796
- var t = i.months[e.month];
3797
- return e.y < t.rowCount - 1 ? { "month": e.month, "x": 0, "y": e.y + 1 } : e.month < i.months.length - 1 ? { "month": e.month + 1, "x": 0, "y": 0 } : null;
3957
+ var t = a.months[e.month];
3958
+ return e.y < t.rowCount - 1 ? { "month": e.month, "x": 0, "y": e.y + 1 } : e.month < a.months.length - 1 ? { "month": e.month + 1, "x": 0, "y": 0 } : null;
3798
3959
  }, this.visible = function () { var e = this.cell(); return !!e.isCurrentMonth || (!(!e.isPrevMonth || !e.showBefore) || !(!e.isNextMonth || !e.showAfter)); }, this.nextVisible = function () {
3799
3960
  for (var e = this; !e.visible();) {
3800
3961
  var t = e.next();
3801
3962
  if (!t)
3802
3963
  return null;
3803
- e = new n(t);
3964
+ e = new o(t);
3804
3965
  }
3805
3966
  return e;
3806
3967
  }, this.previous = function () {
3807
3968
  var e = this;
3808
3969
  if (e.x > 0)
3809
3970
  return { "month": e.month, "x": e.x - 1, "y": e.y };
3810
- i.months[e.month];
3971
+ a.months[e.month];
3811
3972
  if (e.y > 0)
3812
3973
  return { "month": e.month, "x": 6, "y": e.y - 1 };
3813
3974
  if (e.month > 0) {
3814
- var t = i.months[e.month - 1];
3975
+ var t = a.months[e.month - 1];
3815
3976
  return { "month": e.month - 1, "x": 6, "y": t.rowCount - 1 };
3816
3977
  }
3817
3978
  return null;
@@ -3820,93 +3981,93 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3820
3981
  var t = e.previous();
3821
3982
  if (!t)
3822
3983
  return null;
3823
- e = new n(t);
3984
+ e = new o(t);
3824
3985
  }
3825
3986
  return e;
3826
- }, this.cell = function () { return i.months[this.month].cells[this.x][this.y]; }, this.date = function () { return this.cell().day; }, this.before = function (e) { return this.date() < new n(e).date(); };
3987
+ }, 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(); };
3827
3988
  };
3828
- this.dd = function (e) {
3829
- var t = this.parentNode, a = this.parentNode.month, n = this.x, o = this.y, r = a.cells[n][o].day;
3830
- if (a.cells[n][o].isClickable) {
3831
- i.clearSelection(), i.selectionDay = r;
3832
- var r = i.selectionDay;
3833
- switch (i.bd()) {
3989
+ this.pd = function (e) {
3990
+ var t = this.parentNode, i = this.parentNode.month, n = this.x, o = this.y, r = i.cells[n][o].day;
3991
+ if (i.cells[n][o].isClickable) {
3992
+ a.clearSelection(), a.selectionDay = r;
3993
+ var r = a.selectionDay;
3994
+ switch (a.nd()) {
3834
3995
  case "none":
3835
- i.selectionStart = r, i.selectionEnd = r;
3996
+ a.selectionStart = r, a.selectionEnd = r;
3836
3997
  break;
3837
3998
  case "day":
3838
- if (i.autoFocusOnClick) {
3999
+ if (a.autoFocusOnClick) {
3839
4000
  var s = r;
3840
- if (r < i.ld() || r >= i.md())
3841
- return void i.select(r);
4001
+ if (r < a.wd() || r >= a.xd())
4002
+ return void a.select(r);
3842
4003
  }
3843
- var l = a.cells[n][o];
3844
- i.ed(t, n, o), i.selected.push(l), i.selectionStart = l.day, i.selectionEnd = l.day;
4004
+ var l = i.cells[n][o];
4005
+ a.qd(t, n, o), a.selected.push(l), a.selectionStart = l.day, a.selectionEnd = l.day;
3845
4006
  break;
3846
4007
  case "week":
3847
- if (i.autoFocusOnClick) {
3848
- var s = a.cells[0][o].day, d = a.cells[6][o].day;
3849
- if (s.firstDayOfMonth() === d.firstDayOfMonth() && (s < i.ld() || d >= i.md()))
3850
- return void i.select(r);
4008
+ if (a.autoFocusOnClick) {
4009
+ var s = i.cells[0][o].day, d = i.cells[6][o].day;
4010
+ if (s.firstDayOfMonth() === d.firstDayOfMonth() && (s < a.wd() || d >= a.xd()))
4011
+ return void a.select(r);
3851
4012
  }
3852
4013
  for (var c = 0; c < 7; c++)
3853
- i.ed(t, c, o), i.selected.push(a.cells[c][o]);
3854
- i.selectionStart = a.cells[0][o].day, i.selectionEnd = a.cells[6][o].day;
4014
+ a.qd(t, c, o), a.selected.push(i.cells[c][o]);
4015
+ a.selectionStart = i.cells[0][o].day, a.selectionEnd = i.cells[6][o].day;
3855
4016
  break;
3856
4017
  case "month":
3857
- if (i.autoFocusOnClick) {
4018
+ if (a.autoFocusOnClick) {
3858
4019
  var s = r;
3859
- if (r < i.ld() || r >= i.md())
3860
- return void i.select(r);
4020
+ if (r < a.wd() || r >= a.xd())
4021
+ return void a.select(r);
3861
4022
  }
3862
4023
  for (var s = null, d = null, o = 0; o < 6; o++)
3863
4024
  for (var n = 0; n < 7; n++) {
3864
- var l = a.cells[n][o];
3865
- l && l.day.getYear() === r.getYear() && l.day.getMonth() === r.getMonth() && (i.ed(t, n, o), i.selected.push(l), null === s && (s = l.day), d = l.day);
4025
+ var l = i.cells[n][o];
4026
+ 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);
3866
4027
  }
3867
- i.selectionStart = s, i.selectionEnd = d;
4028
+ a.selectionStart = s, a.selectionEnd = d;
3868
4029
  break;
3869
4030
  default: throw "unknown selectMode";
3870
4031
  }
3871
- i.hd(), i.M();
4032
+ a.td(), a.M();
3872
4033
  }
3873
4034
  }, this.M = function (e) {
3874
- var t = i.selectionStart, a = i.selectionEnd.addDays(1), n = DayPilot.DateUtil.daysDiff(t, a), o = i.selectionDay;
3875
- if (e = e || {}, i.qa()) {
4035
+ var t = a.selectionStart, i = a.selectionEnd.addDays(1), n = DayPilot.DateUtil.daysDiff(t, i), o = a.selectionDay;
4036
+ if (e = e || {}, a.qa()) {
3876
4037
  var r = {};
3877
- if (r.start = t, r.end = a, r.day = o, r.days = n, r.mode = e.mode || i.selectMode, r.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(r), r.preventDefault.value))
4038
+ 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))
3878
4039
  return;
3879
- switch (i.timeRangeSelectedHandling) {
4040
+ switch (a.timeRangeSelectedHandling) {
3880
4041
  case "Bind":
3881
4042
  if ("object" == typeof bound) {
3882
4043
  var s = {};
3883
- s.start = t, s.end = a, s.days = n, s.day = o, bound.commandCallBack(i.command, s);
4044
+ s.start = t, s.end = i, s.days = n, s.day = o, bound.commandCallBack(a.command, s);
3884
4045
  }
3885
4046
  break;
3886
4047
  case "None": break;
3887
- case "PostBack": i.timeRangeSelectedPostBack(t, a, o);
4048
+ case "PostBack": a.timeRangeSelectedPostBack(t, i, o);
3888
4049
  }
3889
- "function" == typeof i.onTimeRangeSelected && i.onTimeRangeSelected(r);
4050
+ "function" == typeof a.onTimeRangeSelected && a.onTimeRangeSelected(r);
3890
4051
  }
3891
4052
  else
3892
- switch (i.timeRangeSelectedHandling) {
4053
+ switch (a.timeRangeSelectedHandling) {
3893
4054
  case "Bind":
3894
4055
  if ("object" == typeof bound) {
3895
4056
  var s = {};
3896
- s.start = t, s.end = a, s.days = n, s.day = o, bound.commandCallBack(i.command, s);
4057
+ s.start = t, s.end = i, s.days = n, s.day = o, bound.commandCallBack(a.command, s);
3897
4058
  }
3898
4059
  break;
3899
4060
  case "JavaScript":
3900
- i.onTimeRangeSelected(t, a, o);
4061
+ a.onTimeRangeSelected(t, i, o);
3901
4062
  break;
3902
4063
  case "None": break;
3903
- case "PostBack": i.timeRangeSelectedPostBack(t, a, o);
4064
+ case "PostBack": a.timeRangeSelectedPostBack(t, i, o);
3904
4065
  }
3905
- }, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, n.day = a, this.Q("TimeRangeSelected", i, n); }, this.$c = function (e) { i.Ad(i.skipMonths); }, this.Zc = function (e) { i.Ad(-i.skipMonths); }, this.Ad = function (e) { this.startDate = this.startDate.addMonths(e), this.Lc(), this.Qc(), this.nd(), this.hd(), this.od(), this.gd(); }, this.ld = function () { return i.startDate.firstDayOfMonth(); }, this.md = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths); }, this.visibleStart = function () { return i.startDate.firstDayOfMonth().firstDayOfWeek(o.weekStarts()); }, this.visibleEnd = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths - 1).firstDayOfWeek(o.weekStarts()).addDays(42); }, this.od = function () {
4066
+ }, 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 () {
3906
4067
  var e = this.visibleStart(), t = this.visibleEnd();
3907
- if (i.qa()) {
3908
- var a = {};
3909
- if (a.start = e, a.end = t, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onVisibleRangeChange && (i.onVisibleRangeChange(a), a.preventDefault.value))
4068
+ if (a.qa()) {
4069
+ var i = {};
4070
+ if (i.start = e, i.end = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onVisibleRangeChange && (a.onVisibleRangeChange(i), i.preventDefault.value))
3910
4071
  return;
3911
4072
  switch (this.visibleRangeChangedHandling) {
3912
4073
  case "CallBack":
@@ -3917,7 +4078,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3917
4078
  break;
3918
4079
  case "Disabled":
3919
4080
  }
3920
- "function" == typeof i.onVisibleRangeChanged && i.onVisibleRangeChanged(a);
4081
+ "function" == typeof a.onVisibleRangeChanged && a.onVisibleRangeChanged(i);
3921
4082
  }
3922
4083
  else
3923
4084
  switch (this.visibleRangeChangedHandling) {
@@ -3932,13 +4093,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3932
4093
  break;
3933
4094
  case "Disabled":
3934
4095
  }
3935
- }, this.visibleRangeChangedCallBack = function (e) { var t = {}; this.S("Visible", e, t); }, this.visibleRangeChangedPostBack = function (e) { var t = {}; this.Q("Visible", e, t); }, this.U = function (e, t) { var e = JSON.parse(e); i.items = e.Items, i.cells = e.Cells, i.cells ? i.update() : i.gd(); }, this.nd = function () {
4096
+ }, 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 () {
3936
4097
  for (var e = 0; e < this.showMonths; e++) {
3937
- var t = this.Bd(e);
3938
- this.Mc(e, t);
4098
+ var t = this.Md(e);
4099
+ this.Vc(e, t);
3939
4100
  }
3940
- this.root.style.height = this.Cd() + "px", this.nav.preselection = document.createElement("div"), this.nav.preselection.style.position = "absolute", this.nav.preselection.style.left = "0px", this.nav.preselection.style.right = "0px", this.nav.preselection.style.top = "0px", this.root.appendChild(this.nav.preselection);
3941
- }, this.Cd = function () {
4101
+ 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);
4102
+ }, this.Nd = function () {
3942
4103
  if ("Horizontal" === this.orientation) {
3943
4104
  for (var e = 0, t = 0; t < this.months.length; t++) {
3944
4105
  var i = this.months[t];
@@ -3951,77 +4112,89 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3951
4112
  a += i.height;
3952
4113
  }
3953
4114
  return a;
3954
- }, this.Bd = function (e) {
4115
+ }, this.Md = function (e) {
3955
4116
  if (this.internal.showLinks)
3956
4117
  return this.internal.showLinks;
3957
4118
  var t = {};
3958
4119
  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;
3959
- }, this.sa = {}, this.sa.scope = null, this.sa.notify = function () { i.sa.scope && i.sa.scope["$apply"](); }, this.internal = {}, this.internal.loadOptions = i.bb, this.internal.initialized = function () { return i.Ba; }, this.aa = {};
3960
- var o = this.aa;
3961
- o.locale = function () { return DayPilot.Locale.find(i.locale); }, o.weekStarts = function () {
3962
- if ("Auto" === i.weekStarts) {
3963
- var e = o.locale();
4120
+ }, 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) {
4121
+ var n = a.Ha.Ga;
4122
+ if ("function" == typeof n.createVNode && "function" == typeof n.render) {
4123
+ var o = n.createVNode(e, i);
4124
+ n.render(o, t);
4125
+ }
4126
+ }, this.Ha.La = function (e, t) {
4127
+ var i = a.Ha.Ga;
4128
+ if ("function" == typeof i.render) {
4129
+ var n = e;
4130
+ DayPilot.isArray(e) && (n = i.h("div", null, e)), i.render(n, t);
4131
+ }
4132
+ }, 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 = {};
4133
+ var r = this.aa;
4134
+ r.locale = function () { return DayPilot.Locale.find(a.locale); }, r.weekStarts = function () {
4135
+ if ("Auto" === a.weekStarts) {
4136
+ var e = r.locale();
3964
4137
  return e ? e.weekStarts : 0;
3965
4138
  }
3966
- return i.weekStarts;
3967
- }, o.cellWidth = function () {
3968
- if (i.hb.cellWidth)
3969
- return i.hb.cellWidth;
3970
- var e = i.Dd("_cell_dimensions").width;
3971
- return e || (e = i.cellWidth), i.hb.cellWidth = e, e;
3972
- }, o.Rc = function () { return "Auto" === i.aa.cellWidth(); }, this.clearSelection = function () {
4139
+ return a.weekStarts;
4140
+ }, r.cellWidth = function () {
4141
+ if (a.ob.cellWidth)
4142
+ return a.ob.cellWidth;
4143
+ var e = a.Od("_cell_dimensions").width;
4144
+ return e || (e = a.cellWidth), a.ob.cellWidth = e, e;
4145
+ }, r.ad = function () { return "Auto" === a.aa.cellWidth(); }, this.clearSelection = function () {
3973
4146
  for (var e = 0; e < this.selected.length; e++) {
3974
4147
  var t = this.selected[e];
3975
- i.fd(t.parentNode, t.x, t.y);
4148
+ a.rd(t.parentNode, t.x, t.y);
3976
4149
  }
3977
4150
  this.selected = [];
3978
- }, this.Ed = function () { return !!this.backendUrl && ("undefined" == typeof i.items || !i.items); }, this.events = {}, this.ea = function () {
4151
+ }, this.Pd = function () { return !!this.backendUrl && ("undefined" == typeof a.items || !a.items); }, this.events = {}, this.ea = function () {
3979
4152
  if (DayPilot.isArray(this.events.list)) {
3980
4153
  this.items = {};
3981
4154
  for (var e = 0; e < this.events.list.length; e++) {
3982
4155
  var t = this.events.list[e];
3983
4156
  if (!t.hidden) {
3984
- var i = this.Fd(t);
4157
+ var i = this.Qd(t);
3985
4158
  for (var a in i)
3986
4159
  this.items[a] = 1;
3987
4160
  }
3988
4161
  }
3989
4162
  }
3990
- }, this.Dd = function (e) { var t = document.createElement("div"); t.style.position = "absolute", t.style.top = "-2000px", t.style.left = "-2000px", t.className = this.K(e); var a = i.root || document.body; a.appendChild(t); var n = t.offsetHeight, o = t.offsetWidth; a.removeChild(t); var r = {}; return r.height = n, r.width = o, r; }, this.Fd = function (e) {
4163
+ }, 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) {
3991
4164
  for (var t = new DayPilot.Date(e.start), i = new DayPilot.Date(e.end), a = {}, n = t.getDatePart(); n.getTime() <= i.getTime();)
3992
4165
  a[n.toStringSortable()] = 1, n = n.addDays(1);
3993
4166
  return a;
3994
- }, this.show = function () { i.visible = !0, i.root.style.display = ""; }, this.hide = function () { i.visible = !1, i.root.style.display = "none"; }, this.gb = function () {
4167
+ }, this.show = function () { a.visible = !0, a.root.style.display = ""; }, this.hide = function () { a.visible = !1, a.root.style.display = "none"; }, this.nb = function () {
3995
4168
  if (this.id && this.id.tagName)
3996
4169
  this.nav.top = this.id;
3997
4170
  else {
3998
4171
  if ("string" != typeof this.id)
3999
4172
  throw "DayPilot.Navigator() constructor requires the target element or its ID as a parameter";
4000
4173
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
4001
- throw "DayPilot.Navigator: The placeholder element not found: '" + e + "'.";
4174
+ throw "DayPilot.Navigator: The placeholder element not found: '" + t + "'.";
4002
4175
  }
4003
4176
  this.root = this.nav.top;
4004
4177
  }, this.init = function () {
4005
- if (this.gb(), !this.root.dp) {
4006
- this.jd(), this.Qc(), this.nd(), this.ea(), this.gd(), this.Z(), this.Gd(), this.$a();
4007
- if (this.Ed() && this.od(), this.Ba = !0, this.fb(), this.kd) {
4008
- var e = this.kd;
4009
- this.select(e.date1, e.date2, e.options), this.kd = null;
4178
+ if (this.nb(), !this.root.dp) {
4179
+ this.ud(), this._c(), this.yd(), this.ea(), this.sd(), this.Z(), this.Rd(), this.gb();
4180
+ if (this.Pd() && this.zd(), this.Ba = !0, this.mb(), this.vd) {
4181
+ var e = this.vd;
4182
+ this.select(e.date1, e.date2, e.options), this.vd = null;
4010
4183
  }
4011
4184
  return this;
4012
4185
  }
4013
- }, this.Gd = function () { i.nav.top.onmousedown = this.xd, i.nav.top.onmousemove = this.yd; }, this.$a = function () { DayPilot.re(document, "mouseup", i.Hd); }, this.Hd = function (e) {
4014
- if (a.start && a.end) {
4015
- var t = DayPilot.mo3(i.nav.top, e);
4016
- if (t.x === a.start.coords.x && t.y === a.start.coords.y)
4017
- return a.start = null, void a.clear();
4018
- a.clear();
4019
- var o = a.ordered();
4020
- o.start = new n(o.start).nextVisible(), o.end = new n(o.end).previousVisible(), i.selectionDay = new n(o.start).date(), i.selectionStart = i.selectionDay, i.selectionEnd = new n(o.end).date(), a.start = null, a.end = null, i.Lc(), i.Qc(), i.nd(), i.gd(), i.hd();
4021
- i.M({ "mode": "FreeHand" });
4022
- }
4023
- a.start = null, a.end = null;
4024
- }, this.dispose = function () { var e = i; e.root && (e.root.removeAttribute("style"), e.root.removeAttribute("class"), e.root.dp = null, e.root.innerHTML = null, e.root = null, e.O = !0); }, this.Z = function () { this.root.dispose = this.dispose; }, this.Init = this.init, this.bb(t);
4186
+ }, 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) {
4187
+ if (n.start && n.end) {
4188
+ var t = DayPilot.mo3(a.nav.top, e);
4189
+ if (t.x === n.start.coords.x && t.y === n.start.coords.y)
4190
+ return n.start = null, void n.clear();
4191
+ n.clear();
4192
+ var i = n.ordered();
4193
+ 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();
4194
+ a.M({ "mode": "FreeHand" });
4195
+ }
4196
+ n.start = null, n.end = null;
4197
+ }, 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);
4025
4198
  }, "undefined" != typeof jQuery && !function (e) {
4026
4199
  e.fn.daypilotNavigator = function (e) {
4027
4200
  var t = null, i = this.each(function () {
@@ -4058,7 +4231,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
4058
4231
  for (var i in e)
4059
4232
  n[i] = e[i];
4060
4233
  n.update();
4061
- }, !0), d.call(t, u, function (e) { n.events.list = e, n.ea(), n.gd(); }, !0);
4234
+ }, !0), d.call(t, u, function (e) { n.events.list = e, n.ea(), n.sd(); }, !0);
4062
4235
  };
4063
4236
  } };
4064
4237
  }]);