@daypilot/daypilot-lite-angular 3.5.0 → 3.6.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.384-lite
106
+ Version: 2022.3.389-lite
107
107
  */
108
108
  if ("undefined" == typeof DayPilot)
109
109
  var DayPilot = {};
@@ -395,7 +395,7 @@ if ("undefined" == typeof DayPilot)
395
395
  if (this instanceof t.Calendar && !this.d && (n = !0, this.d = !0), !n)
396
396
  throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
397
397
  var s = this;
398
- this.uniqueID = null, this.v = "2022.2.384-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 () { if (/Opera[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
398
+ this.uniqueID = null, this.v = "2022.3.389-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 () { if (/Opera[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
399
399
  return new Number(RegExp.$1) >= 10.5;
400
400
  } return !1; }(), this.j = function () { if (/AppleWebKit[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
401
401
  return new Number(RegExp.$1) >= 522;
@@ -819,7 +819,10 @@ if ("undefined" == typeof DayPilot)
819
819
  else {
820
820
  var l = e, o = "start=" + s.visibleStart().toString() + "&end=" + s.visibleEnd().toString();
821
821
  l += l.indexOf("?") > -1 ? "&" + o : "?" + o, DayPilot.Http.ajax({ "method": "GET", "url": l, "success": a, "error": n });
822
- } }, 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.ja(), 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) { if (e) {
822
+ } }, this.update = function (e) { if (s.ua(e), this.Y) {
823
+ s.va(), s.p(), s.nav.top.style.cursor = "auto";
824
+ 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();
825
+ } }, this.xa = null, this.ua = function (e) { if (e) {
823
826
  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; } } };
824
827
  this.xa = t;
825
828
  for (var i in e)
@@ -907,7 +910,7 @@ if ("undefined" == typeof DayPilot)
907
910
  this.La = !0;
908
911
  var e = {};
909
912
  this.onInit(e);
