@daypilot/daypilot-lite-angular 3.31.0 → 3.32.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ import { EventEmitter, Component, Output, Input, NgModule } from '@angular/core'
3
3
 
4
4
  //@ts-nocheck
5
5
  /*
6
- Copyright © 2024 Annpoint, s.r.o.
6
+ Copyright © 2025 Annpoint, s.r.o.
7
7
 
8
8
  Licensed under the Apache License, Version 2.0 (the "License");
9
9
  you may not use this file except in compliance with the License.
@@ -127,10 +127,10 @@ var DayPilot;
127
127
  })(DayPilot || (DayPilot = {}));
128
128
  /*
129
129
  DayPilot Lite
130
- Copyright (c) 2005 - 2024 Annpoint s.r.o.
130
+ Copyright (c) 2005 - 2025 Annpoint s.r.o.
131
131
  https://www.daypilot.org/
132
132
  Licensed under Apache Software License 2.0
133
- Version: 2024.4.631-lite
133
+ Version: 2025.1.638-lite
134
134
  */
135
135
  var DayPilot = {};
136
136
  if ("undefined" == typeof DayPilot)
@@ -654,20 +654,22 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
654
654
  if (this instanceof t.Calendar && !this.N && (o = !0, this.N = !0), !o)
655
655
  throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
656
656
  var r = this;
657
- this.uniqueID = null, this.isCalendar = !0, this.v = "2024.4.631-lite", this.id = e, this.clientName = e, this.cache = {}, this.cache.pixels = {}, this.elements = {}, this.elements.events = [], this.elements.selection = [], this.nav = {}, this.afterRender = function () { }, this.fasterDispose = !0, this.angularAutoApply = !1, this.api = 2, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.cellHeight = 30, this.columnMarginLeft = 0, this.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.contextMenu = null, this.days = 1, this.durationBarVisible = !0, this.eventBorderRadius = null, this.eventsLoadMethod = "GET", this.headerDateFormat = null, this.headerHeight = 30, this.headerTextWrappingEnabled = !1, this.height = 300, this.heightSpec = "BusinessHours", this.hideUntilInit = !0, this.hourWidth = 60, this.initScrollPos = "Auto", this.loadingLabelHtml = null, this.loadingLabelText = "Loading...", this.loadingLabelVisible = !0, this.locale = "en-us", this.showToolTip = !0, this.startDate = (new DayPilot.Date).getDatePart(), this.cssClassPrefix = "calendar_default", this.theme = null, this.timeFormat = "Auto", this.viewType = "Days", this.visible = !0, this.xssProtection = "Enabled", this.headerClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.eventMoveHandling = "Update", this.eventDeleteHandling = "Disabled", this.timeRangeSelectedHandling = "Enabled", this.onBeforeCellRender = null, this.onBeforeEventRender = null, this.onBeforeHeaderRender = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onHeaderClick = null, this.onHeaderClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.O = !1, this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.P(); }, this.P = function () { DayPilot.de(r.elements.selection), r.elements.selection = [], r.nav.activeSelection = null; }, this.cleanSelection = this.clearSelection, this.Q = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.R(); var n = "JSON" + DayPilot.JSON.stringify(a); __doPostBack(r.uniqueID, n); }, this.S = function (e, t, i) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.callbackTimeout = window.setTimeout(function () { r.loadingStart(); }, 100); var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.R(); var n = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.T, n, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, n, this.U, this.clientName, this.onCallbackError, !0); }, this.onCallbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.dispose = function () { var e = r; e.O || (e.O = !0, clearInterval(e.V), e.W(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.X(), e.Y(), e.nav.select = null, e.nav.cornerRight = null, e.nav.scrollable = null, e.nav.zoom = null, e.nav.loading = null, e.nav.header = null, e.nav.hourTable = null, e.nav.scrolltop = null, e.nav.scroll.onscroll = null, e.nav.scroll = null, e.nav.main = null, e.nav.message = null, e.nav.messageClose = null, e.nav.top = null, t.unregister(e)); }, this.disposed = function () { return this.O; }, this.Z = function () { this.nav.top.dispose = this.dispose; }, this.T = function (e) { r.U(e.responseText); }, this.R = function () { var e = {}; return e.control = "dpc", e.id = this.id, e.v = this.v, e.days = r.days, e.startDate = r.startDate, e.heightSpec = r.heightSpec, e.businessBeginsHour = r.businessBeginsHour, e.businessEndsHour = r.businessEndsHour, e.hashes = r.hashes, e.timeFormat = r.timeFormat, e.viewType = r.viewType, e.locale = r.locale, e; }, this._ = function (e, t) {
657
+ this.uniqueID = null, this.isCalendar = !0, this.v = "2025.1.638-lite", this.id = e, this.clientName = e, this.cache = {}, this.cache.pixels = {}, this.elements = {}, this.elements.events = [], this.elements.selection = [], this.nav = {}, this.afterRender = function () { }, this.fasterDispose = !0, this.angularAutoApply = !1, this.api = 2, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.cellDuration = 30, this.cellHeight = 30, this.columnMarginLeft = 0, this.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.contextMenu = null, this.days = 1, this.durationBarVisible = !0, this.eventBorderRadius = null, this.eventsLoadMethod = "GET", this.headerDateFormat = null, this.headerHeight = 30, this.headerTextWrappingEnabled = !1, this.height = 300, this.heightSpec = "BusinessHours", this.hideUntilInit = !0, this.hourWidth = 60, this.initScrollPos = "Auto", this.loadingLabelHtml = null, this.loadingLabelText = "Loading...", this.loadingLabelVisible = !0, this.locale = "en-us", this.showToolTip = !0, this.startDate = (new DayPilot.Date).getDatePart(), this.cssClassPrefix = "calendar_default", this.theme = null, this.timeFormat = "Auto", this.viewType = "Days", this.visible = !0, this.xssProtection = "Enabled", this.headerClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.eventMoveHandling = "Update", this.eventDeleteHandling = "Disabled", this.timeRangeSelectedHandling = "Enabled", this.onBeforeCellRender = null, this.onBeforeEventRender = null, this.onBeforeHeaderRender = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onHeaderClick = null, this.onHeaderClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.O = !1, this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.P(); }, this.P = function () { DayPilot.de(r.elements.selection), r.elements.selection = [], r.nav.activeSelection = null; }, this.cleanSelection = this.clearSelection, this.Q = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.R(); var n = "JSON" + DayPilot.JSON.stringify(a); __doPostBack(r.uniqueID, n); }, this.S = function (e, t, i) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.callbackTimeout = window.setTimeout(function () { r.loadingStart(); }, 100); var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.R(); var n = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.T, n, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, n, this.U, this.clientName, this.onCallbackError, !0); }, this.onCallbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.dispose = function () { var e = r; e.O || (e.O = !0, clearInterval(e.V), e.W(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.X(), e.Y(), e.nav.select = null, e.nav.cornerRight = null, e.nav.scrollable = null, e.nav.zoom = null, e.nav.loading = null, e.nav.header = null, e.nav.hourTable = null, e.nav.scrolltop = null, e.nav.scroll.onscroll = null, e.nav.scroll = null, e.nav.main = null, e.nav.message = null, e.nav.messageClose = null, e.nav.top = null, t.unregister(e)); }, this.disposed = function () { return this.O; }, this.Z = function () { this.nav.top.dispose = this.dispose; }, this.T = function (e) { r.U(e.responseText); }, this.R = function () { var e = {}; return e.control = "dpc", e.id = this.id, e.v = this.v, e.days = r.days, e.startDate = r.startDate, e.heightSpec = r.heightSpec, e.businessBeginsHour = r.businessBeginsHour, e.businessEndsHour = r.businessEndsHour, e.hashes = r.hashes, e.timeFormat = r.timeFormat, e.viewType = r.viewType, e.locale = r.locale, e; }, this._ = function (e, t) {
658
658
  for (var i = e.parentNode; i && "TD" !== i.tagName;)
659
659
  i = i.parentNode;
660
660
  var a = r.eventBorderRadius;
661
661
  "number" == typeof a && (a += "px");
662
662
  var n = document.createElement("div");
663
- n.setAttribute("unselectable", "on"), n.style.position = "absolute", n.style.width = e.offsetWidth + "px",
664
- 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");
663
+ n.setAttribute("unselectable", "on"), n.style.position = "absolute",
664
+ n.style.width = e.offsetWidth + "px", n.style.height = e.offsetHeight + "px", n.style.left = e.offsetLeft + "px", n.style.top = e.offsetTop + "px", n.style.boxSizing = "border-box", n.style.zIndex = 101, n.className = r.K("_shadow");
665
665
  var o = document.createElement("div");
666
666
  return o.className = r.K("_shadow_inner"), a && (o.style.borderRadius = a, n.style.borderRadius = a), n.appendChild(o), i.firstChild.appendChild(n), n;
667
667
  }, 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 () { if ("Auto" === r.weekStarts) {
668
668
  var e = s.locale();
669
669
  return e ? e.weekStarts : 0;
670
- } return r.weekStarts || 0; };
670
+ } return r.weekStarts || 0; }, this.aa.da = function () { var e = r.cellDuration; if (e <= 1)
671
+ return 1; if (e >= 60)
672
+ return 60; var t = [1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60], i = Math.floor(e); return Math.max.apply(null, t.filter(function (e) { return e <= i; })); };
671
673
  var s = this.aa;
672
674
  this.U = function (e, t) { if (e && 0 === e.indexOf("$$$")) {
673
675
  if (!window.console)
@@ -675,12 +677,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
675
677
  return void console.log("Error received from the server side: " + e);
676
678
  } var e = JSON.parse(e); if (e.CallBackRedirect)
677
679
  return void (document.location.href = e.CallBackRedirect); if ("None" === e.UpdateType)
678
- return r.loadingStop(), void r.t(); 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)
680
+ return r.loadingStop(), void r.t(); if (r.W(), "Full" === e.UpdateType && (r.columns = e.Columns, r.days = e.Days, r.startDate = new DayPilot.Date(e.StartDate), r.heightSpec = e.HeightSpec ? e.HeightSpec : r.heightSpec, r.businessBeginsHour = e.BusinessBeginsHour ? e.BusinessBeginsHour : r.businessBeginsHour, r.businessEndsHour = e.BusinessEndsHour ? e.BusinessEndsHour : r.businessEndsHour, r.headerDateFormat = e.HeaderDateFormat ? e.HeaderDateFormat : r.headerDateFormat, r.viewType = e.ViewType, r.backColor = e.BackColor ? e.BackColor : r.backColor, r.eventHeaderVisible = e.EventHeaderVisible ? e.EventHeaderVisible : r.eventHeaderVisible, r.timeFormat = e.TimeFormat ? e.TimeFormat : r.timeFormat, r.locale = e.Locale ? e.Locale : r.locale, r.ea()), e.Hashes)
679
681
  for (var i in e.Hashes)
680
- r.hashes[i] = e.Hashes[i]; 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(); }, 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) { var t = this, i = t.event; if (i.client.clickEnabled())
681
- if (r.qa()) {
682
+ r.hashes[i] = e.Hashes[i]; r.events.list = e.Events, r.fa(), r.ga(), "Full" === e.UpdateType && (r.ha(), r.ia(), r.ja(), r.ka()), r.t(), r.la(), r.clearSelection(), r.afterRender(e.CallBackData, !0), r.loadingStop(); }, this.ma = function () { return this.na() / 36e5; }, this.oa = function () { return this.businessBeginsHour > this.businessEndsHour ? 24 - this.businessBeginsHour + this.businessEndsHour : this.businessEndsHour - this.businessBeginsHour; }, this.pa = function () { return this.na() / (60 * s.da() * 1e3); }, this.na = function () { var e = 0; return e = "BusinessHoursNoScroll" === this.heightSpec ? this.oa() : 24, 60 * e * 60 * 1e3; }, this.qa = function () { return "BusinessHoursNoScroll" === this.heightSpec ? this.businessBeginsHour : 0; }, this.ra = function () { return 2 === r.api; }, this.eventClickCallBack = function (e, t) { this.S("EventClick", t, e); }, this.eventClickPostBack = function (e, t) { this.Q("EventClick", t, e); }, this.sa = function (e) { var t = this, i = t.event; if (i.client.clickEnabled())
683
+ if (r.ra()) {
682
684
  var a = {};
683
- 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))
685
+ if (a.e = i, a.originalEvent = e, a.meta = e.metaKey, a.ctrl = e.ctrlKey, a.control = r, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onEventClick && (r.ta.apply(function () { r.onEventClick(a); }), a.preventDefault.value))
684
686
  return;
685
687
  switch (r.eventClickHandling) {
686
688
  case "CallBack":
@@ -693,7 +695,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
693
695
  var n = i.client.contextMenu();
694
696
  n ? n.show(i) : r.contextMenu && r.contextMenu.show(i);
695
697
  }
696
- "function" == typeof r.onEventClicked && r.sa.apply(function () { r.onEventClicked(a); });
698
+ "function" == typeof r.onEventClicked && r.ta.apply(function () { r.onEventClicked(a); });
697
699
  }
698
700
  else
699
701
  switch (r.eventClickHandling) {
@@ -704,15 +706,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
704
706
  r.eventClickCallBack(i);
705
707
  break;
706
708
  case "JavaScript": r.onEventClick(i);
707
- } }, this.ta = function (e) { var t = this.event; if (e.stopPropagation && e.stopPropagation(), !t.client.rightClickEnabled())
709
+ } }, this.ua = function (e) { var t = this.event; if (e.stopPropagation && e.stopPropagation(), !t.client.rightClickEnabled())
708
710
  return !1; var i = {}; if (i.e = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onEventRightClick && (r.onEventRightClick(i), i.preventDefault.value))
709
711
  return !1; switch (r.eventRightClickHandling) {
710
712
  case "ContextMenu":
711
713
  var a = t.client.contextMenu();
712
714
  a ? a.show(t) : r.contextMenu && r.contextMenu.show(this.event);
713
- } return "function" == typeof r.onEventRightClicked && r.onEventRightClicked(i), e.preventDefault && e.preventDefault(), !1; }, this.eventDeleteCallBack = function (e, t) { this.S("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.Q("EventDelete", t, e); }, this.ua = function (e) { if (r.qa()) {
715
+ } return "function" == typeof r.onEventRightClicked && r.onEventRightClicked(i), e.preventDefault && e.preventDefault(), !1; }, this.eventDeleteCallBack = function (e, t) { this.S("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.Q("EventDelete", t, e); }, this.va = function (e) { if (r.ra()) {
714
716
  var t = {};
715
- 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))
717
+ if (t.e = e, t.control = r, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onEventDelete && (r.ta.apply(function () { r.onEventDelete(t); }), t.preventDefault.value))
716
718
  return;
717
719
  switch (r.eventDeleteHandling) {
718
720
  case "CallBack":
@@ -723,7 +725,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
723
725
  break;
724
726
  case "Update": r.events.remove(e);
725
727
  }
726
- "function" == typeof r.onEventDeleted && r.sa.apply(function () { r.onEventDeleted(t); });
728
+ "function" == typeof r.onEventDeleted && r.ta.apply(function () { r.onEventDeleted(t); });
727
729
  }
728
730
  else
729
731
  switch (r.eventDeleteHandling) {
@@ -738,68 +740,68 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
738
740
  throw "newStart is null"; if (!i)
739
741
  throw "newEnd is null"; var n = {}; n.e = e, n.newStart = t, n.newEnd = i, this.S("EventResize", a, n); }, this.eventResizePostBack = function (e, t, i, a) { if (!t)
740
742
  throw "newStart is null"; if (!i)
741
- throw "newEnd is null"; var n = {}; n.e = e, n.newStart = t, n.newEnd = i, this.Q("EventResize", a, n); }, this.J = function (e, t, i, a) { var n = 1, o = new Date, s = new Date, l = e.start(), d = e.end(); if ("top" === a) {
742
- var c = l.getDatePart(), u = Math.floor((i - n) / r.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * r.pa() * 60 * 1e3;
743
- o = c.addTime(f + m), s = e.end();
743
+ throw "newEnd is null"; var n = {}; n.e = e, n.newStart = t, n.newEnd = i, this.Q("EventResize", a, n); }, this.J = function (e, t, i, a) { var n = 1, o = new Date, l = new Date, d = e.start(), c = e.end(); s.da(); if ("top" === a) {
744
+ var u = d.getDatePart(), h = Math.floor((i - n) / r.cellHeight), f = h * s.da(), m = 60 * f * 1e3, p = 60 * r.qa() * 60 * 1e3;
745
+ o = u.addTime(m + p), l = e.end();
744
746
  }
745
747
  else if ("bottom" === a) {
746
- 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;
747
- o = l, s = c.addTime(f + m);
748
- } if (r.qa()) {
749
- var p = {};
750
- 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))
748
+ var u = c.getDatePart(), h = Math.floor((i + t - n) / r.cellHeight), f = h * s.da(), m = 60 * f * 1e3, p = 60 * r.qa() * 60 * 1e3;
749
+ o = d, l = u.addTime(m + p);
750
+ } if (r.ra()) {
751
+ var v = {};
752
+ if (v.e = e, v.control = r, v.newStart = o, v.newEnd = l, v.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onEventResize && (r.ta.apply(function () { r.onEventResize(v); }), v.preventDefault.value))
751
753
  return;
752
754
  switch (r.eventResizeHandling) {
753
755
  case "PostBack":
754
- r.eventResizePostBack(e, o, s);
756
+ r.eventResizePostBack(e, o, l);
755
757
  break;
756
758
  case "CallBack":
757
- r.eventResizeCallBack(e, o, s);
759
+ r.eventResizeCallBack(e, o, l);
758
760
  break;
759
- case "Update": e.start(o), e.end(s), r.events.update(e);
761
+ case "Update": e.start(o), e.end(l), r.events.update(e);
760
762
  }
761
- "function" == typeof r.onEventResized && r.sa.apply(function () { r.onEventResized(p); });
763
+ "function" == typeof r.onEventResized && r.ta.apply(function () { r.onEventResized(v); });
762
764
  }
763
765
  else
764
766
  switch (r.eventResizeHandling) {
765
767
  case "PostBack":
766
- r.eventResizePostBack(e, o, s);
768
+ r.eventResizePostBack(e, o, l);
767
769
  break;
768
770
  case "CallBack":
769
- r.eventResizeCallBack(e, o, s);
771
+ r.eventResizeCallBack(e, o, l);
770
772
  break;
771
- case "JavaScript": r.onEventResize(e, o, s);
773
+ case "JavaScript": r.onEventResize(e, o, l);
772
774
  } }, this.eventMovePostBack = function (e, t, i, a, n) { if (!t)
773
775
  throw "newStart is null"; if (!i)
774
776
  throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, this.Q("EventMove", n, o); }, this.eventMoveCallBack = function (e, t, i, a, n) { if (!t)
775
777
  throw "newStart is null"; if (!i)
776
- throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, this.S("EventMove", n, o); }, this.L = function (e, t, i, a) { var n = 1, o = Math.floor((i - n) / r.cellHeight), s = 30 * o * 60 * 1e3, l = e.start(), d = e.end(), c = new Date; l instanceof DayPilot.Date && (l = l.toDate()), c.setTime(Date.UTC(l.getUTCFullYear(), l.getUTCMonth(), l.getUTCDate())); 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; v.setTime(p + s + u); var y = new DayPilot.Date(v), g = y.addTime(h); if (r.qa()) {
777
- var b = {};
778
- 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))
778
+ throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, this.S("EventMove", n, o); }, this.L = function (e, t, i, a) { var n = 1, o = Math.floor((i - n) / r.cellHeight), l = s.da(), d = o * l * 60 * 1e3, c = e.start(), u = e.end(), h = new Date; c instanceof DayPilot.Date && (c = c.toDate()), h.setTime(Date.UTC(c.getUTCFullYear(), c.getUTCMonth(), c.getUTCDate())); var f = c.getTime() - (h.getTime() + 3600 * c.getUTCHours() * 1e3 + Math.floor(c.getUTCMinutes() / l) * l * 60 * 1e3), m = u.getTime() - c.getTime(), p = this.wa[t], v = p.id, y = p.start.getTime(), g = new Date; g.setTime(y + d + f); var b = new DayPilot.Date(g), D = b.addTime(m); if (r.ra()) {
779
+ var w = {};
780
+ if (w.e = e, w.newStart = b, w.newEnd = D, w.newResource = v, w.ctrl = a.ctrlKey, w.shift = a.shiftKey, w.control = r, w.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onEventMove && (r.ta.apply(function () { r.onEventMove(w); }), w.preventDefault.value))
779
781
  return;
780
782
  switch (r.eventMoveHandling) {
781
783
  case "PostBack":
782
- r.eventMovePostBack(e, y, g, f.id);
784
+ r.eventMovePostBack(e, b, D, p.id);
783
785
  break;
784
786
  case "CallBack":
785
- r.eventMoveCallBack(e, y, g, f.id);
787
+ r.eventMoveCallBack(e, b, D, p.id);
786
788
  break;
787
- case "Update": e.start(y), e.end(g), e.resource(m), r.events.update(e);
789
+ case "Update": e.start(b), e.end(D), e.resource(v), r.events.update(e);
788
790
  }
789
- "function" == typeof r.onEventMoved && r.sa.apply(function () { r.onEventMoved(b); });
791
+ "function" == typeof r.onEventMoved && r.ta.apply(function () { r.onEventMoved(w); });
790
792
  }
791
793
  else
792
794
  switch (r.eventMoveHandling) {
793
795
  case "PostBack":
794
- r.eventMovePostBack(e, y, g, f.id);
796
+ r.eventMovePostBack(e, b, D, p.id);
795
797
  break;
796
798
  case "CallBack":
797
- r.eventMoveCallBack(e, y, g, f.id);
799
+ r.eventMoveCallBack(e, b, D, p.id);
798
800
  break;
799
- case "JavaScript": r.onEventMove(e, y, g, f.id, !1);
800
- } }, 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) { if (e = new DayPilot.Date(e), t = new DayPilot.Date(t), this.qa()) {
801
+ case "JavaScript": r.onEventMove(e, b, D, p.id, !1);
802
+ } }, 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) { if (e = new DayPilot.Date(e), t = new DayPilot.Date(t), this.ra()) {
801
803
  var a = {};
802
- 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))
804
+ if (a.start = e, a.end = t, a.resource = i, a.control = r, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onTimeRangeSelect && (r.ta.apply(function () { r.onTimeRangeSelect(a); }), a.preventDefault.value))
803
805
  return;
804
806
  switch (r.timeRangeSelectedHandling) {
805
807
  case "PostBack":
@@ -807,7 +809,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
807
809
  break;
808
810
  case "CallBack": r.timeRangeSelectedCallBack(e, t);
809
811
  }
810
- "function" == typeof r.onTimeRangeSelected && r.sa.apply(function () { r.onTimeRangeSelected(a); });
812
+ "function" == typeof r.onTimeRangeSelected && r.ta.apply(function () { r.onTimeRangeSelected(a); });
811
813
  }
812
814
  else
