@daypilot/daypilot-lite-angular 3.4.0 → 3.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -103,7 +103,7 @@ DayPilot Lite
103
103
  Copyright (c) 2005 - 2022 Annpoint s.r.o.
104
104
  http://www.daypilot.org/
105
105
  Licensed under Apache Software License 2.0
106
- Version: 2022.2.374-lite
106
+ Version: 2022.3.391-lite
107
107
  */
108
108
  if ("undefined" == typeof DayPilot)
109
109
  var DayPilot = {};
@@ -492,7 +492,7 @@ if ("undefined" == typeof DayPilot)
492
492
  }, DayPilot.ColorUtil.rgbToHex = function (e) { return "#" + t(e.r) + t(e.g) + t(e.b); }, DayPilot.ColorUtil.adjustLuminance = function (e, t) { return { r: e.r + t, g: e.g + t, b: e.b + t }; }, DayPilot.ColorUtil.darker = function (e, t) { var a = DayPilot.ColorUtil.hexToRgb(e); t = t || 1; var r = 17, o = t * r, n = DayPilot.ColorUtil.adjustLuminance(a, -o); return DayPilot.ColorUtil.rgbToHex(n); }, DayPilot.Event = function (e, t, a) {
493
493
  var r = this;
494
494
  this.calendar = t, this.data = e ? e : {}, this.part = a ? a : {}, "undefined" == typeof this.data.id && (this.data.id = this.data.value);
495
- var o = {}, n = ["id", "text", "start", "end"];
495
+ var o = {}, n = ["id", "text", "start", "end", "resource"];
496
496
  this.isEvent = !0, this.temp = function () {
497
497
  if (o.dirty)
498
498
  return o;
@@ -511,7 +511,7 @@ if ("undefined" == typeof DayPilot)
511
511
  }
512
512
  }, this.dirty = function () { return o.dirty; }, this.id = function (e) { return "undefined" == typeof e ? r.data.id : void (this.temp().id = e); }, this.value = function (e) { return "undefined" == typeof e ? r.id() : void r.id(e); }, this.text = function (e) { return "undefined" == typeof e ? r.data.text : (this.temp().text = e, void this.client.innerHTML(e)); }, this.start = function (e) {
513
513
  return "undefined" == typeof e ? new DayPilot.Date(r.data.start) : void (this.temp().start = new DayPilot.Date(e));
514
- }, this.end = function (e) { return "undefined" == typeof e ? new DayPilot.Date(r.data.end) : void (this.temp().end = new DayPilot.Date(e)); }, this.partStart = function () { return new DayPilot.Date(this.part.start); }, this.partEnd = function () { return new DayPilot.Date(this.part.end); }, this.tag = function (e) {
514
+ }, this.end = function (e) { return "undefined" == typeof e ? new DayPilot.Date(r.data.end) : void (this.temp().end = new DayPilot.Date(e)); }, this.resource = function (e) { return "undefined" == typeof e ? r.data.resource : void (this.temp().resource = e); }, this.partStart = function () { return new DayPilot.Date(this.part.start); }, this.partEnd = function () { return new DayPilot.Date(this.part.end); }, this.tag = function (e) {
515
515
  var t = r.data.tag;
516
516
  if (!t)
517
517
  return null;
@@ -629,15 +629,13 @@ if ("undefined" == typeof DayPilot)
629
629
  var a = t.movingShadow.offsetTop;
630
630
  t.deleteShadow(t.movingShadow);
631
631
  var n = t.moving.event, o = t.movingShadow.column;
632
- t.moving = null, t.movingShadow = null, n.calendar.nav.top.style.cursor = "auto";
633
- var r = i || window.event;
634
- n.calendar.b(n, o, a, r);
632
+ t.moving = null, t.movingShadow = null, n.calendar.nav.top.style.cursor = "auto", n.calendar.b(n, o, a, i);
635
633
  }
636
634
  else if (t.selecting && null !== t.topSelectedCell) {
637
- var h = t.selecting.calendar;
635
+ var r = t.selecting.calendar;
638
636
  t.selecting = !1;
639
- var c = h.getSelection();
640
- h.c(c.start, c.end), "Hold" !== h.timeRangeSelectedHandling && "HoldForever" !== h.timeRangeSelectedHandling && e();
637
+ var h = r.getSelection();
638
+ r.c(h.start, h.end, h.resource), "Hold" !== r.timeRangeSelectedHandling && "HoldForever" !== r.timeRangeSelectedHandling && e();
641
639
  }
642
640
  else
643
641
  t.selecting = !1;
@@ -646,7 +644,7 @@ if ("undefined" == typeof DayPilot)
646
644
  if (this instanceof t.Calendar && !this.d && (n = !0, this.d = !0), !n)
647
645
  throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
648
646
  var s = this;
649
- this.uniqueID = null, this.v = "2022.2.374-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.columnMarginRight = 5, this.days = 1, this.durationBarVisible = !0, this.eventHeaderHeight = 14, this.eventHeaderVisible = !0, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.height = 300, this.heightSpec = "BusinessHours", this.hideUntilInit = !0, this.hourWidth = 60, this.initScrollPos = "Auto", this.loadingLabelText = "Loading...", this.loadingLabelVisible = !0, this.loadingLabelBackColor = "ff0000", this.loadingLabelFontColor = "#ffffff", this.loadingLabelFontFamily = "Tahoma, Arial, Helvetica, sans-serif", this.loadingLabelFontSize = "10pt", 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.timeRangeSelectedHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventResizeHandling = "Update", this.eventMoveHandling = "Update", this.eventDeleteHandling = "Disabled", this.onBeforeEventRender = 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.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.f(); }, this.f = function () { DayPilot.de(s.elements.selection), s.elements.selection = [], s.nav.activeSelection = null; }, this.g = navigator && navigator.userAgent && navigator.userAgent.indexOf("MSIE") !== -1, this.h = navigator && navigator.userAgent && navigator.userAgent.indexOf("Firefox") !== -1, this.i = function () {
647
+ this.uniqueID = null, this.v = "2022.3.391-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.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.days = 1, this.durationBarVisible = !0, this.eventHeaderHeight = 14, this.eventHeaderVisible = !0, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.height = 300, this.heightSpec = "BusinessHours", this.hideUntilInit = !0, this.hourWidth = 60, this.initScrollPos = "Auto", this.loadingLabelText = "Loading...", this.loadingLabelVisible = !0, this.loadingLabelBackColor = "ff0000", this.loadingLabelFontColor = "#ffffff", this.loadingLabelFontFamily = "Tahoma, Arial, Helvetica, sans-serif", this.loadingLabelFontSize = "10pt", 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.timeRangeSelectedHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventResizeHandling = "Update", this.eventMoveHandling = "Update", this.eventDeleteHandling = "Disabled", this.onBeforeEventRender = 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.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.f(); }, this.f = function () { DayPilot.de(s.elements.selection), s.elements.selection = [], s.nav.activeSelection = null; }, this.g = navigator && navigator.userAgent && navigator.userAgent.indexOf("MSIE") !== -1, this.h = navigator && navigator.userAgent && navigator.userAgent.indexOf("Firefox") !== -1, this.i = function () {
650
648
  if (/Opera[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
651
649
  return new Number(RegExp.$1) >= 10.5;
652
650
  }
@@ -796,38 +794,38 @@ if ("undefined" == typeof DayPilot)
796
794
  }, this.b = function (e, t, i, n) {
797
795
  var a = 1, l = Math.floor((i - a) / s.cellHeight), o = 30 * l * 60 * 1e3, r = e.start(), h = e.end(), c = new Date;
798
796
  r instanceof DayPilot.Date && (r = r.toDate()), c.setTime(Date.UTC(r.getUTCFullYear(), r.getUTCMonth(), r.getUTCDate()));
799
- var d = r.getTime() - (c.getTime() + 3600 * r.getUTCHours() * 1e3 + 30 * Math.floor(r.getUTCMinutes() / 30) * 60 * 1e3), u = h.getTime() - r.getTime(), v = this.columns[t], p = v.start.getTime(), f = new Date;
800
- f.setTime(p + o + d);
801
- var g = new DayPilot.Date(f), m = g.addTime(u);
797
+ var d = r.getTime() - (c.getTime() + 3600 * r.getUTCHours() * 1e3 + 30 * Math.floor(r.getUTCMinutes() / 30) * 60 * 1e3), u = h.getTime() - r.getTime(), v = this.S[t], p = v.id, f = v.start.getTime(), g = new Date;
798
+ g.setTime(f + o + d);
799
+ var m = new DayPilot.Date(g), y = m.addTime(u);
802
800
  if (s.O()) {
803
- var y = {};
804
- if (y.e = e, y.newStart = g, y.newEnd = m, y.ctrl = n.ctrlKey, y.shift = n.shiftKey, y.control = s, y.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onEventMove && (s.Q.apply(function () { s.onEventMove(y); }), y.preventDefault.value))
801
+ var b = {};
802
+ if (b.e = e, b.newStart = m, b.newEnd = y, b.newResource = p, b.ctrl = n.ctrlKey, b.shift = n.shiftKey, b.control = s, b.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onEventMove && (s.Q.apply(function () { s.onEventMove(b); }), b.preventDefault.value))
805
803
  return;
806
804
  switch (s.eventMoveHandling) {
807
805
  case "PostBack":
808
- s.eventMovePostBack(e, g, m, v.Value);
806
+ s.eventMovePostBack(e, m, y, v.id);
809
807
  break;
810
808
  case "CallBack":
811
- s.eventMoveCallBack(e, g, m, v.Value);
809
+ s.eventMoveCallBack(e, m, y, v.id);
812
810
  break;
813
- case "Update": e.start(g), e.end(m), s.events.update(e);
811
+ case "Update": e.start(m), e.end(y), e.resource(p), s.events.update(e);
814
812
  }
815
- "function" == typeof s.onEventMoved && s.Q.apply(function () { s.onEventMoved(y); });
813
+ "function" == typeof s.onEventMoved && s.Q.apply(function () { s.onEventMoved(b); });
816
814
  }
817
815
  else
818
816
  switch (s.eventMoveHandling) {
819
817
  case "PostBack":
820
- s.eventMovePostBack(e, g, m, v.Value);
818
+ s.eventMovePostBack(e, m, y, v.id);
821
819
  break;
822
820
  case "CallBack":
823
- s.eventMoveCallBack(e, g, m, v.Value);
821
+ s.eventMoveCallBack(e, m, y, v.id);
824
822
  break;
825
- case "JavaScript": s.onEventMove(e, g, m, v.Value, !1);
823
+ case "JavaScript": s.onEventMove(e, m, y, v.id, !1);
826
824
  }
827
- }, this.timeRangeSelectedPostBack = function (e, t, i, n) { var s = {}; s.start = e, s.end = t, this.k("TimeRangeSelected", n, s); }, this.timeRangeSelectedCallBack = function (e, t, i, n) { var s = {}; s.start = e, s.end = t, this.m("TimeRangeSelected", n, s); }, this.c = function (e, t) {
825
+ }, this.timeRangeSelectedPostBack = function (e, t, i, n) { var s = {}; s.start = e, s.end = t, this.k("TimeRangeSelected", n, s); }, this.timeRangeSelectedCallBack = function (e, t, i, n) { var s = {}; s.start = e, s.end = t, this.m("TimeRangeSelected", n, s); }, this.c = function (e, t, i) {
828
826
  if (e = new DayPilot.Date(e), t = new DayPilot.Date(t), this.O()) {
829
- var i = {};
830
- if (i.start = e, i.end = t, i.control = s, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onTimeRangeSelect && (s.Q.apply(function () { s.onTimeRangeSelect(i); }), i.preventDefault.value))
827
+ var n = {};
828
+ if (n.start = e, n.end = t, n.resource = i, n.control = s, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onTimeRangeSelect && (s.Q.apply(function () { s.onTimeRangeSelect(n); }), n.preventDefault.value))
831
829
  return;
832
830
  switch (s.timeRangeSelectedHandling) {
833
831
  case "PostBack":
@@ -835,7 +833,7 @@ if ("undefined" == typeof DayPilot)
835
833
  break;
836
834
  case "CallBack": s.timeRangeSelectedCallBack(e, t);
837
835
  }
838
- "function" == typeof s.onTimeRangeSelected && s.Q.apply(function () { s.onTimeRangeSelected(i); });
836
+ "function" == typeof s.onTimeRangeSelected && s.Q.apply(function () { s.onTimeRangeSelected(n); });
839
837
  }
840
838
  else
841
839
  switch (s.timeRangeSelectedHandling) {
@@ -847,15 +845,15 @@ if ("undefined" == typeof DayPilot)
847
845
  break;
848
846
  case "JavaScript": s.onTimeRangeSelected(e, t);
849
847
  }
850
- }, this.S = function (e) {
848
+ }, this.T = function (e) {
851
849
  if (!t.selecting && "Disabled" !== s.timeRangeSelectedHandling) {
852
- var i = window.event ? window.event.button : e.which;
850
+ var i = e.which;
853
851
  if (1 === i || 0 === i)
854
- return t.firstMousePos = DayPilot.mc(e || window.event), t.selecting = {}, t.selecting.calendar = s, t.selectedCells && (s.clearSelection(), t.selectedCells = []), t.column = t.getColumn(this), t.selectedCells.push(this), t.firstSelected = this, t.topSelectedCell = this, t.bottomSelectedCell = this, s.T(), !1;
852
+ return t.firstMousePos = DayPilot.mc(e), t.selecting = {}, t.selecting.calendar = s, t.selectedCells && (s.clearSelection(), t.selectedCells = []), t.column = t.getColumn(this), t.selectedCells.push(this), t.firstSelected = this, t.topSelectedCell = this, t.bottomSelectedCell = this, s.U(), !1;
855
853
  }
856
- }, this.T = function () {
854
+ }, this.U = function () {
857
855
  this.getSelection();
858
- !function () { return; }(), function () {
856
+ !function () {
859
857
  var e = t.topSelectedCell, i = t.bottomSelectedCell, n = function () {
860
858
  if (e.data)
861
859
  return e.data.x;
@@ -863,7 +861,7 @@ if ("undefined" == typeof DayPilot)
863
861
  if (t[i] === e)
864
862
  return i;
865
863
  return -1;
866
- }(), a = s.columns[n];
864
+ }(), a = s.S[n];
867
865
  if (a) {
868
866
  var l = a.start, o = s.getPixels(e.start, l).boxTop, r = s.getPixels(i.end, l).boxBottom, h = r - o, c = function () {
869
867
  if (s.nav.activeSelection)
@@ -876,12 +874,12 @@ if ("undefined" == typeof DayPilot)
876
874
  c.className = s.u("_shadow"), c.firstChild.innerHTML = "", c.style.top = o + "px", c.style.height = h + "px";
877
875
  }
878
876
  }();
879
- }, this.U = function (e) {
877
+ }, this.V = function (e) {
880
878
  if ("undefined" != typeof t && t.selecting) {
881
- var i = DayPilot.mc(e || window.event);
882
- t.getColumn(this) === t.column && (s.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]), s.T());
879
+ var i = DayPilot.mc(e);
880
+ t.getColumn(this) === t.column && (s.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]), s.U());
883
881
  }
884
- }, this.getSelection = function () { var e = t.topSelectedCell.start, i = t.bottomSelectedCell.end; return new DayPilot.Selection(e, i, null, s); }, this.V = function (e) { }, this.W = function (e) {
882
+ }, this.getSelection = function () { var e = t.topSelectedCell.start, i = t.bottomSelectedCell.end, n = t.topSelectedCell.resource; return new DayPilot.Selection(e, i, n, s); }, this.W = function (e) {
885
883
  if (e < 0)
886
884
  return null;
887
885
  for (var t = 0, i = s.nav.events.rows[0].cells, n = 0; n < i.length; n++) {
@@ -896,12 +894,36 @@ if ("undefined" == typeof DayPilot)
896
894
  e.x = s.W(s.coords.x);
897
895
  var t = 0, i = Math.floor((s.coords.y - t) / s.cellHeight);
898
896
  return e.y = i, e.x < 0 ? null : e;
897
+ }, this.columns = {}, this.columns.list = [], this.columns.load = function (e, t, i) {
898
+ if (!e)
899
+ throw new DayPilot.Exception("columns.load(): 'url' parameter required");
900
+ var n = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, a = function (e) {
901
+ var i, a = e.request;
902
+ try {
903
+ i = JSON.parse(a.responseText);
904
+ }
905
+ catch (e) {
906
+ var l = {};
907
+ return l.exception = e, void n(l);
908
+ }
909
+ if (DayPilot.isArray(i)) {
910
+ var o = {};
911
+ if (o.preventDefault = function () { this.preventDefault.value = !0; }, o.data = i, "function" == typeof t && t(o), o.preventDefault.value)
912
+ return;
913
+ s.columns.list = i, s.Y && s.update();
914
+ }
915
+ };
916
+ s.columnsLoadMethod && "POST" === s.columnsLoadMethod.toUpperCase() ? DayPilot.ajax({ "method": "POST", "url": e, "success": a, "error": n }) : DayPilot.ajax({ "method": "GET", "url": e, "success": a, "error": n });
899
917
  }, this.B = function () {
900
- "Resources" !== s.viewType && (this.columns = this.Y());
901
- for (var e = 0; e < this.columns.length; e++)
902
- this.Z(this.columns[e]);
903
- }, this.Z = function (e) {
904
- e.start = new DayPilot.Date(e.start), e.putIntoBlock = function (e) {
918
+ var e;
919
+ e = "Resources" !== s.viewType ? this.Z() : s.columns.list, this.S = [];
920
+ for (var t = 0; t < e.length; t++) {
921
+ var i = this.$(e[t]);
922
+ this.S.push(i);
923
+ }
924
+ }, this.$ = function (e) {
925
+ var t = {};
926
+ return t.name = e.name, t.html = e.html, t.id = e.id, t.toolTip = e.toolTip, e.start ? t.start = new DayPilot.Date(e.start) : t.start = new DayPilot.Date(s.startDate), t.putIntoBlock = function (e) {
905
927
  for (var t = 0; t < this.blocks.length; t++) {
906
928
  var i = this.blocks[t];
907
929
  if (i.overlapsWith(e.part.top, e.part.height))
@@ -924,7 +946,7 @@ if ("undefined" == typeof DayPilot)
924
946
  return !0;
925
947
  }, i.push(e), this.lines.push(i), this.lines.length - 1;
926
948
  }, i.events.push(e), i.min = e.part.top, i.max = e.part.top + e.part.height, this.blocks.push(i), this.blocks.length - 1;
927
- }, e.putIntoLine = function (e) {
949
+ }, t.putIntoLine = function (e) {
928
950
  for (var t = 0; t < this.lines.length; t++) {
929
951
  var i = this.lines[t];
930
952
  if (i.isFree(e.part.top, e.part.height))
@@ -939,8 +961,8 @@ if ("undefined" == typeof DayPilot)
939
961
  }
940
962
  return !0;
941
963
  }, i.push(e), this.lines.push(i), this.lines.length - 1;
942
- };
943
- }, this.Y = function () {
964
+ }, t;
965
+ }, this.Z = function () {
944
966
  var e = [], t = this.startDate.getDatePart(), i = this.days;
945
967
  switch (this.viewType) {
946
968
  case "Day":
@@ -957,7 +979,24 @@ if ("undefined" == typeof DayPilot)
957
979
  o.start = t.addDays(n), o.name = o.start.toString(l, a.locale()), e.push(o);
958
980
  }
959
981
  return e;
960
- }, this.visibleStart = function () { return this.columns[0].start; }, this.visibleEnd = function () { var e = this.columns.length - 1; return this.columns[e].start.addDays(1); }, this.u = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.p = function () {
982
+ }, this.visibleStart = function () {
983
+ if ("Resources" === s.viewType) {
984
+ if (0 === s.S.length)
985
+ return DayPilot.Date.today();
986
+ var e = s.S.map(function (e) { return e.start.getTime(); }), t = Math.min.apply(null, e);
987
+ return new DayPilot.Date(t);
988
+ }
989
+ return this.S[0].start;
990
+ }, this.visibleEnd = function () {
991
+ if ("Resources" === s.viewType) {
992
+ if (0 === s.S.length)
993
+ return DayPilot.Date.today().addDays(1);
994
+ var e = s.S.map(function (e) { return e.start.getTime(); }), t = Math.max.apply(null, e);
995
+ return new DayPilot.Date(t).addDays(1);
996
+ }
997
+ var t = this.S.length - 1;
998
+ return this.S[t].start.addDays(1);
999
+ }, this.u = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.p = function () {
961
1000
  if (this.elements.events)
962
1001
  for (var e = 0; e < this.elements.events.length; e++) {
963
1002
  var t = this.elements.events[e], i = t.event;
@@ -968,7 +1007,7 @@ if ("undefined" == typeof DayPilot)
968
1007
  t.helper = null, t.data = null, t.event = null, DayPilot.de(t);
969
1008
  }
970
1009
  this.elements.events = [];
971
- }, this.$ = function (e) {
1010
+ }, this._ = function (e) {
972
1011
  var i = e.cache || e.data, n = this.nav.events, a = document.createElement("div");
973
1012
  a.style.position = "absolute", a.style.left = e.part.left + "%", a.style.top = e.part.top + "px", a.style.width = e.part.width + "%", a.style.height = Math.max(e.part.height, 2) + "px", a.style.overflow = "hidden", a.data = e, a.event = e, a.unselectable = "on", a.style.MozUserSelect = "none", a.style.KhtmlUserSelect = "none", a.className = this.u("_event"), i.cssClass && DayPilot.Util.addClass(a, i.cssClass), a.isFirst = e.part.start.getTime() === e.start().getTime(), a.isLast = e.part.end.getTime() === e.end().getTime(), a.onclick = this.P, a.onmouseout = function (e) { a.deleteIcon && (a.deleteIcon.style.display = "none"); }, a.onmousemove = function (e) {
974
1013
  var i = s.eventHeaderVisible ? s.eventHeaderHeight : 10;
@@ -981,13 +1020,12 @@ if ("undefined" == typeof DayPilot)
981
1020
  }
982
1021
  }