910
- } }, 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.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);
913
+ } }, 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);
911
914
  }, 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) { e.fn.daypilotCalendar = function (e) { var t = null, i = this.each(function () { if (!this.daypilot) {
912
915
  var i = new DayPilot.Calendar(this.id);
913
916
  this.daypilot = i;
@@ -923,7 +926,7 @@ if ("undefined" == typeof DayPilot)
923
926
  }();
924
927
  if ("undefined" == typeof DayPilot)
925
928
  var DayPilot = {};
926
- !function () { "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (t) { this.v = "2022.2.384-lite"; var e = "navigator_" + (new Date).getTime(), i = this; this.prepare = function () { 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)
929
+ !function () { "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (t) { this.v = "2022.3.389-lite"; var e = "navigator_" + (new Date).getTime(), i = this; this.prepare = function () { 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)
927
930
  for (var e in t)
928
931
  this[e] = t[e]; this.init(); }, 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 () { var t = this.e(); if (!t)
929
932
  return this.date; var e = null; if (e = "INPUT" === t.tagName ? t.value : t.innerText, !e)
@@ -937,39 +940,39 @@ if ("undefined" == typeof DayPilot)
937
940
  } }, 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(); }); }();
938
941
  "undefined" == typeof DayPilot && (DayPilot = {}), function (DayPilot) {
939
942
  "use strict";
940
- function e(t, i, a) { var n = i.indexOf("."); if (n === -1)
941
- return void ("__proto__" !== i && "constructor" !== i && (t[i] = a)); var o = i.substring(0, n); if ("__proto__" !== o && "constructor" !== o) {
942
- var l = i.substring(n + 1), d = t[o];
943
- "object" == typeof d && null !== d || (t[o] = {}, d = t[o]), e(d, l, a);
943
+ function e(t, a, i) { var n = a.indexOf("."); if (n === -1)
944
+ return void ("__proto__" !== a && "constructor" !== a && (t[a] = i)); var o = a.substring(0, n); if ("__proto__" !== o && "constructor" !== o) {
945
+ var l = a.substring(n + 1), d = t[o];
946
+ "object" == typeof d && null !== d || (t[o] = {}, d = t[o]), e(d, l, i);
944
947
  } }
945
- function t(e, i, a) { i = i || {}, a = a || ""; for (var n in e) {
948
+ function t(e, a, i) { a = a || {}, i = i || ""; for (var n in e) {
946
949
  var o = e[n];
947
- "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;
948
- } return i; }
950
+ "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;
951
+ } return a; }
949
952
  if (!DayPilot.ModalStatic) {
950
953
  DayPilot.ModalStatic = {}, DayPilot.ModalStatic.list = [], DayPilot.ModalStatic.hide = function () { if (this.list.length > 0) {
951
954
  var e = this.list.pop();
952
955
  e && e.hide();
953
- } }, DayPilot.ModalStatic.remove = function (e) { for (var t = DayPilot.ModalStatic.list, i = 0; i < t.length; i++)
954
- if (t[i] === e)
955
- return void t.splice(i, 1); }, 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) { for (var t = DayPilot.ModalStatic.list, i = 0; i < t.length; i++)
956
- if (t[i] === e)
956
+ } }, DayPilot.ModalStatic.remove = function (e) { for (var t = DayPilot.ModalStatic.list, a = 0; a < t.length; a++)
957
+ if (t[a] === e)
958
+ return void t.splice(a, 1); }, 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) { for (var t = DayPilot.ModalStatic.list, a = 0; a < t.length; a++)
959
+ if (t[a] === e)
957
960
  return !0; return !1; }, DayPilot.ModalStatic.stretch = function () { if (this.list.length > 0) {
958
961
  var e = this.list[this.list.length - 1];
959
962
  e && e.stretch();
960
963
  } }, DayPilot.ModalStatic.last = function () { var e = DayPilot.ModalStatic.list; return e.length > 0 ? e[e.length - 1] : null; };
961
- var i = function () { var e = document.createElement("style"); e.setAttribute("type", "text/css"), e.styleSheet || e.appendChild(document.createTextNode("")), (document.head || document.getElementsByTagName("head")[0]).appendChild(e); var t = !!e.styleSheet, i = {}; return i.rules = [], i.commit = function () { try {
964
+ var a = function () { var e = document.createElement("style"); e.setAttribute("type", "text/css"), e.styleSheet || e.appendChild(document.createTextNode("")), (document.head || document.getElementsByTagName("head")[0]).appendChild(e); var t = !!e.styleSheet, a = {}; return a.rules = [], a.commit = function () { try {
962
965
  t && (e.styleSheet.cssText = this.rules.join("\n"));
963
966
  }
964
- catch (e) { } }, i.add = function (i, a, n) { if (t)
965
- return void this.rules.push(i + "{" + a + "}"); if (e.sheet.insertRule)
966
- "undefined" == typeof n && (n = e.sheet.cssRules.length), e.sheet.insertRule(i + "{" + a + "}", n);
967
+ catch (e) { } }, a.add = function (a, i, n) { if (t)
968
+ return void this.rules.push(a + "{" + i + "}"); if (e.sheet.insertRule)
969
+ "undefined" == typeof n && (n = e.sheet.cssRules.length), e.sheet.insertRule(a + "{" + i + "}", n);
967
970
  else {
968
971
  if (!e.sheet.addRule)
969
972
  throw "No CSS registration method found";
970
- e.sheet.addRule(i, a, n);
971
- } }, i; }, a = new i;
972
- 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+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojY2NjY2NjO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjM4MDM3MzM2O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDE5MjgiCiAgICAgICB3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ZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgaWQ9InJlY3QyMDIxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgeD0iNC4yNTgzMjU2IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgcnk9IjAuMjk2MDE0NyIgLz4KICAgIDxyZWN0CiAgICAgICByeT0iMC4yOTYwMTQ3IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgeD0iNy4wMzE3NjMxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDIzIgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogIDwvZz4KPC9zdmc+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) { this.autoFocus = !0, this.focus = null, this.autoStretch = !0, this.autoStretchFirstLoadOnly = !1, this.className = null, this.theme = "modal_default", this.disposeOnClose = !0, this.dragDrop = !0, this.loadingHtml = null, this.maxHeight = null, this.scrollWithPage = !0, this.useIframe = !0, this.zIndex = 99999, this.left = null, this.width = 600, this.top = 20, this.height = 200, this.locale = null, this.closed = null, this.onClose = null, this.onClosed = null, this.onShow = null; var t = this; this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.a = !1, this.b = null, this.c = null, this.showHtml = function (e) { if (DayPilot.ModalStatic.displayed(this))
973
+ e.sheet.addRule(a, i, n);
974
+ } }, a; }, i = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxwYXRoCiAgICAgICBpZD0icGF0aDMxNzMiCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojOTk5OTk5O3N0cm9rZS13aWR0aDoxLjg1MTk2ODUzO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZSIKICAgICAgIGQ9Ik0gMC45NTQxNDgzOCwwLjY4MTYwMzEgNS4wMzkwNjI1LDUuNDExNTM4NiA5LjEyMzk3NjYsMC42ODE2MDMxIgogICAgICAgIC8+CiAgPC9nPgo8L3N2Zz4K", n = new a;
975
+ 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+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojY2NjY2NjO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13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U9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgaWQ9InJlY3QyMDIxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgeD0iNC4yNTgzMjU2IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgcnk9IjAuMjk2MDE0NyIgLz4KICAgIDxyZWN0CiAgICAgICByeT0iMC4yOTYwMTQ3IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgeD0iNy4wMzE3NjMxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDIzIgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogIDwvZz4KPC9zdmc+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) { this.autoFocus = !0, this.focus = null, this.autoStretch = !0, this.autoStretchFirstLoadOnly = !1, this.className = null, this.theme = "modal_default", this.disposeOnClose = !0, this.dragDrop = !0, this.loadingHtml = null, this.maxHeight = null, this.scrollWithPage = !0, this.useIframe = !0, this.zIndex = 99999, this.left = null, this.width = 600, this.top = 20, this.height = 200, this.locale = null, this.closed = null, this.onClose = null, this.onClosed = null, this.onShow = null; var t = this; this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.a = !1, this.b = null, this.c = null, this.showHtml = function (e) { if (DayPilot.ModalStatic.displayed(this))
973
976
  throw "This modal dialog is already displayed."; if (this.div || this.d(), this.e(), this.useIframe) {
974
977
  var t = function (e, t) { return function () { e.setInnerHTML(e.id + "iframe", t); }; };
975
978
  window.setTimeout(t(this, e), 0);
@@ -978,19 +981,19 @@ if ("undefined" == typeof DayPilot)
978
981
  e.nodeType ? this.div.appendChild(e) : this.div.innerHTML = e; this.e(), this.f(), this.g(); }, this.showUrl = function (e) { if (DayPilot.ModalStatic.displayed(this))
979
982
  throw "This modal dialog is already displayed."; if (this.useIframe) {
980
983
  this.div || this.d();
981
- var i = this.loadingHtml;
982
- 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();
984
+ var a = this.loadingHtml;
985
+ 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();
983
986
  }
984
987
  else
985
- 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"); } }); }, this.g = function () { if ("function" == typeof t.onShow) {
988
+ 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"); } }); }, this.g = function () { if ("function" == typeof t.onShow) {
986
989
  var e = {};
987
990
  e.root = t.j(), e.modal = t, t.onShow(e);
988
991
  } }, this.j = function () { return t.iframe ? t.iframe.contentWindow.document : t.div; }, this.i = function (e) { var t = new XMLHttpRequest; if (t) {
989
- var i = e.method || "GET", a = e.success || function () { }, n = e.error || function () { }, o = e.data, l = e.url;
990
- t.open(i, l, !0), t.setRequestHeader("Content-type", "text/plain"), t.onreadystatechange = function () { if (4 === t.readyState)
992
+ var a = e.method || "GET", i = e.success || function () { }, n = e.error || function () { }, o = e.data, l = e.url;
993
+ t.open(a, l, !0), t.setRequestHeader("Content-type", "text/plain"), t.onreadystatechange = function () { if (4 === t.readyState)
991
994
  if (200 === t.status || 304 === t.status) {
992
995
  var e = {};
993
- e.request = t, a(e);
996
+ e.request = t, i(e);
994
997
  }
995
998
  else if (n) {
996
999
  var e = {};
@@ -998,26 +1001,26 @@ if ("undefined" == typeof DayPilot)
998
1001
  }
999
1002
  else
1000
1003
  window.console && console.log("HTTP error " + t.status); }, 4 !== t.readyState && ("object" == typeof o && (o = JSON.stringify(o)), t.send(o));
1001
- } }, 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 () { var e = function () { return t.k().y; }, i = function () { return t.k().x; }; if (this.useIframe) {
1002
- for (var a = i() - 40, n = this.width; n < a && this.m(); n += 10)
1004
+ } }, 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 () { var e = function () { return t.k().y; }, a = function () { return t.k().x; }; if (this.useIframe) {
1005
+ for (var i = a() - 40, n = this.width; n < i && this.m(); n += 10)
1003
1006
  this.div.style.width = n + "px", this.div.style.marginLeft = "-" + Math.floor(n / 2) + "px";
1004
1007
  for (var o = this.maxHeight || e() - 2 * this.top, l = this.height; l < o && this.n(); l += 10)
1005
1008
  this.iframe.style.height = l + "px", this.div.style.height = l + "px";
1006
1009
  this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.h);
1007
1010
  }
1008
1011
  else
1009
- this.div.style.height = ""; }, this.m = function () { for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement, i = t.scrollWidth, a = e.body.children, n = 0; n < a.length; n++) {
1010
- var o = a[n].offsetLeft + a[n].offsetWidth;
1011
- i = Math.max(i, o);
1012
- } return i > t.clientWidth; }, this.n = function () { for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement, i = t.scrollHeight, a = e.body.children, n = 0; n < a.length; n++) {
1013
- var o = a[n].offsetTop + a[n].offsetHeight;
1014
- i = Math.max(i, o);
1015
- } return i > t.clientHeight; }, this.k = function () { var e = document; if ("CSS1Compat" === e.compatMode && e.documentElement && e.documentElement.clientWidth) {
1016
- var t = e.documentElement.clientWidth, i = e.documentElement.clientHeight;
1017
- return { x: t, y: i };
1018
- } var t = e.body.clientWidth, i = e.body.clientHeight; return { x: t, y: i }; }, 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) { if (t.c) {
1019
- var e = e || window.event, i = t.mc(e), a = i.x - t.c.x, n = i.y - t.c.y;
1020
- t.div.style.marginLeft = "0px", t.div.style.top = t.b.y + n + "px", t.div.style.left = t.b.x + a + "px";
1012
+ this.div.style.height = ""; }, this.m = function () { 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++) {
1013
+ var o = i[n].offsetLeft + i[n].offsetWidth;
1014
+ a = Math.max(a, o);
1015
+ } return a > t.clientWidth; }, this.n = function () { 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++) {
1016
+ var o = i[n].offsetTop + i[n].offsetHeight;
1017
+ a = Math.max(a, o);
1018
+ } return a > t.clientHeight; }, this.k = function () { var e = document; if ("CSS1Compat" === e.compatMode && e.documentElement && e.documentElement.clientWidth) {
1019
+ var t = e.documentElement.clientWidth, a = e.documentElement.clientHeight;
1020
+ return { x: t, y: a };
1021
+ } var t = e.body.clientWidth, a = e.body.clientHeight; return { x: t, y: a }; }, 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) { if (t.c) {
1022
+ var e = e || window.event, a = t.mc(e), i = a.x - t.c.x, n = a.y - t.c.y;
1023
+ t.div.style.marginLeft = "0px", t.div.style.top = t.b.y + n + "px", t.div.style.left = t.b.x + i + "px";
1021
1024
  } }, this.r = function (e) { t.c && (t.v(), t.div.style.cursor = null, t.c = null); }, this.u = function () { if (this.useIframe) {
1022
1025
  var e = document.createElement("div");
1023
1026
  e.style.backgroundColor = "#ffffff", e.style.filter = "alpha(opacity=80)", e.style.opacity = "0.80", e.style.width = "100%", e.style.height = this.height + "px", e.style.position = "absolute", e.style.left = "0px", e.style.top = "0px", this.div.appendChild(e), this.mask = e;
@@ -1027,16 +1030,16 @@ if ("undefined" == typeof DayPilot)
1027
1030
  } }, this.w = function () { if (t.hideDiv && t.div && "none" !== t.hideDiv.style.display && "none" !== t.div.style.display) {
1028
1031
  var e = t.z.scrollY();
1029
1032
  t.scrollWithPage || (t.div.style.top = e + t.top + "px");
1030
- } }, 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) { for (var t = { x: e.offsetLeft, y: e.offsetTop }; e.offsetParent;)
1031
- e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop; return t; }, 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 () { for (var e = t.j(), i = e.querySelectorAll("input, textarea, select"), a = {}, n = 0; n < i.length; n++) {
1032
- var o = i[n], l = o.name;
1033
+ } }, 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) { for (var t = { x: e.offsetLeft, y: e.offsetTop }; e.offsetParent;)
1034
+ e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop; return t; }, 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 () { for (var e = t.j(), a = e.querySelectorAll("input, textarea, select"), i = {}, n = 0; n < a.length; n++) {
1035
+ var o = a[n], l = o.name;
1033
1036
  if (l) {
1034
1037
  var d = o.value;
1035
- a[l] = d;
1038
+ i[l] = d;
1036
1039
  }
1037
- } t.close(a); }, this.hide = function (e) { e = e || {}; var i = {}; i.backgroundClick = !!e.backgroundClick, i.result = this.result, i.canceled = "undefined" == typeof this.result, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof this.onClose && (this.onClose(i), i.preventDefault.value) || (this.div && (this.div.style.display = "none", this.hideDiv.style.display = "none", this.useIframe || (this.div.innerHTML = null)), window.focus(), DayPilot.ModalStatic.remove(this), "function" == typeof this.onClosed ? this.onClosed(i) : this.closed && this.closed(), delete this.result, this.disposeOnClose && (t.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 () { if (e)
1040
+ } t.close(i); }, 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 () { if (e)
1038
1041
  for (var t in e)
1039
- this[t] = e[t]; }, this.C(); }, 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) { "object" == typeof t && (i = t, t = ""), i = i || {}, i.height = i.height || 40, i.useIframe = !1; var a = i.okText || "OK", n = i.cancelText || "Cancel", o = t || ""; return DayPilot.getPromise(function (t, l) { i.onClosed = function (e) { t(e); }; var d = new DayPilot.Modal(i), r = document.createElement("div"); r.className = d.theme + "_inner"; var s = document.createElement("div"); s.className = d.theme + "_content", s.innerHTML = e; var c = document.createElement("div"); c.className = d.theme + "_input"; var u = document.createElement("input"); u.value = o, u.style.width = "100%", u.onkeydown = function (e) { var t = !1; switch (e.keyCode) {
1042
+ this[t] = e[t]; }, this.C(); }, 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) { "object" == typeof t && (a = t, t = ""), a = a || {}, a.height = a.height || 40, a.useIframe = !1; var i = a.okText || "OK", n = a.cancelText || "Cancel", o = t || ""; return DayPilot.getPromise(function (t, l) { a.onClosed = function (e) { t(e); }; var d = new DayPilot.Modal(a), r = document.createElement("div"); r.className = d.theme + "_inner"; var s = document.createElement("div"); s.className = d.theme + "_content", s.innerHTML = e; var c = document.createElement("div"); c.className = d.theme + "_input"; var u = document.createElement("input"); u.value = o, u.style.width = "100%", u.onkeydown = function (e) { var t = !1; switch (e.keyCode) {
1040
1043
  case 13:
1041
1044
  d.close(this.value);
1042
1045
  break;
@@ -1044,137 +1047,133 @@ if ("undefined" == typeof DayPilot)
1044
1047
  d.close();
1045
1048
  break;
1046
1049
  default: t = !0;
1047
- } t || (e.preventDefault(), e.stopPropagation()); }, c.appendChild(u); var m = document.createElement("div"); m.className = d.theme + "_buttons"; var h = document.createElement("button"); h.innerText = a, h.className = d.theme + "_ok", h.onclick = function (e) { d.close(u.value); }; var p = document.createTextNode(" "), f = document.createElement("button"); 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(); }); };
1048
- var n = function (e) { return "[object Array]" === Object.prototype.toString.call(e); };
1049
- DayPilot.Modal.form = function (t, i, a) { if (1 === arguments.length) {
1050
- var l = t;
1051
- if (n(l))
1052
- i = {};
1050
+ } t || (e.preventDefault(), e.stopPropagation()); }, c.appendChild(u); var m = document.createElement("div"); m.className = d.theme + "_buttons"; var h = document.createElement("button"); h.innerText = i, h.className = d.theme + "_ok", h.onclick = function (e) { d.close(u.value); }; var p = document.createTextNode(" "), f = document.createElement("button"); 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(); }); };
1051
+ var o = function (e) { return "[object Array]" === Object.prototype.toString.call(e); };
1052
+ DayPilot.Modal.form = function (t, a, i) { if (1 === arguments.length) {
1053
+ var n = t;
1054
+ if (o(n))
1055
+ a = {};
1053
1056
  else {
1054
- if ("object" != typeof l)
1057
+ if ("object" != typeof n)
1055
1058
  throw "Invalid DayPilot.Modal.form() parameter";
1056
- i = t, t = [];
1057
- for (var d in i) {
1059
+ a = t, t = [];
1060
+ for (var d in a) {
1058
1061
  var r = {};
1059
1062
  r.name = d, r.id = d, t.push(r);
1060
1063
  }
1061
1064
  }
1062
- } var s = {}; for (var d in a)
1063
- s[d] = a[d]; s.height = s.height || 40, s.useIframe = !1; var c = s.okText || "OK", u = s.cancelText || "Cancel"; return DayPilot.getPromise(function (a, n) { s.onClosed = function (t) { if (t.result) {
1064
- var n = JSON.parse(JSON.stringify(i));
1065
+ } var s = {}; for (var d in i)
1066
+ s[d] = i[d]; s.height = s.height || 40, s.useIframe = !1; var c = s.okText || "OK", u = s.cancelText || "Cancel"; return DayPilot.getPromise(function (i, n) { s.onClosed = function (t) { if (t.result) {
1067
+ var n = JSON.parse(JSON.stringify(a));
1065
1068
  for (var o in t.result)
1066
1069
  e(n, o, t.result[o]);
1067
1070
  t.result = n;
1068
- } a(t); }; var l = new DayPilot.Modal(s), d = document.createElement("div"); d.className = l.theme + "_inner"; var r = document.createElement("div"); r.className = l.theme + "_input"; var m = new o({ theme: l.theme, form: t, data: i, zIndex: l.zIndex, locale: l.locale, plugins: l.plugins, onKey: function (e) { switch (e.key) {
1071
+ } i(t); }; var o = new DayPilot.Modal(s), d = document.createElement("div"); d.className = o.theme + "_inner"; var r = document.createElement("div"); r.className = o.theme + "_input"; var m = new l({ theme: o.theme, form: t, data: a, zIndex: o.zIndex, locale: o.locale, plugins: o.plugins, onKey: function (e) { switch (e.key) {
1069
1072
  case "Enter":
1070
- m.validate() && l.close(m.serialize());
1073
+ m.validate() && o.close(m.serialize());
1071
1074
  break;
1072
- case "Escape": l.close();
1073
- } }, onChange: function (e) { "function" == typeof l.onChange && l.onChange(e); } }), h = m.create(); r.append(h); var p = document.createElement("div"); p.className = l.theme + "_buttons"; var f = document.createElement("button"); f.innerText = c, f.className = l.theme + "_ok", s.okDisabled && (f.disabled = !0), f.onclick = function (e) { m.validate() && l.close(m.serialize()); }; var v = document.createTextNode(" "), g = document.createElement("button"); 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) { switch (e.keyCode) {
1075
+ case "Escape": o.close();
1076
+ } }, onChange: function (e) { "function" == typeof o.onChange && o.onChange(e); } }), h = m.create(); r.append(h); var p = document.createElement("div"); p.className = o.theme + "_buttons"; var f = document.createElement("button"); f.innerText = c, f.className = o.theme + "_ok", s.okDisabled && (f.disabled = !0), f.onclick = function (e) { m.validate() && o.close(m.serialize()); }; var v = document.createTextNode(" "), g = document.createElement("button"); 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) { switch (e.keyCode) {
1074
1077
  case 27:
1075
- l.close();
1078
+ o.close();
1076
1079
  break;
1077
- case 13: m.validate() && l.close(m.serialize());
1078
- } }), l.focus) {
1080
+ case 13: m.validate() && o.close(m.serialize());
1081
+ } }), o.focus) {
1079
1082
  var b = null;
1080
- if ("object" == typeof l.focus) {
1081
- var y = l.focus.id, I = l.focus.value;
1082
- b = m.findViewById(y, I);
1083
+ if ("object" == typeof o.focus) {
1084
+ var y = o.focus.id, _ = o.focus.value;
1085
+ b = m.findViewById(y, _);
1083
1086
  }
1084
1087
  else
1085
- "string" == typeof l.focus && (b = m.findViewById(l.focus));
1088
+ "string" == typeof o.focus && (b = m.findViewById(o.focus));
1086
1089
  b && b.focus();
1087
1090
  }
1088
1091
  else {
1089
- var _ = m.firstFocusable();
1090
- l.autoFocus && _ ? _.focus() : l.div.focus();
1092
+ var I = m.firstFocusable();
1093
+ o.autoFocus && I ? I.focus() : o.div.focus();
1091
1094
  } }); }, DayPilot.Modal.close = function (e) { var t = DayPilot.Modal.opener(); t && t.close(e); }, DayPilot.Modal.stretch = function (e) { var t = DayPilot.Modal.opener(); if (!t)
1092
- throw "Unable to find the opener DayPilot.Modal instance."; t.stretch(); }, DayPilot.Modal.closeSerialized = function () { var e = DayPilot.Modal.opener() || DayPilot.ModalStatic.last(); e && e.closeSerialized(); }, DayPilot.Modal.opener = function () { return "undefined" != typeof DayPilot && "undefined" != typeof DayPilot.ModalStatic && DayPilot.ModalStatic.list.length > 0 ? DayPilot.ModalStatic.list[DayPilot.ModalStatic.list.length - 1] : parent && parent.DayPilot && parent.DayPilot.ModalStatic && parent.DayPilot.ModalStatic.list[parent.DayPilot.ModalStatic.list.length - 1]; }, DayPilot.Modal.Experimental = {}, DayPilot.Modal.Experimental.Form = 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)); });
1093
- var o = function (e) { 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 || {}; for (var t in e)
1095
+ throw "Unable to find the opener DayPilot.Modal instance."; t.stretch(); }, DayPilot.Modal.closeSerialized = function () { var e = DayPilot.Modal.opener() || DayPilot.ModalStatic.last(); e && e.closeSerialized(); }, DayPilot.Modal.opener = function () { return "undefined" != typeof DayPilot && "undefined" != typeof DayPilot.ModalStatic && DayPilot.ModalStatic.list.length > 0 ? DayPilot.ModalStatic.list[DayPilot.ModalStatic.list.length - 1] : parent && parent.DayPilot && parent.DayPilot.ModalStatic && parent.DayPilot.ModalStatic.list[parent.DayPilot.ModalStatic.list.length - 1]; }, DayPilot.Modal.Experimental = {}, DayPilot.Modal.Experimental.Form = 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)); });
1096
+ var l = function (e) { 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 || {}; for (var t in e)
1094
1097
  this[t] = e[t]; };