813
815
  switch (r.timeRangeSelectedHandling) {
@@ -818,28 +820,28 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
818
820
  r.timeRangeSelectedCallBack(e, t);
819
821
  break;
820
822
  case "JavaScript": r.onTimeRangeSelected(e, t);
821
- } }, this.wa = function (e) { if (!t.selecting && "Disabled" !== r.timeRangeSelectedHandling) {
823
+ } }, this.xa = function (e) { if (!t.selecting && "Disabled" !== r.timeRangeSelectedHandling) {
822
824
  var i = e.which;
823
825
  if (1 === i || 0 === i)
824
- 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;
825
- } }, this.xa = function () { this.getSelection(); !function () { var e = t.topSelectedCell, i = t.bottomSelectedCell, a = function () { if (e.data)
826
+ return t.firstMousePos = DayPilot.mc(e), t.selecting = {}, t.selecting.calendar = r, t.selectedCells && (r.clearSelection(), t.selectedCells = []), t.column = t.getColumn(this), t.selectedCells.push(this), t.firstSelected = this, t.topSelectedCell = this, t.bottomSelectedCell = this, r.ya(), !1;
827
+ } }, this.ya = function () { this.getSelection(); !function () { var e = t.topSelectedCell, i = t.bottomSelectedCell, a = function () { if (e.data)
826
828
  return e.data.x; for (var t = e.parentNode.cells, i = 0; i < t.length; i++)
827
829
  if (t[i] === e)
828
- return i; return -1; }(), n = r.va[a]; if (n) {
830
+ return i; return -1; }(), n = r.wa[a]; if (n) {
829
831
  var o = n.start, s = r.getPixels(e.start, o).boxTop, l = r.getPixels(i.end, o).boxBottom, d = l - s, c = r.eventBorderRadius;
830
832
  "number" == typeof c && (c += "px");
831
833
  var u = function () { if (r.nav.activeSelection)
832
834
  return r.nav.activeSelection; var e = document.createElement("div"); e.setAttribute("unselectable", "on"), e.style.position = "absolute", e.style.left = "0px", e.style.width = "100%"; var t = document.createElement("div"); 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; }();
833
835
  u.className = r.K("_shadow"), u.firstChild.innerHTML = "", u.style.top = s + "px", u.style.height = d + "px";
834
- } }(); }, this.ya = function (e) { if ("undefined" != typeof t && t.selecting) {
836
+ } }(); }, this.za = function (e) { if ("undefined" != typeof t && t.selecting) {
835
837
  var i = DayPilot.mc(e);
836
- 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());
837
- } }, 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) { if (e < 0)
838
+ t.getColumn(this) === t.column && (r.clearSelection(), i.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(this), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(this), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), r.ya());
839
+ } }, this.getSelection = function () { var e = t.topSelectedCell.start, i = t.bottomSelectedCell.end, a = t.topSelectedCell.resource; return new DayPilot.Selection(e, i, a, r); }, this.Aa = function (e) { if (e < 0)
838
840
  return null; for (var t = 0, i = r.nav.events.rows[0].cells, a = 0; a < i.length; a++) {
839
841
  if (t += i[a].offsetWidth, e < t)
840
842
  return a;
841
- } return null; }, this.Aa = {}, this.Aa.getCellCoords = function () { var e = {}; if (e.x = 0, e.y = 0, !r.coords)
842
- return null; e.x = r.za(r.coords.x); var t = 0, i = Math.floor((r.coords.y - t) / r.cellHeight); return e.y = i, e.x < 0 ? null : e; }, this.columns = {}, this.columns.list = [], this.columns.load = function (e, t, i) { if (!e)
843
+ } return null; }, this.Ba = {}, this.Ba.getCellCoords = function () { var e = {}; if (e.x = 0, e.y = 0, !r.coords)
844
+ return null; e.x = r.Aa(r.coords.x); var t = 0, i = Math.floor((r.coords.y - t) / r.cellHeight); return e.y = i, e.x < 0 ? null : e; }, this.columns = {}, this.columns.list = [], this.columns.load = function (e, t, i) { if (!e)
843
845
  throw new DayPilot.Exception("columns.load(): 'url' parameter required"); var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, n = function (e) { var i, n = e.request; try {
844
846
  i = JSON.parse(n.responseText);
845
847
  }
@@ -850,11 +852,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
850
852
  var s = {};
851
853
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
852
854
  return;
853
- r.columns.list = i, r.Ba && r.update();
854
- } }; 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 }); }, this.da = function () { var e; e = "Resources" !== r.viewType ? this.Ca() : r.columns.list, this.va = []; for (var t = 0; t < e.length; t++) {
855
- var i = this.Da(e[t]);
856
- this.va.push(i);
857
- } }, this.Da = function (e) { var t = {}; 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) { for (var t = 0; t < this.blocks.length; t++) {
855
+ r.columns.list = i, r.Ca && r.update();
856
+ } }; 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 }); }, this.ea = function () { var e; e = "Resources" !== r.viewType ? this.Da() : r.columns.list, this.wa = []; for (var t = 0; t < e.length; t++) {
857
+ var i = this.Ea(e[t]);
858
+ this.wa.push(i);
859
+ } }, this.Ea = function (e) { var t = {}; if (t.name = e.name, t.html = e.html, t.id = e.id, t.toolTip = e.toolTip, t.data = e, e.start ? t.start = new DayPilot.Date(e.start) : t.start = new DayPilot.Date(r.startDate), "BusinessHoursNoScroll" === this.heightSpec) {
860
+ var i = t.start.getDatePart();
861
+ t.start = i.addHours(this.businessBeginsHour);
862
+ } return t.putIntoBlock = function (e) { for (var t = 0; t < this.blocks.length; t++) {
858
863
  var i = this.blocks[t];
859
864
  if (i.overlapsWith(e.part.top, e.part.height))
860
865
  return i.events.push(e), i.min = Math.min(i.min, e.part.top), i.max = Math.max(i.max, e.part.top + e.part.height), t;
@@ -874,7 +879,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
874
879
  var o = this[n];
875
880
  if (!(i < o.part.top || e > o.part.top + o.part.height - 1))
876
881
  return !1;
877
- } return !0; }, i.push(e), this.lines.push(i), this.lines.length - 1; }, t; }, this.Ca = function () { var e = [], t = this.startDate.getDatePart(), i = this.days; switch (this.viewType) {
882
+ } return !0; }, i.push(e), this.lines.push(i), this.lines.length - 1; }, t; }, this.Da = function () { var e = [], t = this.startDate.getDatePart(), i = this.days; switch (this.viewType) {
878
883
  case "Day":
879
884
  i = 1;
880
885
  break;
@@ -884,32 +889,32 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
884
889
  t = t.firstDayOfWeek(a);
885
890
  break;
886
891
  case "WorkWeek": i = 5, t = t.firstDayOfWeek(1);
887
- } "BusinessHoursNoScroll" === this.heightSpec && (t = t.addHours(this.businessBeginsHour)); for (var n = 0; n < i; n++) {
892
+ } for (var n = 0; n < i; n++) {
888
893
  var o = r.headerDateFormat ? r.headerDateFormat : s.locale().datePattern, l = {};
889
894
  l.start = t.addDays(n), l.name = l.start.toString(o, s.locale()), e.push(l);
890
895
  } return e; }, this.visibleStart = function () { if ("Resources" === r.viewType) {
891
- if (0 === r.va.length)
896
+ if (0 === r.wa.length)
892
897
  return DayPilot.Date.today();
893
- var e = r.va.map(function (e) { return e.start.getTime(); }), t = Math.min.apply(null, e);
898
+ var e = r.wa.map(function (e) { return e.start.getTime(); }), t = Math.min.apply(null, e);
894
899
  return new DayPilot.Date(t);
895
- } return this.va[0].start; }, this.visibleEnd = function () { if ("Resources" === r.viewType) {
896
- if (0 === r.va.length)
900
+ } return this.wa[0].start; }, this.visibleEnd = function () { if ("Resources" === r.viewType) {
901
+ if (0 === r.wa.length)
897
902
  return DayPilot.Date.today().addDays(1);
898
- var e = r.va.map(function (e) { return e.start.getTime(); }), t = Math.max.apply(null, e);
903
+ var e = r.wa.map(function (e) { return e.start.getTime(); }), t = Math.max.apply(null, e);
899
904
  return new DayPilot.Date(t).addDays(1);
900
- } var t = this.va.length - 1; return this.va[t].start.addDays(1); }, this.K = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.W = function () { if (this.elements.events)
905
+ } var t = this.wa.length - 1; return this.wa[t].start.addDays(1); }, this.K = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.W = function () { if (this.elements.events)
901
906
  for (var e = 0; e < this.elements.events.length; e++) {
902
907
  var t = this.elements.events[e];
903
- r.Ea(t);
904
- } this.elements.events = []; }, this.Ea = function (e) { !function () { var t = e.domArgs; if (e.domArgs = null, t && "function" == typeof r.onBeforeEventDomRemove && r.onBeforeEventDomRemove(t), t && "function" == typeof r.onBeforeEventDomAdd) {
905
- var a = t && t.Fa;
908
+ r.Fa(t);
909
+ } this.elements.events = []; }, this.Fa = function (e) { !function () { var t = e.domArgs; if (e.domArgs = null, t && "function" == typeof r.onBeforeEventDomRemove && r.onBeforeEventDomRemove(t), t && "function" == typeof r.onBeforeEventDomAdd) {
910
+ var a = t && t.Ga;
906
911
  if (a) {
907
- r.Ha.Ga && i(t.element) && (r.Ha.Ia = !0, r.Ha.Ja(a), r.Ha.Ia = !1);
912
+ r.Ia.Ha && i(t.element) && (r.Ia.Ja = !0, r.Ia.Ka(a), r.Ia.Ja = !1);
908
913
  }
909
914
  } }(); var t = e.event; 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()) {
910
915
  var a = e.firstChild.firstChild;
911
916
  a.onmousedown = null, a.onmousemove = null, a.onclick = null;
912
- } e.helper = null, e.data = null, e.event = null, DayPilot.de(e); }, this.Ka = function (e) { var a = e.cache || e.data, n = this.nav.events, o = a.borderRadius || r.eventBorderRadius; "number" == typeof o && (o += "px"); var s = document.createElement("div"); 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) { var a = 5; if ("undefined" != typeof t) {
917
+ } e.helper = null, e.data = null, e.event = null, DayPilot.de(e); }, this.La = function (e) { var a = e.cache || e.data, n = this.nav.events, o = a.borderRadius || r.eventBorderRadius; "number" == typeof o && (o += "px"); var s = document.createElement("div"); s.style.position = "absolute", s.style.left = e.part.left + "%", s.style.top = e.part.top + "px", s.style.width = e.part.width + "%", s.style.height = Math.max(e.part.height, 2) + "px", s.style.overflow = "hidden", s.data = e, s.event = e, s.unselectable = "on", s.style.MozUserSelect = "none", s.style.KhtmlUserSelect = "none", s.className = this.K("_event"), a.cssClass && DayPilot.Util.addClass(s, a.cssClass), r.showToolTip && e.client.toolTip() && (s.title = e.client.toolTip()), s.isFirst = e.part.start.getTime() === e.start().getTime(), s.isLast = e.part.end.getTime() === e.end().getTime(), s.onclick = this.sa, DayPilot.re(s, "contextmenu", this.ua), s.onmouseout = function (e) { s.deleteIcon && (s.deleteIcon.style.display = "none"); }, s.onmousemove = function (i) { var a = 5; if ("undefined" != typeof t) {
913
918
  var n = DayPilot.mo3(s, i);
914
919
  if (n && !t.resizing && !t.moving) {
915
920
  s.deleteIcon && (s.deleteIcon.style.display = "");
@@ -920,7 +925,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
920
925
  if (1 === a && e.client.moveEnabled()) {
921
926
  t.moving = this, DayPilot.Global.moving = this, t.moving.event = this.event;
922
927
  var n = t.moving.helper = {};
923
- n.oldColumn = r.va[this.data.part.dayIndex].id, t.originalMouse = DayPilot.mc(i), t.originalTop = this.offsetTop;
928
+ n.oldColumn = r.wa[this.data.part.dayIndex].id, t.originalMouse = DayPilot.mc(i), t.originalTop = this.offsetTop;
924
929
  var o = DayPilot.mo3(this, i);
925
930
  o ? t.moveOffsetY = o.y : t.moveOffsetY = 0, r.nav.top.style.cursor = "move";
926
931
  }
@@ -933,18 +938,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
933
938
  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);
934
939
  } if (e.client.deleteEnabled()) {
935
940
  var m = document.createElement("div");
936
- 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);
941
+ m.style.position = "absolute", m.style.right = "2px", m.style.top = "2px", m.style.width = "17px", m.style.height = "17px", m.className = r.K("_event_delete"), m.onmousedown = function (e) { e.stopPropagation(); }, m.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && r.va(t); }, m.style.display = "none", s.deleteIcon = m, s.appendChild(m);
937
942
  } var p = a.areas ? DayPilot.Areas.copy(a.areas) : []; if (DayPilot.Areas.attach(s, e, { "areas": p }), "function" == typeof r.onAfterEventRender) {
938
943
  var v = {};
939
944
  v.e = s.event, v.div = s, r.onAfterEventRender(v);
940
945
  } if (function () { var t = {}; if (t.control = r, t.e = e, t.element = null, s.domArgs = t, "function" == typeof r.onBeforeEventDomAdd && r.onBeforeEventDomAdd(t), t.element) {
941
946
  var a = l;
942
947
  if (a) {
943
- t.Fa = a;
948
+ t.Ga = a;
944
949
  if (i(t.element)) {
945
- if (!r.Ha.Ga)
950
+ if (!r.Ia.Ha)
946
951
  throw new DayPilot.Exception("Can't reach Vue");
947
- r.Ha.Ia = !0, r.Ha.La(t.element, a), r.Ha.Ia = !1;
952
+ r.Ia.Ja = !0, r.Ia.Ma(t.element, a), r.Ia.Ja = !1;
948
953
  }
949
954
  else
950
955
  a.appendChild(t.element);
@@ -952,14 +957,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
952
957
  }
953
958
  else
954
959
  l.innerHTML = e.client.innerHTML(); }(), n.rows[0].cells[e.part.dayIndex]) {
955
- n.rows[0].cells[e.part.dayIndex].firstChild.appendChild(s), r.Ma(s);
956
- } r.elements.events.push(s); }, this.Ma = function (e) { for (var t = e && e.childNodes ? e.childNodes.length : 0, i = 0; i < t; i++)
960
+ n.rows[0].cells[e.part.dayIndex].firstChild.appendChild(s), r.Na(s);
961
+ } r.elements.events.push(s); }, this.Na = function (e) { for (var t = e && e.childNodes ? e.childNodes.length : 0, i = 0; i < t; i++)
957
962
  try {
958
963
  var a = e.childNodes[i];
959
- 1 === a.nodeType && (a.unselectable = "on", this.Ma(a));
964
+ 1 === a.nodeType && (a.unselectable = "on", this.Na(a));
960
965
  }
961
- catch (e) { } }, this.ka = function () { for (var e = 0; e < this.va.length; e++) {
962
- var t = this.va[e];
966
+ catch (e) { } }, this.la = function () { for (var e = 0; e < this.wa.length; e++) {
967
+ var t = this.wa[e];
963
968
  if (t.blocks)
964
969
  for (var i = 0; i < t.blocks.length; i++)
965
970
  for (var a = t.blocks[i], n = 0; n < a.lines.length; n++)
@@ -967,87 +972,87 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
967
972
  var s = o[r];
968
973
  s.part.width = 100 / a.lines.length, s.part.left = s.part.width * n;
969
974
  var l = n === a.lines.length - 1;
970
- l || (s.part.width = 1.5 * s.part.width), this.Ka(s);
975
+ l || (s.part.width = 1.5 * s.part.width), this.La(s);
971
976
  }
972
- } }, 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 () { var e = document.createElement("table"); 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; for (var t = this.va, i = t.length, a = e.insertRow(-1), n = 0; n < i; n++) {
977
+ } }, this.Oa = function () { this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.K("_main")), this.nav.top.style.MozUserSelect = "none", this.nav.top.style.KhtmlUserSelect = "none", this.nav.top.style.position = "relative", this.nav.top.style.width = this.width ? this.width : "100%", this.hideUntilInit && (this.nav.top.style.visibility = "hidden"), this.visible || (this.nav.top.style.display = "none"), this.nav.scroll = document.createElement("div"), this.nav.scroll.style.height = this.Pa() + "px", "BusinessHours" === this.heightSpec ? this.nav.scroll.style.overflow = "auto" : this.nav.scroll.style.overflow = "hidden", this.nav.scroll.style.position = "relative"; var e = this.Qa(); this.nav.top.appendChild(e), this.nav.scroll.style.zoom = 1; var t = this.Ra(); this.nav.scrollable = t.firstChild, this.nav.scroll.appendChild(t), this.nav.top.appendChild(this.nav.scroll), this.nav.scrollLayer = document.createElement("div"), this.nav.scrollLayer.style.position = "absolute", this.nav.scrollLayer.style.top = "0px", this.nav.scrollLayer.style.left = "0px", this.nav.top.appendChild(this.nav.scrollLayer), this.nav.loading = document.createElement("div"), this.nav.loading.style.position = "absolute", this.nav.loading.style.top = "0px", this.nav.loading.style.left = this.hourWidth + 5 + "px", this.nav.loading.innerHTML = r.Sa(r.loadingLabelText, r.loadingLabelHtml), this.nav.loading.style.display = "none", this.nav.top.appendChild(this.nav.loading); }, this.ja = function () { this.fasterDispose || DayPilot.pu(this.nav.hourTable), this.nav.scrollable.rows[0].cells[0].innerHTML = "", this.nav.hourTable = this.Ta(), this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable); }, this.Ra = function () { var e = document.createElement("div"); e.style.zoom = 1, e.style.position = "relative"; var t = document.createElement("table"); t.cellSpacing = "0", t.cellPadding = "0", t.border = "0", t.style.border = "0px none", t.style.width = "100%", t.style.position = "absolute"; var i, a = t.insertRow(-1); i = a.insertCell(-1), i.valign = "top", i.style.padding = "0px", i.style.border = "0px none", this.nav.hourTable = this.Ta(), i.appendChild(this.nav.hourTable), i = a.insertCell(-1), i.valign = "top", i.width = "100%", i.style.padding = "0px", i.style.border = "0px none"; var n = document.createElement("div"); return n.style.position = "relative", i.appendChild(n), n.appendChild(this.Ua()), n.appendChild(this.Va()), e.appendChild(t), this.nav.zoom = e, e; }, this.Ua = function () { var e = document.createElement("table"); return e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.nav.main = e, this.nav.events = e, e; }, this.Va = function () { var e = document.createElement("table"); 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; for (var t = this.wa, i = t.length, a = e.insertRow(-1), n = 0; n < i; n++) {
973
978
  var o = a.insertCell(-1);
974
979
  o.style.padding = "0px", o.style.border = "0px none", o.style.height = "0px", o.style.overflow = "visible", r.rtl || (o.style.textAlign = "left");
975
980
  var s = document.createElement("div");
976
981
  s.style.marginRight = r.columnMarginRight + "px", s.style.marginLeft = r.columnMarginLeft + "px", s.style.position = "relative", s.style.height = "1px", s.style.marginTop = "-1px";
977
982
  var l = document.createElement("div");
978
983
  o.selection = l, o.appendChild(s), o.appendChild(l);
979
- } return e; }, this.Sa = function () { var e = document.createElement("table"); 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; }; for (var t = r.la(), i = 0; i < t; i++)
980
- this.Va(e, i); return e; }, 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 () { switch (this.heightSpec) {
981
- case "Full": return 48 * this.cellHeight;
984
+ } return e; }, this.Ta = function () { var e = document.createElement("table"); 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; }; for (var t = r.ma(), i = 0; i < t; i++)
985
+ this.Wa(e, i); return e; }, this.Wa = function (e, t) { var i = 60 * r.cellHeight / s.da(), a = e.insertRow(-1); a.style.height = i + "px"; var n = a.insertCell(-1); n.valign = "bottom", n.unselectable = "on", n.style.cursor = "default", n.style.padding = "0px", n.style.border = "0px none"; var o = document.createElement("div"); o.style.position = "relative", o.className = this.K("_rowheader"), o.style.width = this.hourWidth + "px", o.style.height = i + "px", o.style.overflow = "hidden", o.unselectable = "on"; var l = document.createElement("div"); l.className = this.K("_rowheader_inner"), l.unselectable = "on"; var d = document.createElement("div"); d.unselectable = "on"; var c = this.startDate.addHours(t).addHours(r.qa()), u = c.getHours(), h = u < 12, f = s.timeFormat(); "Clock12Hours" === f && (u %= 12, 0 === u && (u = 12)), d.innerHTML = u; var m = document.createElement("span"); m.unselectable = "on", m.className = this.K("_rowheader_minutes"); var p; p = "Clock12Hours" === f ? h ? "AM" : "PM" : "00", m.innerHTML = p, d.appendChild(m), l.appendChild(d), o.appendChild(l), n.appendChild(o); }, this.Pa = function () { var e = s.da(), t = 60 / e; switch (this.heightSpec) {
986
+ case "Full": return 24 * t * this.cellHeight;
982
987
  case "BusinessHours":
983
- var e = this.na();
984
- return e * this.cellHeight * 2;
988
+ var i = this.oa();
989
+ return i * this.cellHeight * t;
985
990
  case "BusinessHoursNoScroll":
986
- var e = this.na();
987
- return e * this.cellHeight * 2;
991
+ var i = this.oa();
992
+ return i * this.cellHeight * t;
988
993
  default: throw "DayPilot.Calendar: Unexpected 'heightSpec' value.";
989
- } }, this.Wa = function () { var e = r.nav.corner ? r.nav.corner.parentNode : null; if (e) {
994
+ } }, this.Xa = function () { var e = r.nav.corner ? r.nav.corner.parentNode : null; if (e) {
990
995
  e.innerHTML = "";
991
- var t = this.Xa();
996
+ var t = this.Ya();
992
997
  e.appendChild(t), r.nav.corner = t;
993
- } }, this.Pa = function () { var e = document.createElement("div"); e.style.overflow = "auto"; var t = document.createElement("table"); t.cellPadding = "0", t.cellSpacing = "0", t.border = "0", t.style.width = "100%", t.style.borderCollapse = "separate", t.style.border = "0px none"; var i = t.insertRow(-1), a = i.insertCell(-1); a.style.padding = "0px", a.style.border = "0px none"; var n = this.Xa(); 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; }; var o = "hidden" !== this.nav.scroll.style.overflow; if (a.appendChild(this.nav.header), o) {
998
+ } }, this.Qa = function () { var e = document.createElement("div"); e.style.overflow = "auto"; var t = document.createElement("table"); t.cellPadding = "0", t.cellSpacing = "0", t.border = "0", t.style.width = "100%", t.style.borderCollapse = "separate", t.style.border = "0px none"; var i = t.insertRow(-1), a = i.insertCell(-1); a.style.padding = "0px", a.style.border = "0px none"; var n = this.Ya(); 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; }; var o = "hidden" !== this.nav.scroll.style.overflow; if (a.appendChild(this.nav.header), o) {
994
999
  a = i.insertCell(-1), a.unselectable = "on";
995
1000
  var r = document.createElement("div");
996
1001
  r.unselectable = "on", r.style.position = "relative", r.style.width = "16px", r.style.height = this.headerHeight + "px", r.className = this.K("_cornerright");
997
1002
  var s = document.createElement("div");
998
1003
  s.className = this.K("_cornerright_inner"), r.appendChild(s), a.appendChild(r), this.nav.cornerRight = r;
999
- } return e.appendChild(t), e; }, 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 () { var e = this.nav.main; e.root = null, e.onmouseup = null; for (var t = 0; t < e.rows.length; t++)
1004
+ } return e.appendChild(t), e; }, this.Ya = function () { var e = document.createElement("div"); e.style.position = "relative", e.className = this.K("_corner"), e.style.width = this.hourWidth + "px", e.style.height = this.headerHeight + "px", e.oncontextmenu = function () { return !1; }; var t = document.createElement("div"); return t.unselectable = "on", t.className = this.K("_corner_inner"), e.appendChild(t), e; }, this.X = function () { var e = this.nav.main; e.root = null, e.onmouseup = null; for (var t = 0; t < e.rows.length; t++)
1000
1005
  for (var i = e.rows[t], a = 0; a < i.cells.length; a++) {
1001
1006
  var n = i.cells[a];
1002
- r.Ya(n);
1003
- } this.fasterDispose || DayPilot.pu(e); }, this.Ya = function (e) { e && (!function () { var t = e, a = t.domArgs; if (t.domArgs = null, a && "function" == typeof r.onBeforeCellDomRemove && r.onBeforeCellDomRemove(a), a && "function" == typeof r.onBeforeCellDomAdd) {
1004
- var n = a && a.Fa;
1007
+ r.Za(n);
1008
+ } this.fasterDispose || DayPilot.pu(e); }, this.Za = function (e) { e && (!function () { var t = e, a = t.domArgs; if (t.domArgs = null, a && "function" == typeof r.onBeforeCellDomRemove && r.onBeforeCellDomRemove(a), a && "function" == typeof r.onBeforeCellDomAdd) {
1009
+ var n = a && a.Ga;
1005
1010
  if (n) {
1006
- r.Ha.Ga && i(a.element) && (r.Ha.Ia = !0, r.Ha.Ja(n), r.Ha.Ia = !1);
1007
- }
1008
- } }(), e.root = null, e.onmousedown = null, e.onmousemove = null, e.onmouseout = null, e.onmouseup = null); }, this.ha = function () { var e = this.nav.main, a = 18e5, n = this.oa(), o = r.va; for (e && this.X(); e && e.rows && e.rows.length > 0;)
1009
- this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0); this.tableCreated = !0; for (var s = o.length, l = this.nav.events; l && l.rows && l.rows.length > 0;)
1010
- this.fasterDispose || DayPilot.pu(l.rows[0]), l.deleteRow(0); for (var s = o.length, d = l.insertRow(-1), c = 0; c < s; c++) {
1011
- var u = d.insertCell(-1);
1012
- u.style.padding = "0px", u.style.border = "0px none", u.style.height = "0px", u.style.overflow = "visible", r.rtl || (u.style.textAlign = "left");
1013
- var h = document.createElement("div");
1014
- h.style.marginRight = r.columnMarginRight + "px", h.style.marginLeft = r.columnMarginLeft + "px", h.style.position = "relative", h.style.height = "1px", h.style.marginTop = "-1px";
1015
- var f = document.createElement("div");
1016
- f.style.position = "relative", u.selection = f, u.appendChild(h), u.appendChild(f);
1017
- } for (var m = 0; m < n; m++) {
1018
- var d = e.insertRow(-1);
1019
- d.style.MozUserSelect = "none", d.style.KhtmlUserSelect = "none";
1020
- for (var c = 0; c < s; c++) {
1021
- var p = this.va[c], u = d.insertCell(-1);
1022
- 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";
1023
- var h = document.createElement("div");
1024
- h.unselectable = "on", h.style.height = r.cellHeight + "px", h.style.position = "relative", h.className = this.K("_cell");
1025
- var v = this.Za(u.start, u.end), y = { "business": v, "text": null, "html": null, "cssClass": null, "backColor": null, "backImage": null, "backRepeat": null, "fontColor": null }, g = { "start": u.start, "end": u.end, "resource": u.resource, "properties": y, "x": c, "y": m };
1011
+ r.Ia.Ha && i(a.element) && (r.Ia.Ja = !0, r.Ia.Ka(n), r.Ia.Ja = !1);
1012
+ }
1013
+ } }(), e.root = null, e.onmousedown = null, e.onmousemove = null, e.onmouseout = null, e.onmouseup = null); }, this.ia = function () { var e = s.da(), a = this.nav.main, n = 60 * e * 1e3, o = this.pa(), l = r.wa; for (a && this.X(); a && a.rows && a.rows.length > 0;)
1014
+ this.fasterDispose || DayPilot.pu(a.rows[0]), a.deleteRow(0); this.tableCreated = !0; for (var d = l.length, c = this.nav.events; c && c.rows && c.rows.length > 0;)
1015
+ this.fasterDispose || DayPilot.pu(c.rows[0]), c.deleteRow(0); for (var d = l.length, u = c.insertRow(-1), h = 0; h < d; h++) {
1016
+ var f = u.insertCell(-1);
1017
+ f.style.padding = "0px", f.style.border = "0px none", f.style.height = "0px", f.style.overflow = "visible", r.rtl || (f.style.textAlign = "left");
1018
+ var m = document.createElement("div");
1019
+ m.style.marginRight = r.columnMarginRight + "px", m.style.marginLeft = r.columnMarginLeft + "px", m.style.position = "relative", m.style.height = "1px", m.style.marginTop = "-1px";
1020
+ var p = document.createElement("div");
1021
+ p.style.position = "relative", f.selection = p, f.appendChild(m), f.appendChild(p);
1022
+ } for (var v = 0; v < o; v++) {
1023
+ var u = a.insertRow(-1);
1024
+ u.style.MozUserSelect = "none", u.style.KhtmlUserSelect = "none";
1025
+ for (var h = 0; h < d; h++) {
1026
+ var y = this.wa[h], f = u.insertCell(-1);
1027
+ f.start = y.start.addTime(v * n), f.end = f.start.addTime(n), f.resource = y.id, f.onmousedown = this.xa, f.onmouseup = function () { return !1; }, f.onclick = function () { return !1; }, f.root = this, f.style.padding = "0px", f.style.border = "0px none", f.style.verticalAlign = "top", f.style.height = r.cellHeight + "px", f.style.overflow = "hidden", f.unselectable = "on";
1028
+ var m = document.createElement("div");
1029
+ m.unselectable = "on", m.style.height = r.cellHeight + "px", m.style.position = "relative", m.className = this.K("_cell");
1030
+ var g = this.$a(f.start, f.end), b = { "business": g, "text": null, "html": null, "cssClass": null, "backColor": null, "backImage": null, "backRepeat": null, "fontColor": null }, D = { "start": f.start, "end": f.end, "resource": f.resource, "properties": b, "x": h, "y": v };
1026
1031
  !function () { if ("function" == typeof r.onBeforeCellRender) {
1027
1032
  var e = {};
1028
- e.cell = g, r.onBeforeCellRender(e);
1029
- } }(), y.business && DayPilot.Util.addClass(h, r.K("_cell_business")), y.cssClass && DayPilot.Util.addClass(h, y.cssClass);
1030
- var b = document.createElement("div");
1031
- b.setAttribute("unselectable", "on"), b.className = this.K("_cell_inner");
1032
- var D = DayPilot.Util.escapeTextHtml(y.text, y.html);
1033
- D && (b.innerHTML = D), y.backColor && (b.style.backgroundColor = y.backColor), y.backImage && (b.style.backgroundImage = "url(" + y.backImage + ")"), y.backRepeat && (b.style.backgroundRepeat = y.backRepeat), y.fontColor && (b.style.color = y.fontColor), h.appendChild(b), function () { if ("function" == typeof r.onBeforeCellDomAdd || "function" == typeof r.onBeforeCellDomRemove) {
1033
+ e.cell = D, r.onBeforeCellRender(e);
1034
+ } }(), b.business && DayPilot.Util.addClass(m, r.K("_cell_business")), b.cssClass && DayPilot.Util.addClass(m, b.cssClass);
1035
+ var w = document.createElement("div");
1036
+ w.setAttribute("unselectable", "on"), w.className = this.K("_cell_inner");
1037
+ var x = DayPilot.Util.escapeTextHtml(b.text, b.html);
1038
+ x && (w.innerHTML = x), b.backColor && (w.style.backgroundColor = b.backColor), b.backImage && (w.style.backgroundImage = "url(" + b.backImage + ")"), b.backRepeat && (w.style.backgroundRepeat = b.backRepeat), b.fontColor && (w.style.color = b.fontColor), m.appendChild(w), function () { if ("function" == typeof r.onBeforeCellDomAdd || "function" == typeof r.onBeforeCellDomRemove) {
1034
1039
  var e = {};
1035
- if (e.control = r, e.cell = g, e.element = null, u.domArgs = e, "function" == typeof r.onBeforeCellDomAdd && r.onBeforeCellDomAdd(e), e.element) {
1036
- var t = b;
1040
+ if (e.control = r, e.cell = D, e.element = null, f.domArgs = e, "function" == typeof r.onBeforeCellDomAdd && r.onBeforeCellDomAdd(e), e.element) {
1041
+ var t = w;
1037
1042
  if (t) {
1038
- e.Fa = t;
1043
+ e.Ga = t;
1039
1044
  if (i(e.element)) {
1040
- if (!r.Ha.Ga)
1045
+ if (!r.Ia.Ha)
1041
1046
  throw new DayPilot.Exception("Can't reach Vue");
1042
- r.Ha.Ia = !0, r.Ha.La(e.element, t), r.Ha.Ia = !1;
1047
+ r.Ia.Ja = !0, r.Ia.Ma(e.element, t), r.Ia.Ja = !1;
1043
1048
  }
1044
1049
  else
1045
1050
  t.appendChild(e.element);
1046
1051
  }
1047
1052
  }
1048
- } }(), u.appendChild(h);
1053
+ } }(), f.appendChild(m);
1049
1054
  }
1050
- } e.root = this, r.nav.scrollable.onmousemove = function (e) { var i = r.nav.scrollable; r.coords = DayPilot.mo3(i, e); var a = DayPilot.mc(e); if (t.resizing) {
1055
+ } a.root = this, r.nav.scrollable.onmousemove = function (e) { var i = r.nav.scrollable; r.coords = DayPilot.mo3(i, e); var a = DayPilot.mc(e); if (t.resizing) {
1051
1056
  t.resizingShadow || (t.resizingShadow = r._(t.resizing, !1, r.shadow));
1052
1057
  var n = r.cellHeight, o = 1, s = a.y - t.originalMouse.y;
1053
1058
  if ("bottom" === t.resizing.dpBorder) {
@@ -1082,59 +1087,47 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1082
1087
  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]));
1083
1088
  }