983
1022
  }, a.onmousedown = function (e) {
984
- e = e || window.event;
985
1023
  var i = e.which || e.button;
986
1024
  if ("n-resize" !== this.style.cursor && "s-resize" !== this.style.cursor || 1 !== i) {
987
1025
  if (1 === i && "Disabled" !== s.eventMoveHandling) {
988
1026
  t.moving = this, t.moving.event = this.event;
989
1027
  var n = t.moving.helper = {};
990
- n.oldColumn = s.columns[this.data.part.dayIndex].Value, t.originalMouse = DayPilot.mc(e), t.originalTop = this.offsetTop;
1028
+ n.oldColumn = s.S[this.data.part.dayIndex].id, t.originalMouse = DayPilot.mc(e), t.originalTop = this.offsetTop;
991
1029
  var a = DayPilot.mo3(this, e);
992
1030
  a ? t.moveOffsetY = a.y : t.moveOffsetY = 0, s.nav.top.style.cursor = "move";
993
1031
  }
@@ -1008,19 +1046,19 @@ if ("undefined" == typeof DayPilot)
1008
1046
  u.style.position = "absolute", u.style.right = "2px", u.style.top = "2px", u.style.width = "17px", u.style.height = "17px", u.className = s.u("_event_delete"), u.onmousedown = function (e) { e.stopPropagation(); }, u.onclick = function (e) { var t = this.parentNode.event; t && s.R(t); }, u.style.display = "none", a.deleteIcon = u, a.appendChild(u);
1009
1047
  }
1010
1048
  if (n.rows[0].cells[e.part.dayIndex]) {
1011
- n.rows[0].cells[e.part.dayIndex].firstChild.appendChild(a), s._(a);
1049
+ n.rows[0].cells[e.part.dayIndex].firstChild.appendChild(a), s.aa(a);
1012
1050
  }
1013
1051
  s.elements.events.push(a);
1014
- }, this._ = function (e) {
1052
+ }, this.aa = function (e) {
1015
1053
  for (var t = e && e.childNodes ? e.childNodes.length : 0, i = 0; i < t; i++)
1016
1054
  try {
1017
1055
  var n = e.childNodes[i];
1018
- 1 === n.nodeType && (n.unselectable = "on", this._(n));
1056
+ 1 === n.nodeType && (n.unselectable = "on", this.aa(n));
1019
1057
  }
1020
1058
  catch (e) { }
1021
1059
  }, this.I = function () {
1022
- for (var e = 0; e < this.columns.length; e++) {
1023
- var t = this.columns[e];
1060
+ for (var e = 0; e < this.S.length; e++) {
1061
+ var t = this.S[e];
1024
1062
  if (t.blocks)
1025
1063
  for (var i = 0; i < t.blocks.length; i++)
1026
1064
  for (var n = t.blocks[i], s = 0; s < n.lines.length; s++)
@@ -1028,13 +1066,13 @@ if ("undefined" == typeof DayPilot)
1028
1066
  var o = a[l];
1029
1067
  o.part.width = 100 / n.lines.length, o.part.left = o.part.width * s;
1030
1068
  var r = s === n.lines.length - 1;
1031
- r || (o.part.width = 1.5 * o.part.width), this.$(o);
1069
+ r || (o.part.width = 1.5 * o.part.width), this._(o);
1032
1070
  }
1033
1071
  }
1034
- }, this.aa = function () { this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.u("_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.ba() + "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.ca(); this.nav.top.appendChild(e), this.nav.scroll.style.zoom = 1; var t = this.da(); 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.style.backgroundColor = this.loadingLabelBackColor, this.nav.loading.style.fontSize = this.loadingLabelFontSize, this.nav.loading.style.fontFamily = this.loadingLabelFontFamily, this.nav.loading.style.color = this.loadingLabelFontColor, this.nav.loading.style.padding = "2px", this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.display = "none", this.nav.top.appendChild(this.nav.loading); }, this.G = function () { this.fasterDispose || DayPilot.pu(this.nav.hourTable), this.nav.scrollable.rows[0].cells[0].innerHTML = "", this.nav.hourTable = this.ea(), this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable); }, this.da = 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, n = t.insertRow(-1); i = n.insertCell(-1), i.valign = "top", i.style.padding = "0px", i.style.border = "0px none", this.nav.hourTable = this.ea(), i.appendChild(this.nav.hourTable), i = n.insertCell(-1), i.valign = "top", i.width = "100%", i.style.padding = "0px", i.style.border = "0px none"; var s = document.createElement("div"); return s.style.position = "relative", i.appendChild(s), s.appendChild(this.fa()), s.appendChild(this.ga()), e.appendChild(t), this.nav.zoom = e, e; }, this.fa = 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.ga = function () {
1072
+ }, this.ba = function () { this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.u("_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.ca() + "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.da(); this.nav.top.appendChild(e), this.nav.scroll.style.zoom = 1; var t = this.ea(); 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.style.backgroundColor = this.loadingLabelBackColor, this.nav.loading.style.fontSize = this.loadingLabelFontSize, this.nav.loading.style.fontFamily = this.loadingLabelFontFamily, this.nav.loading.style.color = this.loadingLabelFontColor, this.nav.loading.style.padding = "2px", this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.display = "none", this.nav.top.appendChild(this.nav.loading); }, this.G = function () { this.fasterDispose || DayPilot.pu(this.nav.hourTable), this.nav.scrollable.rows[0].cells[0].innerHTML = "", this.nav.hourTable = this.fa(), this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable); }, this.ea = 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, n = t.insertRow(-1); i = n.insertCell(-1), i.valign = "top", i.style.padding = "0px", i.style.border = "0px none", this.nav.hourTable = this.fa(), i.appendChild(this.nav.hourTable), i = n.insertCell(-1), i.valign = "top", i.width = "100%", i.style.padding = "0px", i.style.border = "0px none"; var s = document.createElement("div"); return s.style.position = "relative", i.appendChild(s), s.appendChild(this.ga()), s.appendChild(this.ha()), e.appendChild(t), this.nav.zoom = e, e; }, this.ga = 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.ha = function () {
1035
1073
  var e = document.createElement("table");
1036
1074
  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;
1037
- for (var t = this.columns, i = t.length, n = e.insertRow(-1), a = 0; a < i; a++) {
1075
+ for (var t = this.S, i = t.length, n = e.insertRow(-1), a = 0; a < i; a++) {
1038
1076
  var l = n.insertCell(-1);
1039
1077
  l.style.padding = "0px", l.style.border = "0px none", l.style.height = "0px", l.style.overflow = "visible", s.rtl || (l.style.textAlign = "left");
1040
1078
  var o = document.createElement("div");
@@ -1043,13 +1081,13 @@ if ("undefined" == typeof DayPilot)
1043
1081
  l.selection = r, l.appendChild(o), l.appendChild(r);
1044
1082
  }
1045
1083
  return e;
1046
- }, this.ea = function () {
1084
+ }, this.fa = function () {
1047
1085
  var e = document.createElement("table");
1048
1086
  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; };
1049
1087
  for (var t = s.J(), i = 0; i < t; i++)
1050
- this.ha(e, i);
1088
+ this.ia(e, i);
1051
1089
  return e;
1052
- }, this.ha = function (e, t) { var i = 2 * this.cellHeight, n = e.insertRow(-1); n.style.height = i + "px"; var l = n.insertCell(-1); l.valign = "bottom", l.unselectable = "on", l.style.cursor = "default", l.style.padding = "0px", l.style.border = "0px none"; var o = document.createElement("div"); o.style.position = "relative", o.className = this.u("_rowheader"), o.style.width = this.hourWidth + "px", o.style.height = i + "px", o.style.overflow = "hidden", o.unselectable = "on"; var r = document.createElement("div"); r.className = this.u("_rowheader_inner"), r.unselectable = "on"; var h = document.createElement("div"); h.unselectable = "on"; var c = this.startDate.addHours(t).addHours(s.N()), d = c.getHours(), u = d < 12, v = a.timeFormat(); "Clock12Hours" === v && (d %= 12, 0 === d && (d = 12)), h.innerHTML = d; var p = document.createElement("span"); p.unselectable = "on", p.className = this.u("_rowheader_minutes"); var f; f = "Clock12Hours" === v ? u ? "AM" : "PM" : "00", p.innerHTML = f, h.appendChild(p), r.appendChild(h), o.appendChild(r), l.appendChild(o); }, this.ba = function () {
1090
+ }, this.ia = function (e, t) { var i = 2 * this.cellHeight, n = e.insertRow(-1); n.style.height = i + "px"; var l = n.insertCell(-1); l.valign = "bottom", l.unselectable = "on", l.style.cursor = "default", l.style.padding = "0px", l.style.border = "0px none"; var o = document.createElement("div"); o.style.position = "relative", o.className = this.u("_rowheader"), o.style.width = this.hourWidth + "px", o.style.height = i + "px", o.style.overflow = "hidden", o.unselectable = "on"; var r = document.createElement("div"); r.className = this.u("_rowheader_inner"), r.unselectable = "on"; var h = document.createElement("div"); h.unselectable = "on"; var c = this.startDate.addHours(t).addHours(s.N()), d = c.getHours(), u = d < 12, v = a.timeFormat(); "Clock12Hours" === v && (d %= 12, 0 === d && (d = 12)), h.innerHTML = d; var p = document.createElement("span"); p.unselectable = "on", p.className = this.u("_rowheader_minutes"); var f; f = "Clock12Hours" === v ? u ? "AM" : "PM" : "00", p.innerHTML = f, h.appendChild(p), r.appendChild(h), o.appendChild(r), l.appendChild(o); }, this.ca = function () {
1053
1091
  switch (this.heightSpec) {
1054
1092
  case "Full": return 48 * this.cellHeight;
1055
1093
  case "BusinessHours":
@@ -1060,21 +1098,21 @@ if ("undefined" == typeof DayPilot)
1060
1098
  return e * this.cellHeight * 2;
1061
1099
  default: throw "DayPilot.Calendar: Unexpected 'heightSpec' value.";
1062
1100
  }
1063
- }, this.ia = function () {
1101
+ }, this.ja = function () {
1064
1102
  var e = s.nav.corner ? s.nav.corner.parentNode : null;
1065
1103
  if (e) {
1066
1104
  e.innerHTML = "";
1067
- var t = this.ja();
1105
+ var t = this.ka();
1068
1106
  e.appendChild(t), s.nav.corner = t;
1069
1107
  }
1070
- }, this.ca = function () {
1108
+ }, this.da = function () {
1071
1109
  var e = document.createElement("div");
1072
1110
  e.style.overflow = "auto";
1073
1111
  var t = document.createElement("table");
1074
1112
  t.cellPadding = "0", t.cellSpacing = "0", t.border = "0", t.style.width = "100%", t.style.borderCollapse = "separate", t.style.border = "0px none";
1075
1113
  var i = t.insertRow(-1), n = i.insertCell(-1);
1076
1114
  n.style.padding = "0px", n.style.border = "0px none";
1077
- var s = this.ja();
1115
+ var s = this.ka();
1078
1116
  n.appendChild(s), this.nav.corner = s, n = i.insertCell(-1), n.style.width = "100%", n.valign = "top", n.style.position = "relative", n.style.padding = "0px", n.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; };
1079
1117
  var a = "hidden" !== this.nav.scroll.style.overflow;
1080
1118
  if (n.appendChild(this.nav.header), a) {
@@ -1085,7 +1123,7 @@ if ("undefined" == typeof DayPilot)
1085
1123
  o.className = this.u("_cornerright_inner"), l.appendChild(o), n.appendChild(l), this.nav.cornerRight = l;
1086
1124
  }
1087
1125
  return e.appendChild(t), e;
1088
- }, this.ja = function () { var e = document.createElement("div"); e.style.position = "relative", e.className = this.u("_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.u("_corner_inner"), e.appendChild(t), e; }, this.q = function () {
1126
+ }, this.ka = function () { var e = document.createElement("div"); e.style.position = "relative", e.className = this.u("_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.u("_corner_inner"), e.appendChild(t), e; }, this.q = function () {
1089
1127
  var e = this.nav.main;
1090
1128
  e.root = null, e.onmouseup = null;
1091
1129
  for (var t = 0; t < e.rows.length; t++)
@@ -1095,7 +1133,7 @@ if ("undefined" == typeof DayPilot)
1095
1133
  }
1096
1134
  this.fasterDispose || DayPilot.pu(e);
1097
1135
  }, this.F = function () {
1098
- var e = this.nav.main, i = 18e5, n = this.M(), a = s.columns;
1136
+ var e = this.nav.main, i = 18e5, n = this.M(), a = s.S;
1099
1137
  for (e && this.q(); e && e.rows && e.rows.length > 0;)
1100
1138
  this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
1101
1139
  this.tableCreated = !0;
@@ -1111,19 +1149,19 @@ if ("undefined" == typeof DayPilot)
1111
1149
  }
1112
1150
  for (var v = 0; v < n; v++) {
1113
1151
  var r = e.insertRow(-1);
1114
- r.style.MozUserSelect = "none", r.style.KhtmlUserSelect = "none";
1152
+ r.style.MozUserSelect = "none",
1153
+ r.style.KhtmlUserSelect = "none";
1115
1154
  for (var h = 0; h < l; h++) {
1116
- var p = this.columns[h], c = r.insertCell(-1);
1117
- c.start = p.start.addTime(v * i), c.end = c.start.addTime(i), c.onmousedown = this.S, c.onmouseup = function () { return !1; }, c.onclick = function () { return !1; }, c.root = this, c.style.padding = "0px", c.style.border = "0px none", c.style.verticalAlign = "top", c.style.height = s.cellHeight + "px", c.style.overflow = "hidden", c.unselectable = "on";
1155
+ var p = this.S[h], c = r.insertCell(-1);
1156
+ c.start = p.start.addTime(v * i), c.end = c.start.addTime(i), c.resource = p.id, c.onmousedown = this.T, c.onmouseup = function () { return !1; }, c.onclick = function () { return !1; }, c.root = this, c.style.padding = "0px", c.style.border = "0px none", c.style.verticalAlign = "top", c.style.height = s.cellHeight + "px", c.style.overflow = "hidden", c.unselectable = "on";
1118
1157
  var d = document.createElement("div");
1119
1158
  d.unselectable = "on", d.style.height = s.cellHeight + "px", d.style.position = "relative", d.className = this.u("_cell");
1120
- this.ka(c.start, c.end) && DayPilot.Util.addClass(d, s.u("_cell_business"));
1159
+ this.la(c.start, c.end) && DayPilot.Util.addClass(d, s.u("_cell_business"));
1121
1160
  var f = document.createElement("div");
1122
1161
  f.setAttribute("unselectable", "on"), f.className = this.u("_cell_inner"), d.appendChild(f), c.appendChild(d), c.appendChild(d);
1123
1162
  }
1124
1163
  }
1125
- e.onmouseup = this.V, e.root = this, s.nav.scrollable.onmousemove = function (e) {
1126
- e = e || window.event;
1164
+ e.root = this, s.nav.scrollable.onmousemove = function (e) {
1127
1165
  var i = s.nav.scrollable;
1128
1166
  s.coords = DayPilot.mo3(i, e);
1129
1167
  var n = DayPilot.mc(e);
@@ -1156,11 +1194,11 @@ if ("undefined" == typeof DayPilot)
1156
1194
  f < 0 && (f = 0), f < u.rows[0].cells.length && f >= 0 && t.movingShadow.column !== f && (t.movingShadow.column = f, t.moveShadow(u.rows[0].cells[f]));
1157
1195
  }
1158
1196
  else if (t.selecting) {
1159
- var n = DayPilot.mc(e || window.event), g = s.X.getCellCoords(), m = t.column, y = s.nav.main.rows[g.y].cells[m];
1160
- n.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(y), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(y), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), s.T();
1197
+ var n = DayPilot.mc(e), g = s.X.getCellCoords(), m = t.column, y = s.nav.main.rows[g.y].cells[m];
1198
+ n.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(y), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(y), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), s.U();
1161
1199
  }
1162
1200
  }, s.nav.scrollable.style.display = "";
1163
- }, this.ka = 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.r = function () {
1201
+ }, this.la = 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.r = function () {
1164
1202
  var e = this.nav.header;
1165
1203
  if (e && e.rows)
1166
1204
  for (var t = 0; t < e.rows.length; t++)
@@ -1169,26 +1207,27 @@ if ("undefined" == typeof DayPilot)
1169
1207
  s.onclick = null, s.onmousemove = null, s.onmouseout = null;
1170
1208
  }
1171
1209
  this.fasterDispose || DayPilot.pu(e);
1172
- }, this.la = function (e) {
1173
- for (var t = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], i = this.columns, n = i.length, a = 0; a < n; a++) {
1210
+ }, this.ma = function (e) {
1211
+ for (var t = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], i = this.S, n = i.length, a = 0; a < n; a++) {
1174
1212
  var l = i[a], o = e ? t.insertCell(-1) : t.cells[a];
1175
1213
  o.data = l, o.style.overflow = "hidden", o.style.padding = "0px", o.style.border = "0px none", o.style.height = this.headerHeight + "px";
1176
1214
  var r = e ? document.createElement("div") : o.firstChild;
1177
1215
  if (e) {
1178
- r.unselectable = "on", r.style.MozUserSelect = "none", r.style.backgroundColor = l.BackColor, r.style.cursor = "default", r.style.position = "relative", r.className = s.u("_colheader"), r.style.height = this.headerHeight + "px";
1216
+ r.unselectable = "on", r.style.MozUserSelect = "none", r.style.cursor = "default", r.style.position = "relative", r.className = s.u("_colheader"), r.style.height = this.headerHeight + "px";
1179
1217
  var h = document.createElement("div");
1180
1218
  h.className = s.u("_colheader_inner"), h.unselectable = "on", r.appendChild(h), o.appendChild(r);
1181
1219
  }
1220
+ l.toolTip && (h.title = l.toolTip);
1182
1221
  var h = r.firstChild;
1183
- h.innerHTML = s.ma(l.name, l.html);
1222
+ h.innerHTML = s.na(l.name, l.html);
1184
1223
  }
1185
- }, this.na = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.E = function () {
1186
- var e = this.nav.header, t = !0, i = this.columns;
1224
+ }, this.oa = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.E = function () {
1225
+ var e = this.nav.header, t = !0, i = this.S;
1187
1226
  for (i.length; this.headerCreated && e && e.rows && e.rows.length > 0;)
1188
1227
  this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
1189
1228
  this.headerCreated = !0;
1190
- this.la(t);
1191
- }, 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.m("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.oa = function () { var e = this.nav.scroll; e.onscroll || (e.onscroll = function () { s.pa(); }); var t = "undefined" != typeof this.qa.scrollpos ? this.qa.scrollpos : this.initScrollPos; t && ("Auto" === t && (t = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), e.root = this, 0 === e.scrollTop && (e.scrollTop = t)); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.ra = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && e > 0 && (t.style.width = e + "px"); }, this.sa = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp), DayPilot.re(window, "unload", t.gUnload)); }, this.events = {}, this.events.add = function (e) {
1229
+ this.ma(t);
1230
+ }, 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.m("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.pa = function () { var e = this.nav.scroll; e.onscroll || (e.onscroll = function () { s.qa(); }); var t = "undefined" != typeof this.ra.scrollpos ? this.ra.scrollpos : this.initScrollPos; t && ("Auto" === t && (t = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), e.root = this, 0 === e.scrollTop && (e.scrollTop = t)); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.sa = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && e > 0 && (t.style.width = e + "px"); }, this.ta = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp), DayPilot.re(window, "unload", t.gUnload)); }, this.events = {}, this.events.add = function (e) {
1192
1231
  var t = null;
1193
1232
  if (e instanceof DayPilot.Event)
1194
1233
  t = e.data;
@@ -1246,7 +1285,7 @@ if ("undefined" == typeof DayPilot)
1246
1285
  var o = {};
1247
1286
  if (o.preventDefault = function () { this.preventDefault.value = !0; }, o.data = i, "function" == typeof t && t(o), o.preventDefault.value)
1248
1287
  return;
1249
- s.events.list = i, s.ta && s.update();
1288
+ s.events.list = i, s.Y && s.update();
1250
1289
  }