1095
- 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) { var t = this.theme, i = this, a = document.createElement("div"); if (a.className = t + "_form_item " + t + "_form_item_level" + e.level, e.interactive || "title" !== e.type ? a.className += " " + t + "_form_item_" + e.type : a.className += " " + t + "_form_title", e.data.cssClass && (a.className += " " + e.data.cssClass), !e.isValue) {
1096
- var n = document.createElement("div");
1097
- n.className = t + "_form_item_label", n.innerText = e.text, a.appendChild(n);
1098
- } var o = this.createInteractive(e); o.onInput = function (e) { if (e = e || {}, i.I(o, { "debounce": !e.immediate }), "function" == typeof i.onChange) {
1099
- var t = {};
1100
- t.result = i.serialize(), i.onChange(t);
1101
- } }, 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); }, 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) {
1102
- function i() {
1103
- e.J && (e.J.remove(), e.J = null), e.H.classList.add(u);
1104
- var t = document.createElement("div");
1105
- t.classList.add(m), t.innerText = c.message, e.J = t, e.H.appendChild(t);
1098
+ 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) {
1099
+ var t = this.theme, a = this, i = document.createElement("div");
1100
+ if (i.className = t + "_form_item " + t + "_form_item_level" + e.level,
1101
+ 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) {
1102
+ var n = document.createElement("div");
1103
+ n.className = t + "_form_item_label", n.innerText = e.text, i.appendChild(n);
1106
1104
  }
1107
- t = t || {};
1108
- 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;
1109
- if (s) {
1110
- var c = {};
1111
- c.valid = !0, c.value = e.save()[o.field], c.message = "Error", c.values = this.serialize(), c.result = this.serialize(), s(c);
1112
- var u = this.theme + "_form_item_invalid", m = this.theme + "_form_item_invalid_message";
1113
- if (c.valid)
1114
- clearTimeout(this.F[o.field]), e.J && (e.J.remove(), e.J = null), e.H.classList.remove(u);
1115
- else if (!n)
1116
- if (a) {
1117
- var h = 1e3;
1118
- clearTimeout(this.F[o.field]), this.F[o.field] = setTimeout(function () { i(); }, h);
1119
- }
1120
- else
1121
- i();
1122
- l = c.valid;
1123
- }
1124
- return l;
1125
- }, o.prototype.load = function () { var e = this; this.form.forEach(function (t) { e.processFormItem(t, 0); }); var i; try {
1126
- var a = JSON.stringify(this.data);
1127
- i = t(JSON.parse(a));
1105
+ var o = this.createInteractive(e);
1106
+ o.onInput = function (e) { if (e = e || {}, a.I(o, { "debounce": !e.immediate }), "function" == typeof a.onChange) {
1107
+ var t = {};
1108
+ t.result = a.serialize(), a.onChange(t);
1109
+ } }, 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);
1110
+ }, 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) { 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); } t = t || {}; 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; if (s) {
1111
+ var c = {};
1112
+ c.valid = !0, c.value = e.save()[o.field], c.message = "Error", c.values = this.serialize(), c.result = this.serialize(), s(c);
1113
+ var u = this.theme + "_form_item_invalid", m = this.theme + "_form_item_invalid_message";
1114
+ if (c.valid)
1115
+ clearTimeout(this.F[o.field]), e.J && (e.J.remove(), e.J = null), e.H.classList.remove(u);
1116
+ else if (!n)
1117
+ if (i) {
1118
+ var h = 1e3;
1119
+ clearTimeout(this.F[o.field]), this.F[o.field] = setTimeout(function () { a(); }, h);
1120
+ }
1121
+ else
1122
+ a();
1123
+ l = c.valid;
1124
+ } return l; }, l.prototype.load = function () { var e = this; this.form.forEach(function (t) { e.processFormItem(t, 0); }); var a; try {
1125
+ var i = JSON.stringify(this.data);
1126
+ a = t(JSON.parse(i));
1128
1127
  }
1129
1128
  catch (e) {
1130
1129
  throw new Error("The 'data' object is not serializable (it may contain circular dependencies): " + e);
1131
- } for (var n in i)
1132
- this.setValue(n, i[n]); }, 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) { var i = this, a = this.getFieldType(e), n = []; if ("radio" === a) {
1130
+ } for (var n in a)
1131
+ this.setValue(n, a[n]); }, 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) { var a = this, i = this.getFieldType(e), n = []; if ("radio" === i) {
1133
1132
  if (e.name) {
1134
- var o = new l;
1135
- 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);
1133
+ var o = new d;
1134
+ 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);
1136
1135
  }