1084
1089
  else if (t.selecting) {
1085
- var a = DayPilot.mc(e), g = r.Aa.getCellCoords(), b = t.column, D = r.nav.main.rows[g.y].cells[b];
1086
- 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();
1087
- } }, r.nav.scrollable.style.display = ""; }, 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 () { var e = this.nav.header; if (e && e.rows)
1088
- for (var t = 0; t < e.rows.length; t++)
1089
- for (var i = e.rows[t], a = 0; a < i.cells.length; a++) {
1090
- var n = i.cells[a];
1091
- n.onclick = null, n.onmousemove = null, n.onmouseout = null;
1092
- } this.fasterDispose || DayPilot.pu(e); }, this.$a = function (e) {
1093
- function t(t) {
1094
- var n = a[t], o = e ? i.insertCell(-1) : i.cells[t];
1095
- 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;
1096
- var s, l = e ? document.createElement("div") : o.firstChild;
1097
- e ? (l.unselectable = "on",
1098
- l.style.MozUserSelect = "none", l.style.cursor = "default", l.style.position = "relative", l.className = r.K("_colheader"), l.style.height = r.headerHeight + "px", r.headerTextWrappingEnabled || (l.style.whiteSpace = "nowrap"), s = document.createElement("div"), s.className = r.K("_colheader_inner"), s.unselectable = "on", l.appendChild(s), o.appendChild(l)) : s = l.firstChild;
1099
- var d = {};
1100
- d.header = {}, d.header.cssClass = null, d.header.verticalAlignment = "center", d.header.horizontalAlignment = "center", d.column = r.ab(n, r), "function" == typeof r.onBeforeHeaderRender && (DayPilot.Util.copyProps(n, d.header, ["id", "start", "name", "html", "backColor", "toolTip", "areas"]), r.onBeforeHeaderRender(d), DayPilot.Util.copyProps(d.header, n, ["html", "backColor", "toolTip", "areas", "cssClass", "verticalAlignment", "horizontalAlignment"])), n.toolTip && (s.title = n.toolTip), n.cssClass && DayPilot.Util.addClass(l, n.cssClass), n.backColor && (s.style.background = n.backColor), n.areas && DayPilot.Areas.attach(l, n);
1101
- var c = n.verticalAlignment;
1102
- if (c)
1103
- switch (s.style.display = "flex", c) {
1104
- case "center":
1105
- s.style.alignItems = "center";
1106
- break;
1107
- case "top":
1108
- s.style.alignItems = "flex-start";
1109
- break;
1110
- case "bottom": s.style.alignItems = "flex-end";
1090
+ var a = DayPilot.mc(e), g = r.Ba.getCellCoords(), b = t.column, D = r.nav.main.rows[g.y].cells[b];
1091
+ a.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(D), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(D), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), r.ya();
1092
+ } }, r.nav.scrollable.style.display = ""; }, this.$a = function (e, t) { return this.businessBeginsHour < this.businessEndsHour ? !(e.getHours() < this.businessBeginsHour || e.getHours() >= this.businessEndsHour || 6 === e.getDayOfWeek() || 0 === e.getDayOfWeek()) : e.getHours() >= this.businessBeginsHour || e.getHours() < this.businessEndsHour; }, this.Y = function () {
1093
+ var e = this.nav.header;
1094
+ if (e && e.rows)
1095
+ for (var t = 0; t < e.rows.length; t++)
1096
+ for (var i = e.rows[t], a = 0; a < i.cells.length; a++) {
1097
+ var n = i.cells[a];
1098
+ n.onclick = null, n.onmousemove = null, n.onmouseout = null;
1111
1099
  }
1112
- var u = n.horizontalAlignment;
1113
- if (u)
1114
- switch (u) {
1115
- case "center":
1116
- s.style.justifyContent = "center";
1117
- break;
1118
- case "left":
1119
- s.style.justifyContent = "flex-start";
1120
- break;
1121
- case "right": s.style.justifyContent = "flex-end";
1122
- }
1123
- l.firstChild.innerHTML = r.Ra(n.name, n.html);
1124
- }
1125
- 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++)
1126
- t(o);
1127
- }, this._a = function (e) { if ("Disabled" !== r.headerClickHandling) {
1128
- var t = this.data, i = r.ab(t), a = {};
1100
+ this.fasterDispose || DayPilot.pu(e);
1101
+ }, this._a = function (e) { function t(t) { var n = a[t], o = e ? i.insertCell(-1) : i.cells[t]; o.data = n, o.style.overflow = "hidden", o.style.padding = "0px", o.style.border = "0px none", o.style.height = r.headerHeight + "px", o.onclick = r.ab; var s, l = e ? document.createElement("div") : o.firstChild; e ? (l.unselectable = "on", l.style.MozUserSelect = "none", l.style.cursor = "default", l.style.position = "relative", l.className = r.K("_colheader"), l.style.height = r.headerHeight + "px", r.headerTextWrappingEnabled || (l.style.whiteSpace = "nowrap"), s = document.createElement("div"), s.className = r.K("_colheader_inner"), s.unselectable = "on", l.appendChild(s), o.appendChild(l)) : s = l.firstChild; var d = {}; d.header = {}, d.header.cssClass = null, d.header.verticalAlignment = "center", d.header.horizontalAlignment = "center", d.column = r.bb(n, r), "function" == typeof r.onBeforeHeaderRender && (DayPilot.Util.copyProps(n, d.header, ["id", "start", "name", "html", "backColor", "toolTip", "areas"]), r.onBeforeHeaderRender(d), DayPilot.Util.copyProps(d.header, n, ["html", "backColor", "toolTip", "areas", "cssClass", "verticalAlignment", "horizontalAlignment"])), n.toolTip && (s.title = n.toolTip), n.cssClass && DayPilot.Util.addClass(l, n.cssClass), n.backColor && (s.style.background = n.backColor), n.areas && DayPilot.Areas.attach(l, n); var c = n.verticalAlignment; if (c)
1102
+ switch (s.style.display = "flex", c) {
1103
+ case "center":
1104
+ s.style.alignItems = "center";
1105
+ break;
1106
+ case "top":
1107
+ s.style.alignItems = "flex-start";
1108
+ break;
1109
+ case "bottom": s.style.alignItems = "flex-end";
1110
+ } var u = n.horizontalAlignment; if (u)
1111
+ switch (u) {
1112
+ case "center":
1113
+ s.style.justifyContent = "center";
1114
+ break;
1115
+ case "left":
1116
+ s.style.justifyContent = "flex-start";
1117
+ break;
1118
+ case "right": s.style.justifyContent = "flex-end";
1119
+ } l.firstChild.innerHTML = r.Sa(n.name, n.html); } for (var i = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], a = this.wa, n = a.length, o = 0; o < n; o++)
1120
+ t(o); }, this.ab = function (e) { if ("Disabled" !== r.headerClickHandling) {
1121
+ var t = this.data, i = r.bb(t), a = {};
1129
1122
  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);
1130
- } }, 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 () { var e = this.nav.header, t = !0, i = this.va; for (i.length; this.headerCreated && e && e.rows && e.rows.length > 0;)
1131
- this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0); this.headerCreated = !0; this.$a(t); }, this.loadingStart = function () { this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = ""); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.S("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.cb = function () { var e = this.nav.scroll; e.root = this, r.db(), e.onscroll || (e.onscroll = function () { r.eb(); }); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.fb = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.gb = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp)); }, this.events = {}, this.events.add = function (e) { var t = null; if (e instanceof DayPilot.Event)
1123
+ } }, this.bb = function (e) { return new DayPilot.CalendarColumn(e, r); }, this.cb = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.ha = function () { var e = this.nav.header, t = !0, i = this.wa; for (i.length; this.headerCreated && e && e.rows && e.rows.length > 0;)
1124
+ this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0); this.headerCreated = !0; this._a(t); }, this.loadingStart = function () { this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = ""); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.S("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.db = function () { var e = this.nav.scroll; e.root = this, r.eb(), e.onscroll || (e.onscroll = function () { r.fb(); }); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.gb = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.hb = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp)); }, this.events = {}, this.events.add = function (e) { var t = null; if (e instanceof DayPilot.Event)
1132
1125
  t = e.data;
1133
1126
  else {
1134
1127
  if ("object" != typeof e)
1135
1128
  throw "DayPilot.Calendar.events.add() expects an object or DayPilot.Event instance.";
1136
1129
  t = e;
1137
- } r.events.list || (r.events.list = []), r.events.list.push(t), r.hb({ "eventsOnly": !0 }), r.sa.notify(); }, this.events.find = function (e) { if (!r.events.list)
1130
+ } r.events.list || (r.events.list = []), r.events.list.push(t), r.ib({ "eventsOnly": !0 }), r.ta.notify(); }, this.events.find = function (e) { if (!r.events.list)
1138
1131
  return null; if ("function" == typeof e) {
1139
1132
  for (var t = e, i = 0; i < r.events.list.length; i++) {
1140
1133
  var a = new DayPilot.Event(r.events.list[i], r);
@@ -1154,7 +1147,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1154
1147
  var i = DayPilot.indexOf(r.events.list, t.data);
1155
1148
  r.events.list.splice(i, 1, e);
1156
1149
  }
1157
- } r.hb({ "eventsOnly": !0 }), r.sa.notify(); }, this.events.remove = function (e) { var t; if (e instanceof DayPilot.Event)
1150
+ } r.ib({ "eventsOnly": !0 }), r.ta.notify(); }, this.events.remove = function (e) { var t; if (e instanceof DayPilot.Event)
1158
1151
  t = e.data;
1159
1152
  else if ("object" == typeof e) {
1160
1153
  var i = r.events.find(e.id);
@@ -1163,7 +1156,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1163
1156
  else if ("string" == typeof e || "number" == typeof e) {
1164
1157
  var i = r.events.find(e);
1165
1158
  i && (t = i.data);
1166
- } var a = DayPilot.indexOf(r.events.list, t); r.events.list.splice(a, 1), r.hb({ "eventsOnly": !0 }), r.sa.notify(); }, this.events.load = function (e, t, i) { var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, n = function (e) { var i, n = e.request; try {
1159
+ } var a = DayPilot.indexOf(r.events.list, t); r.events.list.splice(a, 1), r.ib({ "eventsOnly": !0 }), r.ta.notify(); }, this.events.load = function (e, t, i) { var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, n = function (e) { var i, n = e.request; try {
1167
1160
  i = JSON.parse(n.responseText);
1168
1161
  }
1169
1162
  catch (e) {
@@ -1173,25 +1166,25 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1173
1166
  var s = {};
1174
1167
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
1175
1168
  return;
1176
- r.events.list = i, r.Ba && r.hb({ "eventsOnly": !0 });
1169
+ r.events.list = i, r.Ca && r.ib({ "eventsOnly": !0 });
1177
1170
  } }; if (r.eventsLoadMethod && "POST" === r.eventsLoadMethod.toUpperCase())
1178
1171
  DayPilot.Http.ajax({ "method": "POST", "data": { "start": r.visibleStart().toString(), "end": r.visibleEnd().toString() }, "url": e, "success": n, "error": a });
1179
1172
  else {
1180
1173
  var o = e, s = "start=" + r.visibleStart().toString() + "&end=" + r.visibleEnd().toString();
1181
1174
  o += o.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": o, "success": n, "error": a });
1182
- } }, this.ib = function () { if (r.nav.top.className !== r.K("_main")) {
1175
+ } }, this.jb = function () { if (r.nav.top.className !== r.K("_main")) {
1183
1176
  r.nav.top.className = r.K("_main");
1184
1177
  var e = r.nav.corner;
1185
1178
  e.className = r.K("_corner"), e.firstChild.className = r.K("_corner_inner");
1186
1179
  var t = r.nav.cornerRight;
1187
1180
  t && (t.className = r.K("_cornerright"), t.firstChild.className = r.K("_cornerright_inner"));
1188
1181
  } }, this.update = function (e) { if (r.O)
1189
- throw new DayPilot.Exception("You are trying to update a DayPilot.Calendar instance that has been disposed."); r.jb(e), r.hb(); }, this.hb = function (e) { if (this.Ba) {
1182
+ throw new DayPilot.Exception("You are trying to update a DayPilot.Calendar instance that has been disposed."); r.kb(e), r.ib(); }, this.ib = function (e) { if (this.Ca) {
1190
1183
  var e = e || {}, t = !e.eventsOnly;
1191
- 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();
1192
- } }, this.lb = null, this.jb = function (e) { if (e) {
1184
+ r.lb(), r.W(), r.nav.top.style.cursor = "auto", t && (r.ea(), r.ha(), r.ia(), r.ja(), r.ka(), r.Xa(), r.gb(), r.jb(), r.eb()), r.fa(), r.ga(), r.la(), r.clearSelection(), this.visible ? this.show() : this.hide();
1185
+ } }, this.mb = null, this.kb = function (e) { if (e) {
1193
1186
  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; } } };
1194
- this.lb = t;
1187
+ this.mb = t;
1195
1188
  for (var i in e)
1196
1189
  if (t[i]) {
1197
1190
  var a = t[i];
@@ -1199,21 +1192,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1199
1192
  }
1200
1193
  else
1201
1194
  r[i] = e[i];
1202
- } }, this.mb = function () { var e = this.lb; for (var t in e) {
1195
+ } }, this.nb = function () { var e = this.mb; for (var t in e) {
1203
1196
  var i = e[t];
1204
1197
  i.postInit && i.postInit();
1205
- } }, this.nb = function () { if (this.id && this.id.tagName)
1198
+ } }, this.ob = function () { if (this.id && this.id.tagName)
1206
1199
  this.nav.top = this.id;
1207
1200
  else {
1208
1201
  if ("string" != typeof this.id)
1209
1202
  throw "DayPilot.Calendar() constructor requires the target element or its ID as a parameter";
1210
1203
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
1211
1204
  throw "DayPilot.Calendar: The placeholder element not found: '" + e + "'.";
1212
- } }, this.ob = {}, this.ob.events = [], this.pb = function (e) { var t = this.ob.events, i = this.events.list[e], a = {}; for (var n in i)
1205
+ } }, this.pb = {}, this.pb.events = [], this.qb = function (e) { var t = this.pb.events, i = this.events.list[e], a = {}; for (var n in i)
1213
1206
  a[n] = i[n]; if (a.start = new DayPilot.Date(i.start), a.end = new DayPilot.Date(i.end), "function" == typeof this.onBeforeEventRender) {
1214
1207
  var o = {};
1215
1208
  o.control = r, o.data = a, this.onBeforeEventRender(o);
1216
- } t[e] = a; }, this.ea = function () { var e = this.events.list; if (r.ob.events = [], e) {
1209
+ } t[e] = a; }, this.fa = function () { var e = this.events.list; if (r.pb.events = [], e) {
1217
1210
  if (!DayPilot.isArray(e))
1218
1211
  throw new DayPilot.Exception("DayPilot.Calendar.events.list expects an array object. You supplied: " + typeof e);
1219
1212
  var t = e.length, i = 864e5;
@@ -1233,11 +1226,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1233
1226
  }
1234
1227
  if ("function" == typeof this.onBeforeEventRender)
1235
1228
  for (var n = 0; n < t; n++)
1236
- this.pb(n);
1237
- for (var n = 0; n < this.va.length; n++) {
1229
+ this.qb(n);
1230
+ for (var n = 0; n < this.wa.length; n++) {
1238
1231
  var l = {};
1239
1232
  l.minEnd = 1e6, l.maxStart = -1, this.scrollLabels.push(l);
1240
- var d = this.va[n];
1233
+ var d = this.wa[n];
1241
1234
  d.events = [], d.lines = [], d.blocks = [];
1242
1235
  for (var c = new DayPilot.Date(d.start), u = c.getTime(), h = c.addTime(i), f = h.getTime(), m = 0; m < t; m++)
1243
1236
  if (!a[m]) {
@@ -1253,94 +1246,94 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1253
1246
  var k = x.boxBottom;
1254
1247
  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);
1255
1248
  var p = D.part.top, v = D.part.top + D.part.height;
1256
- 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);
1249
+ p > l.maxStart && (l.maxStart = p), v < l.minEnd && (l.minEnd = v), p < this.minStart && (this.minStart = p), v > this.maxEnd && (this.maxEnd = v), d.events.push(D), "function" == typeof this.onBeforeEventRender && (D.cache = this.pb.events[m]), D.part.start.getTime() === y && D.part.end.getTime() === g && (a[m] = !0);
1257
1250
  }
1258
1251
  }
1259
1252
  }
1260
1253
  }
1261
- for (var n = 0; n < this.va.length; n++) {
1262
- var d = this.va[n];
1263
- d.events.sort(this.qb);
1254
+ for (var n = 0; n < this.wa.length; n++) {
1255
+ var d = this.wa[n];
1256
+ d.events.sort(this.rb);
1264
1257
  for (var m = 0; m < d.events.length; m++) {
1265
1258
  var o = d.events[m];
1266
1259
  d.putIntoBlock(o);
1267
1260
  }
1268
1261
  for (var m = 0; m < d.blocks.length; m++) {
1269
1262
  var _ = d.blocks[m];
1270
- _.events.sort(this.qb);
1263
+ _.events.sort(this.rb);
1271
1264
  for (var S = 0; S < _.events.length; S++) {
1272
1265
  var o = _.events[S];
1273
1266
  _.putIntoLine(o);
1274
1267
  }
1275
1268
  }
1276
1269
  }
1277
- } }, this.qb = function (e, t) { if (!(e && t && e.start && t.start))
1278
- return 0; var i = e.start().getTime() - t.start().getTime(); return 0 !== i ? i : t.end().getTime() - e.end().getTime(); }, 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) { t || (t = this.startDate); var i = t.getTime(), a = e.getTime(), n = this.cache.pixels[a + "_" + i]; if (n)
1279
- return n; i = t.getTime(); var o = 18e5, r = a - i, s = r % o, l = r - s, d = l + o; 0 === s && (d = l); var c = {}; 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; }, 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 () { if (r.nav.scroll && r.sb()) {
1270
+ } }, this.rb = function (e, t) { if (!(e && t && e.start && t.start))
1271
+ return 0; var i = e.start().getTime() - t.start().getTime(); return 0 !== i ? i : t.end().getTime() - e.end().getTime(); }, 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) { t || (t = this.startDate); var i = t.getTime(), a = e.getTime(), n = s.da(), o = this.cache.pixels[a + "_" + i]; if (o)
1272
+ return o; i = t.getTime(); var r = 60 * n * 1e3, l = a - i, d = l % r, c = l - d, u = c + r; 0 === d && (u = c); var h = {}; return h.cut = !1, h.top = this.sb(l), h.boxTop = this.sb(c), h.boxBottom = this.sb(u), this.cache.pixels[a + "_" + i] = h, h; }, this.sb = function (e) { return Math.floor(this.cellHeight * e / (6e4 * s.da())); }, this.lb = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.ga = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.ka = function () { var e = this.Pa(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.ta = {}, this.ta.scope = null, this.ta.notify = function () { r.ta.scope && r.ta.scope["$apply"](); }, this.ta.apply = function (e) { e(); }, this.fb = function () { if (r.nav.scroll && r.tb()) {
1280
1273
  var e = r.nav.scroll.scrollTop, t = e / (2 * r.cellHeight);
1281
- r.tb.scrollHour = t;
1282
- } }, 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 () { for (var e = this.tb.themes, t = 0; t < e.length; t++) {
1274
+ r.ub.scrollHour = t;
1275
+ } }, this.eb = function () { var e = 0, t = 60 / s.da(); e = "number" == typeof r.ub.scrollHour ? t * r.cellHeight * r.ub.scrollHour : "Auto" === r.initScrollPos ? "BusinessHours" === this.heightSpec ? t * this.cellHeight * this.businessBeginsHour : 0 : this.initScrollPos; var i = r.nav.top; "none" === i.style.display ? (i.style.display = "", r.nav.scroll.scrollTop = e, i.style.display = "none") : r.nav.scroll.scrollTop = e; }, this.getScrollY = function () { return r.nav.scroll.scrollTop; }, this.setScrollY = function (e) { r.nav.scroll.scrollTop = e, r.fb(); }, this.vb = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof r.events.list || !r.events.list); }, this.t = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { r.visible = !0, r.nav.top.style.display = "", this.gb(); }, this.hide = function () { r.visible = !1, r.nav.top.style.display = "none"; }, this.wb = function () { this.lb(), this.ea(), this.Oa(), this.ha(), this.ia(), this.gb(), this.db(), this.hb(), t.register(this), this.xb(), this.S("Init"); }, this.ub = {}, this.yb = function () { this.ub.themes = [], this.ub.themes.push(this.theme || this.cssClassPrefix); }, this.zb = function () { for (var e = this.ub.themes, t = 0; t < e.length; t++) {
1283
1276
  var i = e[t];
1284
1277
  DayPilot.Util.removeClass(this.nav.top, i + "_main");
1285
- } this.tb.themes = []; }, this.zb = function () { if (this.afterRender(null, !1), "function" == typeof this.onAfterRender) {
1278
+ } this.ub.themes = []; }, this.Ab = function () { if (this.afterRender(null, !1), "function" == typeof this.onAfterRender) {
1286
1279
  var e = {};
1287
1280
  e.isCallBack = !1, this.onAfterRender(e);
1288
- } }, this.Ab = function () { if ("function" == typeof this.onInit && !this.Bb) {
1289
- this.Bb = !0;
1281
+ } }, this.Bb = function () { if ("function" == typeof this.onInit && !this.Cb) {
1282
+ this.Cb = !0;
1290
1283
  var e = {};
1291
1284
  this.onInit(e);
1292
- } }, 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) { var a = r.Ha.Ga; if ("function" == typeof a.createVNode && "function" == typeof a.render) {
1285
+ } }, this.tb = function () { var e = r.nav.top; return !!e && (e.offsetWidth > 0 && e.offsetHeight > 0); }, this.xb = function () { var e = r.tb; e() || (r.V = setInterval(function () { e() && (r.db(), r.gb(), clearInterval(r.V)); }, 100)); }, this.Sa = function (e, t) { return r.aa.ba() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Ia = {}, this.Ia.Ha = null, this.Ia.Db = function (e, t, i) { var a = r.Ia.Ha; if ("function" == typeof a.createVNode && "function" == typeof a.render) {
1293
1286
  var n = a.createVNode(e, i);
1294
1287
  a.render(n, t);
1295
- } }, this.Ha.La = function (e, t) { var i = r.Ha.Ga; if ("function" == typeof i.render) {
1288
+ } }, this.Ia.Ma = function (e, t) { var i = r.Ia.Ha; if ("function" == typeof i.render) {
1296
1289
  var a = e;
1297
1290
  DayPilot.isArray(e) && (a = i.h("div", null, e)), i.render(a, t);
1298
- } }, 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);
1291
+ } }, this.Ia.Ka = function (e) { var t = r.Ia.Ha; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = r.kb, this.internal.xssTextHtml = r.Sa, this.internal.enableVue = function (e) { r.Ia.Ha = e; }, this.internal.vueRef = function () { return r.Ia.Ha; }, this.internal.vueRendering = function () { return r.Ia.Ja; }, this.init = function () { this.ob(); var e = this.vb(); return this.yb(), e ? void this.wb() : (this.lb(), this.ea(), this.fa(), this.Oa(), this.ha(), this.ia(), this.t(), this.gb(), this.db(), this.hb(), t.register(this), this.events && (this.ga(), this.la()), this.Ab(), this.Bb(), this.xb(), this.Ca = !0, this); }, this.Init = this.init, this.kb(n);
1299
1292
  }, 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) { e.fn.daypilotCalendar = function (e) { var t = null, i = this.each(function () { if (!this.daypilot) {
1300
1293
  var i = new DayPilot.Calendar(this.id);
1301
1294
  this.daypilot = i;
1302
1295
  for (name in e)
1303
1296
  i[name] = e[name];
1304
1297
  i.init(), t || (t = i);
1305
- } }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotCalendar", ["$parse", function (e) { return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) { var n = new DayPilot.Calendar(i[0]); n.sa.scope = t, n.init(); var o = a["id"]; o && (t[o] = n); var r = a["publishAs"]; if (r) {
1298
+ } }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotCalendar", ["$parse", function (e) { return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) { var n = new DayPilot.Calendar(i[0]); n.ta.scope = t, n.init(); var o = a["id"]; o && (t[o] = n); var r = a["publishAs"]; if (r) {
1306
1299
  (0, e(r).assign)(t, n);
1307
1300
  } for (var s in a)
1308
1301
  0 === s.indexOf("on") && !function (i) { n[i] = function (n) { var o = e(a[i]); t["$apply"](function () { o(t, { "args": n }); }); }; }(s); var l = t["$watch"], d = a["config"] || a["daypilotConfig"], c = a["events"] || a["daypilotEvents"]; l.call(t, d, function (e) { for (var t in e)
1309
- n[t] = e[t]; n.update(), n.Ab(); }, !0), l.call(t, c, function (e) { n.events.list = e, n.update(); }, !0); } }; }]); }();
1302
+ n[t] = e[t]; n.update(), n.Bb(); }, !0), l.call(t, c, function (e) { n.events.list = e, n.update(); }, !0); } }; }]); }();
1310
1303
  }
1311
1304
  }(), "undefined" == typeof DayPilot)
1312
1305
  var DayPilot = {};
1313
- if (function () { "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) { this.v = "2024.4.631-lite"; var t = "navigator_" + (new Date).getTime(), i = this; this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () { 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)
1306
+ if (function () { "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) { this.v = "2025.1.638-lite"; var t = "navigator_" + (new Date).getTime(), i = this; this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () { 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)
1314
1307
  for (var t in e)
1315
- this[t] = e[t]; }, 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 () { var e = this.C(); if (!e)
1308
+ this[t] = e[t]; }, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.Eb(); this.resetTarget && !e ? this.Fb(this.date) : this.resetTarget || (i.date = e); var t = this.C(); return t && t.addEventListener("input", function () { i.date = i.Eb(), i.date && i.navigator.select(i.date, { dontNotify: !0 }); }), document.addEventListener("mousedown", function () { i.close(); }), this; }, this.close = function () { this.tb && (this.tb = !1, this.navigator && this.navigator.dispose(), this.div.innerHTML = "", this.div && this.div.parentNode === document.body && document.body.removeChild(this.div)); }, this.setDate = function (e) { this.date = new DayPilot.Date(e), this.Fb(this.date); }, this.Eb = function () { var e = this.C(); if (!e)
1316
1309
  return this.date; var t = null; if (t = "INPUT" === e.tagName ? e.value : e.innerText, !t)
1317
1310
  return null; for (var a = DayPilot.Date.parse(t, i.pattern), n = 0; n < i.patterns.length; n++) {
1318
1311
  if (a)
1319
1312
  return a;
1320
1313
  a = DayPilot.Date.parse(t, i.patterns[n]);
1321
- } return a; }, this.Eb = function (e) { var t = this.C(); if (t) {
1314
+ } return a; }, this.Fb = function (e) { var t = this.C(); if (t) {
1322
1315
  var a = e.toString(i.pattern, i.locale);
1323
1316
  "INPUT" === t.tagName ? t.value = a : t.innerHTML = a;
1324
- } }, 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 () { if (!this.sb) {
1317
+ } }, 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 () { if (!this.tb) {
1325
1318
  var e = this.C(), a = this.navigator, a = new DayPilot.Navigator(t);
1326
- 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;
1319
+ a.api = 2, a.cssOnly = !0, a.theme = i.theme, a.weekStarts = "Auto", a.locale = i.locale, a.onTimeRangeSelected = function (e) { i.date = e.start; var t = e.start.addTime(a.Gb), n = t.toString(i.pattern, i.locale), e = {}; e.start = t, e.date = t, e.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(e), e.preventDefault.value) || (i.Fb(n), i.close(), "function" == typeof i.onTimeRangeSelected && i.onTimeRangeSelected(e)); }, this.navigator = a;
1327
1320
  var n = DayPilot.abs(e), o = e.offsetHeight, r = i.targetAlignment, s = document.createElement("div");
1328
1321
  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);
1329
1322
  var l = document.createElement("div");
1330
1323
  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;
1331
- var d = i.Db() || (new DayPilot.Date).getDatePart();
1332
- if (a.startDate = d, a.Fb = d.getTimePart(), a.selectionDay = d.getDatePart(), a.init(), "right" === r) {
1324
+ var d = i.Eb() || (new DayPilot.Date).getDatePart();
1325
+ if (a.startDate = d, a.Gb = d.getTimePart(), a.selectionDay = d.getDatePart(), a.init(), "right" === r) {
1333
1326
  var c = n.x + e.offsetWidth - a.nav.top.offsetWidth;
1334
1327
  s.style.left = c + "px";
1335
1328
  }
1336
- this.sb = !0, this.onShow && this.onShow();
1329
+ this.tb = !0, this.onShow && this.onShow();
1337
1330
  } }, this.prepare(), this.init(); }); }(), "undefined" == typeof DayPilot)
1338
1331
  var DayPilot = {};
1339
1332
  if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (DayPilot) {
1340
1333
  "use strict";
1341
1334
  if ("undefined" == typeof DayPilot.Menu || !DayPilot.Menu.def) {
1342
1335
  var e = function () { }, t = {};
1343
- t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) { var a = this, n = null; this.v = "2024.4.631-lite", this.zIndex = 120, this.cssClassPrefix = "menu_default", this.cssOnly = !0, this.menuTitle = null, this.showMenuTitle = !1, this.hideOnMouseOut = !1, this.hideAfter = 200, this.theme = null, this.onShow = null, this.Gb = function () { }, i && DayPilot.isArray(i) && (this.items = i), this.toJSON = function () { return null; }, this.show = function (i, o) { o = o || {}; var r = null; 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) {
1336
+ t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) { var a = this, n = null; this.v = "2025.1.638-lite", this.zIndex = 120, this.cssClassPrefix = "menu_default", this.cssOnly = !0, this.menuTitle = null, this.showMenuTitle = !1, this.hideOnMouseOut = !1, this.hideAfter = 200, this.theme = null, this.onShow = null, this.Hb = function () { }, i && DayPilot.isArray(i) && (this.items = i), this.toJSON = function () { return null; }, this.show = function (i, o) { o = o || {}; var r = null; if (i ? "string" == typeof i.id || "number" == typeof i.id ? r = i.id : "function" == typeof i.id ? r = i.id() : "function" == typeof i.value && (r = i.value()) : r = null, "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), o.submenu || t.menuClean(), this.Hb.submenu = null, null !== t.mouse) {
1344
1337
  a.cssOnly || (a.cssOnly = !0);
1345
1338
  var s = null;
1346
1339
  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) {
@@ -1349,15 +1342,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1349
1342
  return;
1350
1343
  }
1351
1344
  var d = document.createElement("div");
1352
- 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)
1345
+ if (d.style.position = "absolute", d.style.top = "0px", d.style.left = "0px", d.style.display = "none", d.style.overflow = "hidden", d.style.zIndex = this.zIndex + 1, d.className = this.Ib("main"), d.onclick = function (e) { e.cancelBubble = !0, this.parentNode.removeChild(this); }, this.hideOnMouseOut && (d.onmousemove = function (e) { clearTimeout(t.hideTimeout); }, d.onmouseleave = function (e) { a.delayedHide({ "hideParent": !0 }); }), !this.items || 0 === this.items.length)
1353
1346
  throw "No menu items defined.";
1354
1347
  if (this.showMenuTitle) {
1355
1348
  var c = document.createElement("div");
1356
- c.innerHTML = this.menuTitle, c.className = this.Hb("title"), d.appendChild(c);
1349
+ c.innerHTML = this.menuTitle, c.className = this.Ib("title"), d.appendChild(c);
1357
1350
  }
1358
1351
  for (var u = 0; u < this.items.length; u++) {
1359
1352
  var h = this.items[u], f = document.createElement("div");
1360
- 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) {
1353
+ if (DayPilot.Util.addClass(f, this.Ib("item")), h.items && (DayPilot.Util.addClass(f, this.Ib("item_haschildren")), DayPilot.Util.addClass(d, this.Ib("withchildren"))), "undefined" != typeof h && !h.hidden) {
1361
1354
  if ("-" === h.text) {
1362
1355
  var m = document.createElement("div");
1363
1356
  m.addEventListener("click", function (e) { e.stopPropagation(); }), f.appendChild(m);
@@ -1365,23 +1358,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1365
1358
  else {
1366
1359
  var p = document.createElement("a");
1367
1360
  if (p.style.position = "relative", p.style.display = "block", h.cssClass && DayPilot.Util.addClass(p, h.cssClass), h.disabled)
1368
- DayPilot.Util.addClass(p, a.Hb("item_disabled"));
1361
+ DayPilot.Util.addClass(p, a.Ib("item_disabled"));
1369
1362
  else {
1370
1363
  if (h.onclick || h.onClick) {
1371
1364
  p.item = h, p.onclick = function (e, t) { return function (i) { if ("function" == typeof e.onClick) {
1372
1365
  var a = {};
1373
1366
  if (a.item = e, a.source = t.source, a.originalEvent = i, a.preventDefault = function () { a.preventDefault.value = !0; }, e.onClick(a), a.preventDefault.value)
1374
- return;
1367
+ return void i.stopPropagation();
1375
1368
  } e.onclick && e.onclick.call(t, i); }; }(h, p);
1376
- var v = function (e, i) { return function (a) { a.stopPropagation(), a.preventDefault(); var n = function () { window.setTimeout(function () { i.source.calendar.internal.touch.active = !1; }, 500); }; if ("function" == typeof e.onClick) {
1369
+ var v = function (e, i) { return function (a) { a.stopPropagation(), a.preventDefault(); var n = function () { window.setTimeout(function () { i.source.calendar && (i.source.calendar.internal.touch.active = !1); }, 500); }; if ("function" == typeof e.onClick) {
1377
1370
  var o = {};
1378
1371
  if (o.item = e, o.source = i.source, o.originalEvent = a, o.preventDefault = function () { o.preventDefault.value = !0; }, e.onClick(o), o.preventDefault.value)
1379
1372
  return void n();
1380
1373
  } e.onclick && e.onclick.call(i, a), t.menuClean(), n(); }; };
1381
- DayPilot.reNonPassive(p, "touchstart", function (e) { e.stopPropagation(), e.preventDefault(), p.source.calendar.internal.touch.active = !0; }), DayPilot.reNonPassive(p, "touchend", v(h, p));
1374
+ DayPilot.reNonPassive(p, "touchstart", function (e) { e.stopPropagation(), e.preventDefault(), p.source.calendar && (p.source.calendar.internal.touch.active = !0); }), DayPilot.reNonPassive(p, "touchend", v(h, p));
1382
1375
  }
1383
1376
  if (h.items && !h.disabled) {
1384
- var y = function (e, t) { return function (i) { i.preventDefault(), i.stopPropagation(), a.Ib(e, t); }; };
1377
+ var y = function (e, t) { return function (i) { i.preventDefault(), i.stopPropagation(), a.Jb(e, t); }; };
1385
1378
  p.ontouchend = y(h, p);
1386
1379
  }
1387
1380
  if (h.onclick)
@@ -1404,13 +1397,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1404
1397
  }
1405
1398
  h.items && p.addEventListener("click", function (e) { e.stopPropagation(); }), p.source = s, p.menuSource = i;
1406
1399
  var g = document.createElement("span");
1407
- if (g.className = a.Hb("item_text"), g.innerHTML = DayPilot.Util.escapeTextHtml(h.text, h.html), p.appendChild(g), h.image) {
1400
+ if (g.className = a.Ib("item_text"), g.innerHTML = DayPilot.Util.escapeTextHtml(h.text, h.html), p.appendChild(g), h.image) {
1408
1401
  var b = document.createElement("img");
1409
1402
  b.src = h.image, b.style.position = "absolute", b.style.top = "0px", b.style.left = "0px", p.appendChild(b);
1410
1403
  }
1411
1404
  if (h.icon) {
1412
1405
  var D = document.createElement("span");
1413
- D.className = a.Hb("item_icon");
1406
+ D.className = a.Ib("item_icon");
1414
1407
  var w = document.createElement("i");
1415
1408
  w.className = h.icon, D.appendChild(w), p.appendChild(D);
1416
1409
  }
@@ -1420,66 +1413,67 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1420
1413
  var P = document.createElementNS(x, "use");
1421
1414
  P.setAttribute("href", h.symbol), C.appendChild(P);
1422
1415
  var k = document.createElement("span");
1423
- k.className = a.Hb("item_symbol"), k.style.position = "absolute", k.style.top = "0px", k.style.left = "0px", k.appendChild(C), p.appendChild(k);
1416
+ k.className = a.Ib("item_symbol"), k.style.position = "absolute", k.style.top = "0px", k.style.left = "0px", k.appendChild(C), p.appendChild(k);
1424
1417
  }
1425
1418
  var _ = function (e, i) { return function () { var n = (i.source, e), o = t.waitingSubmenu; if (o) {
1426
1419
  if (o.parent === n)
1427
1420
  return;
1428
1421
  clearTimeout(o.timeout), t.waitingSubmenu = null;
1429
- } e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = n, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, a.Ib(n, i); }, 300)); }; };
1422
+ } e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = n, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, a.Jb(n, i); }, 300)); }; };
1430
1423
  p.onmouseover = _(h, p), f.appendChild(p);
1431
1424
  }