1251
1290
  };
1252
1291
  if (s.eventsLoadMethod && "POST" === s.eventsLoadMethod.toUpperCase())
@@ -1255,9 +1294,14 @@ if ("undefined" == typeof DayPilot)
1255
1294
  var l = e, o = "start=" + s.visibleStart().toString() + "&end=" + s.visibleEnd().toString();
1256
1295
  l += l.indexOf("?") > -1 ? "&" + o : "?" + o, DayPilot.Http.ajax({ "method": "GET", "url": l, "success": a, "error": n });
1257
1296
  }
1258
- }, this.update = function (e) { s.ua(e), s.va(), s.p(), s.nav.top.style.cursor = "auto"; s.B(), s.E(), s.F(), s.G(), s.H(), s.ia(), s.wa(), s.C(), s.D(), s.A(), s.I(), s.clearSelection(), this.visible ? this.show() : this.hide(); }, this.xa = null, this.ua = function (e) {
1297
+ }, this.update = function (e) {
1298
+ if (s.ua(e), this.Y) {
1299
+ s.va(), s.p(), s.nav.top.style.cursor = "auto";
1300
+ s.B(), s.E(), s.F(), s.G(), s.H(), s.ja(), s.wa(), s.C(), s.D(), s.A(), s.I(), s.clearSelection(), this.visible ? this.show() : this.hide();
1301
+ }
1302
+ }, this.xa = null, this.ua = function (e) {
1259
1303
  if (e) {
1260
- var t = { "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? s.events.list = e.list : s.events.list = e); } } };
1304
+ var t = { "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? s.events.list = e.list : s.events.list = e); } }, "columns": { "preInit": function () { s.columns.list = this.data; } } };
1261
1305
  this.xa = t;
1262
1306
  for (var i in e)
1263
1307
  if (t[i]) {
@@ -1305,43 +1349,43 @@ if ("undefined" == typeof DayPilot)
1305
1349
  if ("function" == typeof this.onBeforeEventRender)
1306
1350
  for (var a = 0; a < t; a++)
1307
1351
  this.Ba(a);
1308
- for (var a = 0; a < this.columns.length; a++) {
1352
+ for (var a = 0; a < this.S.length; a++) {
1309
1353
  var o = {};
1310
1354
  o.minEnd = 1e6, o.maxStart = -1, this.scrollLabels.push(o);
1311
- var r = this.columns[a];
1355
+ var r = this.S[a];
1312
1356
  r.events = [], r.lines = [], r.blocks = [];
1313
1357
  for (var h = new DayPilot.Date(r.start), c = h.getTime(), d = h.addTime(i), u = d.getTime(), v = 0; v < t; v++)
1314
1358
  if (!n[v]) {
1315
1359
  var l = e[v], p = l.start, f = l.end, g = p.getTime(), m = f.getTime();
1316
1360
  if (!(m < g)) {
1317
1361
  var y = !(m <= c || g >= u);
1318
- if (y) {
1362
+ if ("Resources" === s.viewType && (y = y && r.id === l.resource), y) {
1319
1363
  var b = new DayPilot.Event(l, s);
1320
1364
  b.part.dayIndex = a, b.part.start = c < g ? l.start : h, b.part.end = u > m ? l.end : d;
1321
1365
  var C = this.getPixels(b.part.start, r.start), w = this.getPixels(b.part.end, r.start), D = C.top, S = w.top;
1322
1366
  if (D === S && (C.cut || w.cut))
1323
1367
  continue;
1324
- var k = w.boxBottom;
1325
- b.part.top = Math.floor(D / this.cellHeight) * this.cellHeight + 1, b.part.height = Math.max(Math.ceil(k / this.cellHeight) * this.cellHeight - b.part.top, this.cellHeight - 1) + 1, b.part.barTop = Math.max(D - b.part.top - 1, 0), b.part.barHeight = Math.max(S - D - 2, 1);
1368
+ var x = w.boxBottom;
1369
+ b.part.top = Math.floor(D / this.cellHeight) * this.cellHeight + 1, b.part.height = Math.max(Math.ceil(x / this.cellHeight) * this.cellHeight - b.part.top, this.cellHeight - 1) + 1, b.part.barTop = Math.max(D - b.part.top - 1, 0), b.part.barHeight = Math.max(S - D - 2, 1);
1326
1370
  var p = b.part.top, f = b.part.top + b.part.height;
1327
1371
  p > o.maxStart && (o.maxStart = p), f < o.minEnd && (o.minEnd = f), p < this.minStart && (this.minStart = p), f > this.maxEnd && (this.maxEnd = f), r.events.push(b), "function" == typeof this.onBeforeEventRender && (b.cache = this.Aa.events[v]), b.part.start.getTime() === g && b.part.end.getTime() === m && (n[v] = !0);
1328
1372
  }
1329
1373
  }
1330
1374
  }
1331
1375
  }
1332
- for (var a = 0; a < this.columns.length; a++) {
1333
- var r = this.columns[a];
1376
+ for (var a = 0; a < this.S.length; a++) {
1377
+ var r = this.S[a];
1334
1378
  r.events.sort(this.Ca);
1335
1379
  for (var v = 0; v < r.events.length; v++) {
1336
1380
  var l = r.events[v];
1337
1381
  r.putIntoBlock(l);
1338
1382
  }
1339
1383
  for (var v = 0; v < r.blocks.length; v++) {
1340
- var x = r.blocks[v];
1341
- x.events.sort(this.Ca);
1342
- for (var H = 0; H < x.events.length; H++) {
1343
- var l = x.events[H];
1344
- x.putIntoLine(l);
1384
+ var k = r.blocks[v];
1385
+ k.events.sort(this.Ca);
1386
+ for (var H = 0; H < k.events.length; H++) {
1387
+ var l = k.events[H];
1388
+ k.putIntoLine(l);
1345
1389
  }
1346
1390
  }
1347
1391
  }
@@ -1361,12 +1405,12 @@ if ("undefined" == typeof DayPilot)
1361
1405
  0 === o && (h = r);
1362
1406
  var c = {};
1363
1407
  return c.cut = !1, c.top = this.Da(l), c.boxTop = this.Da(r), c.boxBottom = this.Da(h), this.cache.pixels[n + "_" + i] = c, c;
1364
- }, this.Da = function (e) { return Math.floor(this.cellHeight * e / 18e5); }, this.va = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.D = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.H = function () { var e = this.ba(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.Q = {}, this.Q.scope = null, this.Q.notify = function () { s.Q.scope && s.Q.scope["$apply"](); }, this.Q.apply = function (e) { e(); }, this.pa = function () { var e = s.nav.scroll.scrollTop, t = e / (2 * s.cellHeight); s.qa.scrollHour = t; }, this.wa = function () { var e = 0; s.qa.scrollHour ? e = 2 * s.cellHeight * s.qa.scrollHour : "Auto" === s.initScrollPos && (e = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), s.nav.scroll.scrollTop = e; }, this.Ea = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof s.events.list || !s.events.list); }, this.A = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { s.visible = !0, s.nav.top.style.display = ""; }, this.hide = function () { s.visible = !1, s.nav.top.style.display = "none"; }, this.Fa = function () { this.va(), this.B(), this.aa(), this.E(), this.F(), this.ra(), this.oa(), this.sa(), t.register(this), this.Ga(), this.m("Init"); }, this.qa = {}, this.Ha = function () { this.qa.themes = [], this.qa.themes.push(this.theme || this.cssClassPrefix); }, this.Ia = function () {
1365
- for (var e = this.qa.themes, t = 0; t < e.length; t++) {
1408
+ }, this.Da = function (e) { return Math.floor(this.cellHeight * e / 18e5); }, this.va = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.D = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.H = function () { var e = this.ca(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.Q = {}, this.Q.scope = null, this.Q.notify = function () { s.Q.scope && s.Q.scope["$apply"](); }, this.Q.apply = function (e) { e(); }, this.qa = function () { var e = s.nav.scroll.scrollTop, t = e / (2 * s.cellHeight); s.ra.scrollHour = t; }, this.wa = function () { var e = 0; s.ra.scrollHour ? e = 2 * s.cellHeight * s.ra.scrollHour : "Auto" === s.initScrollPos && (e = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), s.nav.scroll.scrollTop = e; }, this.Ea = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof s.events.list || !s.events.list); }, this.A = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { s.visible = !0, s.nav.top.style.display = ""; }, this.hide = function () { s.visible = !1, s.nav.top.style.display = "none"; }, this.Fa = function () { this.va(), this.B(), this.ba(), this.E(), this.F(), this.sa(), this.pa(), this.ta(), t.register(this), this.Ga(), this.m("Init"); }, this.ra = {}, this.Ha = function () { this.ra.themes = [], this.ra.themes.push(this.theme || this.cssClassPrefix); }, this.Ia = function () {
1409
+ for (var e = this.ra.themes, t = 0; t < e.length; t++) {
1366
1410
  var i = e[t];
1367
1411
  DayPilot.Util.removeClass(this.nav.top, i + "_main");
1368
1412
  }
1369
- this.qa.themes = [];
1413
+ this.ra.themes = [];
1370
1414
  }, this.Ja = function () {
1371
1415
  if (this.afterRender(null, !1), "function" == typeof this.onAfterRender) {
1372
1416
  var e = {};
@@ -1378,7 +1422,7 @@ if ("undefined" == typeof DayPilot)
1378
1422
  var e = {};
1379
1423
  this.onInit(e);
1380
1424
  }
1381
- }, this.Ma = function () { var e = s.nav.top; return e.offsetWidth > 0 && e.offsetHeight > 0; }, this.Ga = function () { var e = s.Ma; e() || (s.Na = setInterval(function () { e() && (s.oa(), s.ra(), clearInterval(s.Na)); }, 100)); }, this.ma = function (e, t) { return s.w.z() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.xssTextHtml = s.ma, this.init = function () { this.za(); var e = this.Ea(); return this.Ha(), e ? void this.Fa() : (this.va(), this.B(), this.C(), this.aa(), this.E(), this.F(), this.A(), this.ra(), this.oa(), this.sa(), t.register(this), this.events && (this.D(), this.I()), this.Ja(), this.Ka(), this.Ga(), this.ta = !0, this); }, this.Init = this.init, this.ua(i);
1425
+ }, this.Ma = function () { var e = s.nav.top; return e.offsetWidth > 0 && e.offsetHeight > 0; }, this.Ga = function () { var e = s.Ma; e() || (s.Na = setInterval(function () { e() && (s.pa(), s.sa(), clearInterval(s.Na)); }, 100)); }, this.na = function (e, t) { return s.w.z() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.loadOptions = s.ua, this.internal.xssTextHtml = s.na, this.init = function () { this.za(); var e = this.Ea(); return this.Ha(), e ? void this.Fa() : (this.va(), this.B(), this.C(), this.ba(), this.E(), this.F(), this.A(), this.sa(), this.pa(), this.ta(), t.register(this), this.events && (this.D(), this.I()), this.Ja(), this.Ka(), this.Ga(), this.Y = !0, this); }, this.Init = this.init, this.ua(i);
1382
1426
  }, t.Cell = function (e, t, i) { this.start = e, this.end = t, this.column = function () { }; }, t.Column = function (e, t, i) { this.value = e, this.name = t, this.date = new DayPilot.Date(i); }, DayPilot.Calendar = t.Calendar, "undefined" != typeof jQuery && !function (e) {
1383
1427
  e.fn.daypilotCalendar = function (e) {
1384
1428
  var t = null, i = this.each(function () {
@@ -1421,54 +1465,68 @@ if ("undefined" == typeof DayPilot)
1421
1465
  var DayPilot = {};
1422
1466
  !function () {
1423
1467
  "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (t) {
1424
- this.v = "2022.2.374-lite";
1468
+ this.v = "2022.3.391-lite";
1425
1469
  var e = "navigator_" + (new Date).getTime(), i = this;
1426
- this.prepare = function () {
1427
- if (this.locale = "en-us", this.target = null, this.resetTarget = !0, this.pattern = this.a.locale().datePattern, this.cssClassPrefix = "navigator_default", this.theme = null, this.patterns = [], t)
1470
+ this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () {
1471
+ if (this.locale = "en-us", this.target = null, this.targetAlignment = "left", this.resetTarget = !0, this.pattern = this.a.locale().datePattern, this.theme = "navigator_default", this.patterns = [], this.zIndex = null, t)
1428
1472
  for (var e in t)
1429
1473
  this[e] = t[e];
1430
- this.init();
1431
- }, this.init = function () { this.date = new DayPilot.Date(this.date); var t = this.b(); this.resetTarget && !t && this.c(this.date), DayPilot.re(document, "mousedown", function () { i.close(); }); }, this.close = function () { this.d && (this.navigator && this.navigator.dispose(), this.div.innerHTML = "", this.div && this.div.parentNode === document.body && document.body.removeChild(this.div)); }, this.b = function () {
1432
- var t = this.e();
1474
+ }, this.init = function () { this.date = new DayPilot.Date(this.date); var t = this.b(); this.resetTarget && !t ? this.c(this.date) : this.resetTarget || (i.date = t); var e = this.d(); return e && e.addEventListener("input", function () { i.date = i.b(), i.date && i.navigator.select(i.date, { dontNotify: !0 }); }), document.addEventListener("mousedown", function () { i.close(); }), this; }, this.close = function () { this.e && (this.e = !1, this.navigator && this.navigator.dispose(), this.div.innerHTML = "", this.div && this.div.parentNode === document.body && document.body.removeChild(this.div)); }, this.setDate = function (t) { this.date = new DayPilot.Date(t), this.c(this.date); }, this.b = function () {
1475
+ var t = this.d();
1433
1476
  if (!t)
1434
1477
  return this.date;
1435
1478
  var e = null;
1436
1479
  if (e = "INPUT" === t.tagName ? t.value : t.innerText, !e)
1437
1480
  return null;
1438
- for (var a = DayPilot.Date.parse(e, i.pattern), n = 0; n < i.patterns.length; n++) {
1439
- if (a)
1440
- return a;
1441
- a = DayPilot.Date.parse(e, i.patterns[n]);
1481
+ for (var n = DayPilot.Date.parse(e, i.pattern), a = 0; a < i.patterns.length; a++) {
1482
+ if (n)
1483
+ return n;
1484
+ n = DayPilot.Date.parse(e, i.patterns[a]);
1442
1485
  }
1443
- return a;
1486
+ return n;
1444
1487
  }, this.c = function (t) {
1445
- var e = this.e();
1488
+ var e = this.d();
1446
1489
  if (e) {
1447
- var a = t.toString(i.pattern, i.locale);
1448
- "INPUT" === e.tagName ? e.value = a : e.innerHTML = a;
1490
+ var n = t.toString(i.pattern, i.locale);
1491
+ "INPUT" === e.tagName ? e.value = n : e.innerHTML = n;
1492
+ }
1493
+ }, this.a = {}, this.a.locale = function () { return DayPilot.Locale.find(i.locale); }, this.d = function () { var t = this.target; return t && t.nodeType && 1 === t.nodeType ? t : document.getElementById(t); }, Object.defineProperty(this, "visible", { get: function () { return i.e; } }), this.show = function () {
1494
+ if (!this.e) {
1495
+ var t = this.d(), n = this.navigator, n = new DayPilot.Navigator(e);
1496
+ n.api = 2, n.cssOnly = !0, n.theme = i.theme, n.weekStarts = "Auto", n.locale = i.locale, n.onTimeRangeSelected = function (t) { i.date = t.start; var e = t.start.addTime(n.f), a = e.toString(i.pattern, i.locale), t = {}; t.start = e, t.date = e, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(t), t.preventDefault.value) || (i.c(a), i.close(), "function" == typeof i.onTimeRangeSelected && i.onTimeRangeSelected(t)); }, this.navigator = n;
1497
+ var a = DayPilot.abs(t), o = t.offsetHeight, s = i.targetAlignment, r = document.createElement("div");
1498
+ r.style.position = "absolute", "left" === s && (r.style.left = a.x + "px"), r.style.top = a.y + o + "px", i.zIndex && (r.style.zIndex = i.zIndex);
1499
+ var l = document.createElement("div");
1500
+ l.id = e, r.appendChild(l), r.addEventListener("mousedown", function (t) { var t = t || window.event; t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(); }), document.body.appendChild(r), this.div = r;
1501
+ var h = i.b() || (new DayPilot.Date).getDatePart();
1502
+ if (n.startDate = h, n.f = h.getTimePart(), n.selectionDay = h.getDatePart(), n.init(), "right" === s) {
1503
+ var d = a.x + t.offsetWidth - n.nav.top.offsetWidth;
1504
+ r.style.left = d + "px";
1505
+ }
1506
+ this.e = !0, this.onShow && this.onShow();
1449
1507
  }
1450
- }, this.a = {}, this.a.locale = function () { return DayPilot.Locale.find(i.locale); }, this.e = function () { var t = this.target; return t && t.nodeType && 1 === t.nodeType ? t : document.getElementById(t); }, this.show = function () { var t = this.e(), a = this.navigator, a = new DayPilot.Navigator(e); a.api = 2, a.theme = i.theme || i.cssClassPrefix, a.weekStarts = "Auto", a.locale = i.locale, a.timeRangeSelectedHandling = "JavaScript", a.onTimeRangeSelected = function (t) { i.date = t.start; var e = t.start, a = e.toString(i.pattern, i.locale), t = {}; t.start = e, t.date = e, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(t), t.preventDefault.value) || (i.c(a), i.close(), "function" == typeof i.onTimeRangeSelected && i.onTimeRangeSelected(t)); }, this.navigator = a; var n = DayPilot.abs(t), o = t.offsetHeight, r = document.createElement("div"); r.style.position = "absolute", r.style.left = n.x + "px", r.style.top = n.y + o + "px"; var s = document.createElement("div"); s.id = e, r.appendChild(s), DayPilot.re(r, "mousedown", function (t) { var t = t || window.event; t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(); }), document.body.appendChild(r), this.div = r; var l = i.b() || (new DayPilot.Date).getDatePart(); a.startDate = l, a.selectionDay = l, a.init(), this.d = !0; }, this.prepare();
1508
+ }, this.prepare(), this.init();
1451
1509
  });
1452
1510
  }();
1453
1511
  "undefined" == typeof DayPilot && (DayPilot = {}), function (DayPilot) {
1454
1512
  "use strict";
1455
- function e(t, i, a) {
1456
- var n = i.indexOf(".");
1513
+ function e(t, a, i) {
1514
+ var n = a.indexOf(".");
1457
1515
  if (n === -1)
1458
- return void ("__proto__" !== i && "constructor" !== i && (t[i] = a));
1459
- var o = i.substring(0, n);
1516
+ return void ("__proto__" !== a && "constructor" !== a && (t[a] = i));
1517
+ var o = a.substring(0, n);
1460
1518
  if ("__proto__" !== o && "constructor" !== o) {
1461
- var l = i.substring(n + 1), d = t[o];
1462
- "object" == typeof d && null !== d || (t[o] = {}, d = t[o]), e(d, l, a);
1519
+ var l = a.substring(n + 1), d = t[o];
1520
+ "object" == typeof d && null !== d || (t[o] = {}, d = t[o]), e(d, l, i);
1463
1521
  }
1464
1522
  }
1465
- function t(e, i, a) {
1466
- i = i || {}, a = a || "";
1523
+ function t(e, a, i) {
1524
+ a = a || {}, i = i || "";
1467
1525
  for (var n in e) {
1468
1526
  var o = e[n];
1469
- "object" == typeof o ? "[object Array]" === Object.prototype.toString.call(o) ? i[a + n] = o : o && o.toJSON ? i[a + n] = o.toJSON() : t(o, i, a + n + ".") : i[a + n] = o;
1527
+ "object" == typeof o ? "[object Array]" === Object.prototype.toString.call(o) ? a[i + n] = o : o && o.toJSON ? a[i + n] = o.toJSON() : t(o, a, i + n + ".") : a[i + n] = o;
1470
1528
  }
1471
- return i;
1529
+ return a;
1472
1530
  }
1473
1531
  if (!DayPilot.ModalStatic) {
1474
1532
  DayPilot.ModalStatic = {}, DayPilot.ModalStatic.list = [], DayPilot.ModalStatic.hide = function () {
@@ -1477,12 +1535,12 @@ if ("undefined" == typeof DayPilot)
1477
1535
  e && e.hide();
1478
1536
  }
1479
1537
  }, DayPilot.ModalStatic.remove = function (e) {
1480
- for (var t = DayPilot.ModalStatic.list, i = 0; i < t.length; i++)
1481
- if (t[i] === e)
1482
- return void t.splice(i, 1);
1538
+ for (var t = DayPilot.ModalStatic.list, a = 0; a < t.length; a++)
1539
+ if (t[a] === e)
1540
+ return void t.splice(a, 1);
1483
1541
  }, DayPilot.ModalStatic.close = function (e) { DayPilot.ModalStatic.result(e), DayPilot.ModalStatic.hide(); }, DayPilot.ModalStatic.result = function (e) { var t = DayPilot.ModalStatic.list; t.length > 0 && (t[t.length - 1].result = e); }, DayPilot.ModalStatic.displayed = function (e) {
1484
- for (var t = DayPilot.ModalStatic.list, i = 0; i < t.length; i++)
1485
- if (t[i] === e)
1542
+ for (var t = DayPilot.ModalStatic.list, a = 0; a < t.length; a++)
1543
+ if (t[a] === e)
1486
1544
  return !0;
1487
1545
  return !1;
1488
1546
  }, DayPilot.ModalStatic.stretch = function () {
@@ -1491,28 +1549,28 @@ if ("undefined" == typeof DayPilot)
1491
1549
  e && e.stretch();
1492
1550
  }
1493
1551
  }, DayPilot.ModalStatic.last = function () { var e = DayPilot.ModalStatic.list; return e.length > 0 ? e[e.length - 1] : null; };
1494
- var i = function () {
1552
+ var a = function () {
1495
1553
  var e = document.createElement("style");
1496
1554
  e.setAttribute("type", "text/css"), e.styleSheet || e.appendChild(document.createTextNode("")), (document.head || document.getElementsByTagName("head")[0]).appendChild(e);
1497
- var t = !!e.styleSheet, i = {};
1498
- return i.rules = [], i.commit = function () {
1555
+ var t = !!e.styleSheet, a = {};
1556
+ return a.rules = [], a.commit = function () {
1499
1557
  try {
1500
1558
  t && (e.styleSheet.cssText = this.rules.join("\n"));
1501
1559
  }
1502
1560
  catch (e) { }
1503
- }, i.add = function (i, a, n) {
1561
+ }, a.add = function (a, i, n) {
1504
1562
  if (t)
1505
- return void this.rules.push(i + "{" + a + "}");
1563
+ return void this.rules.push(a + "{" + i + "}");
1506
1564
  if (e.sheet.insertRule)
1507
- "undefined" == typeof n && (n = e.sheet.cssRules.length), e.sheet.insertRule(i + "{" + a + "}", n);
1565
+ "undefined" == typeof n && (n = e.sheet.cssRules.length), e.sheet.insertRule(a + "{" + i + "}", n);
1508
1566
  else {
1509
1567
  if (!e.sheet.addRule)
1510
1568
  throw "No CSS registration method found";
1511
- e.sheet.addRule(i, a, n);
1569
+ e.sheet.addRule(a, i, n);
1512
1570
  }
1513
- }, i;
1514
- }, a = new i;
1515
- a.add(".modal_default_main", "border: 10px solid #ccc; max-width: 90%;"), a.add(".modal_default_main:focus", "outline: none;"), a.add(".modal_default_content", "padding: 10px 0px;"), a.add(".modal_default_inner", "padding: 20px;"), a.add(".modal_default_input", "padding: 10px 0px;"), a.add(".modal_default_buttons", "margin-top: 10px;"), a.add(".modal_default_buttons", "padding: 10px 0px;"), a.add(".modal_default_form_item", "padding: 10px 0px; position: relative;"), a.add(".modal_default_form_item_level1", "border-left: 2px solid #ccc; margin-left: 10px; padding-left: 20px;"), a.add(".modal_default_form_item.modal_default_form_title", "font-size: 1.5rem; font-weight: bold;"), a.add(".modal_default_form_item input[type=text]", "width: 100%; box-sizing: border-box;"), a.add(".modal_default_form_item textarea", "width: 100%; height: 200px; box-sizing: border-box;"), a.add(".modal_default_form_item input[type=select]", "width: 100%; box-sizing: border-box;"), a.add(".modal_default_form_item label", "display: block;"), a.add(".modal_default_form_item select", "width: 100%; box-sizing: border-box;"), a.add(".modal_default_form_item_label", "margin: 2px 0px;"), a.add(".modal_default_form_item_image img", "max-width: 100%; height: auto;"), a.add(".modal_default_form_item_invalid", ""), a.add(".modal_default_form_item_invalid_message", "position: absolute; right: 0px; top: 9px; background-color: red; color: #ffffff; padding: 2px; border-radius: 2px;"), a.add(".modal_default_background", "opacity: 0.5; background-color: #000;"), a.add(".modal_default_ok", "padding: 3px; width: 80px;"), a.add(".modal_default_cancel", "padding: 3px; width: 80px;"), a.add(".modal_default_form_item_date", "position: relative;"), a.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==" + ")"), navigator.userAgent.indexOf("Edge") !== -1 && a.add(".modal_default_form_item_date input::-ms-clear", "display: none;"), a.add(".modal_default_form_item_scrollable_scroll", "width: 100%; height: 200px; box-sizing: border-box; border: 1px solid #ccc; overflow-y: auto;"), a.add(".modal_default_form_item_scrollable_scroll_content", "padding: 5px;"), a.add(".modal_default_form_item_searchable", "position: relative;"), a.add(".modal_default_form_item_searchable_icon", ""), a.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(" + "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxwYXRoCiAgICAgICBpZD0icGF0aDMxNzMiCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojOTk5OTk5O3N0cm9rZS13aWR0aDoxLjg1MTk2ODUzO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZSIKICAgICAgIGQ9Ik0gMC45NTQxNDgzOCwwLjY4MTYwMzEgNS4wMzkwNjI1LDUuNDExNTM4NiA5LjEyMzk3NjYsMC42ODE2MDMxIgogICAgICAgIC8+CiAgPC9nPgo8L3N2Zz4K" + ");"), a.add(".modal_default_form_item_searchable_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), a.add(".modal_default_form_item_searchable_list_item", "background: white; padding: 2px; cursor: default;"), a.add(".modal_default_form_item_searchable_list_item_highlight", "background: #ccc;"), a.add(".modal_default_form_item_tabular_main", "margin-top: 10px;"), a.add(".modal_default_form_item_tabular_table", "display: table; width: 100%; xbackground-color: #fff; border-collapse: collapse;"), a.add(".modal_default_form_item_tabular_tbody", "display: table-row-group;"), a.add(".modal_default_form_item_tabular_row", "display: table-row;"), a.add(".modal_default_form_item_tabular_row.modal_default_form_item_tabular_header", ""), a.add(".modal_default_form_item_tabular_cell.modal_default_form_item_tabular_rowaction", "padding: 0px; width: 23px;"), a.add(".modal_default_form_item_tabular_cell", "display: table-cell; border: 0px; padding: 2px 2px 2px 0px; cursor: default; vertical-align: bottom;"), a.add(".modal_default_form_item_tabular_header .modal_default_form_item_tabular_cell", "padding-left: 0px; padding-bottom: 0px;"), a.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;"), a.add(".modal_default_form_item_tabular_table select", "width:100%; height:100%; box-sizing: border-box;"), a.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;"), a.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==\")"), a.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;"), a.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==\")"), a.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_plus", "display: none;"), a.add(".modal_default_form_item_tabular_plus_max.modal_default_form_item_tabular_plus", "display: none;"), a.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_delete", "visibility: hidden;"), a.add(".modal_default_form_item_tabular_empty", "height: 1px; margin: 5px 23px 5px 0px; background-color: #ccc;"), a.add(".modal_default_form_item_tabular_spacer .modal_default_form_item_tabular_cell", "padding: 0px;"), a.add(".modal_min_main", "border: 1px solid #ccc; max-width: 90%;"), a.add(".modal_min_background", "opacity: 0.5; background-color: #000;"), a.add(".modal_min_ok", "padding: 3px 10px;"), a.add(".modal_min_cancel", "padding: 3px 10px;"), a.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;"), a.add(".navigator_modal_main *, .navigator_modal_main *:before, .navigator_modal_main *:after", "box-sizing: content-box;"), a.add(".navigator_modal_month", "font-size: 11px;"), a.add(".navigator_modal_day", "color: black;"), a.add(".navigator_modal_weekend", "background-color: #f0f0f0;"), a.add(".navigator_modal_dayheader", "color: black;"), a.add(".navigator_modal_line", "border-bottom: 1px solid #c0c0c0;"), a.add(".navigator_modal_dayother", "color: gray;"), a.add(".navigator_modal_todaybox", "border: 1px solid red;"), a.add(".navigator_modal_title, .navigator_modal_titleleft, .navigator_modal_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), a.add(".navigator_modal_busy", "font-weight: bold;"), a.add(".navigator_modal_cell", "text-align: center;"), a.add(".navigator_modal_select .navigator_modal_cell_box", "background-color: #FFE794; opacity: 0.5;"), a.add(".navigator_modal_title", "text-align: center;"), a.add(".navigator_modal_titleleft, .navigator_modal_titleright", "text-align: center;"), a.add(".navigator_modal_dayheader", "text-align: center;"), a.add(".navigator_modal_weeknumber", "text-align: center;"), a.add(".navigator_modal_cell_text", "cursor: pointer;"), a.commit(), DayPilot.Modal = function (e) {
1571
+ }, a;
1572
+ }, i = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxwYXRoCiAgICAgICBpZD0icGF0aDMxNzMiCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojOTk5OTk5O3N0cm9rZS13aWR0aDoxLjg1MTk2ODUzO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZSIKICAgICAgIGQ9Ik0gMC45NTQxNDgzOCwwLjY4MTYwMzEgNS4wMzkwNjI1LDUuNDExNTM4NiA5LjEyMzk3NjYsMC42ODE2MDMxIgogICAgICAgIC8+CiAgPC9nPgo8L3N2Zz4K", n = new a;
1573
+ 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==" + ")"), 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(" + i + ");"), 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(" + i + ");"), 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) {
1516
1574
  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;
1517
1575
  var t = this;
1518
1576
  this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.a = !1, this.b = null, this.c = null, this.showHtml = function (e) {
@@ -1530,11 +1588,11 @@ if ("undefined" == typeof DayPilot)
1530
1588
  throw "This modal dialog is already displayed.";
1531
1589
  if (this.useIframe) {
1532
1590
  this.div || this.d();
1533
- var i = this.loadingHtml;
1534
- i && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", i)), this.re(this.iframe, "load", this.h), this.iframe.src = e, this.e(), this.f(), this.g();
1591
+ var a = this.loadingHtml;
1592
+ a && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", a)), this.re(this.iframe, "load", this.h), this.iframe.src = e, this.e(), this.f(), this.g();
1535
1593
  }
1536
1594
  else
1537
- t.i({ "url": e, "success": function (e) { var i = e.request.responseText; t.showHtml(i); }, "error": function (e) { t.showHtml("Error loading the modal dialog"); } });
1595
+ t.i({ "url": e, "success": function (e) { var a = e.request.responseText; t.showHtml(a); }, "error": function (e) { t.showHtml("Error loading the modal dialog"); } });
1538
1596
  }, this.g = function () {
1539
1597
  if ("function" == typeof t.onShow) {
1540
1598
  var e = {};
@@ -1543,12 +1601,12 @@ if ("undefined" == typeof DayPilot)
1543
1601
  }, this.j = function () { return t.iframe ? t.iframe.contentWindow.document : t.div; }, this.i = function (e) {
1544
1602
  var t = new XMLHttpRequest;
1545
1603
  if (t) {
1546
- var i = e.method || "GET", a = e.success || function () { }, n = e.error || function () { }, o = e.data, l = e.url;
1547
- t.open(i, l, !0), t.setRequestHeader("Content-type", "text/plain"), t.onreadystatechange = function () {
1604
+ var a = e.method || "GET", i = e.success || function () { }, n = e.error || function () { }, o = e.data, l = e.url;
1605
+ t.open(a, l, !0), t.setRequestHeader("Content-type", "text/plain"), t.onreadystatechange = function () {
1548
1606
  if (4 === t.readyState)
1549
1607
  if (200 === t.status || 304 === t.status) {
1550
1608
  var e = {};
1551
- e.request = t, a(e);
1609
+ e.request = t, i(e);
1552
1610
  }
1553
1611
  else if (n) {
1554
1612
  var e = {};
@@ -1558,10 +1616,10 @@ if ("undefined" == typeof DayPilot)
1558
1616
  window.console && console.log("HTTP error " + t.status);
1559
1617
  }, 4 !== t.readyState && ("object" == typeof o && (o = JSON.stringify(o)), t.send(o));
1560
1618
  }
1561
- }, this.e = 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.l(), DayPilot.ModalStatic.remove(this), DayPilot.ModalStatic.list.push(this); }, this.h = function () { t.iframe.contentWindow.modal = t, t.autoStretch && t.stretch(); }, this.stretch = function () {
1562
- var e = function () { return t.k().y; }, i = function () { return t.k().x; };
1619
+ }, this.e = function () { delete this.result; var e = window, a = document, i = e.pageYOffset ? e.pageYOffset : a.documentElement && a.documentElement.scrollTop ? a.documentElement.scrollTop : a.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 = i + 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.l(), DayPilot.ModalStatic.remove(this), DayPilot.ModalStatic.list.push(this); }, this.h = function () { t.iframe.contentWindow.modal = t, t.autoStretch && t.stretch(); }, this.stretch = function () {
1620
+ var e = function () { return t.k().y; }, a = function () { return t.k().x; };
1563
1621
  if (this.useIframe) {
1564
- for (var a = i() - 40, n = this.width; n < a && this.m(); n += 10)
1622
+ for (var i = a() - 40, n = this.width; n < i && this.m(); n += 10)
1565
1623
  this.div.style.width = n + "px", this.div.style.marginLeft = "-" + Math.floor(n / 2) + "px";
1566
1624
  for (var o = this.maxHeight || e() - 2 * this.top, l = this.height; l < o && this.n(); l += 10)
1567
1625
  this.iframe.style.height = l + "px", this.div.style.height = l + "px";
@@ -1570,29 +1628,29 @@ if ("undefined" == typeof DayPilot)
1570
1628
  else
1571
1629
  this.div.style.height = "";
1572
1630
  }, this.m = function () {
1573
- 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++) {
1574
- var o = a[n].offsetLeft + a[n].offsetWidth;
1575
- i = Math.max(i, o);
1631
+ for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement, a = t.scrollWidth, i = e.body.children, n = 0; n < i.length; n++) {
1632
+ var o = i[n].offsetLeft + i[n].offsetWidth;
1633
+ a = Math.max(a, o);
1576
1634
  }
1577
- return i > t.clientWidth;
1635
+ return a > t.clientWidth;
1578
1636
  }, this.n = function () {
1579
- 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++) {
1580
- var o = a[n].offsetTop + a[n].offsetHeight;
1581
- i = Math.max(i, o);
1637
+ for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement, a = t.scrollHeight, i = e.body.children, n = 0; n < i.length; n++) {
1638
+ var o = i[n].offsetTop + i[n].offsetHeight;
1639
+ a = Math.max(a, o);
1582
1640
  }
1583
- return i > t.clientHeight;
1641
+ return a > t.clientHeight;
1584
1642
  }, this.k = function () {
1585
1643
  var e = document;
1586
1644
  if ("CSS1Compat" === e.compatMode && e.documentElement && e.documentElement.clientWidth) {
1587
- var t = e.documentElement.clientWidth, i = e.documentElement.clientHeight;
1588
- return { x: t, y: i };
1645
+ var t = e.documentElement.clientWidth, a = e.documentElement.clientHeight;
1646
+ return { x: t, y: a };
1589
1647
  }
1590
- var t = e.body.clientWidth, i = e.body.clientHeight;
1591
- return { x: t, y: i };
1648
+ var t = e.body.clientWidth, a = e.body.clientHeight;
1649
+ return { x: t, y: a };
1592
1650
  }, this.f = function () { this.a || (this.re(window, "resize", this.o), this.re(window, "scroll", this.p), this.dragDrop && (this.re(document, "mousemove", this.q), this.re(document, "mouseup", this.r)), this.a = !0); }, this.s = function () { this.ue(window, "resize", this.o), this.ue(window, "scroll", this.p), this.dragDrop && (this.ue(document, "mousemove", this.q), this.ue(document, "mouseup", this.r)), this.a = !1; }, this.t = function (e) { e.target === t.div && (e.preventDefault(), t.div.style.cursor = "move", t.u(), t.c = t.mc(e || window.event), t.b = { x: t.div.offsetLeft, y: t.div.offsetTop }); }, this.q = function (e) {
1593
1651
  if (t.c) {
1594
- var e = e || window.event, i = t.mc(e), a = i.x - t.c.x, n = i.y - t.c.y;
1595
- t.div.style.marginLeft = "0px", t.div.style.top = t.b.y + n + "px", t.div.style.left = t.b.x + a + "px";
1652
+ var e = e || window.event, a = t.mc(e), i = a.x - t.c.x, n = a.y - t.c.y;
1653
+ t.div.style.marginLeft = "0px", t.div.style.top = t.b.y + n + "px", t.div.style.left = t.b.x + i + "px";
1596
1654
  }
1597
1655
  }, this.r = function (e) { t.c && (t.v(), t.div.style.cursor = null, t.c = null); }, this.u = function () {
1598
1656
  if (this.useIframe) {
@@ -1609,30 +1667,30 @@ if ("undefined" == typeof DayPilot)
1609
1667
  var e = t.z.scrollY();
1610
1668
  t.scrollWithPage || (t.div.style.top = e + t.top + "px");
1611
1669
  }
1612
- }, this.z = {}, this.z.container = function () { return t.container || document.body; }, this.z.scrollY = function () { var e = t.z.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) {
1670
+ }, this.z = {}, this.z.container = function () { return t.container || document.body; }, this.z.scrollY = function () { var e = t.z.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, a) { e.addEventListener ? e.addEventListener(t, a, !1) : e.attachEvent && e.attachEvent("on" + t, a); }, this.ue = function (e, t, a) { e.removeEventListener ? e.removeEventListener(t, a, !1) : e.detachEvent && e.detachEvent("on" + t, a); }, 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) {
1613
1671
  for (var t = { x: e.offsetLeft, y: e.offsetTop }; e.offsetParent;)
1614
1672
  e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop;
1615
1673
  return t;
1616
- }, this.d = function () { var e = t.z.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.t), o.addEventListener("keydown", function (e) { e.stopPropagation(); }); var l = null; this.useIframe && (l = document.createElement("iframe"), l.id = this.id + "iframe", l.name = this.id + "iframe", l.frameBorder = "0", l.style.width = "100%", l.style.height = "50px", o.appendChild(l)), e.appendChild(o), this.div = o, this.iframe = l, 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.A || (t.stretch(), t.A = !0)); }, this.close = function (e) { this.result = e, this.hide(); }, this.closeSerialized = function () {
1617
- for (var e = t.j(), i = e.querySelectorAll("input, textarea, select"), a = {}, n = 0; n < i.length; n++) {
1618
- var o = i[n], l = o.name;
1674
+ }, this.d = function () { var e = t.z.container(), a = e === document.body, i = a ? "fixed" : "absolute", n = document.createElement("div"); n.id = this.id + "hide", n.style.position = i, 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 = i, 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.t), o.addEventListener("keydown", function (e) { e.stopPropagation(); }); var l = null; this.useIframe && (l = document.createElement("iframe"), l.id = this.id + "iframe", l.name = this.id + "iframe", l.frameBorder = "0", l.style.width = "100%", l.style.height = "50px", o.appendChild(l)), e.appendChild(o), this.div = o, this.iframe = l, this.hideDiv = n; }, this.setInnerHTML = function (e, a) { var i = window.frames[e], n = i.contentWindow || i.document || i.contentDocument; n.document && (n = n.document), null == n.body && n.write("<body></body>"), a.nodeType ? n.body.appendChild(a) : n.body.innerHTML = a, t.autoStretch && (t.autoStretchFirstLoadOnly && t.A || (t.stretch(), t.A = !0)); }, this.close = function (e) { this.result = e, this.hide(); }, this.closeSerialized = function () {
1675
+ for (var e = t.j(), a = e.querySelectorAll("input, textarea, select"), i = {}, n = 0; n < a.length; n++) {
1676
+ var o = a[n], l = o.name;
1619
1677
  if (l) {
1620
1678
  var d = o.value;
1621
- a[l] = d;
1679
+ i[l] = d;
1622
1680
  }
1623
1681
  }
1624
- t.close(a);
1625
- }, 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.s(), t.B(t.div), t.B(t.hideDiv), t.div = null, t.hideDiv = null, t.iframe = null)); }, this.B = function (e) { e && e.parentNode && e.parentNode.removeChild(e); }, this.C = function () {
1682
+ t.close(i);
1683
+ }, this.hide = function (e) { e = e || {}; var a = {}; a.backgroundClick = !!e.backgroundClick, a.result = this.result, a.canceled = "undefined" == typeof this.result, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof this.onClose && (this.onClose(a), a.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(a) : this.closed && this.closed(), delete this.result, this.disposeOnClose && (t.s(), t.B(t.div), t.B(t.hideDiv), t.div = null, t.hideDiv = null, t.iframe = null)); }, this.B = function (e) { e && e.parentNode && e.parentNode.removeChild(e); }, this.C = function () {
1626
1684
  if (e)
1627
1685
  for (var t in e)
1628
1686
  this[t] = e[t];
1629
1687
  }, this.C();
1630
- }, 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), l = document.createElement("div"); l.className = o.theme + "_inner"; var d = document.createElement("div"); d.className = o.theme + "_content", d.innerHTML = e; var r = document.createElement("div"); r.className = o.theme + "_buttons"; var s = document.createElement("button"); s.innerText = i, s.className = o.theme + "_ok", s.onclick = function (e) { DayPilot.ModalStatic.close("OK"); }, r.appendChild(s), l.appendChild(d), l.appendChild(r), o.showHtml(l), o.autoFocus && s.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 l = new DayPilot.Modal(t), d = document.createElement("div"); d.className = l.theme + "_inner"; var r = document.createElement("div"); r.className = l.theme + "_content", r.innerHTML = e; var s = document.createElement("div"); s.className = l.theme + "_buttons"; var c = document.createElement("button"); c.innerText = i, c.className = l.theme + "_ok", c.onclick = function (e) { DayPilot.ModalStatic.close("OK"); }; var u = document.createTextNode(" "), m = document.createElement("button"); m.innerText = a, m.className = l.theme + "_cancel", m.onclick = function (e) { DayPilot.ModalStatic.close(); }, s.appendChild(c), s.appendChild(u), s.appendChild(m), d.appendChild(r), d.appendChild(s), l.showHtml(d), l.autoFocus && c.focus(); }); }, DayPilot.Modal.prompt = function (e, t, i) {
1631
- "object" == typeof t && (i = t, t = ""), i = i || {}, i.height = i.height || 40, i.useIframe = !1;
1632
- var a = i.okText || "OK", n = i.cancelText || "Cancel", o = t || "";
1688
+ }, DayPilot.Modal.alert = function (e, t) { t = t || {}, t.height = t.height || 40, t.useIframe = !1; var a = t.okText || "OK"; t.cancelText || "Cancel"; return DayPilot.getPromise(function (i, n) { t.onClosed = function (e) { i(e); }; var o = new DayPilot.Modal(t), l = document.createElement("div"); l.className = o.theme + "_inner"; var d = document.createElement("div"); d.className = o.theme + "_content", d.innerHTML = e; var r = document.createElement("div"); r.className = o.theme + "_buttons"; var s = document.createElement("button"); s.innerText = a, s.className = o.theme + "_ok", s.onclick = function (e) { DayPilot.ModalStatic.close("OK"); }, r.appendChild(s), l.appendChild(d), l.appendChild(r), o.showHtml(l), o.autoFocus && s.focus(); }); }, DayPilot.Modal.confirm = function (e, t) { t = t || {}, t.height = t.height || 40, t.useIframe = !1; var a = t.okText || "OK", i = t.cancelText || "Cancel"; return DayPilot.getPromise(function (n, o) { t.onClosed = function (e) { n(e); }; var l = new DayPilot.Modal(t), d = document.createElement("div"); d.className = l.theme + "_inner"; var r = document.createElement("div"); r.className = l.theme + "_content", r.innerHTML = e; var s = document.createElement("div"); s.className = l.theme + "_buttons"; var c = document.createElement("button"); c.innerText = a, c.className = l.theme + "_ok", c.onclick = function (e) { DayPilot.ModalStatic.close("OK"); }; var u = document.createTextNode(" "), m = document.createElement("button"); m.innerText = i, m.className = l.theme + "_cancel", m.onclick = function (e) { DayPilot.ModalStatic.close(); }, s.appendChild(c), s.appendChild(u), s.appendChild(m), d.appendChild(r), d.appendChild(s), l.showHtml(d), l.autoFocus && c.focus(); }); }, DayPilot.Modal.prompt = function (e, t, a) {
1689
+ "object" == typeof t && (a = t, t = ""), a = a || {}, a.height = a.height || 40, a.useIframe = !1;
1690
+ var i = a.okText || "OK", n = a.cancelText || "Cancel", o = t || "";
1633
1691
  return DayPilot.getPromise(function (t, l) {
1634
- i.onClosed = function (e) { t(e); };
1635
- var d = new DayPilot.Modal(i), r = document.createElement("div");
1692
+ a.onClosed = function (e) { t(e); };
1693
+ var d = new DayPilot.Modal(a), r = document.createElement("div");
1636
1694
  r.className = d.theme + "_inner";
1637
1695
  var s = document.createElement("div");
1638
1696
  s.className = d.theme + "_content", s.innerHTML = e;
@@ -1655,80 +1713,80 @@ if ("undefined" == typeof DayPilot)
1655
1713
  var m = document.createElement("div");
1656
1714
  m.className = d.theme + "_buttons";
1657
1715
  var h = document.createElement("button");
1658
- h.innerText = a, h.className = d.theme + "_ok", h.onclick = function (e) { d.close(u.value); };
1716
+ h.innerText = i, h.className = d.theme + "_ok", h.onclick = function (e) { d.close(u.value); };
1659
1717
  var p = document.createTextNode(" "), f = document.createElement("button");
1660
1718
  f.innerText = n, f.className = d.theme + "_cancel", f.onclick = function (e) { d.close(); }, m.appendChild(h), m.appendChild(p), m.appendChild(f), r.appendChild(s), r.appendChild(c), r.appendChild(m), d.showHtml(r), d.autoFocus && u.focus();
1661
1719
  });
1662
1720
  };