1137
- 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); }); });
1136
+ 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); }); });
1138
1137
  }
1139
- else if ("title" === a) {
1140
- var o = new l;
1141
- 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);
1138
+ else if ("title" === i) {
1139
+ var o = new d;
1140
+ 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);
1142
1141
  }
1143
- else if ("image" === a) {
1144
- var o = new l;
1145
- 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);
1142
+ else if ("image" === i) {
1143
+ var o = new d;
1144
+ 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);
1146
1145
  }
1147
- else if ("html" === a) {
1148
- var o = new l;
1149
- 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);
1146
+ else if ("html" === i) {
1147
+ var o = new d;
1148
+ 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);
1150
1149
  }
1151
- else if ("scrollable" === a) {
1152
- var o = new l;
1153
- 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);
1150
+ else if ("scrollable" === i) {
1151
+ var o = new d;
1152
+ 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);
1154
1153
  }
1155
1154
  else {
1156
- var o = new l;
1157
- 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);
1158
- } 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; }, o.prototype.doOnKey = function (e) { if ("function" == typeof this.onKey) {
1155
+ var o = new d;
1156
+ 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);
1157
+ } 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; }, l.prototype.doOnKey = function (e) { if ("function" == typeof this.onKey) {
1159
1158
  var t = { key: e };
1160
1159
  this.onKey(t);
1161
- } }, o.prototype.createInteractive = function (e) { 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 () { var i = new d; i.apply = function (e) { i.row = e; var t = i.element; t.value = e.value, t.disabled = !e.enabled; }; var a = document.createElement("input"); return a.name = e.field, a.type = "text", a.autocomplete = "off", a.onkeydown = function (e) { var i = !1; switch (e.keyCode) {
1160
+ } }, l.prototype.createInteractive = function (e) { 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 () { var a = new r; a.apply = function (e) { a.row = e; var t = a.element; t.value = e.value, t.disabled = !e.enabled; }; var i = document.createElement("input"); return i.name = e.field, i.type = "text", i.autocomplete = "off", i.onkeydown = function (e) { var a = !1; switch (e.keyCode) {
1162
1161
  case 13:
1163
1162
  t.doOnKey("Enter");
1164
1163
  break;
1165
1164
  case 27:
1166
1165
  t.doOnKey("Escape");
1167
1166
  break;
1168
- default: i = !0;
1169
- } i || (e.preventDefault(), e.stopPropagation()); }, 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; }, "textarea": function () { var i = new d; i.apply = function (e) { i.row = e; var t = i.element; t.value = e.value, t.disabled = !e.enabled; }; var a = document.createElement("textarea"); return a.name = e.field, e.data.height && (a.style.height = e.data.height + "px"), a.onkeydown = function (e) { var i = !1; switch (e.keyCode) {
1167
+ default: a = !0;
1168
+ } a || (e.preventDefault(), e.stopPropagation()); }, 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; }, "textarea": function () { var a = new r; a.apply = function (e) { a.row = e; var t = a.element; t.value = e.value, t.disabled = !e.enabled; }; var i = document.createElement("textarea"); return i.name = e.field, e.data.height && (i.style.height = e.data.height + "px"), i.onkeydown = function (e) { var a = !1; switch (e.keyCode) {
1170
1169
  case 13:
1171
- (e.ctrlKey || e.metaKey) && t.doOnKey("Enter"), i = !1;
1170
+ (e.ctrlKey || e.metaKey) && t.doOnKey("Enter"), a = !1;
1172
1171
  break;
1173
1172
  case 27:
1174
1173
  t.doOnKey("Escape");
1175
1174
  break;
1176
- default: i = !0;
1177
- } i || e.stopPropagation(); }, 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; }, "date": function () { var i = new d; 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; }; var a = document.createElement("input"); a.name = e.field; var n = new DayPilot.DatePicker({ target: a, theme: "navigator_modal", zIndex: t.zIndex + 1, resetTarget: !1, targetAlignment: "left", onTimeRangeSelect: function (e) { i.onInput({ "immediate": !0 }); } }); return a.picker = n, a.className = t.theme + "_input_date", a.type = "text", a.onkeydown = function (e) { var i = !1; switch (e.keyCode) {
1175
+ default: a = !0;
1176
+ } a || e.stopPropagation(); }, 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; }, "date": function () { var a = new r; 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; }; var i = document.createElement("input"); i.name = e.field; 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 }); } }); return i.picker = n, i.className = t.theme + "_input_date", i.type = "text", i.onkeydown = function (e) { var a = !1; switch (e.keyCode) {
1178
1177
  case 13:
1179
1178
  n.visible ? n.close() : t.doOnKey("Enter");
1180
1179
  break;
@@ -1182,91 +1181,113 @@ if ("undefined" == typeof DayPilot)
1182
1181
  n.visible ? n.close() : t.doOnKey("Escape");
1183
1182
  break;
1184
1183
  case 9:
1185
- n.close(), i = !0;
1184
+ n.close(), a = !0;
1186
1185
  break;
1187
- default: i = !0;
1188
- } i || (e.preventDefault(), e.stopPropagation()); }, a.onfocus = function () { n.show(); }, a.onclick = function () { n.show(); }, a.oninput = function (e) { i.onInput(); }, a.onblur = function (e) { i.onBlur(); }, i.element = a, i.picker = n, i.canFocus = function () { return !i.element.disabled; }, i.focus = function () { i.element.focus(); }, i.save = function () { var t = n.date ? n.date.toString() : null, i = {}; return i[e.field] = t, i; }, i; }, "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 () { var i = new d; i.apply = function (e) { i.row = e; var t = i.radio; t.checked = e.checked, t.disabled = !e.enabled; }; var a = document.createElement("label"), n = document.createElement("input"); n.type = "radio", n.name = e.field, n.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); var o = document.createTextNode(e.text); return a.append(o), i.element = a, i.radio = n, i.canFocus = function () { return !1; }, i.focus = function () { i.radio.focus(); }, i.save = function () { if (!n.checked)
1189
- return {}; var t = n.K, i = {}; return i[e.field] = t, i; }, i; }, "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; } }; return t.plugins && t.plugins[e.type] ? t.plugins[e.type](e) : i[e.type](); }, 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) { var i = this.E ? this.E : this.D, a = i.indexOf(e); return this.E = i.map(function (i) { if (i !== e)
1190
- return i; if (e.propsEqual(t))
1191
- return e; var a = e.clone(); for (var n in t)
1192
- a[n] = t[n]; return a; }), this.E[a]; }, o.prototype.updateInteractive = function (e) { var t = this.E.indexOf(e); this.G[t].apply(e); }, o.prototype.applyState = function () { var e = this; if (this.updateDependentState(), this.E) {
1193
- this.E.filter(function (t, i) { return e.D[i] !== t; }).forEach(function (t) { e.updateInteractive(t); }), this.D = this.E, this.E = null;
1194
- } }, 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 () { var e = {}; return this.G.forEach(function (t) { var i = t.save(); for (var a in i)
1195
- e[a] = i[a]; }), e; };
1196
- 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; };
1197
- l.prototype.clone = function () { var e = new l; for (var t in this)
1198
- "id" !== t && (e[t] = this[t]); return e; }, l.prototype.propsEqual = function (e) { for (var t in e)
1186
+ default: a = !0;
1187
+ } a || (e.preventDefault(), e.stopPropagation()); }, 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; }, "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 () { var a = new r; a.apply = function (e) { a.row = e; var t = a.radio; t.checked = e.checked, t.disabled = !e.enabled; }; var i = document.createElement("label"), n = document.createElement("input"); 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); var o = document.createTextNode(e.text); return i.append(o), a.element = i, a.radio = n, a.canFocus = function () { return !1; }, a.focus = function () { a.radio.focus(); }, a.save = function () { if (!n.checked)
1188
+ return {}; var t = n.M, a = {}; return a[e.field] = t, a; }, a; }, "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; } }; return t.plugins && t.plugins[e.type] ? t.plugins[e.type](e) : a[e.type](); }, l.prototype.K = function (e) { var t = this, a = new r; a.apply = function (e) { a.row = e; var t = a.searchable; t.disabled = !e.enabled, t.select(e.value); }; var i = [], n = e.data.timeInterval || 15; [1, 5, 10, 15, 20, 30, 60].includes(n) || (n = 15); 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++) {
1189
+ var m = c.addMinutes(n * u), h = {};
1190
+ h.name = m.toString(e.data.timeFormat || d.timePattern, d), h.id = m.toString("HH:mm"), i.push(h);
1191
+ } 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(); 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; }, l.prototype.L = function (e) { var t = this, a = new r; a.apply = function (e) { a.row = e; var i = a.searchable; i.disabled = !e.enabled; var n = new DayPilot.Date(e.value).toString("HH:mm"); i.select(n); var o = a.dateInput, l = a.picker; e.data.dateFormat && (l.pattern = e.data.dateFormat); var d = e.data.locale || t.locale; if (d) {
1192
+ var r = DayPilot.Locale.find(d) || DayPilot.Locale.US;
1193
+ l.locale = d, l.pattern = r.datePattern;
1194
+ } o.disabled = !e.enabled, l.date = new DayPilot.Date(e.value); var s = new DayPilot.Date(e.value).toString(e.data.dateFormat || l.pattern, l.locale); o.value = s; }; var i = function () { var i = document.createElement("input"); i.name = e.field; 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 }); } }); return i.picker = n, i.className = t.theme + "_input_date", i.type = "text", i.onkeydown = function (e) { var a = !1; switch (e.keyCode) {
1195
+ case 13:
1196
+ n.visible ? n.close() : t.doOnKey("Enter");
1197
+ break;
1198
+ case 27:
1199
+ n.visible ? n.close() : t.doOnKey("Escape");
1200
+ break;
1201
+ case 9:
1202
+ n.close(), a = !0;
1203
+ break;
1204
+ default: a = !0;
1205
+ } a || (e.preventDefault(), e.stopPropagation()); }, 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; }(), n = function () { var i = [], n = e.data.timeInterval || 15; [1, 5, 10, 15, 20, 30, 60].includes(n) || (n = 15); 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++) {
1206
+ var u = r.addMinutes(n * c), m = {};
1207
+ m.name = u.toString(e.data.timeFormat || d.timePattern, d), m.id = u.toString("HH:mm"), i.push(m);
1208
+ } 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 }); } }); return a.searchable = h, h.create(); }(), o = document.createElement("div"); 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; }, 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) { var a = this.E ? this.E : this.D, i = a.indexOf(e); return this.E = a.map(function (a) { if (a !== e)
1209
+ return a; if (e.propsEqual(t))
1210
+ return e; var i = e.clone(); for (var n in t)
1211
+ i[n] = t[n]; return i; }), this.E[i]; }, l.prototype.updateInteractive = function (e) { var t = this.E.indexOf(e); this.G[t].apply(e); }, l.prototype.applyState = function () { var e = this; if (this.updateDependentState(), this.E) {
1212
+ this.E.filter(function (t, a) { return e.D[a] !== t; }).forEach(function (t) { e.updateInteractive(t); }), this.D = this.E, this.E = null;
1213
+ } }, 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 () { var e = {}; return this.G.forEach(function (t) { var a = t.save(); for (var i in a)
1214
+ e[i] = a[i]; }), e; };
1215
+ 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; };
1216
+ d.prototype.clone = function () { var e = new d; for (var t in this)
1217
+ "id" !== t && (e[t] = this[t]); return e; }, d.prototype.propsEqual = function (e) { for (var t in e)
1199
1218
  if (this[t] !== e[t])
1200
- return !1; return !0; }, 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)); };
1201
- 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) { 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 || {}; 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); } } }; 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()); } }); for (var a in e)
1202
- i[a] || (this[a] = e[a]); for (var a in e)
1203
- i[a] && i[a].post(e[a]); };
1204
- 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 () { function e() { 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 = []; var e = null; r.data.forEach(function (i) { var n = i.name || i.id; if (n.toLowerCase().indexOf(p.value.toLowerCase()) !== -1) {
1205
- var o = document.createElement("div");
1206
- 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);
1207
- } }), r.N || (r.N = e), t(); } 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()); } function i(e, t) { var i = e.getBoundingClientRect(), a = t.getBoundingClientRect(); return i.top >= a.top && i.bottom <= a.bottom; } function a(e) { var t = e.item; r.M = t, r.U(!0), o(), l(); } function n() { r.T(); } function o() { r.V(); } function l() { r.O = !0, p.setAttribute("readonly", "readonly"), p.focus(); } function d() { r.O = !1, p.removeAttribute("readonly"), p.value = "", e(); } var r = this, s = this, c = document.createElement("div"); c.className = this.theme + "_main", c.style.position = "relative"; var u = document.createElement("div"); u.className = this.theme + "_icon", u.style.position = "absolute", u.style.right = "0", u.style.top = "0", u.style.bottom = "0", u.style.width = "20px", u.addEventListener("mousedown", function (e) { e.preventDefault(), r.O ? (r.focus(), d()) : (n(), l()); }); var m = document.createElement("div"); m.className = this.theme + "_list", m.style.display = "none", m.style.position = "absolute", m.style.zIndex = this.listZIndex; var h = document.createElement("input"); h.type = "hidden", h.name = this.name, h.searchable = s, this.S = h; var p = document.createElement("input"); 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) { if (r.O) {
1219
+ return !1; return !0; }, 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)); };
1220
+ 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) { 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 || {}; 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); } } }; 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()); } }); for (var i in e)
1221
+ a[i] || (this[i] = e[i]); for (var i in e)
1222
+ a[i] && a[i].post(e[i]); };
1223
+ 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 () { function e(e) { var a = r.strategy; "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 = []; var n = null; r.data.forEach(function (a) { var o = a.name || a.id; if ("includes" === e) {
1224
+ if (o.toLowerCase().indexOf(p.value.toLowerCase()) === -1)
1225
+ return;
1226
+ }
1227
+ else if ("startsWith" === e && 0 !== o.toLowerCase().indexOf(p.value.toLowerCase()))
1228
+ return; var l = document.createElement("div"); 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); }), r.P || (r.P = n), t(); } 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()); } function a(e, t) { var a = e.getBoundingClientRect(), i = t.getBoundingClientRect(); return a.top >= i.top && a.bottom <= i.bottom; } function i(e) { var t = e.item; r.O = t, r.W(!0), o(), l(); } function n() { r.V(); } function o() { r.X(); } function l() { r.Q = !0, p.setAttribute("readonly", "readonly"), p.focus(); } function d() { r.Q = !1, p.removeAttribute("readonly"), p.select(), e("all"); } var r = this, s = this, c = document.createElement("div"); c.className = this.theme + "_main", c.style.position = "relative"; var u = document.createElement("div"); u.className = this.theme + "_icon", u.style.position = "absolute", u.style.right = "0", u.style.top = "0", u.style.bottom = "0", u.style.width = "20px", u.addEventListener("mousedown", function (e) { e.preventDefault(), r.Q ? (r.focus(), d()) : (n(), l()); }); var m = document.createElement("div"); m.className = this.theme + "_list", m.style.display = "none", m.style.position = "absolute", m.style.zIndex = this.listZIndex; var h = document.createElement("input"); h.type = "hidden", h.name = this.name, h.searchable = s, this.U = h; var p = document.createElement("input"); 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) { if (r.Q) {
1208
1229
  if ("Enter" === e.key)
1209
1230
  return;
1210
1231
  if ("Esc" === e.key || "Escape" === e.key)
1211
1232
  return;
1212
1233
  d();
1213
1234
  } if ("ArrowDown" === e.key) {
1214
- var i = s.R.indexOf(s.N);
1215
- i + 1 < s.R.length && (s.N = s.R[i + 1]), t();
1235
+ var a = s.T.indexOf(s.P);
1236
+ a + 1 < s.T.length && (s.P = s.T[a + 1]), t();
1216
1237
  }
1217
1238
  else if ("ArrowUp" === e.key) {
1218
- var i = s.R.indexOf(s.N);
1219
- i - 1 >= 0 && (s.N = s.R[i - 1]), t();
1239
+ var a = s.T.indexOf(s.P);
1240
+ a - 1 >= 0 && (s.P = s.T[a - 1]), t();
1220
1241
  }
1221
1242
  else
1222
- "Enter" === e.key ? r.N ? (e.stopPropagation(), a(r.N)) : (e.stopPropagation(), n(), l()) : "Esc" !== e.key && "Escape" !== e.key || (e.stopPropagation(), n(), l()); }), 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; }, 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) { 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) {
1243
+ "Enter" === e.key ? r.P ? (e.stopPropagation(), i(r.P)) : (e.stopPropagation(), n(), l()) : "Esc" !== e.key && "Escape" !== e.key || (e.stopPropagation(), n(), l()); }), 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; }, 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) { 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) {
1223
1244
  var t = { control: this, ui: e };
1224
1245
  this.onSelect(t);
1225
1246
  } };