1432
1425
  d.appendChild(f);
1433
1426
  }
1434
1427
  }
1435
1428
  var S = function (e) { window.setTimeout(function () { t.menuClean(), DayPilot.MenuBar.deactivate(); }, 100); };
1436
- 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 = "";
1437
- var M = d.offsetHeight, H = d.offsetWidth;
1429
+ d.onclick = S, d.ontouchend = S, d.onmousedown = function (e) { e = e || window.event, e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(); }, d.oncontextmenu = function () { return !1; }, document.body.appendChild(d), a.Hb.visible = !0, a.Hb.source = i, d.style.display = "";
1430
+ var M = d.offsetHeight, A = d.offsetWidth;
1438
1431
  d.style.display = "none";
1439
- var A = document.documentElement.clientHeight, T = window.innerWidth, E = "number" == typeof o.windowMargin ? o.windowMargin : 5;
1432
+ var T = document.documentElement.clientHeight, H = window.innerWidth, E = "number" == typeof o.windowMargin ? o.windowMargin : 5;
1440
1433
  if (function () { var e = o.initiator; if (e) {
1441
1434
  var t = e.div, i = e.e, a = e.area, r = a.visibility || a.v || "Visible", s = e.a;
1442
1435
  if ("Visible" !== r && (s = DayPilot.Areas.createArea(t, i, a), t.appendChild(s), n = s), s) {
1443
1436
  var l = DayPilot.abs(s);
1444
1437
  o.x = l.x, o.y = l.y + l.h + 2;
1445
1438
  }
1446
- } }(), function () { 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; if (i - a > A - M && 0 !== A) {
1447
- var r = i - a - (A - M) + E;
1448
- d.style.top = i - r + "px";
1439
+ } }(), function () { var e = "number" == typeof o.x ? o.x : t.mouse.x + 1, i = "number" == typeof o.y ? o.y : t.mouse.y + 1, n = document.body.scrollTop || document.documentElement.scrollTop, r = document.body.scrollLeft || document.documentElement.scrollLeft, s = 0, l = 0; if (i - n > T - M && 0 !== T) {
1440
+ s = i - (i - n - (T - M) + E);
1449
1441
  }
1450
1442
  else
1451
- d.style.top = i + "px"; if ("right" === o.align && (e -= H), e - n > T - H && 0 !== T) {
1452
- var s = e - n - (T - H) + E;
1453
- d.style.left = e - s + "px";
1443
+ s = i; if (a.Hb.y = s, d.style.top = s + "px", "right" === o.align && (e -= A), e - r > H - A && 0 !== H) {
1444
+ l = e - (e - r - (H - A) + E);
1454
1445
  }
1455
1446
  else
1456
- d.style.left = e + "px"; }(), o.parentLink) {
1457
- 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;
1458
- B + H > T && (B = Math.max(0, R.x - H));
1459
- var O = document.body.scrollTop + document.documentElement.scrollTop;
1460
- z + M - O > A && (z = Math.max(0, A - M + O)), d.style.left = B + "px", d.style.top = z + "px";
1461
- }
1462
- d.style.display = "", this.addShadow(d), this.Gb.div = d, o.submenu || (DayPilot.Menu.active = this);
1463
- } }, this.Ib = function (e, t) { var i = e, n = t.source; 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)) {
1447
+ l = e; a.Hb.x = l, d.style.left = l + "px"; }(), o.parentLink) {
1448
+ var I = o.parentLink, N = parseInt(new DayPilot.StyleReader(d).get("border-top-width")), R = DayPilot.abs(o.parentLink.parentNode), O = R.x + I.offsetWidth, z = R.y - N;
1449
+ O + A > H && (O = Math.max(0, R.x - A));
1450
+ var B = document.body.scrollTop + document.documentElement.scrollTop;
1451
+ z + M - B > T && (z = Math.max(0, T - M + B)), d.style.left = O + "px", d.style.top = z + "px";
1452
+ }
1453
+ d.style.display = "", this.addShadow(d), this.Hb.div = d, o.submenu || (DayPilot.Menu.active = this);
1454
+ } }, this.update = function () { if (a.Hb.visible) {
1455
+ var e = a.Hb.source;
1456
+ a.hide(), a.show(e, { "x": a.Hb.x, "y": a.Hb.y });
1457
+ } }, this.Jb = function (e, t) { var i = e, n = t.source; if ((!a.Hb.submenu || a.Hb.submenu.item !== e) && (a.Hb.submenu && a.Hb.submenu.item !== e && (DayPilot.Util.removeClass(a.Hb.submenu.link.parentNode, a.Ib("item_haschildren_active")), a.Hb.submenu.menu.hide(), a.Hb.submenu = null), e.items)) {
1464
1458
  var o = a.cloneOptions();
1465
- 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"));
1466
- } }, 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) { e = e || {}, this.Gb.submenu && this.Gb.submenu.menu.hide(); var i = t.waitingSubmenu; 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) {
1459
+ o.items = e.items, a.Hb.submenu = {}, a.Hb.submenu.menu = new DayPilot.Menu(o), a.Hb.submenu.menu.Kb = a, a.Hb.submenu.menu.show(n, { "submenu": !0, "parentLink": t, "parentItem": i }), a.Hb.submenu.item = e, a.Hb.submenu.link = t, DayPilot.Util.addClass(t.parentNode, a.Ib("item_haschildren_active"));
1460
+ } }, this.Ib = function (e) { var t = this.theme || this.cssClassPrefix, i = this.cssOnly ? "_" : ""; return t ? t + i + e : ""; }, this.cloneOptions = function () { return DayPilot.Util.copyProps(o, {}, ["cssClassPrefix", "theme", "hideAfter", "hideOnMouseOut", "zIndex"]); }, this.hide = function (e) { e = e || {}, this.Hb.submenu && this.Hb.submenu.menu.hide(); var i = t.waitingSubmenu; if (i && (t.waitingSubmenu = null, clearTimeout(i.timeout)), this.removeShadow(), this.Hb.div && this.Hb.div.parentNode === document.body && document.body.removeChild(this.Hb.div), n && (DayPilot.de(n), n = null), a.Hb.visible = !1, a.Hb.source = null, a.Kb && e.hideParent && a.Kb.hide(e), DayPilot.Menu.active === a && (DayPilot.Menu.active = null), "function" == typeof this.onHide) {
1467
1461
  var o = {};
1468
1462
  this.onHide(o);
1469
1463
  } }, this.delayedHide = function (e) { t.hideTimeout = setTimeout(function () { a.hide(e); }, a.hideAfter); }, this.cancelHideTimeout = function () { clearTimeout(t.hideTimeout); }, this.init = function (e) { return t.mouseMove(e), this; }, this.addShadow = function (e) { }, this.removeShadow = function () { }; var o = DayPilot.isArray(i) ? null : i; if (o)
1470
1464
  for (var r in o)
1471
- this[r] = o[r]; }, DayPilot.MenuBar = function (e, t) { var i = this; 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; for (var a in t)
1472
- this[a] = t[a]; this.Kb = function (e) { return this.theme + "_" + e; }, this.t = function () { this.nav.top = document.getElementById(e); var t = this.nav.top; t.className = this.Kb("main"), DayPilot.list(i.items).forEach(function (e) { var a = document.createElement("span"); 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) { if (i.active && i.active.item === e)
1473
- i.Lb();
1465
+ this[r] = o[r]; }, DayPilot.MenuBar = function (e, t) { var i = this; t = t || {}, this.items = [], this.theme = "menubar_default", this.windowMargin = 0, this.nav = {}, this.elements = {}, this.elements.items = DayPilot.list(), this.k = null, this.Ca = !1; for (var a in t)
1466
+ this[a] = t[a]; this.Lb = function (e) { return this.theme + "_" + e; }, this.t = function () { this.nav.top = document.getElementById(e); var t = this.nav.top; t.className = this.Lb("main"), DayPilot.list(i.items).forEach(function (e) { var a = document.createElement("span"); a.innerHTML = DayPilot.Util.escapeTextHtml(e.text, e.html), a.className = i.Lb("item"), e.cssClass && a.classList.add(e.cssClass), a.data = e, a.onclick = function (t) { if (i.active && i.active.item === e)
1467
+ i.Mb();
1474
1468
  else if (e.children)
1475
- return void i.Mb(a); if ("function" == typeof e.onClick) {
1469
+ return void i.Nb(a); if ("function" == typeof e.onClick) {
1476
1470
  var n = {};
1477
1471
  n.item = e, n.originalEvent = t, e.onClick(n);
1478
- } }, 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); }); }, 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) { if (!i.Nb(e)) {
1479
- i.Lb();
1472
+ } }, a.onmousedown = function (e) { e.stopPropagation(); }, a.onmouseover = function () { i.active && i.active.item !== e && i.Nb(a); }, t.appendChild(a), i.elements.items.push(a); }); }, this.Mb = function () { var e = i.Lb("item_active"); i.elements.items.forEach(function (t) { DayPilot.Util.removeClass(t, e); }), i.active && i.active.menu && i.active.menu.hide(), i.active = null; }, this.Ob = function (e) { return !!i.active && i.active.item === e.data; }, this.Nb = function (e) { if (!i.Ob(e)) {
1473
+ i.Mb();
1480
1474
  var t = e.data, a = i.active = {};
1481
1475
  a.item = t, a.div = e;
1482
- var n = i.Kb("item_active");
1476
+ var n = i.Lb("item_active");
1483
1477
  DayPilot.Util.addClass(e, n);
1484
1478
  var o = DayPilot.abs(e);
1485
1479
  if (t.children) {
@@ -1488,11 +1482,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1488
1482
  "right" === t.align && (r += o.w), a.menu.show(null, { "x": r, "y": o.y + o.h, "align": t.align, "windowMargin": i.windowMargin });
1489
1483
  }
1490
1484
  DayPilot.MenuBar.active = i;
1491
- } }, this.init = function () { return this.t(), this.Ba = !0, this; }, this.dispose = function () { this.Ba && (this.nav.top.innerHTML = "", this.elements.items = []); }; }, 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) { if (!e || !e.touches)
1485
+ } }, this.init = function () { return this.t(), this.Ca = !0, this; }, this.dispose = function () { this.Ca && (this.nav.top.innerHTML = "", this.elements.items = []); }; }, DayPilot.MenuBar.deactivate = function () { DayPilot.MenuBar.active && (DayPilot.MenuBar.active.Mb(), DayPilot.MenuBar.active = null); }, t.menuClean = function () { "undefined" != typeof DayPilot.Menu.active && DayPilot.Menu.active && (DayPilot.Menu.active.hide(), DayPilot.Menu.active = null); }, t.mouseDown = function (e) { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.wheel = function (e) { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.mouseMove = function (e) { "undefined" != typeof t && (t.mouse = t.mousePosition(e)); }, t.touchMove = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchStart = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchEnd = function (e) { }, t.touchPosition = function (e) { if (!e || !e.touches)
1492
1486
  return null; var t = e.touches[0], i = {}; return i.x = t.pageX, i.y = t.pageY, i; }, t.mousePosition = function (e) { return DayPilot.mo3(null, e); }, DayPilot.Menu.touchPosition = function (e) { e.touches && (t.mouse = t.touchPosition(e)); }, DayPilot.Menu.hide = function (e) { if (e = e || {}, e.calendar) {
1493
1487
  var i = DayPilot.Menu.active;
1494
1488
  if (i) {
1495
- var a = i.Gb.source;
1489
+ var a = i.Hb.source;
1496
1490
  a && a.calendar === e.calendar && t.menuClean();
1497
1491
  }
1498
1492
  }
@@ -1521,47 +1515,41 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1521
1515
  return !0; return !1; }, DayPilot.ModalStatic.stretch = function () { if (this.list.length > 0) {
1522
1516
  var e = this.list[this.list.length - 1];
1523
1517
  e && e.stretch();
1524
- } }, DayPilot.ModalStatic.last = function () { var e = DayPilot.ModalStatic.list; return e.length > 0 ? e[e.length - 1] : null; };
1525
- var i = function () {
1526
- if ("undefined" == typeof window) {
1527
- var e = {};
1528
- return e.add = function () { }, e.commit = function () { }, e;
1529
- }
1530
- var t = document.createElement("style");
1531
- t.setAttribute("type", "text/css"), t.styleSheet || t.appendChild(document.createTextNode("")), (document.head || document.getElementsByTagName("head")[0]).appendChild(t);
1532
- var i = !!t.styleSheet, e = {};
1533
- return e.rules = [], e.commit = function () { try {
1534
- i && (t.styleSheet.cssText = this.rules.join("\n"));
1535
- }
1536
- catch (e) { } }, e.add = function (e, a, n) {
1537
- if (i)
1538
- return void this.rules.push(e + "{" + a + "}");
1539
- if (t.sheet.insertRule)
1540
- "undefined" == typeof n && (n = t.sheet.cssRules.length), t.sheet.insertRule(e + "{" + a + "}", n);
1541
- else {
1542
- if (!t.sheet.addRule)
1543
- throw "No CSS registration method found";
1544
- t.sheet.addRule(e, a, n);
1545
- }
1546
- }, e;
1547
- }, a = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxwYXRoCiAgICAgICBpZD0icGF0aDMxNzMiCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojOTk5OTk5O3N0cm9rZS13aWR0aDoxLjg1MTk2ODUzO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZSIKICAgICAgIGQ9Ik0gMC45NTQxNDgzOCwwLjY4MTYwMzEgNS4wMzkwNjI1LDUuNDExNTM4NiA5LjEyMzk3NjYsMC42ODE2MDMxIgogICAgICAgIC8+CiAgPC9nPgo8L3N2Zz4K", n = new i;
1548
- 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) { 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; var t = this; this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.Ob = !1, this.Pb = null, this.Qb = null, this.showHtml = function (e) { if (DayPilot.ModalStatic.displayed(this))
1549
- throw "This modal dialog is already displayed."; if (this.div || this.Rb(), this.hb(), this.useIframe) {
1518
+ } }, DayPilot.ModalStatic.last = function () {
1519
+ var e = DayPilot.ModalStatic.list;
1520
+ return e.length > 0 ? e[e.length - 1] : null;
1521
+ };
1522
+ var i = function () { if ("undefined" == typeof window) {
1523
+ var e = {};
1524
+ return e.add = function () { }, e.commit = function () { }, e;
1525
+ } var t = document.createElement("style"); t.setAttribute("type", "text/css"), t.styleSheet || t.appendChild(document.createTextNode("")), (document.head || document.getElementsByTagName("head")[0]).appendChild(t); var i = !!t.styleSheet, e = {}; return e.rules = [], e.commit = function () { try {
1526
+ i && (t.styleSheet.cssText = this.rules.join("\n"));
1527
+ }
1528
+ catch (e) { } }, e.add = function (e, a, n) { if (i)
1529
+ return void this.rules.push(e + "{" + a + "}"); if (t.sheet.insertRule)
1530
+ "undefined" == typeof n && (n = t.sheet.cssRules.length), t.sheet.insertRule(e + "{" + a + "}", n);
1531
+ else {
1532
+ if (!t.sheet.addRule)
1533
+ throw "No CSS registration method found";
1534
+ t.sheet.addRule(e, a, n);
1535
+ } }, e; }, a = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxwYXRoCiAgICAgICBpZD0icGF0aDMxNzMiCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojOTk5OTk5O3N0cm9rZS13aWR0aDoxLjg1MTk2ODUzO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZSIKICAgICAgIGQ9Ik0gMC45NTQxNDgzOCwwLjY4MTYwMzEgNS4wMzkwNjI1LDUuNDExNTM4NiA5LjEyMzk3NjYsMC42ODE2MDMxIgogICAgICAgIC8+CiAgPC9nPgo8L3N2Zz4K", n = new i;
1536
+ 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) { 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; var t = this; this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.Pb = !1, this.Qb = null, this.Rb = null, this.showHtml = function (e) { if (DayPilot.ModalStatic.displayed(this))
1537
+ throw "This modal dialog is already displayed."; if (this.div || this.Sb(), this.ib(), this.useIframe) {
1550
1538
  var t = function (e, t) { return function () { e.setInnerHTML(e.id + "iframe", t); }; };
1551
1539
  window.setTimeout(t(this, e), 0);
1552
1540
  }
1553
1541
  else
1554
- e.nodeType ? this.div.appendChild(e) : this.div.innerHTML = e; this.hb(), this.Sb(), this.Tb(); }, this.showUrl = function (e) { if (DayPilot.ModalStatic.displayed(this))
1542
+ e.nodeType ? this.div.appendChild(e) : this.div.innerHTML = e; this.ib(), this.Tb(), this.Ub(); }, this.showUrl = function (e) { if (DayPilot.ModalStatic.displayed(this))
1555
1543
  throw "This modal dialog is already displayed."; if (this.useIframe) {
1556
- this.div || this.Rb();
1544
+ this.div || this.Sb();
1557
1545
  var i = this.loadingHtml;
1558
- 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();
1546
+ i && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", i)), this.re(this.iframe, "load", this.Vb), this.iframe.src = e, this.ib(), this.Tb(), this.Ub();
1559
1547
  }
1560
1548
  else
1561
- 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"); } }); }, this.Tb = function () { if ("function" == typeof t.onShow) {
1549
+ t.Wb({ "url": e, "success": function (e) { var i = e.request.responseText; t.showHtml(i); }, "error": function (e) { t.showHtml("Error loading the modal dialog"); } }); }, this.Ub = function () { if ("function" == typeof t.onShow) {
1562
1550
  var e = {};
1563
- e.root = t.Wb(), e.modal = t, t.onShow(e);
1564
- } }, this.Wb = function () { return t.iframe ? t.iframe.contentWindow.document : t.div; }, this.Vb = function (e) { var t = new XMLHttpRequest; if (t) {
1551
+ e.root = t.Xb(), e.modal = t, t.onShow(e);
1552
+ } }, this.Xb = function () { return t.iframe ? t.iframe.contentWindow.document : t.div; }, this.Wb = function (e) { var t = new XMLHttpRequest; if (t) {
1565
1553
  var i = e.method || "GET", a = e.success || function () { }, n = e.error || function () { }, o = e.data, r = e.url;
1566
1554
  t.open(i, r, !0), t.setRequestHeader("Content-type", "text/plain"), t.onreadystatechange = function () { if (4 === t.readyState)
1567
1555
  if (200 === t.status || 304 === t.status) {
@@ -1574,45 +1562,45 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1574
1562
  }
1575
1563
  else
1576
1564
  window.console && console.log("HTTP error " + t.status); }, 4 !== t.readyState && ("object" == typeof o && (o = JSON.stringify(o)), t.send(o));
1577
- } }, 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 () { var e = function () { return t.Xb().y; }, i = function () { return t.Xb().x; }; if (this.useIframe) {
1578
- for (var a = i() - 40, n = this.width; n < a && this.Zb(); n += 10)
1565
+ } }, this.ib = function () { delete this.result; var e = window, i = document, a = e.pageYOffset ? e.pageYOffset : i.documentElement && i.documentElement.scrollTop ? i.documentElement.scrollTop : i.body.scrollTop; this.theme && (this.hideDiv.className = this.theme + "_background"), this.zIndex && (this.hideDiv.style.zIndex = this.zIndex), this.hideDiv.style.display = "", window.setTimeout(function () { t.hideDiv && (t.hideDiv.onclick = function () { t.hide({ "backgroundClick": !0 }); }); }, 500), this.theme ? this.div.className = this.theme + "_main" : this.div.className = "", this.className && (this.div.className += " " + this.className), this.left ? this.div.style.left = this.left + "px" : this.div.style.marginLeft = "-" + Math.floor(this.width / 2) + "px", this.div.style.position = "absolute", this.div.style.boxSizing = "content-box", this.div.style.top = a + this.top + "px", this.div.style.width = this.width + "px", this.zIndex && (this.div.style.zIndex = this.zIndex), this.height && (this.useIframe || !this.autoStretch ? this.div.style.height = this.height + "px" : this.div.style.height = ""), this.useIframe && this.height && (this.iframe.style.height = this.height + "px"), this.div.style.display = "", this.Zb(), DayPilot.ModalStatic.remove(this), DayPilot.ModalStatic.list.push(this); }, this.Vb = function () { t.iframe.contentWindow.modal = t, t.autoStretch && t.stretch(); }, this.stretch = function () { var e = function () { return t.Yb().y; }, i = function () { return t.Yb().x; }; if (this.useIframe) {
1566
+ for (var a = i() - 40, n = this.width; n < a && this.$b(); n += 10)
1579
1567
  this.div.style.width = n + "px", this.div.style.marginLeft = "-" + Math.floor(n / 2) + "px";
1580
- for (var o = this.maxHeight || e() - 2 * this.top, r = this.height; r < o && this.$b(); r += 10)
1568
+ for (var o = this.maxHeight || e() - 2 * this.top, r = this.height; r < o && this._b(); r += 10)
1581
1569
  this.iframe.style.height = r + "px", this.div.style.height = r + "px";
1582
- this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.Ub);
1570
+ this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.Vb);
1583
1571
  }
1584
1572
  else
1585
- this.div.style.height = ""; }, this.Zb = function () { 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++) {
1573
+ this.div.style.height = ""; }, this.$b = function () { 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++) {
1586
1574
  var o = a[n].offsetLeft + a[n].offsetWidth;
1587
1575
  i = Math.max(i, o);
1588
- } return i > t.clientWidth; }, this.$b = function () { 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++) {
1576
+ } return i > t.clientWidth; }, this._b = function () { 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++) {
1589
1577
  var o = a[n].offsetTop + a[n].offsetHeight;
1590
1578
  i = Math.max(i, o);
1591
- } return i > t.clientHeight; }, this.Xb = function () { var e = document; if ("CSS1Compat" === e.compatMode && e.documentElement && e.documentElement.clientWidth) {
1579
+ } return i > t.clientHeight; }, this.Yb = function () { var e = document; if ("CSS1Compat" === e.compatMode && e.documentElement && e.documentElement.clientWidth) {
1592
1580
  var t = e.documentElement.clientWidth, i = e.documentElement.clientHeight;
1593
1581
  return { x: t, y: i };
1594
- } var t = e.body.clientWidth, i = e.body.clientHeight; return { x: t, y: i }; }, 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) { if (t.Qb) {
1595
- var e = e || window.event, i = t.mc(e), a = i.x - t.Qb.x, n = i.y - t.Qb.y;
1596
- t.div.style.marginLeft = "0px", t.div.style.top = t.Pb.y + n + "px", t.div.style.left = t.Pb.x + a + "px";
1597
- } }, this.dc = function (e) { t.Qb && (t.hc(), t.div.style.cursor = null, t.Qb = null); }, this.gc = function () { if (this.useIframe) {
1582
+ } var t = e.body.clientWidth, i = e.body.clientHeight; return { x: t, y: i }; }, this.Tb = function () { this.Pb || (this.re(window, "resize", this.bc), this.re(window, "scroll", this.cc), this.dragDrop && (this.re(document, "mousemove", this.dc), this.re(document, "mouseup", this.ec)), this.Pb = !0); }, this.fc = function () { this.ue(window, "resize", this.bc), this.ue(window, "scroll", this.cc), this.dragDrop && (this.ue(document, "mousemove", this.dc), this.ue(document, "mouseup", this.ec)), this.Pb = !1; }, this.gc = function (e) { e.target === t.div && (e.preventDefault(), t.div.style.cursor = "move", t.hc(), t.Rb = t.mc(e || window.event), t.Qb = { x: t.div.offsetLeft, y: t.div.offsetTop }); }, this.dc = function (e) { if (t.Rb) {
1583
+ var e = e || window.event, i = t.mc(e), a = i.x - t.Rb.x, n = i.y - t.Rb.y;
1584
+ t.div.style.marginLeft = "0px", t.div.style.top = t.Qb.y + n + "px", t.div.style.left = t.Qb.x + a + "px";
1585
+ } }, this.ec = function (e) { t.Rb && (t.ic(), t.div.style.cursor = null, t.Rb = null); }, this.hc = function () { if (this.useIframe) {
1598
1586
  var e = document.createElement("div");
1599
1587
  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;
1600
- } }, 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 () { if (!t.left && t.div) {
1588
+ } }, this.ic = function () { this.useIframe && (this.div.removeChild(this.mask), this.mask = null); }, this.bc = function () { t.jc(), t.Zb(); }, this.cc = function () { t.jc(); }, this.Zb = function () { if (!t.left && t.div) {
1601
1589
  var e = t.div.offsetWidth;
1602
1590
  t.div.style.marginLeft = "-" + Math.floor(e / 2) + "px";
1603
- } }, this.ic = function () { if (t.hideDiv && t.div && "none" !== t.hideDiv.style.display && "none" !== t.div.style.display) {
1604
- var e = t.jc.scrollY();
1591
+ } }, this.jc = function () { if (t.hideDiv && t.div && "none" !== t.hideDiv.style.display && "none" !== t.div.style.display) {
1592
+ var e = t.kc.scrollY();
1605
1593
  t.scrollWithPage || (t.div.style.top = e + t.top + "px");
1606
- } }, 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) { for (var t = { x: e.offsetLeft, y: e.offsetTop }; e.offsetParent;)
1607
- e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop; return t; }, 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 () { for (var e = t.Wb(), i = e.querySelectorAll("input, textarea, select"), a = {}, n = 0; n < i.length; n++) {
1594
+ } }, this.kc = {}, this.kc.container = function () { return t.container || document.body; }, this.kc.scrollY = function () { var e = t.kc.container(); return e === document.body ? window.pageYOffset ? window.pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop : e.scrollTop; }, this.re = function (e, t, i) { e.addEventListener ? e.addEventListener(t, i, !1) : e.attachEvent && e.attachEvent("on" + t, i); }, this.ue = function (e, t, i) { e.removeEventListener ? e.removeEventListener(t, i, !1) : e.detachEvent && e.detachEvent("on" + t, i); }, this.mc = function (e) { return e.pageX || e.pageY ? { x: e.pageX, y: e.pageY } : { x: e.clientX + document.documentElement.scrollLeft, y: e.clientY + document.documentElement.scrollTop }; }, this.abs = function (e) { for (var t = { x: e.offsetLeft, y: e.offsetTop }; e.offsetParent;)
1595
+ e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop; return t; }, this.Sb = function () { var e = t.kc.container(), i = e === document.body, a = i ? "fixed" : "absolute", n = document.createElement("div"); n.id = this.id + "hide", n.style.position = a, n.style.left = "0px", n.style.top = "0px", n.style.right = "0px", n.style.bottom = "0px", n.oncontextmenu = function () { return !1; }, n.onmousedown = function () { return !1; }, e.appendChild(n); var o = document.createElement("div"); o.id = this.id + "popup", o.style.position = a, o.style.left = "50%", o.style.top = "0px", o.style.backgroundColor = "white", o.style.width = "50px", o.style.height = "50px", this.dragDrop && (o.onmousedown = this.gc), o.addEventListener("keydown", function (e) { e.stopPropagation(); }); var r = null; this.useIframe && (r = document.createElement("iframe"), r.id = this.id + "iframe", r.name = this.id + "iframe", r.frameBorder = "0", r.style.width = "100%", r.style.height = "50px", o.appendChild(r)), e.appendChild(o), this.div = o, this.iframe = r, this.hideDiv = n; }, this.setInnerHTML = function (e, i) { var a = window.frames[e], n = a.contentWindow || a.document || a.contentDocument; n.document && (n = n.document), null == n.body && n.write("<body></body>"), i.nodeType ? n.body.appendChild(i) : n.body.innerHTML = i, t.autoStretch && (t.autoStretchFirstLoadOnly && t.lc || (t.stretch(), t.lc = !0)); }, this.close = function (e) { this.result = e, this.hide(); }, this.closeSerialized = function () { for (var e = t.Xb(), i = e.querySelectorAll("input, textarea, select"), a = {}, n = 0; n < i.length; n++) {
1608
1596
  var o = i[n], r = o.name;
1609
1597
  if (r) {
1610
1598
  var s = o.value;
1611
1599
  a[r] = s;
1612
1600
  }
1613
- } t.close(a); }, 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 () { if (e)
1601
+ } t.close(a); }, this.hide = function (e) { e = e || {}; var i = {}; i.backgroundClick = !!e.backgroundClick, i.result = this.result, i.canceled = "undefined" == typeof this.result, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof this.onClose && (this.onClose(i), i.preventDefault.value) || (this.div && (this.div.style.display = "none", this.hideDiv.style.display = "none", this.useIframe || (this.div.innerHTML = null)), window.focus(), DayPilot.ModalStatic.remove(this), "function" == typeof this.onClosed ? this.onClosed(i) : this.closed && this.closed(), delete this.result, this.disposeOnClose && (t.fc(), t.nc(t.div), t.nc(t.hideDiv), t.div = null, t.hideDiv = null, t.iframe = null)); }, this.nc = function (e) { e && e.parentNode && e.parentNode.removeChild(e); }, this.oc = function () { if (e)
1614
1602
  for (var t in e)
1615
- this[t] = e[t]; }, this.nc(); }, 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) { "object" == typeof t && (i = t, t = ""), i = i || {}, i.height = i.height || 40, i.useIframe = !1; var a = i.okText || "OK", n = i.cancelText || "Cancel", o = t || ""; return DayPilot.getPromise(function (t, r) { i.onClosed = function (e) { t(e); }; var s = new DayPilot.Modal(i), l = document.createElement("div"); l.className = s.theme + "_inner"; var d = document.createElement("div"); d.className = s.theme + "_content", d.innerHTML = e; var c = document.createElement("div"); c.className = s.theme + "_input"; var u = document.createElement("input"); u.value = o, u.style.width = "100%", u.onkeydown = function (e) { var t = !1; switch (e.keyCode) {
1603
+ this[t] = e[t]; }, this.oc(); }, 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) { "object" == typeof t && (i = t, t = ""), i = i || {}, i.height = i.height || 40, i.useIframe = !1; var a = i.okText || "OK", n = i.cancelText || "Cancel", o = t || ""; return DayPilot.getPromise(function (t, r) { i.onClosed = function (e) { t(e); }; var s = new DayPilot.Modal(i), l = document.createElement("div"); l.className = s.theme + "_inner"; var d = document.createElement("div"); d.className = s.theme + "_content", d.innerHTML = e; var c = document.createElement("div"); c.className = s.theme + "_input"; var u = document.createElement("input"); u.value = o, u.style.width = "100%", u.onkeydown = function (e) { var t = !1; switch (e.keyCode) {
1616
1604
  case 13:
1617
1605
  s.close(this.value);
1618
1606
  break;
@@ -1666,67 +1654,68 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1666
1654
  o.autoFocus && w ? w.focus() : o.div.focus();
1667
1655
  } }); }, DayPilot.Modal.close = function (e) { var t = DayPilot.Modal.opener(); t && t.close(e); }, DayPilot.Modal.stretch = function (e) { var t = DayPilot.Modal.opener(); if (!t)
1668
1656
  throw "Unable to find the opener DayPilot.Modal instance."; t.stretch(); }, 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)); });