1663
- var n = function (e) { return "[object Array]" === Object.prototype.toString.call(e); };
1664
- DayPilot.Modal.form = function (t, i, a) {
1721
+ var o = function (e) { return "[object Array]" === Object.prototype.toString.call(e); };
1722
+ DayPilot.Modal.form = function (t, a, i) {
1665
1723
  if (1 === arguments.length) {
1666
- var l = t;
1667
- if (n(l))
1668
- i = {};
1724
+ var n = t;
1725
+ if (o(n))
1726
+ a = {};
1669
1727
  else {
1670
- if ("object" != typeof l)
1728
+ if ("object" != typeof n)
1671
1729
  throw "Invalid DayPilot.Modal.form() parameter";
1672
- i = t, t = [];
1673
- for (var d in i) {
1730
+ a = t, t = [];
1731
+ for (var d in a) {
1674
1732
  var r = {};
1675
1733
  r.name = d, r.id = d, t.push(r);
1676
1734
  }
1677
1735
  }
1678
1736
  }
1679
1737
  var s = {};
1680
- for (var d in a)
1681
- s[d] = a[d];
1738
+ for (var d in i)
1739
+ s[d] = i[d];
1682
1740
  s.height = s.height || 40, s.useIframe = !1;
1683
1741
  var c = s.okText || "OK", u = s.cancelText || "Cancel";
1684
- return DayPilot.getPromise(function (a, n) {
1742
+ return DayPilot.getPromise(function (i, n) {
1685
1743
  s.onClosed = function (t) {
1686
1744
  if (t.result) {
1687
- var n = JSON.parse(JSON.stringify(i));
1745
+ var n = JSON.parse(JSON.stringify(a));
1688
1746
  for (var o in t.result)
1689
1747
  e(n, o, t.result[o]);
1690
1748
  t.result = n;
1691
1749
  }
1692
- a(t);
1750
+ i(t);
1693
1751
  };
1694
- var l = new DayPilot.Modal(s), d = document.createElement("div");
1695
- d.className = l.theme + "_inner";
1752
+ var o = new DayPilot.Modal(s), d = document.createElement("div");
1753
+ d.className = o.theme + "_inner";
1696
1754
  var r = document.createElement("div");
1697
- r.className = l.theme + "_input";
1698
- var m = new o({ theme: l.theme, form: t, data: i, zIndex: l.zIndex, locale: l.locale, plugins: l.plugins, onKey: function (e) {
1755
+ r.className = o.theme + "_input";
1756
+ var m = new l({ theme: o.theme, form: t, data: a, zIndex: o.zIndex, locale: o.locale, plugins: o.plugins, onKey: function (e) {
1699
1757
  switch (e.key) {
1700
1758
  case "Enter":
1701
- m.validate() && l.close(m.serialize());
1759
+ m.validate() && o.close(m.serialize());
1702
1760
  break;
1703
- case "Escape": l.close();
1761
+ case "Escape": o.close();
1704
1762
  }
1705
- }, onChange: function (e) { "function" == typeof l.onChange && l.onChange(e); } }), h = m.create();
1763
+ }, onChange: function (e) { "function" == typeof o.onChange && o.onChange(e); } }), h = m.create();
1706
1764
  r.append(h);
1707
1765
  var p = document.createElement("div");
1708
- p.className = l.theme + "_buttons";
1766
+ p.className = o.theme + "_buttons";
1709
1767
  var f = document.createElement("button");
1710
- f.innerText = c, f.className = l.theme + "_ok", s.okDisabled && (f.disabled = !0), f.onclick = function (e) { m.validate() && l.close(m.serialize()); };
1768
+ f.innerText = c, f.className = o.theme + "_ok", s.okDisabled && (f.disabled = !0), f.onclick = function (e) { m.validate() && o.close(m.serialize()); };
1711
1769
  var v = document.createTextNode(" "), g = document.createElement("button");
1712
- if (g.innerText = u, g.className = l.theme + "_cancel", g.onclick = function (e) { l.close(); }, g.onmousedown = function (e) { m.canceling = !0; }, p.appendChild(f), p.appendChild(v), p.appendChild(g), d.appendChild(r), d.appendChild(p), l.showHtml(d), l.div.setAttribute("tabindex", "-1"), l.div.addEventListener("keydown", function (e) {
1770
+ if (g.innerText = u, g.className = o.theme + "_cancel", g.onclick = function (e) { o.close(); }, g.onmousedown = function (e) { m.canceling = !0; }, p.appendChild(f), p.appendChild(v), p.appendChild(g), d.appendChild(r), d.appendChild(p), o.showHtml(d), o.div.setAttribute("tabindex", "-1"), o.div.addEventListener("keydown", function (e) {
1713
1771
  switch (e.keyCode) {
1714
1772
  case 27:
1715
- l.close();
1773
+ o.close();
1716
1774
  break;
1717
- case 13: m.validate() && l.close(m.serialize());
1775
+ case 13: m.validate() && o.close(m.serialize());
1718
1776
  }
1719
- }), l.focus) {
1777
+ }), o.focus) {
1720
1778
  var b = null;
1721
- if ("object" == typeof l.focus) {
1722
- var y = l.focus.id, I = l.focus.value;
1723
- b = m.findViewById(y, I);
1779
+ if ("object" == typeof o.focus) {
1780
+ var y = o.focus.id, _ = o.focus.value;
1781
+ b = m.findViewById(y, _);
1724
1782
  }
1725
1783
  else
1726
- "string" == typeof l.focus && (b = m.findViewById(l.focus));
1784
+ "string" == typeof o.focus && (b = m.findViewById(o.focus));
1727
1785
  b && b.focus();
1728
1786
  }
1729
1787
  else {
1730
- var _ = m.firstFocusable();
1731
- l.autoFocus && _ ? _.focus() : l.div.focus();
1788
+ var I = m.firstFocusable();
1789
+ o.autoFocus && I ? I.focus() : o.div.focus();
1732
1790
  }
1733
1791
  });
1734
1792
  }, DayPilot.Modal.close = function (e) { var t = DayPilot.Modal.opener(); t && t.close(e); }, DayPilot.Modal.stretch = function (e) {
@@ -1736,33 +1794,30 @@ if ("undefined" == typeof DayPilot)
1736
1794
  if (!t)
1737
1795
  throw "Unable to find the opener DayPilot.Modal instance.";
1738
1796
  t.stretch();
1739
- }, 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 = o, "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)); });
1740
- var o = function (e) {
1797
+ }, 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 = l, "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, a) { return t = t || function () { }, a = a || function () { }, e(t, a), DayPilot.getPromise(e); }, this["catch"] = function (a) { return t.then(null, a), DayPilot.getPromise(e); }; }, new DayPilot.Promise(e)); });
1798
+ var l = function (e) {
1741
1799
  this.form = [], this.data = {}, this.theme = "form_default", this.zIndex = 99999, this.locale = "en-us", this.plugins = {}, this.onKey = null, this.D = [], this.E = null, this.canceling = !1, this.F = [], this.G = [], this.H = null, e = e || {};
1742
1800
  for (var t in e)
1743
1801
  this[t] = e[t];
1744
1802
  };
1745
- o.prototype.create = function () { return this.load(), this.render(), this.H; }, o.prototype.render = function () { var e = this; this.H = document.createElement("div"), this.D.forEach(function (t) { e.createView(t); }), this.applyState(); }, o.prototype.createView = function (e) {
1746
- var t = this.theme, i = this, a = document.createElement("div");
1747
- 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) {
1803
+ l.prototype.create = function () { return this.load(), this.render(), this.H; }, l.prototype.render = function () { var e = this; this.H = document.createElement("div"), this.D.forEach(function (t) { e.createView(t); }), this.applyState(); }, l.prototype.createView = function (e) {
1804
+ var t = this.theme, a = this, i = document.createElement("div");
1805
+ if (i.className = t + "_form_item " + t + "_form_item_level" + e.level,
1806
+ e.interactive || "title" !== e.type ? i.className += " " + t + "_form_item_" + e.type : i.className += " " + t + "_form_title", e.data.cssClass && (i.className += " " + e.data.cssClass), !e.isValue) {
1748
1807
  var n = document.createElement("div");
1749
- n.className = t + "_form_item_label", n.innerText = e.text, a.appendChild(n);
1808
+ n.className = t + "_form_item_label", n.innerText = e.text, i.appendChild(n);
1750
1809
  }
1751
1810
  var o = this.createInteractive(e);
1752
1811
  o.onInput = function (e) {
1753
- if (e = e || {}, i.I(o, { "debounce": !e.immediate }), "function" == typeof i.onChange) {
1812
+ if (e = e || {}, a.I(o, { "debounce": !e.immediate }), "function" == typeof a.onChange) {
1754
1813
  var t = {};
1755
- t.result = i.serialize(), i.onChange(t);
1814
+ t.result = a.serialize(), a.onChange(t);
1756
1815
  }
1757
- }, o.onBlur = function () { i.canceling || i.I(o); }, o.apply(e), o.H = a, o.row = e, o.element && a.appendChild(o.element), this.G.push(o), this.H.appendChild(a);
1758
- }, o.prototype.validate = function () { var e = this, t = !0; return this.G.forEach(function (i) { var a = e.I(i); t = t && a; }), t; }, o.prototype.I = function (e, t) {
1759
- function i() {
1760
- e.J && (e.J.remove(), e.J = null), e.H.classList.add(u);
1761
- var t = document.createElement("div");
1762
- t.classList.add(m), t.innerText = c.message, e.J = t, e.H.appendChild(t);
1763
- }
1816
+ }, o.onBlur = function () { a.canceling || a.I(o); }, o.apply(e), o.H = i, o.row = e, o.element && i.appendChild(o.element), this.G.push(o), this.H.appendChild(i);
1817
+ }, l.prototype.validate = function () { var e = this, t = !0; return this.G.forEach(function (a) { var i = e.I(a); t = t && i; }), t; }, l.prototype.I = function (e, t) {
1818
+ function a() { e.J && (e.J.remove(), e.J = null), e.H.classList.add(u); var t = document.createElement("div"); t.classList.add(m), t.innerText = c.message, e.J = t, e.H.appendChild(t); }
1764
1819
  t = t || {};
1765
- var a = t.debounce, n = t.silent, o = e.row, l = !0, d = "function" == typeof o.data.onValidate ? o.data.onValidate : null, r = "function" == typeof o.data.validate ? o.data.validate : null, s = d || r;
1820
+ var i = t.debounce, n = t.silent, o = e.row, l = !0, d = "function" == typeof o.data.onValidate ? o.data.onValidate : null, r = "function" == typeof o.data.validate ? o.data.validate : null, s = d || r;
1766
1821
  if (s) {
1767
1822
  var c = {};
1768
1823
  c.valid = !0, c.value = e.save()[o.field], c.message = "Error", c.values = this.serialize(), c.result = this.serialize(), s(c);
@@ -1770,70 +1825,70 @@ if ("undefined" == typeof DayPilot)
1770
1825
  if (c.valid)
1771
1826
  clearTimeout(this.F[o.field]), e.J && (e.J.remove(), e.J = null), e.H.classList.remove(u);
1772
1827
  else if (!n)
1773
- if (a) {
1828
+ if (i) {
1774
1829
  var h = 1e3;
1775
- clearTimeout(this.F[o.field]), this.F[o.field] = setTimeout(function () { i(); }, h);
1830
+ clearTimeout(this.F[o.field]), this.F[o.field] = setTimeout(function () { a(); }, h);
1776
1831
  }
1777
1832
  else
1778
- i();
1833
+ a();
1779
1834
  l = c.valid;
1780
1835
  }
1781
1836
  return l;
1782
- }, o.prototype.load = function () {
1837
+ }, l.prototype.load = function () {
1783
1838
  var e = this;
1784
1839
  this.form.forEach(function (t) { e.processFormItem(t, 0); });
1785
- var i;
1840
+ var a;
1786
1841
  try {
1787
- var a = JSON.stringify(this.data);
1788
- i = t(JSON.parse(a));
1842
+ var i = JSON.stringify(this.data);
1843
+ a = t(JSON.parse(i));
1789
1844
  }
1790
1845
  catch (e) {
1791
1846
  throw new Error("The 'data' object is not serializable (it may contain circular dependencies): " + e);
1792
1847
  }
1793
- for (var n in i)
1794
- this.setValue(n, i[n]);
1795
- }, o.prototype.setValue = function (e, t) { this.D.forEach(function (i) { i.applyValue(e, t); }); }, o.prototype.updateDependentState = function () { var e = this, t = [!0]; (this.E ? this.E : this.D).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); }); }, o.prototype.processFormItem = function (e, t) {
1796
- var i = this, a = this.getFieldType(e), n = [];
1797
- if ("radio" === a) {
1848
+ for (var n in a)
1849
+ this.setValue(n, a[n]);
1850
+ }, l.prototype.setValue = function (e, t) { this.D.forEach(function (a) { a.applyValue(e, t); }); }, l.prototype.updateDependentState = function () { var e = this, t = [!0]; (this.E ? this.E : this.D).forEach(function (a) { var i = e.updateState(a, { enabled: t[a.level] && !a.data.disabled }); i.isValue && (t[i.level + 1] = i.enabled && i.checked); }); }, l.prototype.processFormItem = function (e, t) {
1851
+ var a = this, i = this.getFieldType(e), n = [];
1852
+ if ("radio" === i) {
1798
1853
  if (e.name) {
1799
- var o = new l;
1800
- o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, i.D.push(o), n.push(o);
1854
+ var o = new d;
1855
+ o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, a.D.push(o), n.push(o);
1801
1856
  }
1802
- e.options.forEach(function (o) { var d = new l; d.field = e.id, d.data = o, d.level = t, d.type = a, d.isValue = !0, d.text = o.name, d.resolved = o.id, i.D.push(d), n.push(d), o.children && o.children.forEach(function (e) { var a = i.processFormItem(e, t + 1); n = n.concat(a); }); });
1857
+ e.options.forEach(function (o) { var l = new d; l.field = e.id, l.data = o, l.level = t, l.type = i, l.isValue = !0, l.text = o.name, l.resolved = o.id, a.D.push(l), n.push(l), o.children && o.children.forEach(function (e) { var i = a.processFormItem(e, t + 1); n = n.concat(i); }); });
1803
1858
  }
1804
- else if ("title" === a) {
1805
- var o = new l;
1806
- o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = e.name, i.D.push(o), n.push(o);
1859
+ else if ("title" === i) {
1860
+ var o = new d;
1861
+ o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = e.name, a.D.push(o), n.push(o);
1807
1862
  }
1808
- else if ("image" === a) {
1809
- var o = new l;
1810
- o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.D.push(o), n.push(o);
1863
+ else if ("image" === i) {
1864
+ var o = new d;
1865
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, a.D.push(o), n.push(o);
1811
1866
  }
1812
- else if ("html" === a) {
1813
- var o = new l;
1814
- o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.D.push(o), n.push(o);
1867
+ else if ("html" === i) {
1868
+ var o = new d;
1869
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, a.D.push(o), n.push(o);
1815
1870
  }
1816
- else if ("scrollable" === a) {
1817
- var o = new l;
1818
- o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.D.push(o), n.push(o);
1871
+ else if ("scrollable" === i) {
1872
+ var o = new d;
1873
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, a.D.push(o), n.push(o);
1819
1874
  }
1820
1875
  else {
1821
- var o = new l;
1822
- o.field = e.id, o.data = e, o.level = t, o.type = a, o.text = e.name, o.children = [], i.D.push(o), n.push(o);
1876
+ var o = new d;
1877
+ o.field = e.id, o.data = e, o.level = t, o.type = i, o.text = e.name, o.children = [], a.D.push(o), n.push(o);
1823
1878
  }
1824
- 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;
1825
- }, o.prototype.doOnKey = function (e) {
1879
+ return "checkbox" === i && (o.isValue = !0, o.resolved = !0, e.children && e.children.forEach(function (e) { var i = a.processFormItem(e, t + 1); n = n.concat(i); })), n;
1880
+ }, l.prototype.doOnKey = function (e) {
1826
1881
  if ("function" == typeof this.onKey) {
1827
1882
  var t = { key: e };
1828
1883
  this.onKey(t);
1829
1884
  }
1830
- }, o.prototype.createInteractive = function (e) {
1831
- var t = this, i = { "label": function () { return new d; }, "title": function () { return new d; }, "image": function () { var t = new d, i = document.createElement("img"); return i.src = e.data.image, t.element = i, t; }, "html": function () { var t = new d, i = document.createElement("div"); return "string" == typeof e.data.text ? i.innerText = e.data.text : "string" == typeof e.data.html && (i.innerHTML = e.data.html), t.element = i, t; }, "scrollable": function () { var i = new d, a = document.createElement("div"); a.className = t.theme + "_form_item_scrollable_scroll", e.data.height && (a.style.height = e.data.height + "px"); var n = document.createElement("div"); return n.className = t.theme + "_form_item_scrollable_scroll_content", "string" == typeof e.data.text ? n.innerText = e.data.text : "string" == typeof e.data.html && (n.innerHTML = e.data.html), a.appendChild(n), i.element = a, i; }, "text": function () {
1832
- var i = new d;
1833
- i.apply = function (e) { i.row = e; var t = i.element; t.value = e.value, t.disabled = !e.enabled; };
1834
- var a = document.createElement("input");
1835
- return a.name = e.field, a.type = "text", a.autocomplete = "off", a.onkeydown = function (e) {
1836
- var i = !1;
1885
+ }, l.prototype.createInteractive = function (e) {
1886
+ var t = this, a = { "label": function () { return new r; }, "title": function () { return new r; }, "image": function () { var t = new r, a = document.createElement("img"); return a.src = e.data.image, t.element = a, t; }, "html": function () { var t = new r, a = document.createElement("div"); return "string" == typeof e.data.text ? a.innerText = e.data.text : "string" == typeof e.data.html && (a.innerHTML = e.data.html), t.element = a, t; }, "scrollable": function () { var a = new r, i = document.createElement("div"); i.className = t.theme + "_form_item_scrollable_scroll", e.data.height && (i.style.height = e.data.height + "px"); var n = document.createElement("div"); return n.className = t.theme + "_form_item_scrollable_scroll_content", "string" == typeof e.data.text ? n.innerText = e.data.text : "string" == typeof e.data.html && (n.innerHTML = e.data.html), i.appendChild(n), a.element = i, a; }, "text": function () {
1887
+ var a = new r;
1888
+ a.apply = function (e) { a.row = e; var t = a.element; t.value = e.value, t.disabled = !e.enabled; };
1889
+ var i = document.createElement("input");
1890
+ return i.name = e.field, i.type = "text", i.autocomplete = "off", i.onkeydown = function (e) {
1891
+ var a = !1;
1837
1892
  switch (e.keyCode) {
1838
1893
  case 13:
1839
1894
  t.doOnKey("Enter");
@@ -1841,35 +1896,35 @@ if ("undefined" == typeof DayPilot)
1841
1896
  case 27:
1842
1897
  t.doOnKey("Escape");
1843
1898
  break;
1844
- default: i = !0;
1899
+ default: a = !0;
1845
1900
  }
1846
- i || (e.preventDefault(), e.stopPropagation());
1847
- }, a.oninput = function (e) { i.onInput(); }, a.onblur = function (e) { i.onBlur(); }, i.element = a, i.canFocus = function () { return !i.element.disabled; }, i.focus = function () { i.element.focus(), i.element.setSelectionRange(0, i.element.value.length); }, i.save = function () { var t = {}; return t[e.field] = a.value, t; }, i;
1901
+ a || (e.preventDefault(), e.stopPropagation());
1902
+ }, i.oninput = function (e) { a.onInput(); }, i.onblur = function (e) { a.onBlur(); }, a.element = i, a.canFocus = function () { return !a.element.disabled; }, a.focus = function () { a.element.focus(), a.element.setSelectionRange(0, a.element.value.length); }, a.save = function () { var t = {}; return t[e.field] = i.value, t; }, a;
1848
1903
  }, "textarea": function () {
1849
- var i = new d;
1850
- i.apply = function (e) { i.row = e; var t = i.element; t.value = e.value, t.disabled = !e.enabled; };
1851
- var a = document.createElement("textarea");
1852
- return a.name = e.field, e.data.height && (a.style.height = e.data.height + "px"), a.onkeydown = function (e) {
1853
- var i = !1;
1904
+ var a = new r;
1905
+ a.apply = function (e) { a.row = e; var t = a.element; t.value = e.value, t.disabled = !e.enabled; };
1906
+ var i = document.createElement("textarea");
1907
+ return i.name = e.field, e.data.height && (i.style.height = e.data.height + "px"), i.onkeydown = function (e) {
1908
+ var a = !1;
1854
1909
  switch (e.keyCode) {
1855
1910
  case 13:
1856
- (e.ctrlKey || e.metaKey) && t.doOnKey("Enter"), i = !1;
1911
+ (e.ctrlKey || e.metaKey) && t.doOnKey("Enter"), a = !1;
1857
1912
  break;
1858
1913
  case 27:
1859
1914
  t.doOnKey("Escape");
1860
1915
  break;
1861
- default: i = !0;
1916
+ default: a = !0;
1862
1917
  }
1863
- i || e.stopPropagation();
1864
- }, a.oninput = function (e) { i.onInput(); }, a.onblur = function (e) { i.onBlur(); }, i.element = a, i.canFocus = function () { return !i.element.disabled; }, i.focus = function () { i.element.focus(), i.element.setSelectionRange(0, 0); }, i.save = function () { var t = {}; return t[e.field] = a.value, t; }, i;
1918
+ a || e.stopPropagation();
1919
+ }, i.oninput = function (e) { a.onInput(); }, i.onblur = function (e) { a.onBlur(); }, a.element = i, a.canFocus = function () { return !a.element.disabled; }, a.focus = function () { a.element.focus(), a.element.setSelectionRange(0, 0); }, a.save = function () { var t = {}; return t[e.field] = i.value, t; }, a;
1865
1920
  }, "date": function () {
1866
- var i = new d;
1867
- i.apply = function (e) { i.row = e; var a = i.element, n = i.picker; e.data.dateFormat && (n.pattern = e.data.dateFormat); var o = e.data.locale || t.locale; o && (n.locale = o), a.disabled = !e.enabled, n.date = new DayPilot.Date(e.value); var l = new DayPilot.Date(e.value).toString(e.data.dateFormat || n.pattern, n.locale); a.value = l; };
1868
- var a = document.createElement("input");
1869
- a.name = e.field;
1870
- 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 }); } });
1871
- return a.picker = n, a.className = t.theme + "_input_date", a.type = "text", a.onkeydown = function (e) {
1872
- var i = !1;
1921
+ var a = new r;
1922
+ a.apply = function (e) { a.row = e; var i = a.element, n = a.picker; e.data.dateFormat && (n.pattern = e.data.dateFormat); var o = e.data.locale || t.locale; o && (n.locale = o), i.disabled = !e.enabled, n.date = new DayPilot.Date(e.value); var l = new DayPilot.Date(e.value).toString(e.data.dateFormat || n.pattern, n.locale); i.value = l; };
1923
+ var i = document.createElement("input");
1924
+ i.name = e.field;
1925
+ var n = new DayPilot.DatePicker({ target: i, theme: "navigator_modal", zIndex: t.zIndex + 1, resetTarget: !1, targetAlignment: "left", onTimeRangeSelect: function (e) { a.onInput({ "immediate": !0 }); } });
1926
+ return i.picker = n, i.className = t.theme + "_input_date", i.type = "text", i.onkeydown = function (e) {
1927
+ var a = !1;
1873
1928
  switch (e.keyCode) {
1874
1929
  case 13:
1875
1930
  n.visible ? n.close() : t.doOnKey("Enter");
@@ -1878,102 +1933,168 @@ if ("undefined" == typeof DayPilot)
1878
1933
  n.visible ? n.close() : t.doOnKey("Escape");
1879
1934
  break;
1880
1935
  case 9:
1881
- n.close(), i = !0;
1936
+ n.close(), a = !0;
1882
1937
  break;
1883
- default: i = !0;
1938
+ default: a = !0;
1884
1939
  }
1885
- i || (e.preventDefault(), e.stopPropagation());
1886
- }, 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;
1887
- }, "select": function () { var t = new d; 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.K = 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.K && (t = a.K); var n = {}; return n[e.field] = t, n; }, t; }, "searchable": function () { var i = new d; i.apply = function (e) { i.row = e; var t = i.searchable; t.disabled = !e.enabled, t.select(e.value); }; var a = new r({ 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 () {
1888
- var i = new d;
1889
- i.apply = function (e) { i.row = e; var t = i.radio; t.checked = e.checked, t.disabled = !e.enabled; };
1890
- var a = document.createElement("label"), n = document.createElement("input");
1891
- n.type = "radio", n.name = e.field, n.K = 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);
1940
+ a || (e.preventDefault(), e.stopPropagation());
1941
+ }, i.onfocus = function () { n.show(); }, i.onclick = function () { n.show(); }, i.oninput = function (e) { a.onInput(); }, i.onblur = function (e) { a.onBlur(); }, a.element = i, a.picker = n, a.canFocus = function () { return !a.element.disabled; }, a.focus = function () { a.element.focus(); }, a.save = function () { var t = n.date ? n.date.toString() : null, a = {}; return a[e.field] = t, a; }, a;
1942
+ }, "time": function () { return t.K(e); }, "datetime": function () { return t.L(e); }, "select": function () { var t = new r; t.apply = function (e) { t.row = e; var a = t.element; a.value = e.value, a.disabled = !e.enabled; }; var a = document.createElement("select"); return a.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.M = e.id, a.appendChild(t); }), a.onchange = function (e) { t.onInput({ "immediate": !0 }); }, a.onblur = function (e) { t.onBlur(); }, t.element = a, t.canFocus = function () { return !t.element.disabled; }, t.focus = function () { t.element.focus(); }, t.save = function () { var t = null, i = a.options[a.selectedIndex]; i && "undefined" != typeof i.M && (t = i.M); var n = {}; return n[e.field] = t, n; }, t; }, "searchable": function () { var a = new r; a.apply = function (e) { a.row = e; var t = a.searchable; t.disabled = !e.enabled, t.select(e.value); }; var i = new s({ data: e.data.options || [], name: e.field, theme: t.theme + "_form_item_searchable", listZIndex: t.zIndex + 1, onSelect: function (e) { e.ui && a.onInput({ "immediate": !0 }); } }), n = i.create(); return a.element = n, a.searchable = i, a.canFocus = function () { return !a.searchable.disabled; }, a.focus = function () { a.searchable.focus(); }, a.save = function () { var t = i.selected && i.selected.id, a = {}; return a[e.field] = t, a; }, a; }, "radio": function () {
1943
+ var a = new r;
1944
+ a.apply = function (e) { a.row = e; var t = a.radio; t.checked = e.checked, t.disabled = !e.enabled; };
1945
+ var i = document.createElement("label"), n = document.createElement("input");
1946
+ n.type = "radio", n.name = e.field, n.M = e.resolved, n.onchange = function (e) { var i = a.row; t.findRowsByField(i.field).forEach(function (e) { t.updateState(e, { checked: !1 }); }), t.updateState(i, { checked: !0 }), t.applyState(), a.onInput({ "immediate": !0 }); }, n.onblur = function (e) { a.onBlur(); }, i.appendChild(n);
1892
1947
  var o = document.createTextNode(e.text);
1893
- return a.append(o), i.element = a, i.radio = n, i.canFocus = function () { return !1; }, i.focus = function () { i.radio.focus(); }, i.save = function () {
1948
+ return i.append(o), a.element = i, a.radio = n, a.canFocus = function () { return !1; }, a.focus = function () { a.radio.focus(); }, a.save = function () {
1894
1949
  if (!n.checked)
1895
1950
  return {};
1896
- var t = n.K, i = {};
1897
- return i[e.field] = t, i;
1898
- }, i;
1899
- }, "checkbox": function () { var i = new d; 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.K = 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 d; i.apply = function (e) { i.row = e; var t = i.table; t.disabled = !e.enabled, t.load(e.value || []); }; var a = new s({ 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; } };
1900
- return t.plugins && t.plugins[e.type] ? t.plugins[e.type](e) : i[e.type]();
1901
- }, o.prototype.findRowsByField = function (e) { return this.D.filter(function (t) { return t.field === e; }); }, o.prototype.findViewById = function (e, t) { return this.G.find(function (i) { return i.row.field === e && ("radio" !== i.row.type || i.row.resolved === t); }); }, o.prototype.firstFocusable = function () { return this.G.find(function (e) { return e.canFocus && e.canFocus(); }); }, o.prototype.updateState = function (e, t) {
1902
- var i = this.E ? this.E : this.D, a = i.indexOf(e);
1903
- return this.E = i.map(function (i) {
1904
- if (i !== e)
1905
- return i;
1951
+ var t = n.M, a = {};
1952
+ return a[e.field] = t, a;
1953
+ }, a;
1954
+ }, "checkbox": function () { var a = new r; a.apply = function (e) { a.row = e; var t = a.checkbox; t.checked = e.checked, t.disabled = !e.enabled; }; var i = document.createElement("label"), n = document.createElement("input"); n.type = "checkbox", n.name = e.field, n.M = e.resolved, n.onchange = function (e) { var i = a.row; t.updateState(i, { checked: this.checked }), t.applyState(), a.onInput({ "immediate": !0 }); }, n.onblur = function (e) { a.onBlur(); }, i.appendChild(n); var o = document.createTextNode(e.text); return i.append(o), a.element = i, a.checkbox = n, a.canFocus = function () { return !1; }, a.focus = function () { a.checkbox.focus(); }, a.save = function () { var t = n.checked, a = {}; return a[e.field] = t, a; }, a; }, "table": function () { var a = new r; a.apply = function (e) { a.row = e; var t = a.table; t.disabled = !e.enabled, t.load(e.value || []); }; var i = new c({ name: e.field, form: t, theme: t.theme + "_form_item_tabular", item: e.data, onInput: function (e) { a.onInput(); } }), n = i.create(); return a.element = n, a.table = i, a.canFocus = function () { return !1; }, a.focus = function () { a.table.focus(); }, a.save = function () { var t = i.save(), a = {}; return a[e.field] = t, a; }, a; } };
1955
+ return t.plugins && t.plugins[e.type] ? t.plugins[e.type](e) : a[e.type]();
1956
+ }, l.prototype.K = function (e) {
1957
+ var t = this, a = new r;
1958
+ a.apply = function (e) { a.row = e; var t = a.searchable; t.disabled = !e.enabled, t.select(e.value); };
1959
+ var i = [], n = e.data.timeInterval || 15;
1960
+ [1, 5, 10, 15, 20, 30, 60].includes(n) || (n = 15);
1961
+ for (var o = 60 / n, l = e.data.locale || t.locale, d = DayPilot.Locale.find(l) || DayPilot.Locale.US, c = DayPilot.Date.today(), u = 0; u < 24 * o; u++) {
1962
+ var m = c.addMinutes(n * u), h = {};
1963
+ h.name = m.toString(e.data.timeFormat || d.timePattern, d), h.id = m.toString("HH:mm"), i.push(h);
1964
+ }
1965
+ var p = new s({ data: i, name: e.field, theme: t.theme + "_form_item_time", listZIndex: t.zIndex + 1, strategy: "startsWith", onSelect: function (e) { e.ui && a.onInput({ "immediate": !0 }); } }), f = p.create();
1966
+ return a.element = f, a.searchable = p, a.canFocus = function () { return !a.searchable.disabled; }, a.focus = function () { a.searchable.focus(); }, a.save = function () { var t = p.selected && p.selected.id, a = {}; return a[e.field] = t, a; }, a;
1967
+ }, l.prototype.L = function (e) {
1968
+ var t = this, a = new r;
1969
+ a.apply = function (e) {
1970
+ a.row = e;
1971
+ var i = a.searchable;
1972
+ i.disabled = !e.enabled;
1973
+ var n = new DayPilot.Date(e.value).toString("HH:mm");
1974
+ i.select(n);
1975
+ var o = a.dateInput, l = a.picker;
1976
+ e.data.dateFormat && (l.pattern = e.data.dateFormat);
1977
+ var d = e.data.locale || t.locale;
1978
+ if (d) {
1979
+ var r = DayPilot.Locale.find(d) || DayPilot.Locale.US;
1980
+ l.locale = d, l.pattern = r.datePattern;
1981
+ }
1982
+ o.disabled = !e.enabled, l.date = new DayPilot.Date(e.value);
1983
+ var s = new DayPilot.Date(e.value).toString(e.data.dateFormat || l.pattern, l.locale);
1984
+ o.value = s;
1985
+ };
1986
+ var i = function () {
1987
+ var i = document.createElement("input");
1988
+ i.name = e.field;
1989
+ var n = new DayPilot.DatePicker({ target: i, theme: "navigator_modal", zIndex: t.zIndex + 1, resetTarget: !1, targetAlignment: "left", onTimeRangeSelect: function (e) { a.onInput({ "immediate": !0 }); } });
1990
+ return i.picker = n, i.className = t.theme + "_input_date", i.type = "text", i.onkeydown = function (e) {
1991
+ var a = !1;
1992
+ switch (e.keyCode) {
1993
+ case 13:
1994
+ n.visible ? n.close() : t.doOnKey("Enter");
1995
+ break;
1996
+ case 27:
1997
+ n.visible ? n.close() : t.doOnKey("Escape");
1998
+ break;
1999
+ case 9:
2000
+ n.close(), a = !0;
2001
+ break;
2002
+ default: a = !0;
2003
+ }
2004
+ a || (e.preventDefault(), e.stopPropagation());
2005
+ }, i.onfocus = function () { n.show(); }, i.onclick = function () { n.show(); }, i.oninput = function (e) { a.onInput(); }, i.onblur = function (e) { a.onBlur(); }, a.dateInput = i, a.picker = n, i;
2006
+ }(), n = function () {
2007
+ var i = [], n = e.data.timeInterval || 15;
2008
+ [1, 5, 10, 15, 20, 30, 60].includes(n) || (n = 15);
2009
+ for (var o = 60 / n, l = e.data.locale || t.locale, d = DayPilot.Locale.find(l) || DayPilot.Locale.US, r = DayPilot.Date.today(), c = 0; c < 24 * o; c++) {
2010
+ var u = r.addMinutes(n * c), m = {};
2011
+ m.name = u.toString(e.data.timeFormat || d.timePattern, d), m.id = u.toString("HH:mm"), i.push(m);
2012
+ }
2013
+ var h = new s({ data: i, name: e.field, theme: t.theme + "_form_item_time", listZIndex: t.zIndex + 1, strategy: "startsWith", onSelect: function (e) { e.ui && a.onInput({ "immediate": !0 }); } });
2014
+ return a.searchable = h, h.create();
2015
+ }(), o = document.createElement("div");
2016
+ return o.className = t.theme + "_form_item_datetime_parent", o.appendChild(i), o.appendChild(n), a.element = o, a.canFocus = function () { return !a.searchable.disabled; }, a.focus = function () { a.dateInput.focus(); }, a.save = function () { var t = a.searchable.selected && a.searchable.selected.id, i = a.picker.date ? a.picker.date.toString() : null, n = new DayPilot.Date(i).getDatePart(), o = DayPilot.Date.parse(n.toString("yyyy-dd-MM ") + t, "yyyy-dd-MM HH:mm"), l = {}; return l[e.field] = o, l; }, a;
2017
+ }, l.prototype.findRowsByField = function (e) { return this.D.filter(function (t) { return t.field === e; }); }, l.prototype.findViewById = function (e, t) { return this.G.find(function (a) { return a.row.field === e && ("radio" !== a.row.type || a.row.resolved === t); }); }, l.prototype.firstFocusable = function () { return this.G.find(function (e) { return e.canFocus && e.canFocus(); }); }, l.prototype.updateState = function (e, t) {
2018
+ var a = this.E ? this.E : this.D, i = a.indexOf(e);
2019
+ return this.E = a.map(function (a) {
2020
+ if (a !== e)
2021
+ return a;
1906
2022
  if (e.propsEqual(t))
1907
2023
  return e;
1908
- var a = e.clone();
2024
+ var i = e.clone();
1909
2025
  for (var n in t)
1910
- a[n] = t[n];
1911
- return a;
1912
- }), this.E[a];
1913
- }, o.prototype.updateInteractive = function (e) { var t = this.E.indexOf(e); this.G[t].apply(e); }, o.prototype.applyState = function () {
2026
+ i[n] = t[n];
2027
+ return i;
2028
+ }), this.E[i];
2029
+ }, l.prototype.updateInteractive = function (e) { var t = this.E.indexOf(e); this.G[t].apply(e); }, l.prototype.applyState = function () {
1914
2030
  var e = this;
1915
2031
  if (this.updateDependentState(), this.E) {
1916
- this.E.filter(function (t, i) { return e.D[i] !== t; }).forEach(function (t) { e.updateInteractive(t); }), this.D = this.E, this.E = null;
2032
+ this.E.filter(function (t, a) { return e.D[a] !== t; }).forEach(function (t) { e.updateInteractive(t); }), this.D = this.E, this.E = null;
1917
2033
  }
1918
- }, o.prototype.getFieldType = function (e) { return ["text", "date", "select", "searchable", "radio", "checkbox", "table", "title", "image", "html", "textarea", "scrollable"].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"; }, o.prototype.serialize = function () {
2034
+ }, l.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"; }, l.prototype.serialize = function () {
1919
2035
  var e = {};
1920
2036
  return this.G.forEach(function (t) {
1921
- var i = t.save();
1922
- for (var a in i)
1923
- e[a] = i[a];
2037
+ var a = t.save();
2038
+ for (var i in a)
2039
+ e[i] = a[i];
1924
2040
  }), e;
1925
2041
  };
1926
- var l = 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; };
1927
- l.prototype.clone = function () {
1928
- var e = new l;
2042
+ var d = 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; };
2043
+ d.prototype.clone = function () {
2044
+ var e = new d;
1929
2045
  for (var t in this)
1930
2046
  "id" !== t && (e[t] = this[t]);
1931
2047
  return e;
1932
- }, l.prototype.propsEqual = function (e) {
2048
+ }, d.prototype.propsEqual = function (e) {
1933
2049
  for (var t in e)
1934
2050
  if (this[t] !== e[t])
1935
2051
  return !1;
1936
2052
  return !0;
1937
- }, l.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(); }, l.prototype.applyValue = function (e, t) { this.field === e && (this.value = t, this.isValue && t === this.resolved && (this.checked = !0)); };
1938
- var d = function () { this.element = null, this.canFocus = function () { return !1; }, this.apply = function (e) { }, this.focus = function () { }, this.save = function () { return {}; }; }, r = function (e) {
1939
- this.data = [], this.name = null, this.theme = "searchable_default", this.L = !1, this.listZIndex = 1e5, this.onSelect = null, this.M = null, this.N = null, this.O = !1, this.P = null, this.Q = null, this.R = [], this.S = null, e = e || {};
1940
- var t = this, i = { "selected": { post: function (e) { "object" == typeof e && e.id ? t.M = e : "string" != typeof e && "number" != typeof e || t.select(e); } } };
1941
- Object.defineProperty(this, "selected", { get: function () { return this.M; } }), Object.defineProperty(this, "disabled", { get: function () { return this.L; }, set: function (e) { this.L = e, this.P && (this.P.disabled = e, e && this.T()); } });
1942
- for (var a in e)
1943
- i[a] || (this[a] = e[a]);
1944
- for (var a in e)
1945
- i[a] && i[a].post(e[a]);
2053
+ }, d.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(); }, d.prototype.applyValue = function (e, t) { this.field === e && (this.value = t, this.isValue && t === this.resolved && (this.checked = !0)); };
2054
+ var r = function () { this.element = null, this.canFocus = function () { return !1; }, this.apply = function (e) { }, this.focus = function () { }, this.save = function () { return {}; }; }, s = function (e) {
2055
+ this.data = [], this.name = null, this.theme = "searchable_default", this.N = !1, this.listZIndex = 1e5, this.onSelect = null, this.O = null, this.P = null, this.Q = !1, this.R = null, this.S = null, this.T = [], this.U = null, e = e || {};
2056
+ var t = this, a = { "selected": { post: function (e) { "object" == typeof e && e.id ? t.O = e : "string" != typeof e && "number" != typeof e || t.select(e); } } };
2057
+ Object.defineProperty(this, "selected", { get: function () { return this.O; } }), Object.defineProperty(this, "disabled", { get: function () { return this.N; }, set: function (e) { this.N = e, this.R && (this.R.disabled = e, e && this.V()); } });
2058
+ for (var i in e)
2059
+ a[i] || (this[i] = e[i]);
2060
+ for (var i in e)
2061
+ a[i] && a[i].post(e[i]);
1946
2062
  };
1947
- r.prototype.select = function (e) { return this.M = this.data.find(function (t) { return t.id === e; }), this.U(!1), this; }, r.prototype.create = function () {
1948
- function e() {
1949
- m.style.display = "", m.style.top = p.offsetHeight + "px", m.style.left = "0px", m.style.width = p.offsetWidth + "px", m.innerHTML = "", m.addEventListener("mousedown", function (e) { e.preventDefault(); }), r.N = null, r.R = [];
1950
- var e = null;
1951
- r.data.forEach(function (i) {
1952
- var n = i.name || i.id;
1953
- if (n.toLowerCase().indexOf(p.value.toLowerCase()) !== -1) {
1954
- var o = document.createElement("div");
1955
- o.className = r.theme + "_list_item", o.innerText = n, o.item = i, i === r.M && (r.N = o), e || (e = o), o.addEventListener("mousedown", function (e) { a(o), e.preventDefault(); }), o.addEventListener("mousemove", function (e) { r.N !== o && (r.N = o, t({ dontScroll: !0 })); }), m.appendChild(o), r.R.push(o);
2063
+ s.prototype.select = function (e) { return this.O = this.data.find(function (t) { return t.id === e; }), this.W(!1), this; }, s.prototype.create = function () {
2064
+ function e(e) {
2065
+ var a = r.strategy;
2066
+ "includes" !== r.strategy && "startsWith" !== r.strategy && (a = "includes"), e = e || a || "includes", m.style.display = "", m.style.top = p.offsetHeight + "px", m.style.left = "0px", m.style.width = p.offsetWidth + "px", m.innerHTML = "", m.addEventListener("mousedown", function (e) { e.preventDefault(); }), r.P = null, r.T = [];
2067
+ var n = null;
2068
+ r.data.forEach(function (a) {
2069
+ var o = a.name || a.id;
2070
+ if ("includes" === e) {
2071
+ if (o.toLowerCase().indexOf(p.value.toLowerCase()) === -1)
2072
+ return;
1956
2073
  }
1957
- }), r.N || (r.N = e), t();
2074
+ else if ("startsWith" === e && 0 !== o.toLowerCase().indexOf(p.value.toLowerCase()))
2075
+ return;
2076
+ var l = document.createElement("div");
2077
+ l.className = r.theme + "_list_item", l.innerText = o, l.item = a, a === r.O && (r.P = l), n || (n = l), l.addEventListener("mousedown", function (e) { i(l), e.preventDefault(); }), l.addEventListener("mousemove", function (e) { r.P !== l && (r.P = l, t({ dontScroll: !0 })); }), m.appendChild(l), r.T.push(l);
2078
+ }), r.P || (r.P = n), t();
1958
2079
  }
1959
- function t(e) { e = e || {}; var t = !e.dontScroll; document.querySelectorAll("." + r.theme + "_list_item_highlight").forEach(function (e) { e.className = e.className.replace(r.theme + "_list_item_highlight", ""); }), r.N && (r.N.className += " " + r.theme + "_list_item_highlight", t && !i(r.N, m) && r.N.scrollIntoView()); }
1960
- function i(e, t) { var i = e.getBoundingClientRect(), a = t.getBoundingClientRect(); return i.top >= a.top && i.bottom <= a.bottom; }
1961
- function a(e) { var t = e.item; r.M = t, r.U(!0), o(), l(); }
1962
- function n() { r.T(); }
1963
- function o() { r.V(); }
1964
- function l() { r.O = !0, p.setAttribute("readonly", "readonly"), p.focus(); }
1965
- function d() { r.O = !1, p.removeAttribute("readonly"), p.value = "", e(); }
2080
+ function t(e) { e = e || {}; var t = !e.dontScroll; document.querySelectorAll("." + r.theme + "_list_item_highlight").forEach(function (e) { e.className = e.className.replace(r.theme + "_list_item_highlight", ""); }), r.P && (r.P.className += " " + r.theme + "_list_item_highlight", t && !a(r.P, m) && r.P.scrollIntoView()); }
2081
+ function a(e, t) { var a = e.getBoundingClientRect(), i = t.getBoundingClientRect(); return a.top >= i.top && a.bottom <= i.bottom; }
2082
+ function i(e) { var t = e.item; r.O = t, r.W(!0), o(), l(); }
2083
+ function n() { r.V(); }
2084
+ function o() { r.X(); }
2085
+ function l() { r.Q = !0, p.setAttribute("readonly", "readonly"), p.focus(); }
2086
+ function d() { r.Q = !1, p.removeAttribute("readonly"), p.select(), e("all"); }
1966
2087
  var r = this, s = this, c = document.createElement("div");
1967
2088
  c.className = this.theme + "_main", c.style.position = "relative";
1968
2089
  var u = document.createElement("div");
1969
- 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(), r.O ? (r.focus(), d()) : (n(), l()); });
2090
+ 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(), r.Q ? (r.focus(), d()) : (n(), l()); });
1970
2091
  var m = document.createElement("div");
1971
2092
  m.className = this.theme + "_list", m.style.display = "none", m.style.position = "absolute", m.style.zIndex = this.listZIndex;
1972
2093
  var h = document.createElement("input");
1973
- h.type = "hidden", h.name = this.name, h.searchable = s, this.S = h;
2094
+ h.type = "hidden", h.name = this.name, h.searchable = s, this.U = h;
1974
2095
  var p = document.createElement("input");
1975
- return p.type = "text", p.className = this.theme + "_input", p.disabled = this.L, p.addEventListener("click", function (e) { d(); }), p.addEventListener("focus", function (t) { p.value = "", e(); }), p.addEventListener("input", function (t) { e(); }), p.addEventListener("blur", function (e) { p.removeAttribute("readonly"), n(); }), p.addEventListener("keydown", function (e) {
1976
- if (r.O) {
2096
+ return p.type = "text", p.className = this.theme + "_input", p.disabled = this.N, p.addEventListener("click", function (e) { d(); }), p.addEventListener("focus", function (t) { e("all"); }), p.addEventListener("input", function (t) { e(); }), p.addEventListener("blur", function (e) { p.removeAttribute("readonly"), n(); }), p.addEventListener("keydown", function (e) {
2097
+ if (r.Q) {
1977
2098
  if ("Enter" === e.key)
1978
2099
  return;
1979
2100
  if ("Esc" === e.key || "Escape" === e.key)
@@ -1981,119 +2102,119 @@ if ("undefined" == typeof DayPilot)
1981
2102
  d();
1982
2103
  }
1983
2104
  if ("ArrowDown" === e.key) {
1984
- var i = s.R.indexOf(s.N);
1985
- i + 1 < s.R.length && (s.N = s.R[i + 1]), t();
2105
+ var a = s.T.indexOf(s.P);
2106
+ a + 1 < s.T.length && (s.P = s.T[a + 1]), t();
1986
2107
  }
1987
2108
  else if ("ArrowUp" === e.key) {
1988
- var i = s.R.indexOf(s.N);
1989
- i - 1 >= 0 && (s.N = s.R[i - 1]), t();
2109
+ var a = s.T.indexOf(s.P);
2110
+ a - 1 >= 0 && (s.P = s.T[a - 1]), t();
1990
2111
  }
1991
2112
  else
1992
- "Enter" === e.key ? r.N ? (e.stopPropagation(), a(r.N)) : (e.stopPropagation(), n(), l()) : "Esc" !== e.key && "Escape" !== e.key || (e.stopPropagation(), n(), l());
1993
- }), this.P = p, this.Q = m, this.M || (this.M = this.data[0], this.M && (p.value = this.M.name)), c.appendChild(p), c.appendChild(u), c.appendChild(h), c.appendChild(m), c;
1994
- }, r.prototype.T = function () { this.V(), this.M ? this.P.value = this.M.name : (this.P.value = "", this.U(!0)); }, r.prototype.focus = function () { this.O = !0, this.P.setAttribute("readonly", "readonly"), this.P.focus(), this.T(); }, r.prototype.V = function () { this.Q.style.display = "none"; }, r.prototype.U = function (e) {
1995
- if (this.S.value = this.selected ? this.selected.id : null, this.M ? this.P.value = this.M.name : this.P.value = "", "function" == typeof this.onSelect) {
2113
+ "Enter" === e.key ? r.P ? (e.stopPropagation(), i(r.P)) : (e.stopPropagation(), n(), l()) : "Esc" !== e.key && "Escape" !== e.key || (e.stopPropagation(), n(), l());
2114
+ }), this.R = p, this.S = m, this.O || (this.O = this.data[0], this.O && (p.value = this.O.name)), c.appendChild(p), c.appendChild(u), c.appendChild(h), c.appendChild(m), c;
2115
+ }, s.prototype.V = function () { this.X(), this.O ? this.R.value = this.O.name : (this.R.value = "", this.W(!0)); }, s.prototype.focus = function () { this.Q = !0, this.R.setAttribute("readonly", "readonly"), this.R.focus(), this.V(); }, s.prototype.X = function () { this.S.style.display = "none"; }, s.prototype.W = function (e) {
2116
+ if (this.U.value = this.selected ? this.selected.id : null, this.O ? this.R.value = this.O.name : this.R.value = "", "function" == typeof this.onSelect) {
1996
2117
  var t = { control: this, ui: e };
1997
2118
  this.onSelect(t);
1998
2119
  }
1999
2120
  };
2000
- var s = function (e) {
2001
- this.form = null, this.item = null, this.data = null, this.name = null, this.theme = "edit_table_default", this.onInput = null, this.nav = {}, this.W = null, this.D = [], e = e || {};
2121
+ var c = function (e) {
2122
+ this.form = null, this.item = null, this.data = null, this.name = null, this.theme = "edit_table_default", this.onInput = null, this.nav = {}, this.Y = null, this.D = [], e = e || {};
2002
2123
  for (var t in e)
2003
2124
  this[t] = e[t];
2004
2125
  };
2005
- s.prototype.create = function () {
2126
+ c.prototype.create = function () {
2006
2127
  var e = this, t = document.createElement("div");
2007
2128
  t.className = this.theme + "_main", t.style.position = "relative";
2008
- var i = document.createElement("input");
2009
- i.type = "hidden", i.name = e.name, i.table = this, t.appendChild(i);
2010
- var a = document.createElement("div");
2011
- a.className = this.theme + "_table";
2012
- var n = this.X();
2013
- a.appendChild(n);
2014
- var o = e.Y({});
2129
+ var a = document.createElement("input");
2130
+ a.type = "hidden", a.name = e.name, a.table = this, t.appendChild(a);
2131
+ var i = document.createElement("div");
2132
+ i.className = this.theme + "_table";
2133
+ var n = this.Z();
2134
+ i.appendChild(n);
2135
+ var o = e.$({});
2015
2136
  o.spacer = !0;
2016
- var l = this.Z(o);
2017
- l.classList.add(e.theme + "_spacer"), a.appendChild(l);
2137
+ var l = this._(o);
2138
+ l.classList.add(e.theme + "_spacer"), i.appendChild(l);
2018
2139
  var d = document.createElement("div");
2019
- d.className = e.theme + "_tbody", a.appendChild(d), t.appendChild(a);
2140
+ d.className = e.theme + "_tbody", i.appendChild(d), t.appendChild(i);
2020
2141
  var r = document.createElement("div");
2021
- t.appendChild(r), this.nav.body = d, this.nav.table = a, this.nav.main = t, this.nav.after = r;
2142
+ t.appendChild(r), this.nav.body = d, this.nav.table = i, this.nav.main = t, this.nav.after = r;
2022
2143
  var s = document.createElement("div"), c = document.createElement("span");
2023
2144
  return c.className = this.theme + "_plus", c.addEventListener("click", function (t) {
2024
2145
  if (!e.disabled) {
2025
- var i = e.item.onNewRow, a = {};
2026
- if ("function" == typeof i) {
2146
+ var a = e.item.onNewRow, i = {};
2147
+ if ("function" == typeof a) {
2027
2148
  var n = {};
2028
- n.result = e.form.serialize(), n.value = {}, i(n), a = n.value;
2149
+ n.result = e.form.serialize(), n.value = {}, a(n), i = n.value;
2029
2150
  }
2030
- var o = e.Y(a);
2031
- e.D.push(o), e.$(), e._();
2151
+ var o = e.$(i);
2152
+ e.D.push(o), e.aa(), e.ba();
2032
2153
  }
2033
2154
  }), this.nav.plus = c, s.appendChild(c), t.appendChild(s), t;
2034
- }, s.prototype.X = 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; }, s.prototype.aa = function () { var e = this.item.max || 0; return !!(e && this.D.length >= e); }, s.prototype.save = function () { var e = this, t = []; return e.D.forEach(function (e) { var i = {}; e.cells.forEach(function (e) { i[e.id] = e.value; }), t.push(i); }), t; }, s.prototype.load = function (e) {
2155
+ }, c.prototype.Z = 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 (a) { var i = document.createElement("div"); i.classList.add(e.theme + "_cell"), i.innerText = a.name, t.appendChild(i); }), t; }, c.prototype.ca = function () { var e = this.item.max || 0; return !!(e && this.D.length >= e); }, c.prototype.save = function () { var e = this, t = []; return e.D.forEach(function (e) { var a = {}; e.cells.forEach(function (e) { a[e.id] = e.value; }), t.push(a); }), t; }, c.prototype.load = function (e) {
2035
2156
  if ("[object Array]" !== Object.prototype.toString.call(e))
2036
2157
  throw new Error("Array expected");
2037
- this.data = e, this.ba(), this.$();
2038
- }, s.prototype.ca = function () { this.disabled ? this.nav.main.classList.add(this.theme + "_disabled") : this.nav.main.classList.remove(this.theme + "_disabled"), this.aa() ? this.nav.plus.classList.add(this.theme + "_plus_max") : this.nav.plus.classList.remove(this.theme + "_plus_max"); }, s.prototype.ba = function () { var e = this; this.D = [], this.data.forEach(function (t) { var i = e.Y(t); e.D.push(i); }); }, s.prototype.da = function (e) { var t = this, i = t.D.indexOf(e); t.D.splice(i, 1); }, s.prototype.Y = function (e) {
2039
- var t = this, i = {};
2040
- return i.data = e, i.cells = [], t.item.columns.forEach(function (a) {
2041
- var n = a.id, o = e[n], l = t.ea(a);
2158
+ this.data = e, this.da(), this.aa();
2159
+ }, c.prototype.ea = function () { this.disabled ? this.nav.main.classList.add(this.theme + "_disabled") : this.nav.main.classList.remove(this.theme + "_disabled"), this.ca() ? this.nav.plus.classList.add(this.theme + "_plus_max") : this.nav.plus.classList.remove(this.theme + "_plus_max"); }, c.prototype.da = function () { var e = this; this.D = [], this.data.forEach(function (t) { var a = e.$(t); e.D.push(a); }); }, c.prototype.fa = function (e) { var t = this, a = t.D.indexOf(e); t.D.splice(a, 1); }, c.prototype.$ = function (e) {
2160
+ var t = this, a = {};
2161
+ return a.data = e, a.cells = [], t.item.columns.forEach(function (i) {
2162
+ var n = i.id, o = e[n], l = t.ga(i);
2042
2163
  if ("undefined" == typeof o)
2043
2164
  if ("text" === l)
2044
2165
  o = "";
2045
2166
  else if ("number" === l)
2046
2167
  o = 0;
2047
2168
  else if ("select" === l) {
2048
- var d = a.options;
2169
+ var d = i.options;
2049
2170
  o = d && d[0].id;
2050
2171
  }
2051
2172
  var r = {};
2052
- r.id = n, r.value = o, r.type = l, r.data = a, i.cells.push(r);
2053
- }), i;
2054
- }, s.prototype.ea = function (e) { var t = e.type; return t || (t = e.options ? "select" : "text"), t; }, s.prototype.$ = function () {
2173
+ r.id = n, r.value = o, r.type = l, r.data = i, a.cells.push(r);
2174
+ }), a;
2175
+ }, c.prototype.ga = function (e) { var t = e.type; return t || (t = e.options ? "select" : "text"), t; }, c.prototype.aa = function () {
2055
2176
  var e = this;
2056
- if (this.nav.body.innerHTML = "", this.nav.after.innerHTML = "", this.D.forEach(function (t) { var i = e.Z(t); e.nav.body.appendChild(i); }), 0 === this.D.length) {
2057
- var t = e.fa();
2177
+ if (this.nav.body.innerHTML = "", this.nav.after.innerHTML = "", this.D.forEach(function (t) { var a = e._(t); e.nav.body.appendChild(a); }), 0 === this.D.length) {
2178
+ var t = e.ha();
2058
2179
  e.nav.after.appendChild(t);
2059
2180
  }
2060
- this.ca();
2061
- }, s.prototype.fa = function () { var e = document.createElement("div"); return e.className = this.theme + "_empty", e; }, s.prototype.Z = function (e) {
2062
- var t = this, i = document.createElement("div");
2063
- i.className = t.theme + "_row", e.cells.forEach(function (a) {
2181
+ this.ea();
2182
+ }, c.prototype.ha = function () { var e = document.createElement("div"); return e.className = this.theme + "_empty", e; }, c.prototype._ = function (e) {
2183
+ var t = this, a = document.createElement("div");
2184
+ a.className = t.theme + "_row", e.cells.forEach(function (i) {
2064
2185
  var n = document.createElement("div");
2065
2186
  n.className = t.theme + "_cell";
2066
- var o = t.ga(a);
2187
+ var o = t.ia(i);
2067
2188
  if (e.spacer) {
2068
2189
  var l = document.createElement("div");
2069
2190
  l.style.height = "0px", l.style.overflow = "hidden", l.appendChild(o), n.appendChild(l);
2070
2191
  }
2071
2192
  else
2072
2193
  n.appendChild(o);
2073
- i.appendChild(n);
2194
+ a.appendChild(n);
2074
2195
  });
2075
- var a = document.createElement("div");
2076
- a.classList.add(t.theme + "_cell"), a.classList.add(t.theme + "_rowaction");
2196
+ var i = document.createElement("div");
2197
+ i.classList.add(t.theme + "_cell"), i.classList.add(t.theme + "_rowaction");
2077
2198
  var n = document.createElement("span");
2078
- return n.className = this.theme + "_delete", n.addEventListener("click", function (i) { t.disabled || (t.da(e), t.$(), t._()); }), e.spacer || a.appendChild(n), i.appendChild(a), i;
2079
- }, s.prototype._ = function () {
2199
+ return n.className = this.theme + "_delete", n.addEventListener("click", function (a) { t.disabled || (t.fa(e), t.aa(), t.ba()); }), e.spacer || i.appendChild(n), a.appendChild(i), a;
2200
+ }, c.prototype.ba = function () {
2080
2201
  var e = this;
2081
2202
  if ("function" == typeof e.onInput) {
2082
2203
  var t = {};
2083
2204
  e.onInput(t);
2084
2205
  }
2085
- }, s.prototype.ga = function (e) {
2086
- var t = this, i = e.type;
2087
- if ("text" === i || "number" === i) {
2088
- var a = document.createElement("input");
2089
- 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._(); }), a;
2206
+ }, c.prototype.ia = function (e) {
2207
+ var t = this, a = e.type;
2208
+ if ("text" === a || "number" === a) {
2209
+ var i = document.createElement("input");
2210
+ return i.type = a, t.disabled && (i.disabled = !0), e.value && (i.value = e.value), i.addEventListener("keyup", function (i) { "number" === a ? e.value = Number(this.value) : e.value = this.value, t.ba(); }), i;
2090
2211
  }
2091
- if ("select" === i) {
2212
+ if ("select" === a) {
2092
2213
  var n = document.createElement("select");
2093
- 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.K = 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.K && (e.value = a.K), t._(); }), n;
2214
+ return t.disabled && (n.disabled = !0), e.data.options.forEach(function (t) { var a = document.createElement("option"); a.innerText = t.name, a.value = t.id, a.M = t.id, n.appendChild(a), e.value === t.id && a.setAttribute("selected", !0); }), n.addEventListener("change", function (a) { var i = n.options[n.selectedIndex]; i && "undefined" != typeof i.M && (e.value = i.M), t.ba(); }), n;
2094
2215
  }
2095
- throw new Error("Unsupported item type: " + i);
2096
- }, s.prototype.focus = function () { };
2216
+ throw new Error("Unsupported item type: " + a);
2217
+ }, c.prototype.focus = function () { };
2097
2218
  }
2098
2219
  }(DayPilot);
2099
2220
  if ("undefined" == typeof DayPilot)
@@ -2102,7 +2223,7 @@ if ("undefined" == typeof DayPilot)
2102
2223
  if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
2103
2224
  var t = {};
2104
2225
  t.Month = function (e, i) {
2105
- this.v = "2022.2.374-lite", this.nav = {};
2226
+ this.v = "2022.3.391-lite", this.nav = {};
2106
2227
  var n = this;
2107
2228
  this.id = e, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, this.cssClassPrefix = "month_default", this.eventBarVisible = !0, this.eventHeight = 25, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.hideUntilInit = !0, this.lineSpace = 1, this.locale = "en-us", this.showToolTip = !0, this.startDate = new DayPilot.Date, this.theme = null, this.visible = !0, this.weekStarts = 1, 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.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.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.cellEvents = [], this.elements = {}, this.elements.events = [], this.cache = {}, this.a = function (t, e) { var t = JSON.parse(t); return t.CallBackRedirect ? void (document.location.href = t.CallBackRedirect) : "None" === t.UpdateType ? void n.fireAfterRenderDetached(t.CallBackData, !0) : (n.events.list = t.Events, "Full" === t.UpdateType && (n.startDate = t.StartDate, n.timeFormat = t.TimeFormat ? t.TimeFormat : n.timeFormat, "undefined" != typeof t.WeekStarts && (n.weekStarts = t.WeekStarts), n.hashes = t.Hashes), n.b(), n.c(), n.d(), "Full" === t.UpdateType && (n.f(), n.g()), n.h(), n.show(), n.i(), void n.fireAfterRenderDetached(t.CallBackData, !0)); }, this.fireAfterRenderDetached = function (t, e) { var i = function (t, e) { return function () { n.afterRender && n.afterRender(t, e); }; }; window.setTimeout(i(t, e), 0); }, this.lineHeight = function () { return this.eventHeight + this.lineSpace; }, this.events = {}, this.events.add = function (t) {
2108
2229
  var e = null;
@@ -2158,8 +2279,8 @@ if ("undefined" == typeof DayPilot)
2158
2279
  l += l.indexOf("?") > -1 ? "&" + o : "?" + o, DayPilot.Http.ajax({ "method": "GET", "url": l, "success": a, "error": s });
2159
2280
  }
2160
2281
  }, this.update = function (t) {
2161
- if (this.cells) {
2162
- n.l(t), n.b(), n.c(), n.d(), n.f(), n.g(), n.h(), n.m(), n.i(), this.visible ? this.show() : this.hide();
2282
+ if (n.l(t), this.k && this.cells) {
2283
+ n.b(), n.c(), n.d(), n.f(), n.g(), n.h(), n.m(), n.i(), this.visible ? this.show() : this.hide();
2163
2284
  }
2164
2285
  }, this.n = null, this.l = function (t) {
2165
2286
  if (t) {
@@ -2578,7 +2699,7 @@ if ("undefined" == typeof DayPilot)
2578
2699
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
2579
2700
  throw "DayPilot.Month: The placeholder element not found: '" + id + "'.";
2580
2701
  }
2581
- }, this.O = function () { this.c(), this.A(), this.g(), this.M(), this.E("Init"); }, this.P = function (t, e) { return n.K.L() ? DayPilot.Util.escapeTextHtml(t, e) : DayPilot.Util.isNullOrUndefined(e) ? DayPilot.Util.isNullOrUndefined(t) ? "" : t : e; }, this.internal = {}, this.internal.xssTextHtml = n.P, this.init = function () { return this.N(), this.loadFromServer() ? void this.O() : (this.c(), this.d(), this.A(), this.g(), this.m(), this.i(), this.M(), this.messageHTML && this.message(this.messageHTML), void this.fireAfterRenderDetached(null, !1)); }, this.Init = this.init, Object.defineProperty(this, "durationBarVisible", { get: function () { return n.eventBarVisible; } }), this.l(i);
2702
+ }, this.O = function () { this.c(), this.A(), this.g(), this.M(), this.E("Init"); }, this.P = function (t, e) { return n.K.L() ? DayPilot.Util.escapeTextHtml(t, e) : DayPilot.Util.isNullOrUndefined(e) ? DayPilot.Util.isNullOrUndefined(t) ? "" : t : e; }, this.internal = {}, this.internal.loadOptions = this.l, this.internal.xssTextHtml = n.P, this.init = function () { return this.N(), this.loadFromServer() ? void this.O() : (this.c(), this.d(), this.A(), this.g(), this.m(), this.i(), this.M(), this.messageHTML && this.message(this.messageHTML), this.fireAfterRenderDetached(null, !1), void (this.k = !0)); }, this.Init = this.init, Object.defineProperty(this, "durationBarVisible", { get: function () { return n.eventBarVisible; } }), this.l(i);
2582
2703
  }, t.gMouseUp = function (e) {
2583
2704
  if (t.movingEvent) {
2584
2705
  var i = t.movingEvent;
@@ -2658,7 +2779,7 @@ if ("undefined" == typeof DayPilot)
2658
2779
  "undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () {
2659
2780
  if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.nav) {
2660
2781
  DayPilot.Navigator = function (t, e) {
2661
- this.v = "2022.2.374-lite";
2782
+ this.v = "2022.3.391-lite";
2662
2783
  var i = this;
2663
2784
  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.a = {}, this.b = function () { this.root.dp = this, this.root.className = this.c("_main"), "Horizontal" === this.orientation ? (this.root.style.width = this.showMonths * (7 * a.cellWidth() + this.d()) + "px", this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : this.root.style.width = 7 * a.cellWidth() + this.d() + "px", this.rtl && (this.root.style.direction = "rtl"), this.root.style.position = "relative", this.visible || (this.root.style.display = "none"); var t = document.createElement("input"); t.type = "hidden", t.name = i.id + "_state", t.id = t.name, this.root.appendChild(t), this.state = t, this.startDate ? this.startDate = new DayPilot.Date(this.startDate).firstDayOfMonth() : this.startDate = DayPilot.Date.fromYearMonthDay(this.year, this.month), this.calendars = [], this.selected = [], this.months = []; }, this.e = function () { return 2 === i.api; }, this.f = function () { this.root.innerHTML = ""; }, this.c = function (t) { var e = this.theme || this.cssClassPrefix; return e ? e + t : ""; }, this.g = function (t, e) { var i = this.c("_" + e); DayPilot.Util.addClass(t, i); }, this.h = function (t, e) { var i = this.c("_" + e); DayPilot.Util.removeClass(t, i); }, this.i = function (t, e) {
2664
2785
  var s = {};
@@ -2703,24 +2824,24 @@ if ("undefined" == typeof DayPilot)
2703
2824
  var H = document.createElement("div");
2704
2825
  H.style.position = "absolute", H.style.left = "0px", H.style.right = "0px", H.style.top = k * this.cellHeight + m + "px", H.style.width = a.cellWidth() + "px", H.style.height = this.cellHeight + "px", H.style.lineHeight = this.cellHeight + "px", H.setAttribute("unselectable", "on"), H.className = this.c("_weeknumber"), H.innerHTML = "<span>" + C + "</span>", v.appendChild(H), s.weeks.push(H);
2705
2826
  }
2706
- for (var P = 0; P < 7; P++) {
2707
- s.cells[P] = [];
2827
+ for (var M = 0; M < 7; M++) {
2828
+ s.cells[M] = [];
2708
2829
  var H = document.createElement("div");
2709
- H.style.position = "absolute", H.style.left = P * a.cellWidth() + w + "px", H.style.right = P * a.cellWidth() + w + "px", H.style.top = this.titleHeight + "px", H.style.width = a.cellWidth() + "px", H.style.height = this.dayHeaderHeight + "px", H.style.lineHeight = this.dayHeaderHeight + "px", H.setAttribute("unselectable", "on"), H.className = this.c("_dayheader"), H.innerHTML = "<span>" + this.l(P) + "</span>", v.appendChild(H), s.days.push(H);
2830
+ H.style.position = "absolute", H.style.left = M * a.cellWidth() + w + "px", H.style.right = M * a.cellWidth() + w + "px", H.style.top = this.titleHeight + "px", H.style.width = a.cellWidth() + "px", H.style.height = this.dayHeaderHeight + "px", H.style.lineHeight = this.dayHeaderHeight + "px", H.setAttribute("unselectable", "on"), H.className = this.c("_dayheader"), H.innerHTML = "<span>" + this.l(M) + "</span>", v.appendChild(H), s.days.push(H);
2710
2831
  for (var k = 0; k < u; k++) {
2711
- var S = r.addDays(7 * k + P), M = this.m(S) && "none" !== this.n(), E = S.firstDayOfMonth() === n, N = S < n, W = S >= n.addMonths(1);
2832
+ var S = r.addDays(7 * k + M), P = this.m(S) && "none" !== this.n(), E = S.firstDayOfMonth() === n, N = S < n, W = S >= n.addMonths(1);
2712
2833
  if ("month" === this.n())
2713
- M = M && E;
2834
+ P = P && E;
2714
2835
  else if ("day" === this.n())
2715
- M = M && (E || l && N || o && W);
2836
+ P = P && (E || l && N || o && W);
2716
2837
  else if ("week" === this.n()) {
2717
2838
  var O = S.firstDayOfMonth() === n;
2718
- M = M && (O || l && N || o && W);
2839
+ P = P && (O || l && N || o && W);
2719
2840
  }
2720
2841
  var R = document.createElement("div");
2721
- s.cells[P][k] = R;
2722
- var T = i.o(P, k), A = T.x, B = T.y;
2723
- R.day = S, R.x = P, R.y = k, R.left = A, R.top = B, R.isCurrentMonth = E, R.isNextMonth = W, R.isPrevMonth = N, R.showBefore = l, R.showAfter = o, R.className = this.c(E ? "_day" : "_dayother"), i.g(R, "cell"), S.getTime() === f.getTime() && E && this.g(R, "today"), 0 !== S.dayOfWeek() && 6 !== S.dayOfWeek() || this.g(R, "weekend"), R.style.position = "absolute", R.style.left = A + "px", R.style.right = A + "px", R.style.top = B + "px", R.style.width = a.cellWidth() + "px", R.style.height = this.cellHeight + "px", R.style.lineHeight = this.cellHeight + "px";
2842
+ s.cells[M][k] = R;
2843
+ var T = i.o(M, k), A = T.x, B = T.y;
2844
+ R.day = S, R.x = M, R.y = k, R.left = A, R.top = B, R.isCurrentMonth = E, R.isNextMonth = W, R.isPrevMonth = N, R.showBefore = l, R.showAfter = o, R.className = this.c(E ? "_day" : "_dayother"), i.g(R, "cell"), S.getTime() === f.getTime() && E && this.g(R, "today"), 0 !== S.dayOfWeek() && 6 !== S.dayOfWeek() || this.g(R, "weekend"), R.style.position = "absolute", R.style.left = A + "px", R.style.right = A + "px", R.style.top = B + "px", R.style.width = a.cellWidth() + "px", R.style.height = this.cellHeight + "px", R.style.lineHeight = this.cellHeight + "px";
2724
2845
  var _ = document.createElement("div");
2725
2846
  _.style.position = "absolute", _.className = S.getTime() === f.getTime() && E ? this.c("_todaybox") : this.c("_daybox"), i.g(_, "cell_box"), _.style.left = "0px", _.style.top = "0px", _.style.right = "0px", _.style.bottom = "0px", R.appendChild(_);
2726
2847
  var U = null;
@@ -2732,7 +2853,7 @@ if ("undefined" == typeof DayPilot)
2732
2853
  var L = document.createElement("div");
2733
2854
  L.innerHTML = S.getDay(), L.style.position = "absolute", L.style.left = "0px", L.style.top = "0px", L.style.right = "0px", L.style.bottom = "0px", i.g(L, "cell_text"), R.isClickable = !0, U && U.html && (L.innerHTML = U.html), R.appendChild(L);
2734
2855
  }
2735
- R.setAttribute("unselectable", "on"), R.onclick = this.p, v.appendChild(R), M && (i.q(v, P, k), this.selected.push(R));
2856
+ R.setAttribute("unselectable", "on"), R.onclick = this.p, v.appendChild(R), P && (i.q(v, M, k), this.selected.push(R));
2736
2857
  }
2737
2858
  }
2738
2859
  var V = document.createElement("div");
@@ -2777,14 +2898,14 @@ if ("undefined" == typeof DayPilot)
2777
2898
  }
2778
2899
  o && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(o) : this.u(), this.f(), this.b(), this.C(), this.s(), this.t(), !c || d.equals(this.selectionStart) && u.equals(this.selectionEnd) || this.D(), f && this.E();
2779
2900
  }, this.update = function (t) {
2780
- if (!i.z)
2781
- throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that hasn't been initialized yet.");
2782
- if (i.F)
2783
- throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed.");
2784
- i.G(), i.H(t);
2785
- var e = { "day": i.selectionDay, "start": i.selectionStart, "end": i.selectionEnd };
2786
- i.I(), e.start === i.selectionStart && e.end == i.selectionEnd && e.day === i.selectionDay || i.D();
2787
- }, this.I = function () { this.f(), this.b(), this.u(), this.C(), this.J(), this.s(), this.t(), this.visible ? this.show() : this.hide(); }, this.G = function () { i.a = {}; }, this.K = null, this.H = function (t) {
2901
+ if (i.F(t), this.z) {
2902
+ if (i.G)
2903
+ throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed.");
2904
+ i.H();
2905
+ var e = { "day": i.selectionDay, "start": i.selectionStart, "end": i.selectionEnd };
2906
+ i.I(), e.start === i.selectionStart && e.end == i.selectionEnd && e.day === i.selectionDay || i.D();
2907
+ }
2908
+ }, this.I = function () { this.f(), this.b(), this.u(), this.C(), this.J(), this.s(), this.t(), this.visible ? this.show() : this.hide(); }, this.H = function () { i.a = {}; }, this.K = null, this.F = function (t) {
2788
2909
  if (t) {
2789
2910
  var e = { "events": { "preInit": function () { var t = this.data; t && (DayPilot.isArray(t.list) ? i.events.list = t.list : i.events.list = t); } } };
2790
2911
  this.K = e;
@@ -3053,7 +3174,7 @@ if ("undefined" == typeof DayPilot)
3053
3174
  return this.internal.showLinks;
3054
3175
  var e = {};
3055
3176
  return e.left = 0 === t, e.right = 0 === t, e.before = 0 === t, e.after = t === this.showMonths - 1, "Horizontal" === this.orientation && (e.right = t === this.showMonths - 1), e;
3056
- }, this._ = {}, this._.scope = null, this._.notify = function () { i._.scope && i._.scope["$apply"](); }, this.internal = {}, this.internal.initialized = function () { return i.z; }, this.aa = {};
3177
+ }, this._ = {}, this._.scope = null, this._.notify = function () { i._.scope && i._.scope["$apply"](); }, this.internal = {}, this.internal.loadOptions = i.F, this.internal.initialized = function () { return i.z; }, this.aa = {};
3057
3178
  var a = this.aa;
3058
3179
  a.locale = function () { return DayPilot.Locale.find(i.locale); }, a.weekStarts = function () {
3059
3180
  if ("Auto" === i.weekStarts) {
@@ -3118,7 +3239,7 @@ if ("undefined" == typeof DayPilot)
3118
3239
  i.D({ "mode": "FreeHand" });
3119
3240
  }
3120
3241
  s.start = null, s.end = null;
3121
- }, this.dispose = function () { var t = i; t.root && (t.root.removeAttribute("style"), t.root.removeAttribute("class"), t.root.dp = null, t.root.innerHTML = null, t.root = null); }, this.fa = function () { this.root.dispose = this.dispose; }, this.Init = this.init, this.H(e);
3242
+ }, this.dispose = function () { var t = i; t.root && (t.root.removeAttribute("style"), t.root.removeAttribute("class"), t.root.dp = null, t.root.innerHTML = null, t.root = null, t.G = !0); }, this.fa = function () { this.root.dispose = this.dispose; }, this.Init = this.init, this.F(e);
3122
3243
  }, "undefined" != typeof jQuery && !function (t) {
3123
3244
  t.fn.daypilotNavigator = function (t) {
3124
3245
  var e = null, i = this.each(function () {
@@ -3273,9 +3394,7 @@ class DayPilotCalendarComponent {
3273
3394
  let hash = optHash(this.config);
3274
3395
  if (hash !== this._hashOptions) {
3275
3396
  let dp = this.control;
3276
- for (let name in this.config) {
3277
- dp[name] = this.config[name];
3278
- }
3397
+ dp.internal.loadOptions(this.config);
3279
3398
  this._requestUpdateFull = true;
3280
3399
  this._requestViewChange = true;
3281
3400
  }
@@ -3358,9 +3477,7 @@ class DayPilotMonthComponent {
3358
3477
  let hash = optHash(this.config);
3359
3478
  if (hash !== this._hashOptions) {
3360
3479
  let dp = this.control;
3361
- for (let name in this.config) {
3362
- dp[name] = this.config[name];
3363
- }
3480
+ dp.internal.loadOptions(this.config);
3364
3481
  this._requestUpdate = true;
3365
3482
  }
3366
3483
  this._hashOptions = hash;