1226
- var s = function (e) { this.form = null, this.item = null, this.data = null, this.name = null, this.theme = "edit_table_default", this.onInput = null, this.nav = {}, this.W = null, this.D = [], e = e || {}; for (var t in e)
1247
+ var c = function (e) { this.form = null, this.item = null, this.data = null, this.name = null, this.theme = "edit_table_default", this.onInput = null, this.nav = {}, this.Y = null, this.D = [], e = e || {}; for (var t in e)
1227
1248
  this[t] = e[t]; };
1228
- s.prototype.create = function () { var e = this, t = document.createElement("div"); t.className = this.theme + "_main", t.style.position = "relative"; var i = document.createElement("input"); i.type = "hidden", i.name = e.name, i.table = this, t.appendChild(i); var a = document.createElement("div"); a.className = this.theme + "_table"; var n = this.X(); a.appendChild(n); var o = e.Y({}); o.spacer = !0; var l = this.Z(o); l.classList.add(e.theme + "_spacer"), a.appendChild(l); var d = document.createElement("div"); d.className = e.theme + "_tbody", a.appendChild(d), t.appendChild(a); var r = document.createElement("div"); t.appendChild(r), this.nav.body = d, this.nav.table = a, this.nav.main = t, this.nav.after = r; var s = document.createElement("div"), c = document.createElement("span"); return c.className = this.theme + "_plus", c.addEventListener("click", function (t) { if (!e.disabled) {
1229
- var i = e.item.onNewRow, a = {};
1230
- if ("function" == typeof i) {
1249
+ c.prototype.create = function () { var e = this, t = document.createElement("div"); t.className = this.theme + "_main", t.style.position = "relative"; var a = document.createElement("input"); a.type = "hidden", a.name = e.name, a.table = this, t.appendChild(a); var i = document.createElement("div"); i.className = this.theme + "_table"; var n = this.Z(); i.appendChild(n); var o = e.$({}); o.spacer = !0; var l = this._(o); l.classList.add(e.theme + "_spacer"), i.appendChild(l); var d = document.createElement("div"); d.className = e.theme + "_tbody", i.appendChild(d), t.appendChild(i); var r = document.createElement("div"); t.appendChild(r), this.nav.body = d, this.nav.table = i, this.nav.main = t, this.nav.after = r; var s = document.createElement("div"), c = document.createElement("span"); return c.className = this.theme + "_plus", c.addEventListener("click", function (t) { if (!e.disabled) {
1250
+ var a = e.item.onNewRow, i = {};
1251
+ if ("function" == typeof a) {
1231
1252
  var n = {};
1232
- n.result = e.form.serialize(), n.value = {}, i(n), a = n.value;
1253
+ n.result = e.form.serialize(), n.value = {}, a(n), i = n.value;
1233
1254
  }
1234
- var o = e.Y(a);
1235
- e.D.push(o), e.$(), e._();
1236
- } }), this.nav.plus = c, s.appendChild(c), t.appendChild(s), t; }, 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) { if ("[object Array]" !== Object.prototype.toString.call(e))
1237
- throw new Error("Array expected"); this.data = e, this.ba(), this.$(); }, 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) { var t = this, i = {}; return i.data = e, i.cells = [], t.item.columns.forEach(function (a) { var n = a.id, o = e[n], l = t.ea(a); if ("undefined" == typeof o)
1255
+ var o = e.$(i);
1256
+ e.D.push(o), e.aa(), e.ba();
1257
+ } }), this.nav.plus = c, s.appendChild(c), t.appendChild(s), t; }, 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) { if ("[object Array]" !== Object.prototype.toString.call(e))
1258
+ throw new Error("Array expected"); this.data = e, this.da(), this.aa(); }, 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) { var t = this, a = {}; return a.data = e, a.cells = [], t.item.columns.forEach(function (i) { var n = i.id, o = e[n], l = t.ga(i); if ("undefined" == typeof o)
1238
1259
  if ("text" === l)
1239
1260
  o = "";
1240
1261
  else if ("number" === l)
1241
1262
  o = 0;
1242
1263
  else if ("select" === l) {
1243
- var d = a.options;
1264
+ var d = i.options;
1244
1265
  o = d && d[0].id;
1245
- } var r = {}; r.id = n, r.value = o, r.type = l, r.data = a, i.cells.push(r); }), i; }, s.prototype.ea = function (e) { var t = e.type; return t || (t = e.options ? "select" : "text"), t; }, s.prototype.$ = function () { var e = this; 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) {
1246
- var t = e.fa();
1266
+ } var r = {}; r.id = n, r.value = o, r.type = l, r.data = i, a.cells.push(r); }), a; }, c.prototype.ga = function (e) { var t = e.type; return t || (t = e.options ? "select" : "text"), t; }, c.prototype.aa = function () { var e = this; 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) {
1267
+ var t = e.ha();
1247
1268
  e.nav.after.appendChild(t);
1248
- } this.ca(); }, s.prototype.fa = function () { var e = document.createElement("div"); return e.className = this.theme + "_empty", e; }, s.prototype.Z = function (e) { var t = this, i = document.createElement("div"); i.className = t.theme + "_row", e.cells.forEach(function (a) { var n = document.createElement("div"); n.className = t.theme + "_cell"; var o = t.ga(a); if (e.spacer) {
1269
+ } this.ea(); }, c.prototype.ha = function () { var e = document.createElement("div"); return e.className = this.theme + "_empty", e; }, c.prototype._ = function (e) { var t = this, a = document.createElement("div"); a.className = t.theme + "_row", e.cells.forEach(function (i) { var n = document.createElement("div"); n.className = t.theme + "_cell"; var o = t.ia(i); if (e.spacer) {
1249
1270
  var l = document.createElement("div");
1250
1271
  l.style.height = "0px", l.style.overflow = "hidden", l.appendChild(o), n.appendChild(l);
1251
1272
  }
1252
1273
  else
1253
- n.appendChild(o); i.appendChild(n); }); var a = document.createElement("div"); a.classList.add(t.theme + "_cell"), a.classList.add(t.theme + "_rowaction"); var n = document.createElement("span"); return n.className = this.theme + "_delete", n.addEventListener("click", function (i) { t.disabled || (t.da(e), t.$(), t._()); }), e.spacer || a.appendChild(n), i.appendChild(a), i; }, s.prototype._ = function () { var e = this; if ("function" == typeof e.onInput) {
1274
+ n.appendChild(o); a.appendChild(n); }); var i = document.createElement("div"); i.classList.add(t.theme + "_cell"), i.classList.add(t.theme + "_rowaction"); var n = document.createElement("span"); 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; }, c.prototype.ba = function () { var e = this; if ("function" == typeof e.onInput) {
1254
1275
  var t = {};
1255
1276
  e.onInput(t);
1256
- } }, s.prototype.ga = function (e) { var t = this, i = e.type; if ("text" === i || "number" === i) {
1257
- var a = document.createElement("input");
1258
- 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;
1259
- } if ("select" === i) {
1277
+ } }, c.prototype.ia = function (e) { var t = this, a = e.type; if ("text" === a || "number" === a) {
1278
+ var i = document.createElement("input");
1279
+ 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;
1280
+ } if ("select" === a) {
1260
1281
  var n = document.createElement("select");
1261
- 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;
1262
- } throw new Error("Unsupported item type: " + i); }, s.prototype.focus = function () { };
1282
+ 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;
1283
+ } throw new Error("Unsupported item type: " + a); }, c.prototype.focus = function () { };
1263
1284
  }