1669
- var r = function (e) { 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 || {}; for (var t in e)
1657
+ var r = function (e) { this.form = [], this.data = {}, this.theme = "form_default", this.zIndex = 99999, this.locale = "en-us", this.plugins = {}, this.onKey = null, this.pc = [], this.qc = null, this.canceling = !1, this.rc = [], this.f = [], this.sc = null, e = e || {}; for (var t in e)
1670
1658
  this[t] = e[t]; };
1671
- 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) { var t = this.theme, i = this, a = document.createElement("div"); 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) {
1659
+ r.prototype.create = function () { return this.load(), this.render(), this.sc; }, r.prototype.render = function () { var e = this; this.sc = document.createElement("div"), this.pc.forEach(function (t) { e.createView(t); }), this.applyState(); }, r.prototype.createView = function (e) { var t = this.theme, i = this, a = document.createElement("div"); 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) {
1672
1660
  var n = document.createElement("div");
1673
1661
  n.className = t + "_form_item_label", n.innerText = e.text, a.appendChild(n);
1674
- } var o = this.createInteractive(e); o.onInput = function (e) { if (e = e || {}, i.sc(o, { "debounce": !e.immediate }), "function" == typeof i.onChange) {
1662
+ } var o = this.createInteractive(e); o.onInput = function (e) { if (e = e || {}, i.tc(o, { "debounce": !e.immediate }), "function" == typeof i.onChange) {
1675
1663
  var t = {};
1676
1664
  t.result = i.serialize(), i.onChange(t);
1677
- } }, 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); }, 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) { 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); } t = t || {}; 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; if (d) {
1678
- var c = {};
1679
- c.valid = !0, c.value = e.save()[o.field], c.message = "Error", c.values = this.serialize(), c.result = this.serialize(), d(c);
1680
- var u = this.theme + "_form_item_invalid", h = this.theme + "_form_item_invalid_message";
1681
- if (c.valid)
1682
- clearTimeout(this.qc[o.field]), e.tc && (e.tc.remove(), e.tc = null), e.rc.classList.remove(u);
1683
- else if (!n)
1684
- if (a) {
1685
- var f = 1e3;
1686
- clearTimeout(this.qc[o.field]), this.qc[o.field] = setTimeout(function () { i(); }, f);
1687
- }
1688
- else
1689
- i();
1690
- r = c.valid;
1691
- } return r; }, r.prototype.load = function () {
1692
- var e = this;
1693
- this.form.forEach(function (t) { e.processFormItem(t, 0); });
1694
- var i;
1695
- try {
1696
- var a = JSON.stringify(this.data);
1697
- i = t(JSON.parse(a));
1698
- }
1699
- catch (e) {
1700
- throw new Error("The 'data' object is not serializable (it may contain circular dependencies): " + e);
1665
+ } }, o.onBlur = function () { i.canceling || i.tc(o); }, o.apply(e), o.sc = a, o.row = e, o.element && a.appendChild(o.element), this.f.push(o), this.sc.appendChild(a); }, r.prototype.validate = function () { var e = this, t = !0; return this.f.forEach(function (i) { var a = e.tc(i); t = t && a; }), t; }, r.prototype.tc = function (e, t) {
1666
+ function i() { e.uc && (e.uc.remove(), e.uc = null), e.sc.classList.add(u); var t = document.createElement("div"); t.classList.add(h), t.innerText = c.message, e.uc = t, e.sc.appendChild(t); }
1667
+ t = t || {};
1668
+ 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;
1669
+ if (d) {
1670
+ var c = {};
1671
+ c.valid = !0, c.value = e.save()[o.field], c.message = "Error",
1672
+ c.values = this.serialize(), c.result = this.serialize(), d(c);
1673
+ var u = this.theme + "_form_item_invalid", h = this.theme + "_form_item_invalid_message";
1674
+ if (c.valid)
1675
+ clearTimeout(this.rc[o.field]), e.uc && (e.uc.remove(), e.uc = null), e.sc.classList.remove(u);
1676
+ else if (!n)
1677
+ if (a) {
1678
+ var f = 1e3;
1679
+ clearTimeout(this.rc[o.field]), this.rc[o.field] = setTimeout(function () { i(); }, f);
1680
+ }
1681
+ else
1682
+ i();
1683
+ r = c.valid;
1701
1684
  }
1702
- for (var n in i)
1703
- this.setValue(n, i[n]);
1704
- }, 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) { var i = this, a = this.getFieldType(e), n = []; if ("radio" === a) {
1685
+ return r;
1686
+ }, r.prototype.load = function () { var e = this; this.form.forEach(function (t) { e.processFormItem(t, 0); }); var i; try {
1687
+ var a = JSON.stringify(this.data);
1688
+ i = t(JSON.parse(a));
1689
+ }
1690
+ catch (e) {
1691
+ throw new Error("The 'data' object is not serializable (it may contain circular dependencies): " + e);
1692
+ } for (var n in i)
1693
+ this.setValue(n, i[n]); }, r.prototype.setValue = function (e, t) { this.pc.forEach(function (i) { i.applyValue(e, t); }); }, r.prototype.updateDependentState = function () { var e = this, t = [!0]; (this.qc ? this.qc : this.pc).forEach(function (i) { var a = e.updateState(i, { enabled: t[i.level] && !i.data.disabled }); a.isValue && (t[a.level + 1] = a.enabled && a.checked); }); }, r.prototype.processFormItem = function (e, t) { var i = this, a = this.getFieldType(e), n = []; if ("radio" === a) {
1705
1694
  if (e.name) {
1706
1695
  var o = new s;
1707
- 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);
1696
+ o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, i.pc.push(o), n.push(o);
1708
1697
  }
1709
- e.options.forEach(function (o) { var r = new s; r.field = e.id, r.data = o, r.level = t, r.type = a, r.isValue = !0, r.text = o.name, r.resolved = o.id, i.oc.push(r), n.push(r), o.children && o.children.forEach(function (e) { var a = i.processFormItem(e, t + 1); n = n.concat(a); }); });
1698
+ e.options.forEach(function (o) { var r = new s; r.field = e.id, r.data = o, r.level = t, r.type = a, r.isValue = !0, r.text = o.name, r.resolved = o.id, i.pc.push(r), n.push(r), o.children && o.children.forEach(function (e) { var a = i.processFormItem(e, t + 1); n = n.concat(a); }); });
1710
1699
  }
1711
1700
  else if ("title" === a) {
1712
1701
  var o = new s;
1713
- 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);
1702
+ o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = e.name, i.pc.push(o), n.push(o);
1714
1703
  }
1715
1704
  else if ("image" === a) {
1716
1705
  var o = new s;
1717
- 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);
1706
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.pc.push(o), n.push(o);
1718
1707
  }
1719
1708
  else if ("html" === a) {
1720
1709
  var o = new s;
1721
- 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);
1710
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.pc.push(o), n.push(o);
1722
1711
  }
1723
1712
  else if ("scrollable" === a) {
1724
1713
  var o = new s;
1725
- 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);
1714
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.pc.push(o), n.push(o);
1726
1715
  }
1727
1716
  else {
1728
1717
  var o = new s;
1729
- 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);
1718
+ o.field = e.id, o.data = e, o.level = t, o.type = a, o.text = e.name, o.children = [], i.pc.push(o), n.push(o);
1730
1719
  } 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; }, r.prototype.doOnKey = function (e) { if ("function" == typeof this.onKey) {
1731
1720
  var t = { key: e };
1732
1721
  this.onKey(t);
@@ -1757,11 +1746,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1757
1746
  n.close(), i = !0;
1758
1747
  break;
1759
1748
  default: i = !0;
1760
- } i || (e.preventDefault(), e.stopPropagation()); }, 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; }, "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 () { var i = new l; i.apply = function (e) { i.row = e; var t = i.radio; t.checked = e.checked, t.disabled = !e.enabled; }; var a = document.createElement("label"), n = document.createElement("input"); 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); var o = document.createTextNode(e.text); return a.append(o), i.element = a, i.radio = n, i.canFocus = function () { return !1; }, i.focus = function () { i.radio.focus(); }, i.save = function () { if (!n.checked)
1761
- return {}; var t = n.wc, i = {}; return i[e.field] = t, i; }, i; }, "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; } }; return t.plugins && t.plugins[e.type] ? t.plugins[e.type](e) : i[e.type](); }, r.prototype.uc = function (e) { var t = this, i = new l; i.apply = function (e) { i.row = e; var t = i.searchable; t.disabled = !e.enabled, t.select(e.value); }; var a = [], n = e.data.timeInterval || 15; [1, 5, 10, 15, 20, 30, 60].includes(n) || (n = 15); for (var o = 60 / n, r = e.data.locale || t.locale, s = DayPilot.Locale.find(r) || DayPilot.Locale.US, c = DayPilot.Date.today(), u = 0; u < 24 * o; u++) {
1749
+ } i || (e.preventDefault(), e.stopPropagation()); }, 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; }, "time": function () { return t.vc(e); }, "datetime": function () { return t.wc(e); }, "select": function () { var t = new l; t.apply = function (e) { t.row = e; var i = t.element; i.value = e.value, i.disabled = !e.enabled; }; var i = document.createElement("select"); return i.name = e.field, e.data.options && e.data.options.forEach && e.data.options.forEach(function (e) { var t = document.createElement("option"); t.innerText = e.name || e.id, t.value = e.id, t.xc = e.id, i.appendChild(t); }), i.onchange = function (e) { t.onInput({ "immediate": !0 }); }, i.onblur = function (e) { t.onBlur(); }, t.element = i, t.canFocus = function () { return !t.element.disabled; }, t.focus = function () { t.element.focus(); }, t.save = function () { var t = null, a = i.options[i.selectedIndex]; a && "undefined" != typeof a.xc && (t = a.xc); var n = {}; return n[e.field] = t, n; }, t; }, "searchable": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.searchable; t.disabled = !e.enabled, t.select(e.value); }; var a = new d({ data: e.data.options || [], name: e.field, theme: t.theme + "_form_item_searchable", listZIndex: t.zIndex + 1, onSelect: function (e) { e.ui && i.onInput({ "immediate": !0 }); } }), n = a.create(); return i.element = n, i.searchable = a, i.canFocus = function () { return !i.searchable.disabled; }, i.focus = function () { i.searchable.focus(); }, i.save = function () { var t = a.selected && a.selected.id, i = {}; return i[e.field] = t, i; }, i; }, "radio": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.radio; t.checked = e.checked, t.disabled = !e.enabled; }; var a = document.createElement("label"), n = document.createElement("input"); n.type = "radio", n.name = e.field, n.xc = e.resolved, n.onchange = function (e) { var a = i.row; t.findRowsByField(a.field).forEach(function (e) { t.updateState(e, { checked: !1 }); }), t.updateState(a, { checked: !0 }), t.applyState(), i.onInput({ "immediate": !0 }); }, n.onblur = function (e) { i.onBlur(); }, a.appendChild(n); var o = document.createTextNode(e.text); return a.append(o), i.element = a, i.radio = n, i.canFocus = function () { return !1; }, i.focus = function () { i.radio.focus(); }, i.save = function () { if (!n.checked)
1750
+ return {}; var t = n.xc, i = {}; return i[e.field] = t, i; }, i; }, "checkbox": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.checkbox; t.checked = e.checked, t.disabled = !e.enabled; }; var a = document.createElement("label"), n = document.createElement("input"); n.type = "checkbox", n.name = e.field, n.xc = e.resolved, n.onchange = function (e) { var a = i.row; t.updateState(a, { checked: this.checked }), t.applyState(), i.onInput({ "immediate": !0 }); }, n.onblur = function (e) { i.onBlur(); }, a.appendChild(n); var o = document.createTextNode(e.text); return a.append(o), i.element = a, i.checkbox = n, i.canFocus = function () { return !1; }, i.focus = function () { i.checkbox.focus(); }, i.save = function () { var t = n.checked, i = {}; return i[e.field] = t, i; }, i; }, "table": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.table; t.disabled = !e.enabled, t.load(e.value || []); }; var a = new c({ name: e.field, form: t, theme: t.theme + "_form_item_tabular", item: e.data, onInput: function (e) { i.onInput(); } }), n = a.create(); return i.element = n, i.table = a, i.canFocus = function () { return !1; }, i.focus = function () { i.table.focus(); }, i.save = function () { var t = a.save(), i = {}; return i[e.field] = t, i; }, i; } }; return t.plugins && t.plugins[e.type] ? t.plugins[e.type](e) : i[e.type](); }, r.prototype.vc = function (e) { var t = this, i = new l; i.apply = function (e) { i.row = e; var t = i.searchable; t.disabled = !e.enabled, t.select(e.value); }; var a = [], n = e.data.timeInterval || 15; [1, 5, 10, 15, 20, 30, 60].includes(n) || (n = 15); for (var o = 60 / n, r = e.data.locale || t.locale, s = DayPilot.Locale.find(r) || DayPilot.Locale.US, c = DayPilot.Date.today(), u = 0; u < 24 * o; u++) {
1762
1751
  var h = c.addMinutes(n * u), f = {};
1763
1752
  f.name = h.toString(e.data.timeFormat || s.timePattern, s), f.id = h.toString("HH:mm"), a.push(f);
1764
- } 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(); 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; }, r.prototype.vc = function (e) { var t = this, i = new l; i.apply = function (e) { i.row = e; var a = i.searchable; a.disabled = !e.enabled; var n = new DayPilot.Date(e.value).toString("HH:mm"); a.select(n); var o = i.dateInput, r = i.picker; e.data.dateFormat && (r.pattern = e.data.dateFormat); var s = e.data.locale || t.locale; if (s) {
1753
+ } 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(); 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; }, r.prototype.wc = function (e) { var t = this, i = new l; i.apply = function (e) { i.row = e; var a = i.searchable; a.disabled = !e.enabled; var n = new DayPilot.Date(e.value).toString("HH:mm"); a.select(n); var o = i.dateInput, r = i.picker; e.data.dateFormat && (r.pattern = e.data.dateFormat); var s = e.data.locale || t.locale; if (s) {
1765
1754
  var l = DayPilot.Locale.find(s) || DayPilot.Locale.US;
1766
1755
  r.locale = s, r.pattern = l.datePattern;
1767
1756
  } o.disabled = !e.enabled, r.date = new DayPilot.Date(e.value); var d = new DayPilot.Date(e.value).toString(e.data.dateFormat || r.pattern, r.locale); o.value = d; }; var a = function () { var a = document.createElement("input"); a.name = e.field; var n = new DayPilot.DatePicker({ target: a, theme: "navigator_modal", zIndex: t.zIndex + 1, resetTarget: !1, targetAlignment: "left", onTimeRangeSelect: function (e) { i.onInput({ "immediate": !0 }); } }); return a.picker = n, a.className = t.theme + "_input_date", a.type = "text", a.onkeydown = function (e) { var i = !1; switch (e.keyCode) {
@@ -1778,11 +1767,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1778
1767
  } i || (e.preventDefault(), e.stopPropagation()); }, a.onfocus = function () { n.show(); }, a.onclick = function () { n.show(); }, a.oninput = function (e) { i.onInput(); }, a.onblur = function (e) { i.onBlur(); }, i.dateInput = a, i.picker = n, a; }(), n = function () { var a = [], n = e.data.timeInterval || 15; [1, 5, 10, 15, 20, 30, 60].includes(n) || (n = 15); for (var o = 60 / n, r = e.data.locale || t.locale, s = DayPilot.Locale.find(r) || DayPilot.Locale.US, l = DayPilot.Date.today(), c = 0; c < 24 * o; c++) {
1779
1768
  var u = l.addMinutes(n * c), h = {};
1780
1769
  h.name = u.toString(e.data.timeFormat || s.timePattern, s), h.id = u.toString("HH:mm"), a.push(h);
1781
- } var f = 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 }); } }); return i.searchable = f, f.create(); }(), o = document.createElement("div"); 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; }, 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) { var i = this.pc ? this.pc : this.oc, a = i.indexOf(e); return this.pc = i.map(function (i) { if (i !== e)
1770
+ } var f = 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 }); } }); return i.searchable = f, f.create(); }(), o = document.createElement("div"); 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; }, r.prototype.findRowsByField = function (e) { return this.pc.filter(function (t) { return t.field === e; }); }, r.prototype.findViewById = function (e, t) { return this.f.find(function (i) { return i.row.field === e && ("radio" !== i.row.type || i.row.resolved === t); }); }, r.prototype.firstFocusable = function () { return this.f.find(function (e) { return e.canFocus && e.canFocus(); }); }, r.prototype.updateState = function (e, t) { var i = this.qc ? this.qc : this.pc, a = i.indexOf(e); return this.qc = i.map(function (i) { if (i !== e)
1782
1771
  return i; if (e.propsEqual(t))
1783
1772
  return e; var a = e.clone(); for (var n in t)
1784
- a[n] = t[n]; return a; }), this.pc[a]; }, r.prototype.updateInteractive = function (e) { var t = this.pc.indexOf(e); this.f[t].apply(e); }, r.prototype.applyState = function () { var e = this; if (this.updateDependentState(), this.pc) {
1785
- this.pc.filter(function (t, i) { return e.oc[i] !== t; }).forEach(function (t) { e.updateInteractive(t); }), this.oc = this.pc, this.pc = null;
1773
+ a[n] = t[n]; return a; }), this.qc[a]; }, r.prototype.updateInteractive = function (e) { var t = this.qc.indexOf(e); this.f[t].apply(e); }, r.prototype.applyState = function () { var e = this; if (this.updateDependentState(), this.qc) {
1774
+ this.qc.filter(function (t, i) { return e.pc[i] !== t; }).forEach(function (t) { e.updateInteractive(t); }), this.pc = this.qc, this.qc = null;
1786
1775
  } }, 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 () { var e = {}; return this.f.forEach(function (t) { var i = t.save(); for (var a in i)
1787
1776
  e[a] = i[a]; }), e; };
1788
1777
  var s = function () { this.id = this.guid(), this.field = null, this.data = null, this.type = null, this.level = 0, this.enabled = !0, this.value = null, this.text = null, this.interactive = !0, this.isValue = !1, this.checked = !1, this.resolved = null; };
@@ -1790,45 +1779,45 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1790
1779
  "id" !== t && (e[t] = this[t]); return e; }, s.prototype.propsEqual = function (e) { for (var t in e)
1791
1780
  if (this[t] !== e[t])
1792
1781
  return !1; return !0; }, 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)); };
1793
- 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) { 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 || {}; 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); } } }; 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()); } }); for (var a in e)
1782
+ 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) { this.data = [], this.name = null, this.theme = "searchable_default", this.yc = !1, this.listZIndex = 1e5, this.onSelect = null, this.zc = null, this.Ac = null, this.Bc = !1, this.Cc = null, this.Dc = null, this.p = [], this.Ec = null, e = e || {}; var t = this, i = { "selected": { post: function (e) { "object" == typeof e && e.id ? t.zc = e : "string" != typeof e && "number" != typeof e || t.select(e); } } }; Object.defineProperty(this, "selected", { get: function () { return this.zc; } }), Object.defineProperty(this, "disabled", { get: function () { return this.yc; }, set: function (e) { this.yc = e, this.Cc && (this.Cc.disabled = e, e && this.Fc()); } }); for (var a in e)
1794
1783
  i[a] || (this[a] = e[a]); for (var a in e)
1795
1784
  i[a] && i[a].post(e[a]); };
1796
- 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 () { function e(e) { var i = l.strategy; "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 = []; var n = null; l.data.forEach(function (i) { var o = i.name || i.id; if ("includes" === e) {
1785
+ d.prototype.select = function (e) { return this.zc = this.data.find(function (t) { return t.id === e; }), this.Gc(!1), this; }, d.prototype.create = function () { function e(e) { var i = l.strategy; "includes" !== l.strategy && "startsWith" !== l.strategy && (i = "includes"), e = e || i || "includes", h.style.display = "", h.style.top = m.offsetHeight + "px", h.style.left = "0px", h.style.width = m.offsetWidth + "px", h.innerHTML = "", h.addEventListener("mousedown", function (e) { e.preventDefault(); }), l.Ac = null, l.p = []; var n = null; l.data.forEach(function (i) { var o = i.name || i.id; if ("includes" === e) {
1797
1786
  if (o.toLowerCase().indexOf(m.value.toLowerCase()) === -1)
1798
1787
  return;
1799
1788
  }
1800
1789
  else if ("startsWith" === e && 0 !== o.toLowerCase().indexOf(m.value.toLowerCase()))
1801
- return; var r = document.createElement("div"); 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); }), l.zc || (l.zc = n), t(); } 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()); } function i(e, t) { var i = e.getBoundingClientRect(), a = t.getBoundingClientRect(); return i.top >= a.top && i.bottom <= a.bottom; } function a(e) { var t = e.item; l.yc = t, l.Fc(!0), o(), r(); } function n() { l.Ec(); } function o() { l.q(); } function r() { l.Ac = !0, m.setAttribute("readonly", "readonly"), m.focus(); } function s() { l.Ac = !1, m.removeAttribute("readonly"), m.select(), e("all"); } var l = this, d = this, c = document.createElement("div"); c.className = this.theme + "_main", c.style.position = "relative"; var u = document.createElement("div"); 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()); }); var h = document.createElement("div"); h.className = this.theme + "_list", h.style.display = "none", h.style.position = "absolute", h.style.zIndex = this.listZIndex; var f = document.createElement("input"); f.type = "hidden", f.name = this.name, f.searchable = d, this.Dc = f; var m = document.createElement("input"); 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) { if (l.Ac) {
1790
+ return; var r = document.createElement("div"); r.className = l.theme + "_list_item", r.innerText = o, r.item = i, i === l.zc && (l.Ac = r), n || (n = r), r.addEventListener("mousedown", function (e) { a(r), e.preventDefault(); }), r.addEventListener("mousemove", function (e) { l.Ac !== r && (l.Ac = r, t({ dontScroll: !0 })); }), h.appendChild(r), l.p.push(r); }), l.Ac || (l.Ac = n), t(); } function t(e) { e = e || {}; var t = !e.dontScroll; document.querySelectorAll("." + l.theme + "_list_item_highlight").forEach(function (e) { e.className = e.className.replace(l.theme + "_list_item_highlight", ""); }), l.Ac && (l.Ac.className += " " + l.theme + "_list_item_highlight", t && !i(l.Ac, h) && l.Ac.scrollIntoView()); } function i(e, t) { var i = e.getBoundingClientRect(), a = t.getBoundingClientRect(); return i.top >= a.top && i.bottom <= a.bottom; } function a(e) { var t = e.item; l.zc = t, l.Gc(!0), o(), r(); } function n() { l.Fc(); } function o() { l.q(); } function r() { l.Bc = !0, m.setAttribute("readonly", "readonly"), m.focus(); } function s() { l.Bc = !1, m.removeAttribute("readonly"), m.select(), e("all"); } var l = this, d = this, c = document.createElement("div"); c.className = this.theme + "_main", c.style.position = "relative"; var u = document.createElement("div"); u.className = this.theme + "_icon", u.style.position = "absolute", u.style.right = "0", u.style.top = "0", u.style.bottom = "0", u.style.width = "20px", u.addEventListener("mousedown", function (e) { e.preventDefault(), l.Bc ? (l.focus(), s()) : (n(), r()); }); var h = document.createElement("div"); h.className = this.theme + "_list", h.style.display = "none", h.style.position = "absolute", h.style.zIndex = this.listZIndex; var f = document.createElement("input"); f.type = "hidden", f.name = this.name, f.searchable = d, this.Ec = f; var m = document.createElement("input"); return m.type = "text", m.className = this.theme + "_input", m.disabled = this.yc, m.addEventListener("click", function (e) { s(); }), m.addEventListener("focus", function (t) { e("all"); }), m.addEventListener("input", function (t) { e(); }), m.addEventListener("blur", function (e) { m.removeAttribute("readonly"), n(); }), m.addEventListener("keydown", function (e) { if (l.Bc) {
1802
1791
  if ("Enter" === e.key)
1803
1792
  return;
1804
1793
  if ("Esc" === e.key || "Escape" === e.key)
1805
1794
  return;
1806
1795
  s();
1807
1796
  } if ("ArrowDown" === e.key) {
1808
- var i = d.p.indexOf(d.zc);
1809
- i + 1 < d.p.length && (d.zc = d.p[i + 1]), t();
1797
+ var i = d.p.indexOf(d.Ac);
1798
+ i + 1 < d.p.length && (d.Ac = d.p[i + 1]), t();
1810
1799
  }
1811
1800
  else if ("ArrowUp" === e.key) {
1812
- var i = d.p.indexOf(d.zc);
1813
- i - 1 >= 0 && (d.zc = d.p[i - 1]), t();
1801
+ var i = d.p.indexOf(d.Ac);
1802
+ i - 1 >= 0 && (d.Ac = d.p[i - 1]), t();
1814
1803
  }
1815
1804
  else
1816
- "Enter" === e.key ? l.zc ? (e.stopPropagation(), a(l.zc)) : (e.stopPropagation(), n(), r()) : "Esc" !== e.key && "Escape" !== e.key || (e.stopPropagation(), n(), r()); }), 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; }, 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) { 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) {
1805
+ "Enter" === e.key ? l.Ac ? (e.stopPropagation(), a(l.Ac)) : (e.stopPropagation(), n(), r()) : "Esc" !== e.key && "Escape" !== e.key || (e.stopPropagation(), n(), r()); }), this.Cc = m, this.Dc = h, this.zc || (this.zc = this.data[0], this.zc && (m.value = this.zc.name)), c.appendChild(m), c.appendChild(u), c.appendChild(f), c.appendChild(h), c; }, d.prototype.Fc = function () { this.q(), this.zc ? this.Cc.value = this.zc.name : (this.Cc.value = "", this.Gc(!0)); }, d.prototype.focus = function () { this.Bc = !0, this.Cc.setAttribute("readonly", "readonly"), this.Cc.focus(), this.Fc(); }, d.prototype.q = function () { this.Dc.style.display = "none"; }, d.prototype.Gc = function (e) { if (this.Ec.value = this.selected ? this.selected.id : null, this.zc ? this.Cc.value = this.zc.name : this.Cc.value = "", "function" == typeof this.onSelect) {
1817
1806
  var t = { control: this, ui: e };
1818
1807
  this.onSelect(t);
1819
1808
  } };