1264
1285
  }(DayPilot);
1265
1286
  if ("undefined" == typeof DayPilot)
1266
1287
  var DayPilot = {};
1267
1288
  "undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () { if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
1268
1289
  var t = {};
1269
- t.Month = function (e, i) { this.v = "2022.2.384-lite", this.nav = {}; var n = this; 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) { var e = null; if (t instanceof DayPilot.Event)
1290
+ t.Month = function (e, i) { this.v = "2022.3.389-lite", this.nav = {}; var n = this; 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) { var e = null; if (t instanceof DayPilot.Event)
1270
1291
  e = t.data;
1271
1292
  else {
1272
1293
  if ("object" != typeof t)
@@ -1301,8 +1322,8 @@ if ("undefined" == typeof DayPilot)
1301
1322
  else {
1302
1323
  var l = t, o = "start=" + n.visibleStart().toString() + "&end=" + n.visibleEnd().toString();
1303
1324
  l += l.indexOf("?") > -1 ? "&" + o : "?" + o, DayPilot.Http.ajax({ "method": "GET", "url": l, "success": a, "error": s });
1304
- } }, this.update = function (t) { if (this.cells) {
1305
- 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();
1325
+ } }, this.update = function (t) { if (n.l(t), this.k && this.cells) {
1326
+ n.b(), n.c(), n.d(), n.f(), n.g(), n.h(), n.m(), n.i(), this.visible ? this.show() : this.hide();
1306
1327
  } }, this.n = null, this.l = function (t) { if (t) {
1307
1328
  var e = { "events": { "preInit": function () { var t = this.data; t && (DayPilot.isArray(t.list) ? n.events.list = t.list : n.events.list = t); } } };
1308
1329
  this.n = e;
@@ -1573,7 +1594,7 @@ if ("undefined" == typeof DayPilot)
1573
1594
  throw "DayPilot.Month() constructor requires the target element or its ID as a parameter";
1574
1595
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
1575
1596
  throw "DayPilot.Month: The placeholder element not found: '" + id + "'.";
1576
- } }, 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); }, t.gMouseUp = function (e) { if (t.movingEvent) {
1597
+ } }, 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); }, t.gMouseUp = function (e) { if (t.movingEvent) {
1577
1598
  var i = t.movingEvent;
1578
1599
  if (!i.event)
1579
1600
  return;
@@ -1620,7 +1641,7 @@ if ("undefined" == typeof DayPilot)
1620
1641
  if ("undefined" == typeof DayPilot)
1621
1642
  var DayPilot = {};
1622
1643
  "undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () { if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.nav) {
1623
- DayPilot.Navigator = function (t, e) { this.v = "2022.2.384-lite"; var i = this; 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) { var s = {}; s.cells = [], s.days = [], s.weeks = []; var n = this.startDate.addMonths(t), l = e.before, o = e.after, h = n.firstDayOfMonth(), r = h.firstDayOfWeek(a.weekStarts()), c = h.addMonths(1), d = DayPilot.DateUtil.daysDiff(r, c), u = "Auto" === this.rowsPerMonth ? Math.ceil(d / 7) : 6; s.rowCount = u; var f = (new DayPilot.Date).getDatePart(), y = 7 * a.cellWidth() + this.d(); s.width = y; var p = this.cellHeight * u + this.titleHeight + this.dayHeaderHeight; s.height = p; var v = document.createElement("div"); if (v.style.width = y + "px", v.style.height = p + "px", "Horizontal" === this.orientation)
1644
+ DayPilot.Navigator = function (t, e) { this.v = "2022.3.389-lite"; var i = this; 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) { var s = {}; s.cells = [], s.days = [], s.weeks = []; var n = this.startDate.addMonths(t), l = e.before, o = e.after, h = n.firstDayOfMonth(), r = h.firstDayOfWeek(a.weekStarts()), c = h.addMonths(1), d = DayPilot.DateUtil.daysDiff(r, c), u = "Auto" === this.rowsPerMonth ? Math.ceil(d / 7) : 6; s.rowCount = u; var f = (new DayPilot.Date).getDatePart(), y = 7 * a.cellWidth() + this.d(); s.width = y; var p = this.cellHeight * u + this.titleHeight + this.dayHeaderHeight; s.height = p; var v = document.createElement("div"); if (v.style.width = y + "px", v.style.height = p + "px", "Horizontal" === this.orientation)
1624
1645
  v.style.position = "absolute", v.style.left = y * t + "px", v.style.top = "0px", s.top = 0, s.left = y * t;
1625
1646
  else {
1626
1647
  v.style.position = "relative";
@@ -1643,24 +1664,24 @@ if ("undefined" == typeof DayPilot)
1643
1664
  }
1644
1665
  var H = document.createElement("div");
1645
1666
  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);
1646
- } for (var P = 0; P < 7; P++) {
1647
- s.cells[P] = [];
1667
+ } for (var M = 0; M < 7; M++) {
1668
+ s.cells[M] = [];
1648
1669
  var H = document.createElement("div");
1649
- 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);
1670
+ 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);
1650
1671
  for (var k = 0; k < u; k++) {
1651
- 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);
1672
+ 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);
1652
1673
  if ("month" === this.n())
1653
- M = M && E;
1674
+ P = P && E;
1654
1675
  else if ("day" === this.n())
1655
- M = M && (E || l && N || o && W);
1676
+ P = P && (E || l && N || o && W);
1656
1677
  else if ("week" === this.n()) {
1657
1678
  var O = S.firstDayOfMonth() === n;
1658
- M = M && (O || l && N || o && W);
1679
+ P = P && (O || l && N || o && W);
1659
1680
  }
1660
1681
  var R = document.createElement("div");
1661
- s.cells[P][k] = R;
1662
- var T = i.o(P, k), A = T.x, B = T.y;
1663
- 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";
1682
+ s.cells[M][k] = R;
1683
+ var T = i.o(M, k), A = T.x, B = T.y;
1684
+ 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";
1664
1685
  var _ = document.createElement("div");
1665
1686
  _.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(_);
1666
1687
  var U = null;
@@ -1672,7 +1693,7 @@ if ("undefined" == typeof DayPilot)
1672
1693
  var L = document.createElement("div");
1673
1694
  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);
1674
1695
  }
1675
- R.setAttribute("unselectable", "on"), R.onclick = this.p, v.appendChild(R), M && (i.q(v, P, k), this.selected.push(R));
1696
+ R.setAttribute("unselectable", "on"), R.onclick = this.p, v.appendChild(R), P && (i.q(v, M, k), this.selected.push(R));
1676
1697
  }