1820
- var c = function (e) { 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 || {}; for (var t in e)
1809
+ var c = function (e) { this.form = null, this.item = null, this.data = null, this.name = null, this.theme = "edit_table_default", this.onInput = null, this.nav = {}, this.Hc = null, this.pc = [], e = e || {}; for (var t in e)
1821
1810
  this[t] = e[t]; };
1822
- c.prototype.create = function () { var e = this, t = document.createElement("div"); t.className = this.theme + "_main", t.style.position = "relative"; var i = document.createElement("input"); i.type = "hidden", i.name = e.name, i.table = this, t.appendChild(i); var a = document.createElement("div"); a.className = this.theme + "_table"; var n = this.Hc(); a.appendChild(n); var o = e.Ic({}); o.spacer = !0; var r = this.Jc(o); r.classList.add(e.theme + "_spacer"), a.appendChild(r); var s = document.createElement("div"); s.className = e.theme + "_tbody", a.appendChild(s), t.appendChild(a); var l = document.createElement("div"); t.appendChild(l), this.nav.body = s, this.nav.table = a, this.nav.main = t, this.nav.after = l; var d = document.createElement("div"), c = document.createElement("span"); return c.className = this.theme + "_plus", c.addEventListener("click", function (t) { if (!e.disabled) {
1811
+ c.prototype.create = function () { var e = this, t = document.createElement("div"); t.className = this.theme + "_main", t.style.position = "relative"; var i = document.createElement("input"); i.type = "hidden", i.name = e.name, i.table = this, t.appendChild(i); var a = document.createElement("div"); a.className = this.theme + "_table"; var n = this.Ic(); a.appendChild(n); var o = e.Jc({}); o.spacer = !0; var r = this.Kc(o); r.classList.add(e.theme + "_spacer"), a.appendChild(r); var s = document.createElement("div"); s.className = e.theme + "_tbody", a.appendChild(s), t.appendChild(a); var l = document.createElement("div"); t.appendChild(l), this.nav.body = s, this.nav.table = a, this.nav.main = t, this.nav.after = l; var d = document.createElement("div"), c = document.createElement("span"); return c.className = this.theme + "_plus", c.addEventListener("click", function (t) { if (!e.disabled) {
1823
1812
  var i = e.item.onNewRow, a = {};
1824
1813
  if ("function" == typeof i) {
1825
1814
  var n = {};
1826
1815
  n.result = e.form.serialize(), n.value = {}, i(n), a = n.value;
1827
1816
  }
1828
- var o = e.Ic(a);
1829
- e.oc.push(o), e.Kc(), e.Lc();
1830
- } }), this.nav.plus = c, d.appendChild(c), t.appendChild(d), t; }, 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) { if ("[object Array]" !== Object.prototype.toString.call(e))
1831
- throw new Error("Array expected"); this.data = e, this.Nc(), this.Kc(); }, 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) { var t = this, i = {}; return i.data = e, i.cells = [], t.item.columns.forEach(function (a) { var n = a.id, o = e[n], r = t.Qc(a); if ("undefined" == typeof o)
1817
+ var o = e.Jc(a);
1818
+ e.pc.push(o), e.Lc(), e.Mc();
1819
+ } }), this.nav.plus = c, d.appendChild(c), t.appendChild(d), t; }, c.prototype.Ic = function () { var e = this, t = document.createElement("div"); return t.classList.add(this.theme + "_row"), t.classList.add(this.theme + "_header"), this.item.columns.forEach(function (i) { var a = document.createElement("div"); a.classList.add(e.theme + "_cell"), a.innerText = i.name, t.appendChild(a); }), t; }, c.prototype.Nc = function () { var e = this.item.max || 0; return !!(e && this.pc.length >= e); }, c.prototype.save = function () { var e = this, t = []; return e.pc.forEach(function (e) { var i = {}; e.cells.forEach(function (e) { i[e.id] = e.value; }), t.push(i); }), t; }, c.prototype.load = function (e) { if ("[object Array]" !== Object.prototype.toString.call(e))
1820
+ throw new Error("Array expected"); this.data = e, this.Oc(), this.Lc(); }, c.prototype.Pc = function () { this.disabled ? this.nav.main.classList.add(this.theme + "_disabled") : this.nav.main.classList.remove(this.theme + "_disabled"), this.Nc() ? this.nav.plus.classList.add(this.theme + "_plus_max") : this.nav.plus.classList.remove(this.theme + "_plus_max"); }, c.prototype.Oc = function () { var e = this; this.pc = [], this.data.forEach(function (t) { var i = e.Jc(t); e.pc.push(i); }); }, c.prototype.Qc = function (e) { var t = this, i = t.pc.indexOf(e); t.pc.splice(i, 1); }, c.prototype.Jc = function (e) { var t = this, i = {}; return i.data = e, i.cells = [], t.item.columns.forEach(function (a) { var n = a.id, o = e[n], r = t.Rc(a); if ("undefined" == typeof o)
1832
1821
  if ("text" === r)
1833
1822
  o = "";
1834
1823
  else if ("number" === r)
@@ -1836,23 +1825,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1836
1825
  else if ("select" === r) {
1837
1826
  var s = a.options;
1838
1827
  o = s && s[0].id;
1839
- } var l = {}; l.id = n, l.value = o, l.type = r, l.data = a, i.cells.push(l); }), i; }, c.prototype.Qc = function (e) { var t = e.type; return t || (t = e.options ? "select" : "text"), t; }, c.prototype.Kc = function () { var e = this; 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) {
1840
- var t = e.Rc();
1828
+ } var l = {}; l.id = n, l.value = o, l.type = r, l.data = a, i.cells.push(l); }), i; }, c.prototype.Rc = function (e) { var t = e.type; return t || (t = e.options ? "select" : "text"), t; }, c.prototype.Lc = function () { var e = this; if (this.nav.body.innerHTML = "", this.nav.after.innerHTML = "", this.pc.forEach(function (t) { var i = e.Kc(t); e.nav.body.appendChild(i); }), 0 === this.pc.length) {
1829
+ var t = e.Sc();
1841
1830
  e.nav.after.appendChild(t);
1842
- } this.Oc(); }, c.prototype.Rc = function () { var e = document.createElement("div"); return e.className = this.theme + "_empty", e; }, c.prototype.Jc = function (e) { var t = this, i = document.createElement("div"); i.className = t.theme + "_row", e.cells.forEach(function (a) { var n = document.createElement("div"); n.className = t.theme + "_cell"; var o = t.Sc(a); if (e.spacer) {
1831
+ } this.Pc(); }, c.prototype.Sc = function () { var e = document.createElement("div"); return e.className = this.theme + "_empty", e; }, c.prototype.Kc = function (e) { var t = this, i = document.createElement("div"); i.className = t.theme + "_row", e.cells.forEach(function (a) { var n = document.createElement("div"); n.className = t.theme + "_cell"; var o = t.Tc(a); if (e.spacer) {
1843
1832
  var r = document.createElement("div");
1844
1833
  r.style.height = "0px", r.style.overflow = "hidden", r.appendChild(o), n.appendChild(r);
1845
1834
  }
1846
1835
  else
1847
- n.appendChild(o); i.appendChild(n); }); var a = document.createElement("div"); a.classList.add(t.theme + "_cell"), a.classList.add(t.theme + "_rowaction"); var n = document.createElement("span"); 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; }, c.prototype.Lc = function () { var e = this; if ("function" == typeof e.onInput) {
1836
+ n.appendChild(o); i.appendChild(n); }); var a = document.createElement("div"); a.classList.add(t.theme + "_cell"), a.classList.add(t.theme + "_rowaction"); var n = document.createElement("span"); return n.className = this.theme + "_delete", n.addEventListener("click", function (i) { t.disabled || (t.Qc(e), t.Lc(), t.Mc()); }), e.spacer || a.appendChild(n), i.appendChild(a), i; }, c.prototype.Mc = function () { var e = this; if ("function" == typeof e.onInput) {
1848
1837
  var t = {};
1849
1838
  e.onInput(t);
1850
- } }, c.prototype.Sc = function (e) { var t = this, i = e.type; if ("text" === i || "number" === i) {
1839
+ } }, c.prototype.Tc = function (e) { var t = this, i = e.type; if ("text" === i || "number" === i) {
1851
1840
  var a = document.createElement("input");
1852
- 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;
1841
+ return a.type = i, t.disabled && (a.disabled = !0), e.value && (a.value = e.value), a.addEventListener("keyup", function (a) { "number" === i ? e.value = Number(this.value) : e.value = this.value, t.Mc(); }), a;
1853
1842
  } if ("select" === i) {
1854
1843
  var n = document.createElement("select");
1855
- 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;
1844
+ return t.disabled && (n.disabled = !0), e.data.options.forEach(function (t) { var i = document.createElement("option"); i.innerText = t.name, i.value = t.id, i.xc = t.id, n.appendChild(i), e.value === t.id && i.setAttribute("selected", !0); }), n.addEventListener("change", function (i) { var a = n.options[n.selectedIndex]; a && "undefined" != typeof a.xc && (e.value = a.xc), t.Mc(); }), n;
1856
1845
  } throw new Error("Unsupported item type: " + i); }, c.prototype.focus = function () { };
1857
1846
  }
1858
1847
  }(DayPilot), "undefined" == typeof DayPilot)
@@ -1861,15 +1850,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1861
1850
  if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
1862
1851
  var e = {}, t = DayPilot.Util.isVueVNode;
1863
1852
  e.Month = function (i, a) {
1864
- this.v = "2024.4.631-lite", this.nav = {};
1853
+ this.v = "2025.1.638-lite", this.nav = {};
1865
1854
  var n = this;
1866
- 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) { var t = null; if (e instanceof DayPilot.Event)
1855
+ this.id = i, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, this.cellMarginBottom = 0, this.contextMenu = null, this.cssClassPrefix = "month_default", this.eventBarVisible = !0, this.eventBorderRadius = null, this.eventHeight = 25, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.hideUntilInit = !0, this.lineSpace = 1, this.locale = "en-us", this.showToolTip = !0, this.startDate = new DayPilot.Date, this.theme = null, this.visible = !0, this.weekStarts = "Auto", this.width = "100%", this.xssProtection = "Enabled", this.afterRender = function () { }, this.cellHeaderClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.headerClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onCellHeaderClick = null, this.onCellHeaderClicked = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.onBeforeEventRender = null, this.onBeforeCellRender = null, this.cellEvents = [], this.elements = {}, this.elements.events = [], this.cache = {}, this.O = !1, this.U = function (e, t) { var e = JSON.parse(e); return e.CallBackRedirect ? void (document.location.href = e.CallBackRedirect) : "None" === e.UpdateType ? void n.fireAfterRenderDetached(e.CallBackData, !0) : (n.events.list = e.Events, "Full" === e.UpdateType && (n.startDate = e.StartDate, n.timeFormat = e.TimeFormat ? e.TimeFormat : n.timeFormat, "undefined" != typeof e.WeekStarts && (n.weekStarts = e.WeekStarts), n.hashes = e.Hashes), n.W(), n.Uc(), n.fa(), "Full" === e.UpdateType && (n.Vc(), n.Wc()), n.ka(), n.show(), n.la(), void n.fireAfterRenderDetached(e.CallBackData, !0)); }, this.fireAfterRenderDetached = function (e, t) { var i = function (e, t) { return function () { n.afterRender && n.afterRender(e, t); }; }; window.setTimeout(i(e, t), 0); }, this.lineHeight = function () { return this.eventHeight + this.lineSpace; }, this.events = {}, this.events.add = function (e) { var t = null; if (e instanceof DayPilot.Event)
1867
1856
  t = e.data;
1868
1857
  else {
1869
1858
  if ("object" != typeof e)
1870
1859
  throw "DayPilot.Month.events.add() expects an object or DayPilot.Event instance.";
1871
1860
  t = e;
1872
- } n.events.list || (n.events.list = []), n.events.list.push(t), n.update(), n.sa.notify(); }, this.events.find = function (e) { if (!n.events.list)
1861
+ } n.events.list || (n.events.list = []), n.events.list.push(t), n.update(), n.ta.notify(); }, this.events.find = function (e) { if (!n.events.list)
1873
1862
  return null; if ("function" == typeof e) {
1874
1863
  for (var t = e, i = 0; i < n.events.list.length; i++) {
1875
1864
  var a = new DayPilot.Event(n.events.list[i], n);
@@ -1889,7 +1878,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1889
1878
  var i = DayPilot.indexOf(n.events.list, t.data);
1890
1879
  n.events.list.splice(i, 1, e);
1891
1880
  }
1892
- } n.update(), n.sa.notify(); }, this.events.remove = function (e) { var t; if (e instanceof DayPilot.Event)
1881
+ } n.update(), n.ta.notify(); }, this.events.remove = function (e) { var t; if (e instanceof DayPilot.Event)
1893
1882
  t = e.data;
1894
1883
  else if ("object" == typeof e) {
1895
1884
  var i = n.events.find(e.id);
@@ -1898,7 +1887,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1898
1887
  else if ("string" == typeof e || "number" == typeof e) {
1899
1888
  var i = n.events.find(e);
1900
1889
  i && (t = i.data);
1901
- } var a = DayPilot.indexOf(n.events.list, t); n.events.list.splice(a, 1), n.update(), n.sa.notify(); }, this.events.load = function (e, t, i) { var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) { var i, o = e.request; try {
1890
+ } var a = DayPilot.indexOf(n.events.list, t); n.events.list.splice(a, 1), n.update(), n.ta.notify(); }, this.events.load = function (e, t, i) { var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) { var i, o = e.request; try {
1902
1891
  i = JSON.parse(o.responseText);
1903
1892
  }
1904
1893
  catch (e) {
@@ -1908,21 +1897,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1908
1897
  var s = {};
1909
1898
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
1910
1899
  return;
1911
- n.events.list = i, n.Ba && n.update();
1900
+ n.events.list = i, n.Ca && n.update();
1912
1901
  } }; if (n.eventsLoadMethod && "POST" === n.eventsLoadMethod.toUpperCase())
1913
1902
  DayPilot.Http.ajax({ "method": "POST", "data": { "start": n.visibleStart().toString(), "end": n.visibleEnd().toString() }, "url": e, "success": o, "error": a });
1914
1903
  else {
1915
1904
  var r = e, s = "start=" + n.visibleStart().toString() + "&end=" + n.visibleEnd().toString();
1916
1905
  r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": a });
1917
- } }, 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) { if (n.jb(e), this.Ba) {
1906
+ } }, this.events.forRange = function (e, t) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var i = (n.events.list || []).map(function (e) { return new DayPilot.Event(e); }); return i.sort(n.rb), i.filter(function (i) { var a = i.start(), n = i.end(); return a === n && a === e || DayPilot.Util.overlaps(e, t, a, n); }); }, this.update = function (e) { if (n.kb(e), this.Ca) {
1918
1907
  if (n.O)
1919
1908
  throw new DayPilot.Exception("You are trying to update a DayPilot.Month instance that has been disposed.");
1920
1909
  if (this.cells) {
1921
- n.W(), n.Tc(), n.ea(), n.Uc(), n.Vc(), n.ja(), n.t(), n.ka(), this.visible ? this.show() : this.hide();
1910
+ n.W(), n.Uc(), n.fa(), n.Vc(), n.Wc(), n.ka(), n.t(), n.la(), this.visible ? this.show() : this.hide();
1922
1911
  }
1923
- } }, this.lb = null, this.jb = function (e) { if (e) {
1912
+ } }, this.mb = null, this.kb = function (e) { if (e) {
1924
1913
  var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? n.events.list = e.list : n.events.list = e; } } };
1925
- this.lb = t;
1914
+ this.mb = t;
1926
1915
  for (var i in e)
1927
1916
  if (t[i]) {
1928
1917
  var a = t[i];
@@ -1930,19 +1919,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1930
1919
  }
1931
1920
  else
1932
1921
  n[i] = e[i];
1933
- } }, this.mb = function () { var e = this.lb; for (var t in e) {
1922
+ } }, this.nb = function () { var e = this.mb; for (var t in e) {
1934
1923
  var i = e[t];
1935
1924
  i.postInit && i.postInit();
1936
- } }, this.ob = {}, this.ob.events = [], this.pb = function (e) { var t = this.ob.events, i = this.events.list[e], a = {}; for (var o in i)
1925
+ } }, this.pb = {}, this.pb.events = [], this.qb = function (e) { var t = this.pb.events, i = this.events.list[e], a = {}; for (var o in i)
1937
1926
  a[o] = i[o]; if ("function" == typeof this.onBeforeEventRender) {
1938
1927
  var r = {};
1939
1928
  r.control = n, r.data = a, this.onBeforeEventRender(r);
1940
- } t[e] = a; }, this.ea = function () { var e = this.events.list; if (e) {
1929
+ } t[e] = a; }, this.fa = function () { var e = this.events.list; if (e) {
1941
1930
  if (!DayPilot.isArray(e))
1942
1931
  throw new DayPilot.Exception("DayPilot.Month.events.list expects an array object. You supplied: " + typeof e);
1943
1932
  if ("function" == typeof this.onBeforeEventRender)
1944
1933
  for (var t = 0; t < e.length; t++)
1945
- this.pb(t);
1934
+ this.qb(t);
1946
1935
  for (var i = 0; i < e.length; i++) {
1947
1936
  var a = e[i];
1948
1937
  if ("object" != typeof a)
@@ -1955,12 +1944,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1955
1944
  if (!(n.getTime() > o.getTime()))
1956
1945
  for (var t = 0; t < this.rows.length; t++) {
1957
1946
  var r = this.rows[t], s = new DayPilot.Event(a, this);
1958
- r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.ob.events[i]));
1947
+ r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.pb.events[i]));
1959
1948
  }
1960
1949
  }
1961
1950
  for (var l = 0; l < this.rows.length; l++) {
1962
1951
  var r = this.rows[l];
1963
- r.events.sort(this.qb);
1952
+ r.events.sort(this.rb);
1964
1953
  for (var d = 0; d < this.rows[l].events.length; d++) {
1965
1954
  var c = r.events[d], u = r.getStartColumn(c), h = r.getWidth(c);
1966
1955
  r.putIntoLine(c, u, h, l);
@@ -1968,16 +1957,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1968
1957
  }
1969
1958
  } }, this.W = function () { for (var e = 0; e < this.elements.events.length; e++) {
1970
1959
  var t = this.elements.events[e];
1971
- n.Ea(t);
1972
- } this.elements.events = []; }, this.Ea = function (e) { !function () { var i = e.domArgs; if (e.domArgs = null, i && "function" == typeof n.onBeforeEventDomRemove && n.onBeforeEventDomRemove(i), i && "function" == typeof n.onBeforeEventDomAdd) {
1973
- var a = i && i.Fa;
1960
+ n.Fa(t);
1961
+ } this.elements.events = []; }, this.Fa = function (e) { !function () { var i = e.domArgs; if (e.domArgs = null, i && "function" == typeof n.onBeforeEventDomRemove && n.onBeforeEventDomRemove(i), i && "function" == typeof n.onBeforeEventDomAdd) {
1962
+ var a = i && i.Ga;
1974
1963
  if (a) {
1975
- n.Ha.Ga && t(i.element) && (n.Ha.Ia = !0, n.Ha.Ja(a), n.Ha.Ia = !1);
1964
+ n.Ia.Ha && t(i.element) && (n.Ia.Ja = !0, n.Ia.Ka(a), n.Ia.Ja = !1);
1976
1965
  }
1977
- } }(), e.event = null, e.click = null, e.parentNode.removeChild(e); }, this.ka = function () { this.Wc(); }, this.Wc = function () { this.elements.events = []; for (var e = 0; e < this.rows.length; e++)
1966
+ } }(), e.event = null, e.click = null, e.parentNode.removeChild(e); }, this.la = function () { this.Xc(); }, this.Xc = function () { this.elements.events = []; for (var e = 0; e < this.rows.length; e++)
1978
1967
  for (var t = this.rows[e], i = 0; i < t.lines.length; i++)
1979
1968
  for (var a = t.lines[i], n = 0; n < a.length; n++)
1980
- this.Ka(a[n]); }, this.qb = function (e, t) { if (!(e && t && e.start && t.start))
1969
+ this.La(a[n]); }, this.rb = function (e, t) { if (!(e && t && e.start && t.start))
1981
1970
  return 0; var i = e.start().getTime() - t.start().getTime(); return 0 !== i ? i : t.end().getTime() - e.end().getTime(); }, this.drawShadow = function (t, i, a, o, r, s) { r || (r = 0); var l = o; this.shadow = {}, this.shadow.list = [], this.shadow.start = { x: t, y: i }, this.shadow.width = o; var d = 7 * i + t - r; d < 0 && (l += d, t = 0, i = 0); for (var c = r; c >= 7;)
1982
1971
  i--, c -= 7; if (c > t) {
1983
1972
  c > t + (7 - this.getColCount()) ? (i--, t = t + 7 - c) : (l = l - c + t, t = 0);
@@ -1992,66 +1981,57 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1992
1981
  for (var e = 0; e < this.shadow.list.length; e++)
1993
1982
  this.nav.top.removeChild(this.shadow.list[e]);
1994
1983
  this.shadow = null, this.nav.top.style.cursor = "";
1995
- } }, this.getEventTop = function (e, t) { for (var i = this.headerHeight, a = 0; a < e; a++)
1996
- i += this.rows[a].getHeight(); return i += this.cellHeaderHeight, i += t * this.lineHeight(); }, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.Ka = function (i) {
1997
- var a = i.cache || i.data, o = a.borderRadius || n.eventBorderRadius;
1998
- "number" == typeof o && (o += "px");
1999
- 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");
2000
- f.setAttribute("unselectable", "on"),
2001
- 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) { t = t || window.event; var a = t.which || t.button; if (t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), 1 === a)
2002
- if (e.movingEvent = null, "w-resize" === this.style.cursor || "e-resize" === this.style.cursor) {
2003
- var o = {};
2004
- 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, o.direction = this.style.cursor, e.resizingEvent = o;
2005
- }
2006
- else if ("move" === this.style.cursor || i.client.moveEnabled()) {
2007
- n.clearShadow();
2008
- var c = DayPilot.mo3(n.nav.top, t);
2009
- if (!c)
2010
- return;
2011
- 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);
2012
- h && (m += h);
2013
- var p = {};
2014
- 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;
2015
- } }, f.onmousemove = function (t) { if ("undefined" != typeof e && !e.movingEvent && !e.resizingEvent) {
2016
- var a = DayPilot.mo3(f, t);
2017
- if (a) {
2018
- f.deleteIcon && (f.deleteIcon.style.display = "");
2019
- var n = 6;
2020
- 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";
2021
- }
2022
- } }, f.onmouseleave = function (e) { f.deleteIcon && (f.deleteIcon.style.display = "none"), f.style.cursor = ""; }, f.onmouseenter = function (e) { f.deleteIcon && (f.deleteIcon.style.display = ""); };
2023
- var m = document.createElement("div");
2024
- 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()) {
2025
- var p = document.createElement("div");
2026
- p.setAttribute("unselectable", "on"), p.className = this.K("_event_bar"), p.style.position = "absolute";
2027
- var v = document.createElement("div");
2028
- 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);
2029
- }
2030
- if (i.client.deleteEnabled()) {
2031
- var y = Math.floor(n.eventHeight / 2 - 9), g = document.createElement("div");
2032
- 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);
2033
- }
2034
- var b = a.areas ? DayPilot.Areas.copy(a.areas) : [];
2035
- if (DayPilot.Areas.attach(f, i, { "areas": b }), "function" == typeof n.onAfterEventRender) {
2036
- var D = {};
2037
- D.e = f.event, D.div = f, n.onAfterEventRender(D);
2038
- }
2039
- !function () { var e = {}; if (e.control = n, e.e = i, e.element = null, f.domArgs = e, "function" == typeof n.onBeforeEventDomAdd && n.onBeforeEventDomAdd(e), e.element) {
2040
- var a = m;
2041
- if (a) {
2042
- e.Fa = a;
2043
- if (t(e.element)) {
2044
- if (!n.Ha.Ga)
2045
- throw new DayPilot.Exception("Can't reach Vue");
2046
- n.Ha.Ia = !0, n.Ha.La(e.element, a, { "style": { "flexGrow": 1 } }), n.Ha.Ia = !1;
2047
- }
2048
- else
2049
- a.appendChild(e.element);
1984
+ } }, this.getEventTop = function (e, t) {
1985
+ for (var i = this.headerHeight, a = 0; a < e; a++)
1986
+ i += this.rows[a].getHeight();
1987
+ return i += this.cellHeaderHeight, i += t * this.lineHeight();
1988
+ }, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.La = function (i) { var a = i.cache || i.data, o = a.borderRadius || n.eventBorderRadius; "number" == typeof o && (o += "px"); 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"); f.setAttribute("unselectable", "on"), f.style.height = this.eventHeight + "px", f.style.overflow = "hidden", f.className = this.K("_event"), a.cssClass && DayPilot.Util.addClass(f, a.cssClass), i.part.startsHere || DayPilot.Util.addClass(f, this.K("_event_continueleft")), i.part.endsHere || DayPilot.Util.addClass(f, this.K("_event_continueright")), f.event = i, f.style.width = u + "%", f.style.position = "absolute", f.style.left = c + "%", f.style.top = h + "px", this.showToolTip && i.client.toolTip() && (f.title = i.client.toolTip()), f.onclick = n.sa, f.oncontextmenu = n.Yc, f.onmousedown = function (t) { t = t || window.event; var a = t.which || t.button; if (t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), 1 === a)
1989
+ if (e.movingEvent = null, "w-resize" === this.style.cursor || "e-resize" === this.style.cursor) {
1990
+ var o = {};
1991
+ 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, o.direction = this.style.cursor, e.resizingEvent = o;
1992
+ }
1993
+ else if ("move" === this.style.cursor || i.client.moveEnabled()) {
1994
+ n.clearShadow();
1995
+ var c = DayPilot.mo3(n.nav.top, t);
1996
+ if (!c)
1997
+ return;
1998
+ 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);
1999
+ h && (m += h);
2000
+ var p = {};
2001
+ 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;
2002
+ } }, f.onmousemove = function (t) { if ("undefined" != typeof e && !e.movingEvent && !e.resizingEvent) {
2003
+ var a = DayPilot.mo3(f, t);
2004
+ if (a) {
2005
+ f.deleteIcon && (f.deleteIcon.style.display = "");
2006
+ var n = 6;
2007
+ 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";
2008
+ }
2009
+ } }, f.onmouseleave = function (e) { f.deleteIcon && (f.deleteIcon.style.display = "none"), f.style.cursor = ""; }, f.onmouseenter = function (e) { f.deleteIcon && (f.deleteIcon.style.display = ""); }; var m = document.createElement("div"); 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()) {
2010
+ var p = document.createElement("div");
2011
+ p.setAttribute("unselectable", "on"), p.className = this.K("_event_bar"), p.style.position = "absolute";
2012
+ var v = document.createElement("div");
2013
+ 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);
2014
+ } if (i.client.deleteEnabled()) {
2015
+ var y = Math.floor(n.eventHeight / 2 - 9), g = document.createElement("div");
2016
+ g.style.position = "absolute", g.style.right = "2px", g.style.top = y + "px", g.style.width = "18px", g.style.height = "18px", g.className = n.K("_event_delete"), g.onmousedown = function (e) { e.stopPropagation(); }, g.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && n.va(t); }, g.style.display = "none", f.deleteIcon = g, f.appendChild(g);
2017
+ } var b = a.areas ? DayPilot.Areas.copy(a.areas) : []; if (DayPilot.Areas.attach(f, i, { "areas": b }), "function" == typeof n.onAfterEventRender) {
2018
+ var D = {};
2019
+ D.e = f.event, D.div = f, n.onAfterEventRender(D);
2020
+ } !function () { var e = {}; if (e.control = n, e.e = i, e.element = null, f.domArgs = e, "function" == typeof n.onBeforeEventDomAdd && n.onBeforeEventDomAdd(e), e.element) {
2021
+ var a = m;
2022
+ if (a) {
2023
+ e.Ga = a;
2024
+ if (t(e.element)) {
2025
+ if (!n.Ia.Ha)
2026
+ throw new DayPilot.Exception("Can't reach Vue");
2027
+ n.Ia.Ja = !0, n.Ia.Ma(e.element, a, { "style": { "flexGrow": 1 } }), n.Ia.Ja = !1;
2050
2028
  }
2029
+ else
2030
+ a.appendChild(e.element);
2051
2031
  }
2052
- else
2053
- m.innerHTML = i.client.innerHTML(); }(), this.elements.events.push(f), this.nav.events.appendChild(f);
2054
- }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.Tc = function () { "string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart()); var e, t = (this.startDate, this.lastVisibleDayOfMonth()), i = DayPilot.DateUtil.daysDiff(this.firstDate, t) + 1; e = Math.ceil(i / 7), this.days = 7 * e, this.rows = []; for (var a = 0; a < e; a++) {
2032
+ }
2033
+ else
2034
+ m.innerHTML = i.client.innerHTML(); }(), this.elements.events.push(f), this.nav.events.appendChild(f); }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.Uc = function () { "string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart()); var e, t = (this.startDate, this.lastVisibleDayOfMonth()), i = DayPilot.DateUtil.daysDiff(this.firstDate, t) + 1; e = Math.ceil(i / 7), this.days = 7 * e, this.rows = []; for (var a = 0; a < e; a++) {
2055
2035
  var o = {};
2056
2036
  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) { for (var n = this, o = 0; o < this.lines.length; o++) {
2057
2037
  var r = this.lines[o];
@@ -2061,7 +2041,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2061
2041
  e + t - 1 < this[a].part.colStart || e > this[a].part.colStart + this[a].part.colWidth - 1 || (i = !1); return i; }, 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; }, o.getStart = function () { for (var e = 0, t = 0; t < n.rows.length && t < this.index; t++)
2062
2042
  e += n.rows[t].getHeight(); }, o.getHeight = function () { return Math.max(this.lines.length * n.lineHeight() + n.cellHeaderHeight + n.cellMarginBottom, this.calendar.cellHeight); }, this.rows.push(o);
2063
2043
  } this.endDate = this.firstDate.addDays(7 * e); }, this.visibleStart = function () { return n.firstDate; }, this.visibleEnd = function () { return n.endDate; }, this.getHeight = function () { for (var e = this.headerHeight, t = 0; t < this.rows.length; t++)
2064
- e += this.rows[t].getHeight(); return e; }, 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 () { var t = this.nav.top; 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"); var i = document.createElement("div"); this.nav.cells = i, i.style.position = "absolute", i.style.left = "0px", i.style.right = "0px", i.setAttribute("unselectable", "on"), t.appendChild(i); var a = document.createElement("div"); 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) { if (e.resizingEvent) {
2044
+ e += this.rows[t].getHeight(); return e; }, this.getWidth = function (e, t) { return 7 * t.y + t.x - (7 * e.y + e.x) + 1; }, this.getMinCoords = function (e, t) { return 7 * e.y + e.x < 7 * t.y + t.x ? e : t; }, this.K = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Oa = function () { var t = this.nav.top; 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"); var i = document.createElement("div"); this.nav.cells = i, i.style.position = "absolute", i.style.left = "0px", i.style.right = "0px", i.setAttribute("unselectable", "on"), t.appendChild(i); var a = document.createElement("div"); 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) { if (e.resizingEvent) {
2065
2045
  var i = DayPilot.mo3(n.nav.top, t);
2066
2046
  if (!i)
2067
2047
  return;
@@ -2104,7 +2084,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2104
2084
  o < 1 && (o = 1);
2105
2085
  var v = m < p ? r : a;
2106
2086
  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);