1677
1698
  } var V = document.createElement("div"); V.style.position = "absolute", V.style.left = "0px", V.style.top = m - 2 + "px", V.style.width = 7 * a.cellWidth() + this.d() + "px", V.style.height = "1px", V.style.fontSize = "1px", V.style.lineHeight = "1px", V.className = this.c("_line"), v.appendChild(V), this.months.push(s); }, this.o = function (t, e) { var i = this.titleHeight + this.dayHeaderHeight, s = this.d(); return { "x": t * a.cellWidth() + s, "y": e * this.cellHeight + i }; }, this.q = function (t, e, s) { var n = t.month.cells[e][s]; i.g(n, "select"); }, this.r = function (t, e, s) { var n = t.month.cells[e][s]; i.h(n, "select"); }, this.d = function () { return this.showWeekNumbers ? a.cellWidth() : 0; }, this.s = function () { if (this.items)
1678
1699
  for (var t = 0; t < this.showMonths; t++)
@@ -1698,9 +1719,13 @@ if ("undefined" == typeof DayPilot)
1698
1719
  return void (this.w = { "date1": l, "date2": o, "options": h }); var r = !0, c = !0; "object" == typeof h ? (h.dontFocus && (r = !1), h.dontNotify && (c = !1)) : "boolean" == typeof h && (r = !h); var d = this.selectionStart, u = this.selectionEnd; this.selectionStart = new DayPilot.Date(l).getDatePart(), this.selectionDay = this.selectionStart; var f = !1; if (r) {
1699
1720
  var y = this.startDate;
1700
1721
  (this.selectionStart < this.A() || this.selectionStart >= this.B()) && (y = this.selectionStart.firstDayOfMonth()), y.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = y;
1701
- } 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(); }, this.update = function (t) { if (!i.z)
1702
- throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that hasn't been initialized yet."); if (i.F)
1703
- throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed."); i.G(), i.H(t); var e = { "day": i.selectionDay, "start": i.selectionStart, "end": i.selectionEnd }; i.I(), e.start === i.selectionStart && e.end == i.selectionEnd && e.day === i.selectionDay || i.D(); }, 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) { if (t) {
1722
+ } 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(); }, this.update = function (t) { if (i.F(t), this.z) {
1723
+ if (i.G)
1724
+ throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed.");
1725
+ i.H();
1726
+ var e = { "day": i.selectionDay, "start": i.selectionStart, "end": i.selectionEnd };
1727
+ i.I(), e.start === i.selectionStart && e.end == i.selectionEnd && e.day === i.selectionDay || i.D();
1728
+ } }, 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) { if (t) {
1704
1729
  var e = { "events": { "preInit": function () { var t = this.data; t && (DayPilot.isArray(t.list) ? i.events.list = t.list : i.events.list = t); } } };
1705
1730
  this.K = e;
1706
1731
  for (var s in t)
@@ -1897,7 +1922,7 @@ if ("undefined" == typeof DayPilot)
1897
1922
  var i = this.months[e];
1898
1923
  s += i.height;
1899
1924
  } return s; }, this.Z = function (t) { if (this.internal.showLinks)
1900
- return this.internal.showLinks; var e = {}; 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; }, this._ = {}, this._.scope = null, this._.notify = function () { i._.scope && i._.scope["$apply"](); }, this.internal = {}, this.internal.initialized = function () { return i.z; }, this.aa = {}; var a = this.aa; a.locale = function () { return DayPilot.Locale.find(i.locale); }, a.weekStarts = function () { if ("Auto" === i.weekStarts) {
1925
+ return this.internal.showLinks; var e = {}; 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; }, 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 = {}; var a = this.aa; a.locale = function () { return DayPilot.Locale.find(i.locale); }, a.weekStarts = function () { if ("Auto" === i.weekStarts) {
1901
1926
  var t = a.locale();
1902
1927
  return t ? t.weekStarts : 0;
1903
1928
  } return i.weekStarts; }, a.cellWidth = function () { if (i.a.cellWidth)
@@ -1937,7 +1962,7 @@ if ("undefined" == typeof DayPilot)
1937
1962
  var a = s.ordered();
1938
1963
  a.start = new n(a.start).nextVisible(), a.end = new n(a.end).previousVisible(), i.selectionDay = new n(a.start).date(), i.selectionStart = i.selectionDay, i.selectionEnd = new n(a.end).date(), s.start = null, s.end = null, i.f(), i.b(), i.C(), i.s(), i.t();
1939
1964
  i.D({ "mode": "FreeHand" });
1940
- } s.start = null, s.end = null; }, 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); }, "undefined" != typeof jQuery && !function (t) { t.fn.daypilotNavigator = function (t) { var e = null, i = this.each(function () { if (!this.daypilot) {
1965
+ } s.start = null, s.end = null; }, 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); }, "undefined" != typeof jQuery && !function (t) { t.fn.daypilotNavigator = function (t) { var e = null, i = this.each(function () { if (!this.daypilot) {
1941
1966
  var i = new DayPilot.Navigator(this.id);
1942
1967
  this.daypilot = i;
1943
1968
  for (var s in t)
@@ -2063,9 +2088,7 @@ class DayPilotCalendarComponent {
2063
2088
  let hash = optHash(this.config);
2064
2089
  if (hash !== this._hashOptions) {
2065
2090
  let dp = this.control;
2066
- for (let name in this.config) {
2067
- dp[name] = this.config[name];
2068
- }
2091
+ dp.internal.loadOptions(this.config);
2069
2092
  this._requestUpdateFull = true;
2070
2093
  this._requestViewChange = true;
2071
2094
  }
@@ -2148,9 +2171,7 @@ class DayPilotMonthComponent {
2148
2171
  let hash = optHash(this.config);
2149
2172
  if (hash !== this._hashOptions) {
2150
2173
  let dp = this.control;
2151
- for (let name in this.config) {
2152
- dp[name] = this.config[name];
2153
- }
2174
+ dp.internal.loadOptions(this.config);
2154
2175
  this._requestUpdate = true;
2155
2176
  }
2156
2177
  this._hashOptions = hash;