2107
- } }; }, this.ja = function () { this.nav.top.style.height = this.getHeight() + "px"; for (var e = 0; e < this.cells.length; e++)
2087
+ } }; }, this.ka = function () { this.nav.top.style.height = this.getHeight() + "px"; for (var e = 0; e < this.cells.length; e++)
2108
2088
  for (var t = 0; t < this.cells[e].length; t++)
2109
2089
  this.cells[e][t].style.top = this.getRowTop(t) + "px", this.cells[e][t].style.height = this.rows[t].getHeight() + "px"; }, this.getCellBelowPoint = function (e, t) { for (var i = Math.floor(this.nav.top.clientWidth / this.getColCount()), a = Math.min(Math.floor(e / i), this.getColCount() - 1), n = null, o = this.headerHeight, r = 0, s = 0; s < this.rows.length; s++) {
2110
2090
  var l = o;
@@ -2113,7 +2093,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2113
2093
  break;
2114
2094
  }
2115
2095
  } null === n && (n = this.rows.length - 1); var d = {}; return d.x = a, d.y = n, d.relativeY = r, d; }, this.getCellFromDate = function (e) { for (var t = DayPilot.DateUtil.daysDiff(this.firstDate, e), i = { x: 0, y: 0 }; t >= 7;)
2116
- i.y++, t -= 7; return i.x = t, i; }, this.Vc = function () { var e = document.createElement("div"); e.oncontextmenu = function () { return !1; }, this.nav.cells.appendChild(e), this.cells = []; for (var t = 0; t < this.getColCount(); t++) {
2096
+ i.y++, t -= 7; return i.x = t, i; }, this.Wc = function () { var e = document.createElement("div"); e.oncontextmenu = function () { return !1; }, this.nav.cells.appendChild(e), this.cells = []; for (var t = 0; t < this.getColCount(); t++) {
2117
2097
  this.cells[t] = [];
2118
2098
  var i = document.createElement("div");
2119
2099
  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";
@@ -2122,18 +2102,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2122
2102
  var n = document.createElement("div");
2123
2103
  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);
2124
2104
  for (var r = 0; r < this.rows.length; r++)
2125
- this.Yc(t, r, e);
2126
- } }, this.Uc = function () { for (var e = 0; e < this.cells.length; e++)
2105
+ this.Zc(t, r, e);
2106
+ } }, this.Vc = function () { for (var e = 0; e < this.cells.length; e++)
2127
2107
  for (var t = 0; t < this.cells[e].length; t++) {
2128
2108
  var i = n.cells[e][t];
2129
- n.Ya(i);
2130
- } this.nav.cells.innerHTML = ""; }, this.Ya = function (e) { !function () { var i = e.domArgs; if (e.domArgs = null, i && "function" == typeof n.onBeforeCellDomRemove && n.onBeforeCellDomRemove(i), i && "function" == typeof n.onBeforeCellDomAdd) {
2131
- var a = i && i.Fa;
2109
+ n.Za(i);
2110
+ } this.nav.cells.innerHTML = ""; }, this.Za = function (e) { !function () { var i = e.domArgs; if (e.domArgs = null, i && "function" == typeof n.onBeforeCellDomRemove && n.onBeforeCellDomRemove(i), i && "function" == typeof n.onBeforeCellDomAdd) {
2111
+ var a = i && i.Ga;
2132
2112
  if (a) {
2133
- var o = n.Zc.reactDOM && isReactCmp(i.element), r = n.Ha.Ga && (isVueCmp(i.element) || t(i.element));
2134
- o ? n.Zc.$c(a) : r && (n.Ha.Ia = !0, n.Ha.Ja(a), n.Ha.Ia = !1);
2113
+ var o = n.$c.reactDOM && isReactCmp(i.element), r = n.Ia.Ha && (isVueCmp(i.element) || t(i.element));
2114
+ o ? n.$c._c(a) : r && (n.Ia.Ja = !0, n.Ia.Ka(a), n.Ia.Ja = !1);
2135
2115
  }
2136
- } }(), e.onclick = null; }, this.qa = function () { return 2 === n.api; }, this.Yc = function (i, a, r) { var s = this.rows[a], l = this.firstDate.addDays(7 * a + i), d = l.getDay(), c = null; c = 1 === d ? o.locale().monthNames[l.getMonth()] + " " + d : "" + d; var u = !n.isWeekend(l), h = { "start": l, "end": l.addDays(1), "properties": { "headerHtml": c, "backColor": null, "business": u, "html": null } }, f = {}; f.control = n, f.cell = h, "function" == typeof n.onBeforeCellRender && n.onBeforeCellRender(f); var m = f.cell.properties, p = document.createElement("div"); 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) {
2116
+ } }(), e.onclick = null; }, this.ra = function () { return 2 === n.api; }, this.Zc = function (i, a, r) { var s = this.rows[a], l = this.firstDate.addDays(7 * a + i), d = l.getDay(), c = null; c = 1 === d ? o.locale().monthNames[l.getMonth()] + " " + d : "" + d; var u = !n.isWeekend(l), h = { "start": l, "end": l.addDays(1), "properties": { "headerHtml": c, "backColor": null, "business": u, "html": null } }, f = {}; f.control = n, f.cell = h, "function" == typeof n.onBeforeCellRender && n.onBeforeCellRender(f); var m = f.cell.properties, p = document.createElement("div"); 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) {
2137
2117
  var u = this.K("_cell_business");
2138
2118
  DayPilot.Util.addClass(p, u);
2139
2119
  } var v = (this.startDate.addMonths(-1).getMonth(), this.startDate.addMonths(1).getMonth(), this.startDate.getMonth(), document.createElement("div")); 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 () { var e = function (e) { var t = new DayPilot.Date(e), i = t.addDays(1); n.M(t, i); }; if ("Disabled" !== n.timeRangeSelectedHandling)
@@ -2149,11 +2129,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2149
2129
  if (e.control = n, e.cell = h, e.element = null, p.domArgs = e, "function" == typeof n.onBeforeCellDomAdd && n.onBeforeCellDomAdd(e), e.element) {
2150
2130
  var i = v;
2151
2131
  if (i) {
2152
- e.Fa = i;
2132
+ e.Ga = i;
2153
2133
  if (t(e.element)) {
2154
- if (!n.Ha.Ga)
2134
+ if (!n.Ia.Ha)
2155
2135
  throw new DayPilot.Exception("Can't reach Vue");
2156
- n.Ha.Ia = !0, n.Ha.La(e.element, i), n.Ha.Ia = !1;
2136
+ n.Ia.Ja = !0, n.Ia.Ma(e.element, i), n.Ia.Ja = !1;
2157
2137
  }
2158
2138
  else
2159
2139
  i.appendChild(e.element);
@@ -2163,10 +2143,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2163
2143
  var e = o.locale();
2164
2144
  return e ? e.weekStarts : 0;
2165
2145
  } return n.weekStarts || 0; }, this.getColCount = function () { return 7; }, this.getCellWidth = function () { return 14.285; }, this.getRowTop = function (e) { for (var t = this.headerHeight, i = 0; i < e; i++)
2166
- t += this.rows[i].getHeight(); return t; }, 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) { var i = e.event; if (i && i.client.clickEnabled())
2167
- if (n.qa()) {
2146
+ t += this.rows[i].getHeight(); return t; }, this.S = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.R(); var n = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl && DayPilot.request(this.backendUrl, this.T, n, this.ajaxError); }, this.T = function (e) { n.U(e.responseText); }, this.R = function () { var e = {}; return e.control = "dpm", e.id = this.id, e.v = this.v, e.visibleStart = new DayPilot.Date(this.firstDate), e.visibleEnd = e.visibleStart.addDays(this.days), e.startDate = n.startDate, e.timeFormat = this.timeFormat, e.weekStarts = this.weekStarts, e; }, this.eventClickCallBack = function (e, t) { this.S("EventClick", t, e); }, this.sa = function (t) { e.movingEvent = null, e.resizingEvent = null; var i = this, t = t || window.event; t.ctrlKey; t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), n.eventClickSingle(i, t); }, this.eventClickSingle = function (e, t) { var i = e.event; if (i && i.client.clickEnabled())
2147
+ if (n.ra()) {
2168
2148
  var a = {};
2169
- 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))
2149
+ if (a.e = i, a.control = n, a.div = e, a.originalEvent = t, a.meta = t.metaKey, a.ctrl = t.ctrlKey, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventClick && (n.ta.apply(function () { n.onEventClick(a); }), a.preventDefault.value))
2170
2150
  return;
2171
2151
  switch (n.eventClickHandling) {
2172
2152
  case "CallBack":
@@ -2176,7 +2156,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2176
2156
  var o = i.client.contextMenu();
2177
2157
  o ? o.show(i) : n.contextMenu && n.contextMenu.show(i);
2178
2158
  }
2179
- "function" == typeof n.onEventClicked && n.sa.apply(function () { n.onEventClicked(a); });
2159
+ "function" == typeof n.onEventClicked && n.ta.apply(function () { n.onEventClicked(a); });
2180
2160
  }
2181
2161
  else
2182
2162
  switch (n.eventClickHandling) {
@@ -2184,7 +2164,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2184
2164
  n.eventClickCallBack(i);
2185
2165
  break;
2186
2166
  case "JavaScript": n.onEventClick(i);
2187
- } }, this.Xc = function () { var e = this; return n.ta(e.event), !1; }, this.ta = function (e) { if (this.event = e, !e.client.rightClickEnabled())
2167
+ } }, this.Yc = function () { var e = this; return n.ua(e.event), !1; }, this.ua = function (e) { if (this.event = e, !e.client.rightClickEnabled())
2188
2168
  return !1; var t = {}; if (t.e = e, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" != typeof n.onEventRightClick || (n.onEventRightClick(t), !t.preventDefault.value)) {
2189
2169
  switch (n.eventRightClickHandling) {
2190
2170
  case "ContextMenu":
@@ -2192,9 +2172,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2192
2172
  i ? i.show(e) : n.contextMenu && n.contextMenu.show(this.event);
2193
2173
  }
2194
2174
  return "function" == typeof n.onEventRightClicked && n.onEventRightClicked(t), !1;
2195
- } }, this.ua = function (e) { if (n.qa()) {
2175
+ } }, this.va = function (e) { if (n.ra()) {
2196
2176
  var t = {};
2197
- 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))
2177
+ if (t.e = e, t.control = n, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventDelete && (n.ta.apply(function () { n.onEventDelete(t); }), t.preventDefault.value))
2198
2178
  return;
2199
2179
  switch (n.eventDeleteHandling) {
2200
2180
  case "CallBack":
@@ -2205,7 +2185,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2205
2185
  break;
2206
2186
  case "Update": n.events.remove(e);
2207
2187
  }
2208
- "function" == typeof n.onEventDeleted && n.sa.apply(function () { n.onEventDeleted(t); });
2188
+ "function" == typeof n.onEventDeleted && n.ta.apply(function () { n.onEventDeleted(t); });
2209
2189
  }
2210
2190
  else
2211
2191
  switch (n.eventDeleteHandling) {
@@ -2218,9 +2198,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2218
2198
  case "JavaScript": n.onEventDelete(e);
2219
2199
  } }, 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) { if (!t)
2220
2200
  throw "newStart is null"; if (!i)
2221
- throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, o.position = n, this.S("EventMove", a, o); }, this.L = function (e, t, i, a, o, r) { var s = e.start().getTimePart(), l = e.end().getDatePart(); l.getTime() !== e.end().getTime() && (l = l.addDays(1)); var d = DayPilot.DateUtil.diff(e.end(), l), c = this.getDateFromCell(t, i); c = c.addDays(-a); var u = DayPilot.DateUtil.daysSpan(e.start(), e.end()) + 1, h = c.addDays(u), f = c.addTime(s), m = h.addTime(d); if (n.qa()) {
2201
+ throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, o.position = n, this.S("EventMove", a, o); }, this.L = function (e, t, i, a, o, r) { var s = e.start().getTimePart(), l = e.end().getDatePart(); l.getTime() !== e.end().getTime() && (l = l.addDays(1)); var d = DayPilot.DateUtil.diff(e.end(), l), c = this.getDateFromCell(t, i); c = c.addDays(-a); var u = DayPilot.DateUtil.daysSpan(e.start(), e.end()) + 1, h = c.addDays(u), f = c.addTime(s), m = h.addTime(d); if (n.ra()) {
2222
2202
  var p = {};
2223
- 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))
2203
+ if (p.e = e, p.control = n, p.newStart = f, p.newEnd = m, p.ctrl = o.ctrlKey, p.shift = o.shiftKey, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventMove && (n.ta.apply(function () { n.onEventMove(p); }), p.preventDefault.value))
2224
2204
  return;
2225
2205
  switch (n.eventMoveHandling) {
2226
2206
  case "CallBack":
@@ -2228,7 +2208,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2228
2208
  break;
2229
2209
  case "Update": e.start(f), e.end(m), n.events.update(e);
2230
2210
  }
2231
- "function" == typeof n.onEventMoved && n.sa.apply(function () { n.onEventMoved(p); });
2211
+ "function" == typeof n.onEventMoved && n.ta.apply(function () { n.onEventMoved(p); });
2232
2212
  }
2233
2213
  else
2234
2214
  switch (n.eventMoveHandling) {
@@ -2238,9 +2218,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2238
2218
  case "JavaScript": n.onEventMove(e, f, m);
2239
2219
  } }, this.eventResizeCallBack = function (e, t, i, a) { if (!t)
2240
2220
  throw "newStart is null"; if (!i)
2241
- throw "newEnd is null"; var n = {}; n.e = e, n.newStart = t, n.newEnd = i, this.S("EventResize", a, n); }, this.J = function (e, t, i) { var a = e.start().getTimePart(), o = e.end().getDatePart(); o.getTime() !== e.end().getTime() && (o = o.addDays(1)); 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); if (n.qa()) {
2221
+ throw "newEnd is null"; var n = {}; n.e = e, n.newStart = t, n.newEnd = i, this.S("EventResize", a, n); }, this.J = function (e, t, i) { var a = e.start().getTimePart(), o = e.end().getDatePart(); o.getTime() !== e.end().getTime() && (o = o.addDays(1)); 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); if (n.ra()) {
2242
2222
  var u = {};
2243
- 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))
2223
+ if (u.e = e, u.control = n, u.newStart = d, u.newEnd = c, u.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventResize && (n.ta.apply(function () { n.onEventResize(u); }), u.preventDefault.value))
2244
2224
  return;
2245
2225
  switch (n.eventResizeHandling) {
2246
2226
  case "CallBack":
@@ -2248,7 +2228,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2248
2228
  break;
2249
2229
  case "Update": e.start(d), e.end(c), n.events.update(e);
2250
2230
  }
2251
- "function" == typeof n.onEventResized && n.sa.apply(function () { n.onEventResized(u); });
2231
+ "function" == typeof n.onEventResized && n.ta.apply(function () { n.onEventResized(u); });
2252
2232
  }
2253
2233
  else
2254
2234
  switch (n.eventResizeHandling) {
@@ -2256,14 +2236,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2256
2236
  n.eventResizeCallBack(e, d, c);
2257
2237
  break;
2258
2238
  case "JavaScript": n.onEventResize(e, d, c);
2259
- } }, this.timeRangeSelectedCallBack = function (e, t, i) { var a = {}; a.start = e, a.end = t, this.S("TimeRangeSelected", i, a); }, this.M = function (e, t) { if (this.qa()) {
2239
+ } }, this.timeRangeSelectedCallBack = function (e, t, i) { var a = {}; a.start = e, a.end = t, this.S("TimeRangeSelected", i, a); }, this.M = function (e, t) { if (this.ra()) {
2260
2240
  var i = {};
2261
- 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))
2241
+ if (i.control = n, i.start = e, i.end = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.ta.apply(function () { n.onTimeRangeSelect(i); }), i.preventDefault.value))
2262
2242
  return;
2263
2243
  switch (n.timeRangeSelectedHandling) {
2264
2244
  case "CallBack": n.timeRangeSelectedCallBack(e, t);
2265
2245
  }
2266
- "function" == typeof n.onTimeRangeSelected && n.sa.apply(function () { n.onTimeRangeSelected(i); });
2246
+ "function" == typeof n.onTimeRangeSelected && n.ta.apply(function () { n.onTimeRangeSelected(i); });
2267
2247
  }
2268
2248
  else
2269
2249
  switch (n.timeRangeSelectedHandling) {
@@ -2271,22 +2251,22 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2271
2251
  n.timeRangeSelectedCallBack(e, t);
2272
2252
  break;
2273
2253
  case "JavaScript": n.onTimeRangeSelected(e, t);
2274
- } }, 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; };
2254
+ } }, this.ta = {}, this.ta.scope = null, this.ta.notify = function () { n.ta.scope && n.ta.scope["$apply"](); }, this.ta.apply = function (e) { e(); }, this.clearSelection = function () { n.clearShadow(); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.S("Command", t, i); }, this.isWeekend = function (e) { return e = new DayPilot.Date(e), 0 === e.dayOfWeek() || 6 === e.dayOfWeek(); }, this.aa = {}, this.aa.locale = function () { var e = DayPilot.Locale.find(n.locale); return e ? e : DayPilot.Locale.US; }, this.aa.ba = function () { return "Disabled" !== n.xssProtection; };
2275
2255
  var o = this.aa;
2276
- 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 () { if (this.id && this.id.tagName)
2256
+ this.debug = function (e, t) { this.debuggingEnabled && (n.debugMessages || (n.debugMessages = []), n.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.dispose = function () { var e = n; e.O || (e.O = !0, e.Vc(), e.W(), e.nav.top.removeAttribute("style"), e.nav.top.removeAttribute("class"), e.nav.top.innerHTML = "", e.nav.top.dp = null, e.nav.top.onmousemove = null, e.nav.top = null); }, this.disposed = function () { return this.O; }, this.hb = function () { e.globalHandlers || (e.globalHandlers = !0, DayPilot.re(document, "mouseup", e.gMouseUp)); }, this.loadFromServer = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof n.events.list || !n.events.list); }, this.t = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { n.visible = !0, n.nav.top.style.display = ""; }, this.hide = function () { n.visible = !1, n.nav.top.style.display = "none"; }, this.ob = function () { if (this.id && this.id.tagName)
2277
2257
  this.nav.top = this.id;
2278
2258
  else {
2279
2259
  if ("string" != typeof this.id)
2280
2260
  throw "DayPilot.Month() constructor requires the target element or its ID as a parameter";
2281
2261
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
2282
2262
  throw "DayPilot.Month: The placeholder element not found: '" + id + "'.";
2283
- } }, 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) { var a = n.Ha.Ga; if ("function" == typeof a.createVNode && "function" == typeof a.render) {
2263
+ } }, this.wb = function () { this.Uc(), this.Oa(), this.Wc(), this.hb(), this.S("Init"); }, this.Sa = function (e, t) { return n.aa.ba() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Ia = {}, this.Ia.Ha = null, this.Ia.Db = function (e, t, i) { var a = n.Ia.Ha; if ("function" == typeof a.createVNode && "function" == typeof a.render) {
2284
2264
  var o = a.createVNode(e, i);
2285
2265
  a.render(o, t);
2286
- } }, this.Ha.La = function (e, t, i) { var a = n.Ha.Ga; if ("function" == typeof a.render) {
2266
+ } }, this.Ia.Ma = function (e, t, i) { var a = n.Ia.Ha; if ("function" == typeof a.render) {
2287
2267
  var o = e;
2288
2268
  DayPilot.isArray(e) && (o = a.h("div", i, e)), a.render(o, t);
2289
- } }, 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);
2269
+ } }, this.Ia.Ka = function (e) { var t = n.Ia.Ha; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = this.kb, this.internal.xssTextHtml = n.Sa, this.internal.enableVue = function (e) { n.Ia.Ha = e; }, this.internal.vueRef = function () { return n.Ia.Ha; }, this.internal.vueRendering = function () { return n.Ia.Ja; }, this.init = function () { return this.ob(), this.loadFromServer() ? void this.wb() : (this.Uc(), this.fa(), this.Oa(), this.Wc(), this.t(), this.la(), this.hb(), this.fireAfterRenderDetached(null, !1), this.Ca = !0, this); }, this.Init = this.init, Object.defineProperty(this, "durationBarVisible", { get: function () { return n.eventBarVisible; } }), this.kb(a);
2290
2270
  }, e.gMouseUp = function (t) { if (e.movingEvent) {
2291
2271
  var i = e.movingEvent;
2292
2272
  if (!i.event)
@@ -2325,7 +2305,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2325
2305
  for (name in e)
2326
2306
  i[name] = e[name];
2327
2307
  i.Init(), t || (t = i);
2328
- } }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotMonth", ["$parse", function (e) { return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) { var n = new DayPilot.Month(i[0]); n.sa.scope = t, n.init(); var o = a["id"]; o && (t[o] = n); var r = a["publishAs"]; if (r) {
2308
+ } }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotMonth", ["$parse", function (e) { return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) { var n = new DayPilot.Month(i[0]); n.ta.scope = t, n.init(); var o = a["id"]; o && (t[o] = n); var r = a["publishAs"]; if (r) {
2329
2309
  (0, e(r).assign)(t, n);
2330
2310
  } for (var s in a)
2331
2311
  0 === s.indexOf("on") && !function (i) { n[i] = function (n) { var o = e(a[i]); t["$apply"](function () { o(t, { "args": n }); }); }; }(s); var l = t["$watch"], d = a["config"] || a["daypilotConfig"], c = a["events"] || a["daypilotEvents"]; l.call(t, d, function (e) { for (var t in e)
@@ -2338,21 +2318,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2338
2318
  if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.def) {
2339
2319
  var e = DayPilot.Util.isVueVNode;
2340
2320
  DayPilot.Navigator = function (t, i) {
2341
- this.v = "2024.4.631-lite";
2321
+ this.v = "2025.1.638-lite";
2342
2322
  var a = this;
2343
- 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 () { if (!r.ad())
2344
- return null; var e = 7; return this.showWeekNumbers && e++, 100 / e; }, 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) {
2323
+ this.id = t, this.api = 2, this.isNavigator = !0, this.autoFocusOnClick = !0, this.weekStarts = "Auto", this.selectMode = "Day", this.titleHeight = 30, this.dayHeaderHeight = 30, this.bound = null, this.cellWidth = 30, this.cellHeight = 30, this.cssClassPrefix = "navigator_default", this.freeHandSelectionEnabled = !1, this.selectionStart = (new DayPilot.Date).getDatePart(), this.selectionEnd = null, this.selectionDay = null, this.showMonths = 1, this.skipMonths = 1, this.command = "navigate", this.year = (new DayPilot.Date).getYear(), this.month = (new DayPilot.Date).getMonth() + 1, this.showWeekNumbers = !1, this.weekNumberAlgorithm = "Auto", this.rowsPerMonth = "Six", this.orientation = "Vertical", this.locale = "en-us", this.rtl = !1, this.visible = !0, this.timeRangeSelectedHandling = "Bind", this.visibleRangeChangedHandling = "Enabled", this.onVisibleRangeChange = null, this.onVisibleRangeChanged = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.nav = {}, this.pb = {}, this.ad = function () { this.root.dp = this, this.root.className = this.K("_main"), "Horizontal" === this.orientation ? (r.bd() || (this.root.style.width = this.showMonths * (7 * r.cellWidth() + this.cd()) + "px"), this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : r.bd() || (this.root.style.width = 7 * r.cellWidth() + this.cd() + "px"), this.rtl && (this.root.style.direction = "rtl"), this.root.style.position = "relative", this.visible || (this.root.style.display = "none"); var e = document.createElement("input"); e.type = "hidden", e.name = a.id + "_state", e.id = e.name, this.root.appendChild(e), this.state = e, this.startDate ? this.startDate = new DayPilot.Date(this.startDate).firstDayOfMonth() : this.selectionDay ? this.startDate = new DayPilot.Date(this.selectionDay).firstDayOfMonth() : this.startDate = DayPilot.Date.fromYearMonthDay(this.year, this.month), this.calendars = [], this.selected = [], this.months = []; }, this.ra = function () { return 2 === a.api; }, this.Vc = function () { this.root.innerHTML = ""; }, this.K = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.dd = function (e, t) { var i = this.K("_" + t); DayPilot.Util.addClass(e, i); }, this.ed = function (e, t) { var i = this.K("_" + t); DayPilot.Util.removeClass(e, i); }, this.fd = function () { if (!r.bd())
2324
+ return null; var e = 7; return this.showWeekNumbers && e++, 100 / e; }, this.gd = function () { return r.bd() ? null : r.cellWidth(); }, this.hd = function (e) { return "number" != typeof e && (e = 1), r.bd() ? this.fd() * e : this.gd() * e; }, this.jd = function (e) { var t = r.bd() ? "%" : "px"; return this.hd(e) + t; }, this.Wc = function (t, i) {
2345
2325
  var n = {};
2346
2326
  n.cells = [], n.days = [], n.weeks = [];
2347
2327
  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;
2348
2328
  n.rowCount = f;
2349
- var m = (new DayPilot.Date).getDatePart(), p = 7 * r.cellWidth() + this.bd();
2329
+ var m = (new DayPilot.Date).getDatePart(), p = 7 * r.cellWidth() + this.cd();
2350
2330
  n.width = p;
2351
2331
  var v = this.cellHeight * f + this.titleHeight + this.dayHeaderHeight;
2352
2332
  n.height = v;
2353
2333
  var y = document.createElement("div");
2354
- 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)
2355
- 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;
2334
+ if (r.bd() ? "Horizontal" === this.orientation && (y.style.width = 100 / a.showMonths + "%") : y.style.width = p + "px", y.style.height = v + "px", "Horizontal" === this.orientation)
2335
+ y.style.position = "absolute", r.bd() ? (y.style.left = 100 / a.showMonths * t + "%", n.leftPct = 100 / a.showMonths * t) : y.style.left = p * t + "px", y.style.top = "0px", n.top = 0, n.left = p * t;
2356
2336
  else {
2357
2337
  y.style.position = "relative";
2358
2338
  var g = t > 0 ? a.months[t - 1].top + a.months[t - 1].height : 0;
@@ -2360,12 +2340,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2360
2340
  }
2361
2341
  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);
2362
2342
  var b = this.titleHeight + this.dayHeaderHeight, D = document.createElement("div");
2363
- 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;
2343
+ D.style.position = "absolute", D.style.left = "0px", D.style.right = "0px", D.style.top = "0px", D.style.width = a.jd(), D.style.height = this.titleHeight + "px", D.style.lineHeight = this.titleHeight + "px", D.setAttribute("unselectable", "on"), D.className = this.K("_titleleft"), i.left && (D.style.cursor = "pointer", D.innerHTML = "<span>&lt;</span>", D.onclick = this.kd), y.appendChild(D), this.tl = D;
2364
2344
  var w = document.createElement("div");
2365
- 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;
2345
+ w.style.position = "absolute", w.style.left = a.jd(), w.style.top = "0px", w.style.width = a.jd(a.showWeekNumbers ? 6 : 5), w.style.height = this.titleHeight + "px", w.style.lineHeight = this.titleHeight + "px", w.setAttribute("unselectable", "on"), w.className = this.K("_title"), w.innerHTML = r.locale().monthNames[o.getMonth()] + " " + o.getYear(), y.appendChild(w), this.ti = w;
2366
2346
  var x = document.createElement("div");
2367
- 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;
2368
- var C = (this.bd(), a.showWeekNumbers ? 1 : 0);
2347
+ x.style.position = "absolute", x.style.left = a.jd(a.showWeekNumbers ? 7 : 6), x.style.right = a.jd(a.showWeekNumbers ? 7 : 6), x.style.top = "0px", x.style.width = a.jd(), x.style.height = this.titleHeight + "px", x.style.lineHeight = this.titleHeight + "px", x.setAttribute("unselectable", "on"), x.className = this.K("_titleright"), i.right && (x.style.cursor = "pointer", x.innerHTML = "<span>&gt;</span>", x.onclick = this.ld), y.appendChild(x), this.tr = x;
2348
+ var C = (this.cd(), a.showWeekNumbers ? 1 : 0);
2369
2349
  if (this.showWeekNumbers)
2370
2350
  for (var P = 0; P < f; P++) {
2371
2351
  var k = c.addDays(7 * P), _ = null;
@@ -2382,68 +2362,67 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2382
2362
  default: throw "Unknown weekNumberAlgorithm value.";
2383
2363
  }
2384
2364
  var S = document.createElement("div");
2385
- 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);
2365
+ S.style.position = "absolute", S.style.left = "0px", S.style.right = "0px", S.style.top = P * this.cellHeight + b + "px", S.style.width = a.jd(), S.style.height = this.cellHeight + "px", S.style.lineHeight = this.cellHeight + "px", S.setAttribute("unselectable", "on"), S.className = this.K("_weeknumber"), S.innerHTML = "<span>" + _ + "</span>", y.appendChild(S), n.weeks.push(S);
2386
2366
  }
2387
2367
  for (var M = 0; M < 7; M++) {
2388
2368
  n.cells[M] = [];
2389
2369
  var S = document.createElement("div");
2390
- 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);
2370
+ S.style.position = "absolute", S.style.left = a.jd(M + C), S.style.right = a.jd(M + C), S.style.top = this.titleHeight + "px", S.style.width = a.jd(), S.style.height = this.dayHeaderHeight + "px", S.style.lineHeight = this.dayHeaderHeight + "px", S.setAttribute("unselectable", "on"), S.className = this.K("_dayheader"), S.innerHTML = "<span>" + this.md(M) + "</span>", y.appendChild(S), n.days.push(S);
2391
2371
  for (var P = 0; P < f; P++) {
2392
- var k = c.addDays(7 * P + M), H = this.md(k) && "none" !== this.nd(), A = k.firstDayOfMonth() === o, T = k < o, E = k >= o.addMonths(1);
2393
- if ("month" === this.nd())
2394
- H = H && A;
2395
- else if ("day" === this.nd())
2396
- H = H && (A || s && T || l && E);
2397
- else if ("week" === this.nd()) {
2398
- var N = k.firstDayOfMonth() === o;
2399
- H = H && (N || s && T || l && E);
2372
+ var k = c.addDays(7 * P + M), A = this.nd(k) && "none" !== this.od(), T = k.firstDayOfMonth() === o, H = k < o, E = k >= o.addMonths(1);
2373
+ if ("month" === this.od())
2374
+ A = A && T;
2375
+ else if ("day" === this.od())
2376
+ A = A && (T || s && H || l && E);
2377
+ else if ("week" === this.od()) {
2378
+ var I = k.firstDayOfMonth() === o;
2379
+ A = A && (I || s && H || l && E);
2400
2380
  }
2401
- var I = document.createElement("div");
2402
- n.cells[M][P] = I;
2403
- var R = a.od(M, P), B = R.x, z = R.y, O = r.ad() ? "%" : "px";
2404
- I.day = k, I.x = M, I.y = P, I.left = B, I.top = z, I.isCurrentMonth = A, I.isNextMonth = E, I.isPrevMonth = T, I.showBefore = s, I.showAfter = l, I.className = this.K(A ? "_day" : "_dayother"), a.cd(I, "cell"), k.getTime() === m.getTime() && A && this.cd(I, "today"), 0 !== k.dayOfWeek() && 6 !== k.dayOfWeek() || this.cd(I, "weekend"), I.style.position = "absolute", I.style.left = B + O, I.style.right = B + O, I.style.top = z + "px", I.style.width = a.hd(), I.style.height = this.cellHeight + "px", I.style.lineHeight = this.cellHeight + "px";
2381
+ var N = document.createElement("div");
2382
+ n.cells[M][P] = N;
2383
+ var R = a.pd(M, P), O = R.x, z = R.y, B = r.bd() ? "%" : "px";
2384
+ N.day = k, N.x = M, N.y = P, N.left = O, N.top = z, N.isCurrentMonth = T, N.isNextMonth = E, N.isPrevMonth = H, N.showBefore = s, N.showAfter = l, N.className = this.K(T ? "_day" : "_dayother"), a.dd(N, "cell"), k.getTime() === m.getTime() && T && this.dd(N, "today"), 0 !== k.dayOfWeek() && 6 !== k.dayOfWeek() || this.dd(N, "weekend"), N.style.position = "absolute", N.style.left = O + B, N.style.right = O + B, N.style.top = z + "px", N.style.width = a.jd(), N.style.height = this.cellHeight + "px", N.style.lineHeight = this.cellHeight + "px";
2405
2385
  var U = document.createElement("div");
2406
- U.style.position = "absolute", U.className = k.getTime() === m.getTime() && A ? this.K("_todaybox") : this.K("_daybox"), a.cd(U, "cell_box"), U.style.left = "0px", U.style.top = "0px", U.style.right = "0px", U.style.bottom = "0px", I.appendChild(U);
2386
+ U.style.position = "absolute", U.className = k.getTime() === m.getTime() && T ? this.K("_todaybox") : this.K("_daybox"), a.dd(U, "cell_box"), U.style.left = "0px", U.style.top = "0px", U.style.right = "0px", U.style.bottom = "0px", N.appendChild(U);
2407
2387
  var L = null;
2408
2388
  this.cells && this.cells[k.toStringSortable()] && (L = this.cells[k.toStringSortable()]);
2409
2389
  var j = L || {};
2410
- if (j.day = k, j.isCurrentMonth = A, j.isToday = k.getTime() === m.getTime() && A, j.isWeekend = 0 === k.dayOfWeek() || 6 === k.dayOfWeek(), L ? (j.html = L.html || k.getDay(), j.cssClass = L.css) : (j.html = k.getDay(), j.cssClass = null), "function" == typeof a.onBeforeCellRender) {
2390
+ 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) {
2411
2391
  var W = {};
2412
- W.cell = j, a.onBeforeCellRender(W), L = W.cell;
2392
+ W.cell = j,
2393
+ a.onBeforeCellRender(W), L = W.cell;
2413
2394
  }
2414
- if (L && DayPilot.Util.addClass(I, L.cssClass || L.css), A || s && T || l && E) {
2395
+ if (L && DayPilot.Util.addClass(N, L.cssClass || L.css), T || s && H || l && E) {
2415
2396
  var F = document.createElement("div");
2416
- 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);
2397
+ F.innerHTML = k.getDay(), F.style.position = "absolute", F.style.left = "0px", F.style.top = "0px", F.style.right = "0px", F.style.bottom = "0px", a.dd(F, "cell_text"), N.isClickable = !0, L && L.html && (F.innerHTML = L.html), N.appendChild(F);
2417
2398
  }
2418
- I.setAttribute("unselectable", "on"), I.onclick = this.pd, function () {
2419
- if ("function" == typeof a.onBeforeCellDomAdd || "function" == typeof a.onBeforeCellDomRemove) {
2420
- var t = {};
2421
- if (t.control = a, t.cell = j, t.element = null, I.domArgs = t, "function" == typeof a.onBeforeCellDomAdd && a.onBeforeCellDomAdd(t), t.element) {
2422
- var i = U;
2423
- if (i) {
2424
- t.Fa = i;
2425
- if (e(t.element)) {
2426
- if (!a.Ha.Ga)
2427
- throw new DayPilot.Exception("Can't reach Vue");
2428
- a.Ha.Ia = !0, a.Ha.La(t.element, i), a.Ha.Ia = !1;
2429
- }
2430
- else
2431
- i.appendChild(t.element);
2399
+ N.setAttribute("unselectable", "on"), N.onclick = this.qd, function () { if ("function" == typeof a.onBeforeCellDomAdd || "function" == typeof a.onBeforeCellDomRemove) {
2400
+ var t = {};
2401
+ if (t.control = a, t.cell = j, t.element = null, N.domArgs = t, "function" == typeof a.onBeforeCellDomAdd && a.onBeforeCellDomAdd(t), t.element) {
2402
+ var i = U;
2403
+ if (i) {
2404
+ t.Ga = i;
2405
+ if (e(t.element)) {
2406
+ if (!a.Ia.Ha)
2407
+ throw new DayPilot.Exception("Can't reach Vue");
2408
+ a.Ia.Ja = !0, a.Ia.Ma(t.element, i), a.Ia.Ja = !1;
2432
2409
  }
2410
+ else
2411
+ i.appendChild(t.element);
2433
2412
  }
2434
2413
  }
2435
- }(), y.appendChild(I), H && (a.qd(y, M, P), this.selected.push(I));
2414
+ } }(), y.appendChild(N), A && (a.rd(y, M, P), this.selected.push(N));
2436
2415
  }
2437
2416
  }
2438
2417
  var J = document.createElement("div");
2439
- 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);
2440
- }, this.od = function (e, t) { var i = this.titleHeight + this.dayHeaderHeight, n = (this.bd(), this.showWeekNumbers ? 1 : 0); return { "x": a.gd(e + n), "y": t * this.cellHeight + i }; }, this.qd = function (e, t, i) { var n = e.month.cells[t][i]; a.cd(n, "select"); }, this.rd = function (e, t, i) { var n = e.month.cells[t][i]; a.dd(n, "select"); }, this.bd = function () { return this.showWeekNumbers ? r.cellWidth() : 0; }, this.sd = function () { if (this.items)
2418
+ J.style.position = "absolute", J.style.left = "0px", J.style.top = b - 2 + "px", J.style.width = a.jd(7 + C), J.style.height = "1px", J.style.fontSize = "1px", J.style.lineHeight = "1px", J.className = this.K("_line"), y.appendChild(J), this.months.push(n);
2419
+ }, this.pd = function (e, t) { var i = this.titleHeight + this.dayHeaderHeight, n = (this.cd(), this.showWeekNumbers ? 1 : 0); return { "x": a.hd(e + n), "y": t * this.cellHeight + i }; }, this.rd = function (e, t, i) { var n = e.month.cells[t][i]; a.dd(n, "select"); }, this.sd = function (e, t, i) { var n = e.month.cells[t][i]; a.ed(n, "select"); }, this.cd = function () { return this.showWeekNumbers ? r.cellWidth() : 0; }, this.td = function () { if (this.items)
2441
2420
  for (var e = 0; e < this.showMonths; e++)
2442
2421
  for (var t = 0; t < 7; t++)
2443
2422
  for (var i = 0; i < 6; i++) {
2444
2423
  var a = this.months[e].cells[t][i];
2445
- a && (1 === this.items[a.day.toStringSortable()] ? (this.cd(a, "busy"), this.dd(a, "free")) : (this.dd(a, "busy"), this.cd(a, "free")));
2446
- } }, 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 () { var e = this.selectionDay || this.selectionStart; switch (e || (e = DayPilot.Date.today()), e = new DayPilot.Date(e), this.nd()) {
2424
+ a && (1 === this.items[a.day.toStringSortable()] ? (this.dd(a, "busy"), this.ed(a, "free")) : (this.ed(a, "busy"), this.dd(a, "free")));
2425
+ } }, this.ud = function () { var e = {}; e.startDate = a.startDate, e.selectionStart = a.selectionStart, e.selectionEnd = a.selectionEnd.addDays(1), a.state.value = JSON.stringify(e); }, this.od = function () { return (this.selectMode || "").toLowerCase(); }, this.vd = function () { var e = this.selectionDay || this.selectionStart; switch (e || (e = DayPilot.Date.today()), e = new DayPilot.Date(e), this.od()) {
2447
2426
  case "day":
2448
2427
  this.selectionStart = e, this.selectionDay = e, this.selectionEnd = e;
2449
2428
  break;
@@ -2457,19 +2436,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2457
2436
  this.selectionEnd = e;
2458
2437
  break;
2459
2438
  default: throw "Unknown selectMode value.";
2460
- } }, this.vd = null, this.select = function (e, t, i) { 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; if (!this.Ba)
2461
- return void (this.vd = { "date1": r, "date2": s, "options": l }); var d = !0, c = !0; l && "object" == typeof l ? (l.dontFocus && (d = !1), l.dontNotify && (c = !1)) : "boolean" == typeof l && (d = !l); var u = this.selectionStart, h = this.selectionEnd; this.selectionStart = new DayPilot.Date(r).getDatePart(), this.selectionDay = this.selectionStart; var f = !1; if (d) {
2439
+ } }, this.wd = null, this.select = function (e, t, i) { 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; if (!this.Ca)
2440
+ return void (this.wd = { "date1": r, "date2": s, "options": l }); var d = !0, c = !0; l && "object" == typeof l ? (l.dontFocus && (d = !1), l.dontNotify && (c = !1)) : "boolean" == typeof l && (d = !l); var u = this.selectionStart, h = this.selectionEnd; this.selectionStart = new DayPilot.Date(r).getDatePart(), this.selectionDay = this.selectionStart; var f = !1; if (d) {
2462
2441
  var m = this.startDate;
2463
- (this.selectionStart < this.wd() || this.selectionStart >= this.xd()) && (m = this.selectionStart.firstDayOfMonth()), m.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = m;
2464
- } 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(); }, this.update = function (e) { if (a.jb(e), this.Ba) {
2442
+ (this.selectionStart < this.xd() || this.selectionStart >= this.yd()) && (m = this.selectionStart.firstDayOfMonth()), m.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = m;
2443
+ } s && a.freeHandSelectionEnabled ? a.selectionEnd = new DayPilot.Date(s) : this.vd(), this.Vc(), this.ad(), this.zd(), this.td(), this.ud(), !c || u.equals(this.selectionStart) && h.equals(this.selectionEnd) || this.M(), f && this.Ad(); }, this.update = function (e) { if (a.kb(e), this.Ca) {
2465
2444
  if (a.O)
2466
2445
  throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed.");
2467
- a.Ad();
2446
+ a.Bd();
2468
2447
  var t = { "day": a.selectionDay, "start": a.selectionStart, "end": a.selectionEnd };
2469
- a.hb(), t.start === a.selectionStart && t.end === a.selectionEnd && t.day === a.selectionDay || a.M();
2470
- } }, 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) { if (e) {
2448
+ a.ib(), t.start === a.selectionStart && t.end === a.selectionEnd && t.day === a.selectionDay || a.M();
2449
+ } }, this.ib = function () { this.Vc(), this.ad(), this.vd(), this.zd(), this.fa(), this.td(), this.ud(), this.visible ? this.show() : this.hide(); }, this.Bd = function () { a.pb = {}; }, this.mb = null, this.kb = function (e) { if (e) {
2471
2450
  var t = { "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? a.events.list = e.list : a.events.list = e); } } };
2472
- this.lb = t;
2451
+ this.mb = t;
2473
2452
  for (var i in e)
2474
2453
  if (t[i]) {
2475
2454
  var n = t[i];
@@ -2477,15 +2456,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2477
2456
  }
2478
2457
  else
2479
2458
  a[i] = e[i];
2480
- } }, this.mb = function () { var e = this.lb; for (var t in e) {
2459
+ } }, this.nb = function () { var e = this.mb; for (var t in e) {
2481
2460
  var i = e[t];
2482
2461
  i.postInit && i.postInit();
2483
- } }, 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) { if ("function" == typeof a.onAjaxError) {
2462
+ } }, this.S = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.R(); var n = "JSON" + JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.T, n, this.Cd) : WebForm_DoCallback(this.uniqueID, n, this.U, null, this.callbackError, !0); }, this.Cd = function (e) { if ("function" == typeof a.onAjaxError) {
2484
2463
  var t = {};
2485
2464
  t.request = e, a.onAjaxError(t);
2486
2465
  }
2487
2466
  else
2488
- "function" == typeof a.ajaxError && a.ajaxError(e); }, 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) { for (var t = 0; t < a.months.length; t++) {
2467
+ "function" == typeof a.ajaxError && a.ajaxError(e); }, this.T = function (e) { a.U(e.responseText); }, this.Q = function (e, t, i) { var n = {}; n.action = e, n.parameters = i, n.data = t, n.header = this.R(); var o = "JSON" + JSON.stringify(n); __doPostBack(a.uniqueID, o); }, this.R = function () { var e = {}; return e.v = this.v, e.startDate = this.startDate, e.selectionStart = this.selectionStart, e.showMonths = this.showMonths, e; }, this.Dd = function (e, t) { "refresh" === e && this.Ad(); }, this.md = function (e) { var t = e + r.weekStarts(); return t > 6 && (t -= 7), r.locale().dayNamesShort[t]; }, this.nd = function (e) { return null !== this.selectionStart && null !== this.selectionEnd && (this.selectionStart.getTime() <= e.getTime() && e.getTime() <= this.selectionEnd.getTime()); }, this.Ed = function (e) { for (var t = 0; t < a.months.length; t++) {
2489
2468
  var i = a.months[t];
2490
2469
  if (!i)
2491
2470
  return null;
@@ -2496,19 +2475,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2496
2475
  if (i.top <= e.y && e.y < i.top + i.height)
2497
2476
  return t;
2498
2477
  }
2499
- } return null; }, this.Ed = function (e) { }, this.Fd = function () { if (!r.ad())
2500
- return void (a.Gd = a.cellWidth); var e = a.months[0].cells[0][0], t = e.clientWidth; 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; }); }); }); }, this.Hd = function (e) { a.Fd(); var t = DayPilot.mo3(a.nav.top, e), i = a.Dd(t); if (null === i)
2478
+ } return null; }, this.Fd = function (e) { }, this.Gd = function () { if (!r.bd())
2479
+ return void (a.Hd = a.cellWidth); var e = a.months[0].cells[0][0], t = e.clientWidth; a.Hd = t, a.months.forEach(function (e) { e.width = e.div.clientWidth, "Horizontal" === a.orientation && (e.left = e.div.offsetLeft), e.cells.forEach(function (e, i) { e.forEach(function (e, a) { e.width = t, e.left = i * t; }); }); }); }, this.Id = function (e) { a.Gd(); var t = DayPilot.mo3(a.nav.top, e), i = a.Ed(t); if (null === i)
2501
2480
  return null; var n = a.months[i], o = this.titleHeight + this.dayHeaderHeight; if (n.top <= t.y && t.y < n.top + o)
2502
2481
  return { "month": i, "x": 0, "y": 0, "coords": t, "header": !0 }; for (var r = 0; r < n.cells.length; r++)
2503
2482
  for (var s = 0; s < n.cells[r].length; s++) {
2504
2483
  var l = n.cells[r][s], d = l.top + n.top, c = l.left + n.left;
2505
- if (c <= t.x && t.x < c + a.Gd && d <= t.y && t.y < d + a.cellHeight)
2484
+ if (c <= t.x && t.x < c + a.Hd && d <= t.y && t.y < d + a.cellHeight)
2506
2485
  return { "month": i, "x": r, "y": s, "coords": t };
2507
- } return null; }, this.Id = function (e) { if (a.freeHandSelectionEnabled) {
2508
- var t = a.Hd(e);
2486
+ } return null; }, this.Jd = function (e) { if (a.freeHandSelectionEnabled) {
2487
+ var t = a.Id(e);
2509
2488
  t && !t.header && (n.start = t), a.months[t.month].cells[t.x][t.y], e.preventDefault();
2510
- } }, this.Jd = function (e) { if (n.start) {
2511
- var t = a.Hd(e);
2489
+ } }, this.Kd = function (e) { if (n.start) {
2490
+ var t = a.Id(e);
2512
2491
  if (n.end)
2513
2492
  n.end = t;
2514
2493
  else if (t) {
@@ -2516,11 +2495,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2516
2495
  o > i && (n.end = t);
2517
2496
  }
2518
2497
  n.end && (n.clear(), n.draw());
2519
- } }, this.Kd = {};
2520
- var n = this.Kd;
2521
- n.start = null, n.drawCell = function (e) { 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(); if (r.ad()) {
2498
+ } }, this.Ld = {};
2499
+ var n = this.Ld;
2500
+ n.start = null, n.drawCell = function (e) { var t = a.months[e.month], i = a.pd(e.x, e.y), o = t.top + i.y, s = t.left + i.x, l = "px", d = a.jd(); if (r.bd()) {
2522
2501
  var c = "Horizontal" === a.orientation ? a.showMonths : 1;
2523
- s = t.leftPct + i.x / c, l = "%", d = a.hd(1 / c);
2502
+ s = t.leftPct + i.x / c, l = "%", d = a.jd(1 / c);
2524
2503
  } var u = document.createElement("div"); 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); }, n.clear = function () { if (n.cells) {
2525
2504
  for (var e = 0; e < n.cells.length; e++)
2526
2505
  a.nav.preselection.removeChild(n.cells[e]);
@@ -2563,49 +2542,49 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2563
2542
  return null;
2564
2543
  e = new o(t);
2565
2544
  } return e; }, 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(); }; };
2566
- this.pd = function (e) { var t = this.parentNode, i = this.parentNode.month, n = this.x, o = this.y, r = i.cells[n][o].day; if (i.cells[n][o].isClickable) {
2545
+ this.qd = function (e) { var t = this.parentNode, i = this.parentNode.month, n = this.x, o = this.y, r = i.cells[n][o].day; if (i.cells[n][o].isClickable) {
2567
2546
  a.clearSelection(), a.selectionDay = r;
2568
2547
  var r = a.selectionDay;
2569
- switch (a.nd()) {
2548
+ switch (a.od()) {
2570
2549
  case "none":
2571
2550
  a.selectionStart = r, a.selectionEnd = r;
2572
2551
  break;
2573
2552
  case "day":
2574
2553
  if (a.autoFocusOnClick) {
2575
2554
  var s = r;
2576
- if (r < a.wd() || r >= a.xd())
2555
+ if (r < a.xd() || r >= a.yd())
2577
2556
  return void a.select(r);
2578
2557
  }
2579
2558
  var l = i.cells[n][o];
2580
- a.qd(t, n, o), a.selected.push(l), a.selectionStart = l.day, a.selectionEnd = l.day;
2559
+ a.rd(t, n, o), a.selected.push(l), a.selectionStart = l.day, a.selectionEnd = l.day;
2581
2560
  break;
2582
2561
  case "week":
2583
2562
  if (a.autoFocusOnClick) {
2584
2563
  var s = i.cells[0][o].day, d = i.cells[6][o].day;
2585
- if (s.firstDayOfMonth() === d.firstDayOfMonth() && (s < a.wd() || d >= a.xd()))
2564
+ if (s.firstDayOfMonth() === d.firstDayOfMonth() && (s < a.xd() || d >= a.yd()))
2586
2565
  return void a.select(r);
2587
2566
  }
2588
2567
  for (var c = 0; c < 7; c++)
2589
- a.qd(t, c, o), a.selected.push(i.cells[c][o]);
2568
+ a.rd(t, c, o), a.selected.push(i.cells[c][o]);
2590
2569
  a.selectionStart = i.cells[0][o].day, a.selectionEnd = i.cells[6][o].day;
2591
2570
  break;
2592
2571
  case "month":
2593
2572
  if (a.autoFocusOnClick) {
2594
2573
  var s = r;
2595
- if (r < a.wd() || r >= a.xd())
2574
+ if (r < a.xd() || r >= a.yd())
2596
2575
  return void a.select(r);
2597
2576
  }
2598
2577
  for (var s = null, d = null, o = 0; o < 6; o++)
2599
2578
  for (var n = 0; n < 7; n++) {
2600
2579
  var l = i.cells[n][o];
2601
- 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);
2580
+ l && l.day.getYear() === r.getYear() && l.day.getMonth() === r.getMonth() && (a.rd(t, n, o), a.selected.push(l), null === s && (s = l.day), d = l.day);
2602
2581
  }
2603
2582
  a.selectionStart = s, a.selectionEnd = d;
2604
2583
  break;
2605
2584
  default: throw "unknown selectMode";
2606
2585
  }
2607
- a.td(), a.M();
2608
- } }, this.M = function (e) { var t = a.selectionStart, i = a.selectionEnd.addDays(1), n = DayPilot.DateUtil.daysDiff(t, i), o = a.selectionDay; if (e = e || {}, a.qa()) {
2586
+ a.ud(), a.M();
2587
+ } }, this.M = function (e) { var t = a.selectionStart, i = a.selectionEnd.addDays(1), n = DayPilot.DateUtil.daysDiff(t, i), o = a.selectionDay; if (e = e || {}, a.ra()) {
2609
2588
  var r = {};
2610
2589
  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))
2611
2590
  return;
@@ -2634,7 +2613,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2634
2613
  break;
2635
2614
  case "None": break;
2636
2615
  case "PostBack": a.timeRangeSelectedPostBack(t, i, o);
2637
- } }, 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 () { var e = this.visibleStart(), t = this.visibleEnd(); if (a.qa()) {
2616
+ } }, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, n.day = a, this.Q("TimeRangeSelected", i, n); }, this.ld = function (e) { a.Md(a.skipMonths); }, this.kd = function (e) { a.Md(-a.skipMonths); }, this.Md = function (e) { this.startDate = this.startDate.addMonths(e), this.Vc(), this.ad(), this.zd(), this.ud(), this.Ad(), this.td(); }, this.xd = function () { return a.startDate.firstDayOfMonth(); }, this.yd = function () { return a.startDate.firstDayOfMonth().addMonths(this.showMonths); }, this.visibleStart = function () { return a.startDate.firstDayOfMonth().firstDayOfWeek(r.weekStarts()); }, this.visibleEnd = function () { return a.startDate.firstDayOfMonth().addMonths(this.showMonths - 1).firstDayOfWeek(r.weekStarts()).addDays(42); }, this.Ad = function () { var e = this.visibleStart(), t = this.visibleEnd(); if (a.ra()) {
2638
2617
  var i = {};
2639
2618
  if (i.start = e, i.end = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onVisibleRangeChange && (a.onVisibleRangeChange(i), i.preventDefault.value))
2640
2619
  return;
@@ -2661,10 +2640,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2661
2640
  this.onVisibleRangeChanged(e, t);
2662
2641
  break;
2663
2642
  case "Disabled":
2664
- } }, 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 () { for (var e = 0; e < this.showMonths; e++) {
2665
- var t = this.Md(e);
2666
- this.Vc(e, t);
2667
- } 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); }, this.Nd = function () { if ("Horizontal" === this.orientation) {
2643
+ } }, this.visibleRangeChangedCallBack = function (e) { var t = {}; this.S("Visible", e, t); }, this.visibleRangeChangedPostBack = function (e) { var t = {}; this.Q("Visible", e, t); }, this.U = function (e, t) { var e = JSON.parse(e); a.items = e.Items, a.cells = e.Cells, a.cells ? a.update() : a.td(); }, this.zd = function () { for (var e = 0; e < this.showMonths; e++) {
2644
+ var t = this.Nd(e);
2645
+ this.Wc(e, t);
2646
+ } this.root.style.height = this.Od() + "px", this.nav.preselection = document.createElement("div"), this.nav.preselection.style.position = "absolute", this.nav.preselection.style.left = "0px", this.nav.preselection.style.right = "0px", this.nav.preselection.style.top = "0px", this.root.appendChild(this.nav.preselection); }, this.Od = function () { if ("Horizontal" === this.orientation) {
2668
2647
  for (var e = 0, t = 0; t < this.months.length; t++) {
2669
2648
  var i = this.months[t];
2670
2649
  i.height > e && (e = i.height);
@@ -2673,70 +2652,70 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2673
2652
  } for (var a = 0, t = 0; t < this.months.length; t++) {
2674
2653
  var i = this.months[t];
2675
2654
  a += i.height;
2676
- } return a; }, this.Md = function (e) { if (this.internal.showLinks)
2677
- return this.internal.showLinks; var t = {}; 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; }, 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) { var n = a.Ha.Ga; if ("function" == typeof n.createVNode && "function" == typeof n.render) {
2655
+ } return a; }, this.Nd = function (e) { if (this.internal.showLinks)
2656
+ return this.internal.showLinks; var t = {}; 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; }, this.ta = {}, this.ta.scope = null, this.ta.notify = function () { a.ta.scope && a.ta.scope["$apply"](); }, this.Ia = {}, this.Ia.Ha = null, this.Ia.Db = function (e, t, i) { var n = a.Ia.Ha; if ("function" == typeof n.createVNode && "function" == typeof n.render) {
2678
2657
  var o = n.createVNode(e, i);
2679
2658
  n.render(o, t);
2680
- } }, this.Ha.La = function (e, t) { var i = a.Ha.Ga; if ("function" == typeof i.render) {
2659
+ } }, this.Ia.Ma = function (e, t) { var i = a.Ia.Ha; if ("function" == typeof i.render) {
2681
2660
  var n = e;
2682
2661
  DayPilot.isArray(e) && (n = i.h("div", null, e)), i.render(n, t);
2683
- } }, 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 = {};
2662
+ } }, this.Ia.Ka = function (e) { var t = a.Ia.Ha; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = a.kb, this.internal.initialized = function () { return a.Ca; }, this.internal.vueRendering = function () { return !1; }, this.internal.enableVue = function (e) { a.Ia.Ha = e; }, this.internal.vueRef = function () { return a.Ia.Ha; }, this.internal.vueRendering = function () { return a.Ia.Ja; }, this.aa = {};
2684
2663
  var r = this.aa;
2685
2664
  r.locale = function () { return DayPilot.Locale.find(a.locale); }, r.weekStarts = function () { if ("Auto" === a.weekStarts) {
2686
2665
  var e = r.locale();
2687
2666
  return e ? e.weekStarts : 0;
2688
- } return a.weekStarts; }, r.cellWidth = function () { if (a.ob.cellWidth)
2689
- return a.ob.cellWidth; var e = a.Od("_cell_dimensions").width; return e || (e = a.cellWidth), a.ob.cellWidth = e, e; }, r.ad = function () { return "Auto" === a.aa.cellWidth(); }, this.clearSelection = function () { for (var e = 0; e < this.selected.length; e++) {
2667
+ } return a.weekStarts; }, r.cellWidth = function () { if (a.pb.cellWidth)
2668
+ return a.pb.cellWidth; var e = a.Pd("_cell_dimensions").width; return e || (e = a.cellWidth), a.pb.cellWidth = e, e; }, r.bd = function () { return "Auto" === a.aa.cellWidth(); }, this.clearSelection = function () { for (var e = 0; e < this.selected.length; e++) {
2690
2669
  var t = this.selected[e];
2691
- a.rd(t.parentNode, t.x, t.y);
2692
- } this.selected = []; }, this.Pd = function () { return !!this.backendUrl && ("undefined" == typeof a.items || !a.items); }, this.events = {}, this.ea = function () { if (DayPilot.isArray(this.events.list)) {
2670
+ a.sd(t.parentNode, t.x, t.y);
2671
+ } this.selected = []; }, this.Qd = function () { return !!this.backendUrl && ("undefined" == typeof a.items || !a.items); }, this.events = {}, this.fa = function () { if (DayPilot.isArray(this.events.list)) {
2693
2672
  this.items = {};
2694
2673
  for (var e = 0; e < this.events.list.length; e++) {
2695
2674
  var t = this.events.list[e];
2696
2675
  if (!t.hidden) {
2697
- var i = this.Qd(t);
2676
+ var i = this.Rd(t);
2698
2677
  for (var a in i)
2699
2678
  this.items[a] = 1;
2700
2679
  }
2701
2680
  }
2702
- } }, 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) { for (var t = new DayPilot.Date(e.start), i = new DayPilot.Date(e.end), a = {}, n = t.getDatePart(); n.getTime() <= i.getTime();)
2703
- a[n.toStringSortable()] = 1, n = n.addDays(1); return a; }, this.show = function () { a.visible = !0, a.root.style.display = ""; }, this.hide = function () { a.visible = !1, a.root.style.display = "none"; }, this.nb = function () { if (this.id && this.id.tagName)
2681
+ } }, this.Pd = function (e) { var t = document.createElement("div"); t.style.position = "absolute", t.style.top = "-2000px", t.style.left = "-2000px", t.className = this.K(e); var i = a.root || document.body; i.appendChild(t); var n = t.offsetHeight, o = t.offsetWidth; i.removeChild(t); var r = {}; return r.height = n, r.width = o, r; }, this.Rd = function (e) { for (var t = new DayPilot.Date(e.start), i = new DayPilot.Date(e.end), a = {}, n = t.getDatePart(); n.getTime() <= i.getTime();)
2682
+ a[n.toStringSortable()] = 1, n = n.addDays(1); return a; }, this.show = function () { a.visible = !0, a.root.style.display = ""; }, this.hide = function () { a.visible = !1, a.root.style.display = "none"; }, this.ob = function () { if (this.id && this.id.tagName)
2704
2683
  this.nav.top = this.id;
2705
2684
  else {
2706
2685
  if ("string" != typeof this.id)
2707
2686
  throw "DayPilot.Navigator() constructor requires the target element or its ID as a parameter";
2708
2687
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
2709
2688
  throw "DayPilot.Navigator: The placeholder element not found: '" + t + "'.";
2710
- } this.root = this.nav.top; }, this.init = function () { if (this.nb(), !this.root.dp) {
2711
- this.ud(), this._c(), this.yd(), this.ea(), this.sd(), this.Z(), this.Rd(), this.gb();
2712
- if (this.Pd() && this.zd(), this.Ba = !0, this.mb(), this.vd) {
2713
- var e = this.vd;
2714
- this.select(e.date1, e.date2, e.options), this.vd = null;
2689
+ } this.root = this.nav.top; }, this.init = function () { if (this.ob(), !this.root.dp) {
2690
+ this.vd(), this.ad(), this.zd(), this.fa(), this.td(), this.Z(), this.Sd(), this.hb();
2691
+ if (this.Qd() && this.Ad(), this.Ca = !0, this.nb(), this.wd) {
2692
+ var e = this.wd;
2693
+ this.select(e.date1, e.date2, e.options), this.wd = null;
2715
2694
  }
2716
2695
  return this;
2717
- } }, 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) { if (n.start && n.end) {
2696
+ } }, this.Sd = function () { a.nav.top.onmousedown = this.Jd, a.nav.top.onmousemove = this.Kd; }, this.hb = function () { DayPilot.re(document, "mouseup", a.Td); }, this.Td = function (e) { if (n.start && n.end) {
2718
2697
  var t = DayPilot.mo3(a.nav.top, e);
2719
2698
  if (t.x === n.start.coords.x && t.y === n.start.coords.y)
2720
2699
  return n.start = null, void n.clear();
2721
2700
  n.clear();
2722
2701
  var i = n.ordered();
2723
- 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();
2702
+ i.start = new o(i.start).nextVisible(), i.end = new o(i.end).previousVisible(), a.selectionDay = new o(i.start).date(), a.selectionStart = a.selectionDay, a.selectionEnd = new o(i.end).date(), n.start = null, n.end = null, a.Vc(), a.ad(), a.zd(), a.td(), a.ud();
2724
2703
  a.M({ "mode": "FreeHand" });
2725
- } n.start = null, n.end = null; }, 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);
2704
+ } n.start = null, n.end = null; }, this.dispose = function () { var e = a; e.root && (e.root.removeAttribute("style"), e.root.removeAttribute("class"), e.root.dp = null, e.root.innerHTML = null, e.root = null, e.O = !0); }, this.Z = function () { this.root.dispose = this.dispose; }, this.Init = this.init, this.kb(i);
2726
2705
  }, "undefined" != typeof jQuery && !function (e) { e.fn.daypilotNavigator = function (e) { var t = null, i = this.each(function () { if (!this.daypilot) {
2727
2706
  var i = new DayPilot.Navigator(this.id);
2728
2707
  this.daypilot = i;
2729
2708
  for (var a in e)
2730
2709
  i[a] = e[a];
2731
2710
  i.Init(), t || (t = i);
2732
- } }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotNavigator", ["$parse", function (e) { return { "restrict": "E", "template": "<div id='{{id}}'></div>", "compile": function (t, i) { return t.replaceWith(this["template"].replace("{{id}}", i["id"])), function (t, i, a) { var n = new DayPilot.Navigator(i[0]); n.sa.scope = t, n.init(); var o = a["id"]; o && (t[o] = n); var r = a["publishAs"]; if (r) {
2711
+ } }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotNavigator", ["$parse", function (e) { return { "restrict": "E", "template": "<div id='{{id}}'></div>", "compile": function (t, i) { return t.replaceWith(this["template"].replace("{{id}}", i["id"])), function (t, i, a) { var n = new DayPilot.Navigator(i[0]); n.ta.scope = t, n.init(); var o = a["id"]; o && (t[o] = n); var r = a["publishAs"]; if (r) {
2733
2712
  (0, e(r).assign)(t, n);
2734
2713
  } for (var s in a)
2735
2714
  if (0 === s.indexOf("on")) {
2736
2715
  var l = DayPilot.Util.shouldApply(s);
2737
2716
  l ? !function (i) { n[i] = function (n) { var o = e(a[i]); t["$apply"](function () { o(t, { "args": n }); }); }; }(s) : !function (i) { n[i] = function (n) { e(a[i])(t, { "args": n }); }; }(s);
2738
2717
  } var d = t["$watch"], c = a["config"] || a["daypilotConfig"], u = a["events"] || a["daypilotEvents"]; d.call(t, c, function (e, t) { for (var i in e)
2739
- n[i] = e[i]; n.update(); }, !0), d.call(t, u, function (e) { n.events.list = e, n.ea(), n.sd(); }, !0); }; } }; }]); }(), DayPilot.Navigator.def = {}, "undefined" != typeof Sys && Sys.Application && Sys.Application.notifyScriptLoaded && Sys.Application.notifyScriptLoaded();
2718
+ n[i] = e[i]; n.update(); }, !0), d.call(t, u, function (e) { n.events.list = e, n.fa(), n.td(); }, !0); }; } }; }]); }(), DayPilot.Navigator.def = {}, "undefined" != typeof Sys && Sys.Application && Sys.Application.notifyScriptLoaded && Sys.Application.notifyScriptLoaded();
2740
2719
  }
2741
2720
  }(DayPilot);
2742
2721