@daypilot/daypilot-lite-angular 3.0.0-sandbox.338

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.
@@ -0,0 +1,3499 @@
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter, Component, Output, Input, NgModule } from '@angular/core';
3
+
4
+ //@ts-nocheck
5
+ /*
6
+ Copyright © 2021 Annpoint, s.r.o.
7
+
8
+ Licensed under the Apache License, Version 2.0 (the "License");
9
+ you may not use this file except in compliance with the License.
10
+ You may obtain a copy of the License at
11
+
12
+ http://www.apache.org/licenses/LICENSE-2.0
13
+
14
+ Unless required by applicable law or agreed to in writing, software
15
+ distributed under the License is distributed on an "AS IS" BASIS,
16
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ See the License for the specific language governing permissions and
18
+ limitations under the License.
19
+
20
+ -------------------------------------------------------------------------
21
+
22
+ NOTE: Requires the following acknowledgement (see also NOTICE):
23
+ This software includes DayPilot (https://www.daypilot.org).
24
+ */
25
+ var DayPilot;
26
+ (function (DayPilot) {
27
+ class CalendarPropsAndEvents {
28
+ }
29
+ DayPilot.CalendarPropsAndEvents = CalendarPropsAndEvents;
30
+ class CalendarConfig extends CalendarPropsAndEvents {
31
+ }
32
+ DayPilot.CalendarConfig = CalendarConfig;
33
+ class Calendar extends CalendarPropsAndEvents {
34
+ }
35
+ DayPilot.Calendar = Calendar;
36
+ class MonthPropsAndEvents {
37
+ }
38
+ DayPilot.MonthPropsAndEvents = MonthPropsAndEvents;
39
+ class MonthConfig extends MonthPropsAndEvents {
40
+ }
41
+ DayPilot.MonthConfig = MonthConfig;
42
+ class Month extends MonthPropsAndEvents {
43
+ }
44
+ DayPilot.Month = Month;
45
+ class NavigatorPropsAndEvents {
46
+ }
47
+ DayPilot.NavigatorPropsAndEvents = NavigatorPropsAndEvents;
48
+ class NavigatorConfig extends NavigatorPropsAndEvents {
49
+ }
50
+ DayPilot.NavigatorConfig = NavigatorConfig;
51
+ class Navigator extends NavigatorPropsAndEvents {
52
+ }
53
+ DayPilot.Navigator = Navigator;
54
+ class Locale {
55
+ }
56
+ DayPilot.Locale = Locale;
57
+ class Date {
58
+ }
59
+ DayPilot.Date = Date;
60
+ class DayPilotDateCache {
61
+ }
62
+ DayPilot.DayPilotDateCache = DayPilotDateCache;
63
+ class Util {
64
+ }
65
+ DayPilot.Util = Util;
66
+ class Duration {
67
+ }
68
+ DayPilot.Duration = Duration;
69
+ class Event {
70
+ }
71
+ DayPilot.Event = Event;
72
+ class Selection {
73
+ }
74
+ DayPilot.Selection = Selection;
75
+ // modal
76
+ class ModalPropsAndEvents {
77
+ }
78
+ DayPilot.ModalPropsAndEvents = ModalPropsAndEvents;
79
+ class ModalConfig extends ModalPropsAndEvents {
80
+ }
81
+ DayPilot.ModalConfig = ModalConfig;
82
+ class Modal extends ModalPropsAndEvents {
83
+ }
84
+ DayPilot.Modal = Modal;
85
+ class ModalAlertConfig extends ModalConfig {
86
+ }
87
+ DayPilot.ModalAlertConfig = ModalAlertConfig;
88
+ class ModalConfirmConfig extends ModalConfig {
89
+ }
90
+ DayPilot.ModalConfirmConfig = ModalConfirmConfig;
91
+ class ModalPromptConfig extends ModalConfig {
92
+ }
93
+ DayPilot.ModalPromptConfig = ModalPromptConfig;
94
+ class ModalFormConfig extends ModalConfig {
95
+ }
96
+ DayPilot.ModalFormConfig = ModalFormConfig;
97
+ })(DayPilot || (DayPilot = {}));
98
+ /*
99
+ DayPilot Lite
100
+ Copyright (c) 2005 - 2021 Annpoint s.r.o.
101
+ http://www.daypilot.org/
102
+ Licensed under Apache Software License 2.0
103
+ Version: 2021.4.338-lite
104
+ */
105
+ if ("undefined" == typeof DayPilot)
106
+ var DayPilot = {};
107
+ !function () {
108
+ function e(e) {
109
+ var t = DayPilot.Date.Cache.Ticks;
110
+ if (t[e])
111
+ return DayPilot.Stats.cacheHitsTicks += 1, t[e];
112
+ var a, r = new Date(e), o = r.getUTCMilliseconds();
113
+ a = 0 === o ? "" : o < 10 ? ".00" + o : o < 100 ? ".0" + o : "." + o;
114
+ var n = r.getUTCSeconds();
115
+ n < 10 && (n = "0" + n);
116
+ var i = r.getUTCMinutes();
117
+ i < 10 && (i = "0" + i);
118
+ var d = r.getUTCHours();
119
+ d < 10 && (d = "0" + d);
120
+ var s = r.getUTCDate();
121
+ s < 10 && (s = "0" + s);
122
+ var l = r.getUTCMonth() + 1;
123
+ l < 10 && (l = "0" + l);
124
+ var u = r.getUTCFullYear();
125
+ if (u <= 0)
126
+ throw "The minimum year supported is 1.";
127
+ u < 10 ? u = "000" + u : u < 100 ? u = "00" + u : u < 1e3 && (u = "0" + u);
128
+ var c = u + "-" + l + "-" + s + "T" + d + ":" + i + ":" + n + a;
129
+ return t[e] = c, c;
130
+ }
131
+ if ("undefined" == typeof DayPilot.$) {
132
+ "undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), DayPilot.$ = function (e) { return document.getElementById(e); }, DayPilot.isKhtml = navigator && navigator.userAgent && navigator.userAgent.indexOf("KHTML") !== -1, DayPilot.isIE = navigator && navigator.userAgent && navigator.userAgent.indexOf("MSIE") !== -1, DayPilot.mo2 = function (e, t) {
133
+ if (t = t || window.event, "undefined" != typeof t.offsetX) {
134
+ var a = { x: t.offsetX + 1, y: t.offsetY + 1 };
135
+ if (!e)
136
+ return a;
137
+ for (var r = t.srcElement; r && r !== e;)
138
+ "SPAN" !== r.tagName && (a.x += r.offsetLeft, r.offsetTop > 0 && (a.y += r.offsetTop - r.scrollTop)), r = r.offsetParent;
139
+ return r ? a : null;
140
+ }
141
+ if ("undefined" != typeof t.layerX) {
142
+ var a = { x: t.layerX, y: t.layerY, src: t.target };
143
+ if (!e)
144
+ return a;
145
+ for (var r = t.target; r && "absolute" !== r.style.position && "relative" !== r.style.position;)
146
+ r = r.parentNode, DayPilot.isKhtml && (a.y += r.scrollTop);
147
+ for (; r && r !== e;)
148
+ a.x += r.offsetLeft, a.y += r.offsetTop - r.scrollTop, r = r.offsetParent;
149
+ return r ? a : null;
150
+ }
151
+ return null;
152
+ }, DayPilot.mo3 = function (e, t, a) {
153
+ if (t = t || window.event, "undefined" != typeof t.pageX) {
154
+ var r = DayPilot.abs(e, a);
155
+ return { x: t.pageX - r.x, y: t.pageY - r.y };
156
+ }
157
+ return DayPilot.mo2(e, t);
158
+ }, DayPilot.browser = {}, DayPilot.browser.ie9 = function () { var e = document.createElement("div"); return e.innerHTML = "<!--[if IE 9]><i></i><![endif]-->", 1 === e.getElementsByTagName("i").length; }(), DayPilot.browser.ielt9 = function () { var e = document.createElement("div"); return e.innerHTML = "<!--[if lt IE 9]><i></i><![endif]-->", 1 === e.getElementsByTagName("i").length; }(), DayPilot.abs = function (e, t) {
159
+ if (!e)
160
+ return null;
161
+ var a = { x: e.offsetLeft, y: e.offsetTop, w: e.clientWidth, h: e.clientHeight, toString: function () { return "x:" + this.x + " y:" + this.y + " w:" + this.w + " h:" + this.h; } };
162
+ if (e.getBoundingClientRect) {
163
+ var r = e.getBoundingClientRect();
164
+ a.x = r.left, a.y = r.top;
165
+ var o = DayPilot.doc();
166
+ a.x -= o.clientLeft || 0, a.y -= o.clientTop || 0;
167
+ var n = DayPilot.pageOffset();
168
+ if (a.x += n.x, a.y += n.y, t) {
169
+ var i = DayPilot.absOffsetBased(e, !1), t = DayPilot.absOffsetBased(e, !0);
170
+ a.x += t.x - i.x, a.y += t.y - i.y, a.w = t.w, a.h = t.h;
171
+ }
172
+ return a;
173
+ }
174
+ return DayPilot.absOffsetBased(e, t);
175
+ }, DayPilot.absOffsetBased = function (e, t) {
176
+ for (var a = { x: e.offsetLeft, y: e.offsetTop, w: e.clientWidth, h: e.clientHeight, toString: function () { return "x:" + this.x + " y:" + this.y + " w:" + this.w + " h:" + this.h; } }; e.offsetParent;)
177
+ e = e.offsetParent, a.x -= e.scrollLeft, a.y -= e.scrollTop, t && (a.x < 0 && (a.w += a.x, a.x = 0), a.y < 0 && (a.h += a.y, a.y = 0), e.scrollLeft > 0 && a.x + a.w > e.clientWidth && (a.w -= a.x + a.w - e.clientWidth), e.scrollTop && a.y + a.h > e.clientHeight && (a.h -= a.y + a.h - e.clientHeight)), a.x += e.offsetLeft, a.y += e.offsetTop;
178
+ var r = DayPilot.pageOffset();
179
+ return a.x += r.x, a.y += r.y, a;
180
+ }, DayPilot.isArray = function (e) { return "[object Array]" === Object.prototype.toString.call(e); }, DayPilot.sheet = 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 () { t && (e.styleSheet.cssText = this.rules.join("\n")); }, a.add = function (a, r, o) { return t ? void this.rules.push(a + "{" + r + "}") : void (e.sheet.insertRule ? ("undefined" == typeof o && (o = e.sheet.cssRules.length), e.sheet.insertRule(a + "{" + r + "}", o)) : e.sheet.addRule && e.sheet.addRule(a, r, o)); }, a; }, function () {
181
+ if (!DayPilot.Global.defaultCss) {
182
+ var e = DayPilot.sheet();
183
+ e.add(".calendar_default_main", "border: 1px solid #c0c0c0; font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px;"), e.add(".calendar_default_main *, .calendar_default_main *:before, .calendar_default_main *:after", "box-sizing: content-box;"), e.add(".calendar_default_rowheader_inner,.calendar_default_cornerright_inner,.calendar_default_corner_inner,.calendar_default_colheader_inner,.calendar_default_alldayheader_inner", "color: #333;background: #f3f3f3;"), e.add(".calendar_default_cornerright_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;\tborder-bottom: 1px solid #c0c0c0;"), e.add(".calendar_default_direction_rtl .calendar_default_cornerright_inner", "border-right: 1px solid #c0c0c0;"), e.add(".calendar_default_rowheader_inner", "font-size: 16pt;text-align: right; position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0; padding: 3px;"), e.add(".calendar_default_direction_rtl .calendar_default_rowheader_inner", "border-right: none;"), e.add(".calendar_default_corner_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;"), e.add(".calendar_default_direction_rtl .calendar_default_corner_inner", "border-right: none;"), e.add(".calendar_default_rowheader_minutes", "font-size:10px;vertical-align: super;padding-left: 2px;padding-right: 2px;"), e.add(".calendar_default_colheader_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0; display: flex; align-items: center; justify-content: center; font-size: 13px;"), e.add(".calendar_default_cell_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #ddd;border-bottom: 1px solid #ddd; background: #f9f9f9;"), e.add(".calendar_default_cell_business .calendar_default_cell_inner", "background: #fff"), e.add(".calendar_default_alldayheader_inner", "text-align: center;position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;"), e.add(".calendar_default_message", "opacity: 0.9; padding: 10px; color: #ffffff;background: #ffa216;"), e.add(".calendar_default_alldayevent_inner,.calendar_default_event_inner", "color: #666; border: 1px solid #999;"), e.add(".calendar_default_event_bar", "top: 0px;bottom: 0px;left: 0px;width: 4px;background-color: #9dc8e8;"), e.add(".calendar_default_event_bar_inner", "position: absolute;width: 4px;background-color: #1066a8;"), e.add(".calendar_default_alldayevent_inner,.calendar_default_event_inner", 'background: #fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".calendar_default_selected .calendar_default_event_inner", "background: #ddd;"), e.add(".calendar_default_alldayevent_inner", "position: absolute;top: 2px;bottom: 2px;left: 2px;right: 2px;overflow:hidden;padding: 2px;margin-right: 1px; font-size: 13px;"), e.add(".calendar_default_event_withheader .calendar_default_event_inner", "padding-top: 15px;"), e.add(".calendar_default_event", "cursor: default;"), e.add(".calendar_default_event_inner", "position: absolute;overflow: hidden;top: 0px;bottom: 0px;left: 0px;right: 0px;padding: 2px 2px 2px 6px; font-size: 13px;"), e.add(".calendar_default_shadow_inner", "position:absolute;top:0px;left:0px;right:0px;bottom:0px;background-color: #666666; opacity: 0.5;"), e.add(".calendar_default_event_delete", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAACprHcmAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAI5JREFUKFNtkLERgCAMRbmzdK8s4gAUlhYOYEHJEJYOYOEwDmGBPxC4kOPfvePy84MGR0RJ2N1A8H3N6DATwSQ57m2ql8NBG+AEM7D+UW+wjdfUPgerYNgB5gOLRHqhcasg84C2QxPMtrUhSqQIhg7ypy9VM2EUZPI/4rQ7rGxqo9sadTegw+UdjeDLAKUfhbaQUVPIfJYAAAAASUVORK5CYII=) center center no-repeat; opacity: 0.6; cursor: pointer;"), e.add(".calendar_default_event_delete:hover", "opacity: 1;-ms-filter: none;"), e.add(".calendar_default_scroll_up", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAB3RJTUUH2wESDiYcrhwCiQAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAARnQU1BAACxjwv8YQUAAACcSURBVHjaY2AgF9wWsTW6yGMlhi7OhC7AyMDQzMnBXIpFHAFuCtuaMTP+P8nA8P/b1x//FfW/HHuF1UQmxv+NUP1c3OxMVVhNvCVi683E8H8LXOY/w9+fTH81tF8fv4NiIpBRj+YoZtZ/LDUoJmKYhsVUpv0MDiyMDP96sIYV0FS2/8z9ICaLlOhvS4b/jC//MzC8xBG0vJeF7GQBlK0xdiUzCtsAAAAASUVORK5CYII=);"), e.add(".calendar_default_scroll_down", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAALiMAAC4jAXilP3YAAACqSURBVChTY7wpam3L9J+xmQEP+PGPKZZxP4MDi4zI78uMDIwa2NT+Z2DYovrmiC+TI8OBP/8ZmEqwGvif4e8vxr+FIDkmEKH25vBWBgbG0+iK/zEwLtF+ffwOXCGI8Y+BoRFFIdC030x/WmBiYBNhpgLdswNJ8RSYaSgmgk39z1gPUfj/29ef/9rwhQTDHRHbrbdEbLvRFcGthkkAra/9/uMvhkK8piNLAgCRpTnNn4AEmAAAAABJRU5ErkJggg==);"), e.add(".calendar_default_now", "background-color: red;"), e.add(".calendar_default_now:before", "content: ''; top: -5px; border-width: 5px; border-color: transparent transparent transparent red; border-style: solid; width: 0px; height:0px; position: absolute; -moz-transform: scale(.9999);"), e.add(".calendar_default_shadow_forbidden .calendar_default_shadow_inner", "background-color: red;"), e.add(".calendar_default_shadow_top", 'box-sizing: border-box; padding:2px;border:1px solid #ccc;background:#fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".calendar_default_shadow_bottom", 'box-sizing: border-box; padding:2px;border:1px solid #ccc;background:#fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".calendar_default_crosshair_vertical, .calendar_default_crosshair_horizontal, .calendar_default_crosshair_left, .calendar_default_crosshair_top", "background-color: gray; opacity: 0.2;"), e.add(".calendar_default_loading", "background-color: orange; color: white; padding: 2px;"), e.add(".calendar_default_scroll", "background-color: #f3f3f3;"), e.add(".scheduler_default_selected .scheduler_default_event_inner", "background: #ddd;"), e.add(".scheduler_default_main", "border: 1px solid #c0c0c0;font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px;"), e.add(".scheduler_default_timeheader", "cursor: default;color: #333;"), e.add(".scheduler_default_message", "opacity: 0.9;filter: alpha(opacity=90);padding: 10px; color: #ffffff;background: #ffa216;"), e.add(".scheduler_default_timeheadergroup,.scheduler_default_timeheadercol", "color: #333;background: #f3f3f3;"), e.add(".scheduler_default_rowheader,.scheduler_default_corner", "color: #333;background: #f3f3f3;"), e.add(".scheduler_default_rowheader_inner", "position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #eee;padding: 2px;"), e.add(".scheduler_default_timeheadergroup, .scheduler_default_timeheadercol", "text-align: center;"), e.add(".scheduler_default_timeheadergroup_inner", "position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;"), e.add(".scheduler_default_timeheadercol_inner", "position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #c0c0c0;"), e.add(".scheduler_default_divider", "background-color: #c0c0c0;"), e.add(".scheduler_default_divider_horizontal", "background-color: #c0c0c0;"), e.add(".scheduler_default_matrix_vertical_line", "background-color: #eee;"), e.add(".scheduler_default_matrix_vertical_break", "background-color: #000;"), e.add(".scheduler_default_matrix_horizontal_line", "background-color: #eee;"), e.add(".scheduler_default_resourcedivider", "background-color: #c0c0c0;"), e.add(".scheduler_default_shadow_inner", "background-color: #666666;opacity: 0.5;filter: alpha(opacity=50);height: 100%;xborder-radius: 5px;"), e.add(".scheduler_default_event", "color:#666; font-size: 13px;"), e.add(".scheduler_default_event_inner", "position:absolute;top:0px;left:0px;right:0px;bottom:0px;padding:5px 2px 2px 2px;overflow:hidden;border:1px solid #ccc;"), e.add(".scheduler_default_event_bar", "top:0px;left:0px;right:0px;height:4px;background-color:#9dc8e8;"), e.add(".scheduler_default_event_bar_inner", "position:absolute;height:4px;background-color:#1066a8;"), e.add(".scheduler_default_event_inner", 'background:#fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".scheduler_default_event_float_inner", "padding:6px 2px 2px 8px;"), e.add(".scheduler_default_event_float_inner:after", 'content:"";border-color: transparent #666 transparent transparent;border-style:solid;border-width:5px;width:0;height:0;position:absolute;top:8px;left:-4px;'), e.add(".scheduler_default_columnheader_inner", "font-weight: bold;"), e.add(".scheduler_default_columnheader_splitter", "background-color: #666;opacity: 0.5;filter: alpha(opacity=50);"), e.add(".scheduler_default_columnheader_cell_inner", "padding: 2px;"), e.add(".scheduler_default_cell", "background-color: #f9f9f9;"), e.add(".scheduler_default_cell.scheduler_default_cell_business", "background-color: #fff;"), e.add(".navigator_default_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;"), e.add(".navigator_default_main *, .navigator_default_main *:before, .navigator_default_main *:after", "box-sizing: content-box;"), e.add(".navigator_default_month", "font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 12px;"), e.add(".navigator_default_day", "color: black;"), e.add(".navigator_default_weekend", "background-color: #f0f0f0;"), e.add(".navigator_default_dayheader", "color: black;"), e.add(".navigator_default_line", "border-bottom: 1px solid #c0c0c0;"), e.add(".navigator_default_dayother", "color: gray;"), e.add(".navigator_default_todaybox", "border: 1px solid red;"), e.add(".navigator_default_title, .navigator_default_titleleft, .navigator_default_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), e.add(".navigator_default_busy", "font-weight: bold;"), e.add(".navigator_default_cell", "text-align: center;"), e.add(".navigator_default_select .navigator_default_cell_box", "background-color: #FFE794; opacity: 0.5;"), e.add(".navigator_default_title", "text-align: center;"), e.add(".navigator_default_titleleft, .navigator_default_titleright", "text-align: center;"), e.add(".navigator_default_dayheader", "text-align: center;"), e.add(".navigator_default_weeknumber", "text-align: center;"), e.add(".navigator_default_cell_text", "cursor: pointer;"), e.add(".month_default_main", "border: 1px solid #c0c0c0;font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px;color: #333;"), e.add(".month_default_main *, .month_default_main *:before, .month_default_main *:after", "box-sizing: content-box;"), e.add(".month_default_cell_inner", "border-right: 1px solid #ddd;border-bottom: 1px solid #ddd;position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;background-color: #f9f9f9;"), e.add(".month_default_cell_business .month_default_cell_inner", "background-color: #fff;"), e.add(".month_default_cell_header", "text-align: right; padding: 4px; box-sizing: border-box;"), e.add(".month_default_header_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;cursor: default;color: #333;background: #f3f3f3; overflow:hidden; display: flex; align-items: center; justify-content: center;"), e.add(".month_default_message", "padding: 10px;opacity: 0.9; color: #ffffff;background: #ffa216;"), e.add(".month_default_event_inner", "position: absolute;top: 0px;bottom: 0px;left: 1px;right: 1px;overflow:hidden;padding: 2px;padding-left: 5px;color: #333;background: #fff;background: linear-gradient(to bottom, #ffffff 0%, #eeeeee);border: 1px solid #999;border-radius: 0px;display: flex; align-items: center; font-size: 13px;"), e.add(".month_default_event_continueright .month_default_event_inner", "border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-right-style: dotted;"), e.add(".month_default_event_continueleft .month_default_event_inner", "border-top-left-radius: 0px;border-bottom-left-radius: 0px;border-left-style: dotted;"), e.add(".month_default_selected .month_default_event_inner", "background: #ddd;"), e.add(".month_default_shadow_inner", "background-color: #666666;opacity: 0.5;height: 100%;"), e.add(".month_default_event_delete", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAACprHcmAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAI5JREFUKFNtkLERgCAMRbmzdK8s4gAUlhYOYEHJEJYOYOEwDmGBPxC4kOPfvePy84MGR0RJ2N1A8H3N6DATwSQ57m2ql8NBG+AEM7D+UW+wjdfUPgerYNgB5gOLRHqhcasg84C2QxPMtrUhSqQIhg7ypy9VM2EUZPI/4rQ7rGxqo9sadTegw+UdjeDLAKUfhbaQUVPIfJYAAAAASUVORK5CYII=) center center no-repeat; opacity: 0.6; cursor: pointer;"), e.add(".month_default_event_delete:hover", "opacity: 1;-ms-filter: none;"), e.add(".month_default_event_timeleft", "color: #ccc; font-size: 8pt"), e.add(".month_default_event_timeright", "color: #ccc; font-size: 8pt; text-align: right;"), e.add(".month_default_loading", "background-color: orange; color: white; padding: 2px;"), e.commit(), DayPilot.Global.defaultCss = !0;
184
+ }
185
+ }(), DayPilot.doc = function () { var e = document.documentElement; return e && e.clientHeight ? e : document.body; }, DayPilot.guid = function () { var e = function () { return (65536 * (1 + Math.random()) | 0).toString(16).substring(1); }; return "" + e() + e() + "-" + e() + "-" + e() + "-" + e() + "-" + e() + e() + e(); }, DayPilot.pageOffset = function () {
186
+ if ("undefined" != typeof pageXOffset)
187
+ return { x: pageXOffset, y: pageYOffset };
188
+ var e = DayPilot.doc();
189
+ return { x: e.scrollLeft, y: e.scrollTop };
190
+ }, DayPilot.indexOf = function (e, t) {
191
+ if (!e || !e.length)
192
+ return -1;
193
+ for (var a = 0; a < e.length; a++)
194
+ if (e[a] === t)
195
+ return a;
196
+ return -1;
197
+ }, DayPilot.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 }; }, DayPilot.Stats = {}, DayPilot.Stats.eventObjects = 0, DayPilot.Stats.dateObjects = 0, DayPilot.Stats.cacheHitsCtor = 0, DayPilot.Stats.cacheHitsParsing = 0, DayPilot.Stats.cacheHitsTicks = 0, DayPilot.Stats.print = function () { console.log("DayPilot.Stats.eventObjects: " + DayPilot.Stats.eventObjects), console.log("DayPilot.Stats.dateObjects: " + DayPilot.Stats.dateObjects), console.log("DayPilot.Stats.cacheHitsCtor: " + DayPilot.Stats.cacheHitsCtor), console.log("DayPilot.Stats.cacheHitsParsing: " + DayPilot.Stats.cacheHitsParsing), console.log("DayPilot.Stats.cacheHitsTicks: " + DayPilot.Stats.cacheHitsTicks), console.log("DayPilot.Date.Cache.Ctor keys: " + Object.keys(DayPilot.Date.Cache.Ctor).length), console.log("DayPilot.Date.Cache.Parsing keys: " + Object.keys(DayPilot.Date.Cache.Parsing).length); }, DayPilot.re = function (e, t, a) { e.addEventListener ? e.addEventListener(t, a, !1) : e.attachEvent && e.attachEvent("on" + t, a); }, DayPilot.pu = function (e) {
198
+ var t, a, r, o = e.attributes;
199
+ if (o)
200
+ for (a = o.length, t = 0; t < a; t += 1)
201
+ o[t] && (r = o[t].name, "function" == typeof e[r] && (e[r] = null));
202
+ if (o = e.childNodes)
203
+ for (a = o.length, t = 0; t < a; t += 1) {
204
+ DayPilot.pu(e.childNodes[t]);
205
+ }
206
+ }, DayPilot.de = function (e) {
207
+ if (e)
208
+ if (DayPilot.isArray(e))
209
+ for (var t = 0; t < e.length; t++)
210
+ DayPilot.de(e[t]);
211
+ else
212
+ e.parentNode && e.parentNode.removeChild(e);
213
+ }, DayPilot.sw = function (e) { return e ? e.offsetWidth - e.clientWidth : 0; }, DayPilot.am = function () { return "undefined" == typeof angular ? null : (DayPilot.am.cached || (DayPilot.am.cached = angular.module("daypilot", [])), DayPilot.am.cached); }, DayPilot.Selection = function (e, t, a, r) { this.type = "selection", this.start = e.isDayPilotDate ? e : new DayPilot.Date(e), this.end = t.isDayPilotDate ? t : new DayPilot.Date(t), this.resource = a, this.root = r, this.toJSON = function (e) { var t = {}; return t.start = this.start, t.end = this.end, t.resource = this.resource, t; }; }, DayPilot.request = function (e, t, a, r) {
214
+ var o = DayPilot.createXmlHttp();
215
+ o && (o.open("POST", e, !0), o.setRequestHeader("Content-type", "text/plain"), o.onreadystatechange = function () {
216
+ if (4 === o.readyState)
217
+ return 200 !== o.status && 304 !== o.status ? void (r ? r(o) : window.console && console.log("HTTP error " + o.status)) : void t(o);
218
+ }, 4 !== o.readyState && ("object" == typeof a && (a = JSON.stringify(a)), o.send(a)));
219
+ }, DayPilot.ajax = function (e) {
220
+ if (!e)
221
+ throw new DayPilot.Exception("Parameter object required.");
222
+ if ("string" != typeof e.url)
223
+ throw new DayPilot.Exception("The parameter object must have 'url' property.");
224
+ var t = DayPilot.createXmlHttp();
225
+ if (!t)
226
+ throw new DayPilot.Exception("Unable to create XMLHttpRequest object");
227
+ var a = "object" == typeof e.data, r = e.data, o = e.method || (e.data ? "POST" : "GET"), n = e.success || function () { }, i = e.error || function () { }, d = e.url, s = e.contentType || (a ? "application/json" : "text/plain"), l = e.headers || {};
228
+ t.open(o, d, !0), t.setRequestHeader("Content-type", s), DayPilot.Util.ownPropsAsArray(l).forEach(function (e) { t.setRequestHeader(e.key, e.val); }), t.onreadystatechange = function () {
229
+ if (4 === t.readyState)
230
+ if (200 === t.status || 201 === t.status || 204 === t.status || 304 === t.status) {
231
+ var e = {};
232
+ e.request = t, t.responseText && (e.data = JSON.parse(t.responseText)), n(e);
233
+ }
234
+ else if (i) {
235
+ var e = {};
236
+ e.request = t, i(e);
237
+ }
238
+ else
239
+ window.console && console.log("HTTP error " + t.status);
240
+ }, 4 !== t.readyState && (a && (r = JSON.stringify(r)), t.send(r));
241
+ }, DayPilot.createXmlHttp = function () { return new XMLHttpRequest; }, DayPilot.Http = {}, DayPilot.Http.ajax = function (e) { DayPilot.ajax(e); }, DayPilot.Util = {}, DayPilot.Util.addClass = function (e, t) {
242
+ if (e) {
243
+ if (!e.className)
244
+ return void (e.className = t);
245
+ new RegExp("(^|\\s)" + t + "($|\\s)").test(e.className) || (e.className = e.className + " " + t);
246
+ }
247
+ }, DayPilot.Util.removeClass = function (e, t) {
248
+ if (e) {
249
+ var a = new RegExp("(^|\\s)" + t + "($|\\s)");
250
+ e.className = e.className.replace(a, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, "");
251
+ }
252
+ }, DayPilot.Util.ownPropsAsArray = function (e) {
253
+ var t = [];
254
+ if (!e)
255
+ return t;
256
+ for (var a in e)
257
+ if (e.hasOwnProperty(a)) {
258
+ var r = {};
259
+ r.key = a, r.val = e[a], t.push(r);
260
+ }
261
+ return t;
262
+ }, DayPilot.Util.replaceCharAt = function (e, t, a) { return e.substr(0, t) + a + e.substr(t + a.length); }, DayPilot.Util.isNullOrUndefined = function (e) { return null === e || "undefined" == typeof e; }, DayPilot.Exception = function (e) { return new Error(e); }, DayPilot.Locale = function (e, t) {
263
+ if (this.id = e, this.dayNames = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], this.dayNamesShort = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], this.monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], this.datePattern = "M/d/yyyy", this.timePattern = "H:mm", this.dateTimePattern = "M/d/yyyy H:mm", this.timeFormat = "Clock12Hours", this.weekStarts = 0, t)
264
+ for (var a in t)
265
+ this[a] = t[a];
266
+ }, DayPilot.Locale.all = {}, DayPilot.Locale.find = function (e) {
267
+ if (!e)
268
+ return null;
269
+ var t = e.toLowerCase();
270
+ return t.length > 2 && (t = DayPilot.Util.replaceCharAt(t, 2, "-")), DayPilot.Locale.all[t];
271
+ }, DayPilot.Locale.register = function (e) { DayPilot.Locale.all[e.id] = e; }, DayPilot.Locale.register(new DayPilot.Locale("ca-es", { "dayNames": ["diumenge", "dilluns", "dimarts", "dimecres", "dijous", "divendres", "dissabte"], "dayNamesShort": ["dg", "dl", "dt", "dc", "dj", "dv", "ds"], "monthNames": ["gener", "febrer", "març", "abril", "maig", "juny", "juliol", "agost", "setembre", "octubre", "novembre", "desembre", ""], "monthNamesShort": ["gen.", "febr.", "març", "abr.", "maig", "juny", "jul.", "ag.", "set.", "oct.", "nov.", "des.", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("cs-cz", { "dayNames": ["neděle", "pondělí", "úterý", "středa", "čtvrtek", "pátek", "sobota"], "dayNamesShort": ["ne", "po", "út", "st", "čt", "pá", "so"], "monthNames": ["leden", "únor", "březen", "duben", "květen", "červen", "červenec", "srpen", "září", "říjen", "listopad", "prosinec", ""], "monthNamesShort": ["I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX", "X", "XI", "XII", ""], "timePattern": "H:mm", "datePattern": "d. M. yyyy", "dateTimePattern": "d. M. yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("da-dk", { "dayNames": ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], "dayNamesShort": ["sø", "ma", "ti", "on", "to", "fr", "lø"], "monthNames": ["januar", "februar", "marts", "april", "maj", "juni", "juli", "august", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "dd-MM-yyyy", "dateTimePattern": "dd-MM-yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-at", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Jänner", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jän", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-ch", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-de", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-lu", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-au", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "h:mm tt", "datePattern": "d/MM/yyyy", "dateTimePattern": "d/MM/yyyy h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-ca", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "h:mm tt", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("en-gb", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-us", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "h:mm tt", "datePattern": "M/d/yyyy", "dateTimePattern": "M/d/yyyy h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("es-es", { "dayNames": ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], "dayNamesShort": ["D", "L", "M", "X", "J", "V", "S"], "monthNames": ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre", ""], "monthNamesShort": ["ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sep.", "oct.", "nov.", "dic.", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("es-mx", { "dayNames": ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], "dayNamesShort": ["do.", "lu.", "ma.", "mi.", "ju.", "vi.", "sá."], "monthNames": ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre", ""], "monthNamesShort": ["ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sep.", "oct.", "nov.", "dic.", ""], "timePattern": "hh:mm tt", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy hh:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("eu-es", { "dayNames": ["igandea", "astelehena", "asteartea", "asteazkena", "osteguna", "ostirala", "larunbata"], "dayNamesShort": ["ig", "al", "as", "az", "og", "or", "lr"], "monthNames": ["urtarrila", "otsaila", "martxoa", "apirila", "maiatza", "ekaina", "uztaila", "abuztua", "iraila", "urria", "azaroa", "abendua", ""], "monthNamesShort": ["urt.", "ots.", "mar.", "api.", "mai.", "eka.", "uzt.", "abu.", "ira.", "urr.", "aza.", "abe.", ""],
272
+ "timePattern": "H:mm", "datePattern": "yyyy/MM/dd", "dateTimePattern": "yyyy/MM/dd H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fi-fi", { "dayNames": ["sunnuntai", "maanantai", "tiistai", "keskiviikko", "torstai", "perjantai", "lauantai"], "dayNamesShort": ["su", "ma", "ti", "ke", "to", "pe", "la"], "monthNames": ["tammikuu", "helmikuu", "maaliskuu", "huhtikuu", "toukokuu", "kesäkuu", "heinäkuu", "elokuu", "syyskuu", "lokakuu", "marraskuu", "joulukuu", ""], "monthNamesShort": ["tammi", "helmi", "maalis", "huhti", "touko", "kesä", "heinä", "elo", "syys", "loka", "marras", "joulu", ""], "timePattern": "H:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-be", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd-MM-yy", "dateTimePattern": "dd-MM-yy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-ch", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-fr", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-lu", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("gl-es", { "dayNames": ["domingo", "luns", "martes", "mércores", "xoves", "venres", "sábado"], "dayNamesShort": ["do", "lu", "ma", "mé", "xo", "ve", "sá"], "monthNames": ["xaneiro", "febreiro", "marzo", "abril", "maio", "xuño", "xullo", "agosto", "setembro", "outubro", "novembro", "decembro", ""], "monthNamesShort": ["xan", "feb", "mar", "abr", "maio", "xuño", "xul", "ago", "set", "out", "nov", "dec", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("it-it", { "dayNames": ["domenica", "lunedì", "martedì", "mercoledì", "giovedì", "venerdì", "sabato"], "dayNamesShort": ["do", "lu", "ma", "me", "gi", "ve", "sa"], "monthNames": ["gennaio", "febbraio", "marzo", "aprile", "maggio", "giugno", "luglio", "agosto", "settembre", "ottobre", "novembre", "dicembre", ""], "monthNamesShort": ["gen", "feb", "mar", "apr", "mag", "giu", "lug", "ago", "set", "ott", "nov", "dic", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("it-ch", { "dayNames": ["domenica", "lunedì", "martedì", "mercoledì", "giovedì", "venerdì", "sabato"], "dayNamesShort": ["do", "lu", "ma", "me", "gi", "ve", "sa"], "monthNames": ["gennaio", "febbraio", "marzo", "aprile", "maggio", "giugno", "luglio", "agosto", "settembre", "ottobre", "novembre", "dicembre", ""], "monthNamesShort": ["gen", "feb", "mar", "apr", "mag", "giu", "lug", "ago", "set", "ott", "nov", "dic", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("ja-jp", { "dayNames": ["日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"], "dayNamesShort": ["日", "月", "火", "水", "木", "金", "土"], "monthNames": ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月", ""], "monthNamesShort": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", ""], "timePattern": "H:mm", "datePattern": "yyyy/MM/dd", "dateTimePattern": "yyyy/MM/dd H:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("nb-no", { "dayNames": ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], "dayNamesShort": ["sø", "ma", "ti", "on", "to", "fr", "lø"], "monthNames": ["januar", "februar", "mars", "april", "mai", "juni", "juli", "august", "september", "oktober", "november", "desember", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "mai", "jun", "jul", "aug", "sep", "okt", "nov", "des", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nl-nl", { "dayNames": ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"], "dayNamesShort": ["zo", "ma", "di", "wo", "do", "vr", "za"], "monthNames": ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "d-M-yyyy", "dateTimePattern": "d-M-yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nl-be", { "dayNames": ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"], "dayNamesShort": ["zo", "ma", "di", "wo", "do", "vr", "za"], "monthNames": ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "H:mm", "datePattern": "d/MM/yyyy", "dateTimePattern": "d/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nn-no", { "dayNames": ["søndag", "måndag", "tysdag", "onsdag", "torsdag", "fredag", "laurdag"], "dayNamesShort": ["sø", "må", "ty", "on", "to", "fr", "la"], "monthNames": ["januar", "februar", "mars", "april", "mai", "juni", "juli", "august", "september", "oktober", "november", "desember", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "mai", "jun", "jul", "aug", "sep", "okt", "nov", "des", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("pt-br", { "dayNames": ["domingo", "segunda-feira", "terça-feira", "quarta-feira", "quinta-feira", "sexta-feira", "sábado"], "dayNamesShort": ["D", "S", "T", "Q", "Q", "S", "S"], "monthNames": ["janeiro", "fevereiro", "março", "abril", "maio", "junho", "julho", "agosto", "setembro", "outubro", "novembro", "dezembro", ""], "monthNamesShort": ["jan", "fev", "mar", "abr", "mai", "jun", "jul", "ago", "set", "out", "nov", "dez", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("pl-pl", { "dayNames": ["niedziela", "poniedziałek", "wtorek", "środa", "czwartek", "piątek", "sobota"], "dayNamesShort": ["N", "Pn", "Wt", "Śr", "Cz", "Pt", "So"], "monthNames": ["styczeń", "luty", "marzec", "kwiecień", "maj", "czerwiec", "lipiec", "sierpień", "wrzesień", "październik", "listopad", "grudzień", ""], "monthNamesShort": ["sty", "lut", "mar", "kwi", "maj", "cze", "lip", "sie", "wrz", "paź", "lis", "gru", ""], "timePattern": "HH:mm", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("pt-pt", { "dayNames": ["domingo", "segunda-feira", "terça-feira", "quarta-feira", "quinta-feira", "sexta-feira", "sábado"], "dayNamesShort": ["D", "S", "T", "Q", "Q", "S", "S"], "monthNames": ["janeiro", "fevereiro", "março", "abril", "maio", "junho", "julho", "agosto", "setembro", "outubro", "novembro", "dezembro", ""], "monthNamesShort": ["jan", "fev", "mar", "abr", "mai", "jun", "jul", "ago", "set", "out", "nov", "dez", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("ro-ro", { "dayNames": ["duminică", "luni", "marți", "miercuri", "joi", "vineri", "sâmbătă"], "dayNamesShort": ["D", "L", "Ma", "Mi", "J", "V", "S"], "monthNames": ["ianuarie", "februarie", "martie", "aprilie", "mai", "iunie", "iulie", "august", "septembrie", "octombrie", "noiembrie", "decembrie", ""], "monthNamesShort": ["ian.", "feb.", "mar.", "apr.", "mai.", "iun.", "iul.", "aug.", "sep.", "oct.", "nov.", "dec.", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("ru-ru", { "dayNames": ["воскресенье", "понедельник", "вторник", "среда", "четверг", "пятница", "суббота"], "dayNamesShort": ["Вс", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], "monthNames": ["Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь", ""], "monthNamesShort": ["янв", "фев", "мар", "апр", "май", "июн", "июл", "авг", "сен", "окт", "ноя", "дек", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("sk-sk", { "dayNames": ["nedeľa", "pondelok", "utorok", "streda", "štvrtok", "piatok", "sobota"], "dayNamesShort": ["ne", "po", "ut", "st", "št", "pi", "so"], "monthNames": ["január", "február", "marec", "apríl", "máj", "jún", "júl", "august", "september", "október", "november", "december", ""], "monthNamesShort": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", ""], "timePattern": "H:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("sv-se", { "dayNames": ["söndag", "måndag", "tisdag", "onsdag", "torsdag", "fredag", "lördag"], "dayNamesShort": ["sö", "må", "ti", "on", "to", "fr", "lö"], "monthNames": ["januari", "februari", "mars", "april", "maj", "juni", "juli", "augusti", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("tr-tr", { "dayNames": ["Pazar", "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi"], "dayNamesShort": ["Pz", "Pt", "Sa", "Ça", "Pe", "Cu", "Ct"], "monthNames": ["Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık", ""], "monthNamesShort": ["Oca", "Şub", "Mar", "Nis", "May", "Haz", "Tem", "Ağu", "Eyl", "Eki", "Kas", "Ara", ""], "timePattern": "HH:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("zh-cn", { "dayNames": ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], "dayNamesShort": ["日", "一", "二", "三", "四", "五", "六"], "monthNames": ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月", ""], "monthNamesShort": ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月", ""], "timePattern": "H:mm", "datePattern": "yyyy/M/d", "dateTimePattern": "yyyy/M/d H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.US = DayPilot.Locale.find("en-us"), DayPilot.Duration = function (e) {
273
+ var t = this, a = 864e5, r = 36e5, o = 6e4, n = 1e3;
274
+ if (2 === arguments.length) {
275
+ var i = arguments[0], d = arguments[1];
276
+ if (!(i instanceof DayPilot.Date) && "string" != typeof i)
277
+ throw "DayPilot.Duration(): Invalid start argument, DayPilot.Date expected";
278
+ if (!(d instanceof DayPilot.Date) && "string" != typeof d)
279
+ throw "DayPilot.Duration(): Invalid end argument, DayPilot.Date expected";
280
+ "string" == typeof i && (i = new DayPilot.Date(i)), "string" == typeof d && (d = new DayPilot.Date(d)), e = d.getTime() - i.getTime();
281
+ }
282
+ return this.ticks = e, DayPilot.Date.Cache.DurationCtor["" + e] ? DayPilot.Date.Cache.DurationCtor["" + e] : (DayPilot.Date.Cache.DurationCtor["" + e] = this, this.toString = function (e) {
283
+ if (!e)
284
+ return t.days() + "." + t.hours() + ":" + t.minutes() + ":" + t.seconds() + "." + t.milliseconds();
285
+ var a = t.minutes();
286
+ a = (a < 10 ? "0" : "") + a;
287
+ var r = e;
288
+ return r = r.replace("mm", a), r = r.replace("m", t.minutes()), r = r.replace("H", t.hours()), r = r.replace("h", t.hours()), r = r.replace("d", t.days()), r = r.replace("s", t.seconds());
289
+ }, this.totalHours = function () { return t.ticks / r; }, this.totalDays = function () { return t.ticks / a; }, this.totalMinutes = function () { return t.ticks / o; }, this.totalSeconds = function () { return t.ticks / n; }, this.days = function () { return Math.floor(t.totalDays()); }, this.hours = function () { var e = t.ticks - t.days() * a; return Math.floor(e / r); }, this.minutes = function () { var e = t.ticks - Math.floor(t.totalHours()) * r; return Math.floor(e / o); }, this.seconds = function () { var e = t.ticks - Math.floor(t.totalMinutes()) * o; return Math.floor(e / n); }, void (this.milliseconds = function () { return t.ticks % n; }));
290
+ }, DayPilot.Duration.weeks = function (e) { return new DayPilot.Duration(1e3 * e * 60 * 60 * 24 * 7); }, DayPilot.Duration.days = function (e) { return new DayPilot.Duration(1e3 * e * 60 * 60 * 24); }, DayPilot.Duration.hours = function (e) { return new DayPilot.Duration(1e3 * e * 60 * 60); }, DayPilot.Duration.minutes = function (e) { return new DayPilot.Duration(1e3 * e * 60); }, DayPilot.Duration.seconds = function (e) { return new DayPilot.Duration(1e3 * e); }, DayPilot.TimeSpan = function () { throw "Please use DayPilot.Duration class instead of DayPilot.TimeSpan."; };
291
+ try {
292
+ DayPilot.TimeSpan.prototype = Object.create(DayPilot.Duration.prototype);
293
+ }
294
+ catch (e) { }
295
+ DayPilot.Date = function (t, a) {
296
+ if (t instanceof DayPilot.Date)
297
+ return t;
298
+ var r;
299
+ DayPilot.Util.isNullOrUndefined(t) && (r = DayPilot.DateUtil.fromLocal().getTime(), t = r);
300
+ var o = DayPilot.Date.Cache.Ctor;
301
+ if (o[t])
302
+ return DayPilot.Stats.cacheHitsCtor += 1, o[t];
303
+ var n = !1;
304
+ if ("string" == typeof t)
305
+ r = DayPilot.DateUtil.fromStringSortable(t, a).getTime(), n = !0;
306
+ else if ("number" == typeof t) {
307
+ if (isNaN(t))
308
+ throw "Cannot create DayPilot.Date from NaN";
309
+ r = t;
310
+ }
311
+ else {
312
+ if (!(t instanceof Date))
313
+ throw "Unrecognized parameter: use Date, number or string in ISO 8601 format";
314
+ r = a ? DayPilot.DateUtil.fromLocal(t).getTime() : t.getTime();
315
+ }
316
+ var i = e(r);
317
+ return o[i] ? o[i] : (o[i] = this, o[r] = this, n && i !== t && DayPilot.DateUtil.hasTzSpec(t) && (o[t] = this), Object.defineProperty && !DayPilot.browser.ielt9 ? (Object.defineProperty(this, "ticks", { get: function () { return r; } }), Object.defineProperty(this, "value", { "value": i, "writable": !1, "enumerable": !0 })) : (this.ticks = r, this.value = i), DayPilot.Date.Config.legacyShowD && (this.d = new Date(r)), void (DayPilot.Stats.dateObjects += 1));
318
+ }, DayPilot.Date.Config = {}, DayPilot.Date.Config.legacyShowD = !1, DayPilot.Date.Cache = {}, DayPilot.Date.Cache.Parsing = {}, DayPilot.Date.Cache.Ctor = {}, DayPilot.Date.Cache.Ticks = {}, DayPilot.Date.Cache.DurationCtor = {}, DayPilot.Date.Cache.clear = function () { DayPilot.Date.Cache.Parsing = {}, DayPilot.Date.Cache.Ctor = {}, DayPilot.Date.Cache.Ticks = {}, DayPilot.Date.Cache.DurationCtor = {}; }, DayPilot.Date.prototype.addDays = function (e) { return e ? new DayPilot.Date(this.ticks + 24 * e * 60 * 60 * 1e3) : this; }, DayPilot.Date.prototype.addHours = function (e) { return e ? this.addTime(60 * e * 60 * 1e3) : this; }, DayPilot.Date.prototype.addMilliseconds = function (e) { return e ? this.addTime(e) : this; }, DayPilot.Date.prototype.addMinutes = function (e) { return e ? this.addTime(60 * e * 1e3) : this; }, DayPilot.Date.prototype.addMonths = function (e) {
319
+ if (!e)
320
+ return this;
321
+ var t = new Date(this.ticks), a = t.getUTCFullYear(), r = t.getUTCMonth() + 1;
322
+ if (e > 0) {
323
+ for (; e >= 12;)
324
+ e -= 12, a++;
325
+ e > 12 - r ? (a++, r = e - (12 - r)) : r += e;
326
+ }
327
+ else {
328
+ for (; e <= -12;)
329
+ e += 12, a--;
330
+ r + e <= 0 ? (a--, r = 12 + r + e) : r += e;
331
+ }
332
+ var o = new Date(t.getTime());
333
+ o.setUTCDate(1), o.setUTCFullYear(a), o.setUTCMonth(r - 1);
334
+ var n = new DayPilot.Date(o).daysInMonth();
335
+ return o.setUTCDate(Math.min(n, t.getUTCDate())), new DayPilot.Date(o);
336
+ }, DayPilot.Date.prototype.addSeconds = function (e) { return e ? this.addTime(1e3 * e) : this; }, DayPilot.Date.prototype.addTime = function (e) { return e ? (e instanceof DayPilot.Duration && (e = e.ticks), new DayPilot.Date(this.ticks + e)) : this; }, DayPilot.Date.prototype.addYears = function (e) { var t = new Date(this.ticks), a = new Date(this.ticks), r = this.getYear() + e, o = this.getMonth(); a.setUTCDate(1), a.setUTCFullYear(r), a.setUTCMonth(o); var n = new DayPilot.Date(a).daysInMonth(); return a.setUTCDate(Math.min(n, t.getUTCDate())), new DayPilot.Date(a); }, DayPilot.Date.prototype.dayOfWeek = function () { return new Date(this.ticks).getUTCDay(); }, DayPilot.Date.prototype.getDayOfWeek = function () { return new Date(this.ticks).getUTCDay(); }, DayPilot.Date.prototype.getDayOfYear = function () { var e = this.firstDayOfYear(); return DayPilot.DateUtil.daysDiff(e, this) + 1; }, DayPilot.Date.prototype.daysInMonth = function () { var e = new Date(this.ticks), t = e.getUTCMonth() + 1, a = e.getUTCFullYear(), r = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; return 2 !== t ? r[t - 1] : a % 4 !== 0 ? r[1] : a % 100 === 0 && a % 400 !== 0 ? r[1] : r[1] + 1; }, DayPilot.Date.prototype.daysInYear = function () { var e = this.getYear(); return e % 4 !== 0 ? 365 : e % 100 === 0 && e % 400 !== 0 ? 365 : 366; }, DayPilot.Date.prototype.dayOfYear = function () { return Math.ceil((this.getDatePart().getTime() - this.firstDayOfYear().getTime()) / 864e5) + 1; }, DayPilot.Date.prototype.equals = function (e) {
337
+ if (null === e)
338
+ return !1;
339
+ if (e instanceof DayPilot.Date)
340
+ return this === e;
341
+ throw "The parameter must be a DayPilot.Date object (DayPilot.Date.equals())";
342
+ }, DayPilot.Date.prototype.firstDayOfMonth = function () { var e = new Date; return e.setUTCFullYear(this.getYear(), this.getMonth(), 1), e.setUTCHours(0), e.setUTCMinutes(0), e.setUTCSeconds(0), e.setUTCMilliseconds(0), new DayPilot.Date(e); }, DayPilot.Date.prototype.firstDayOfYear = function () { var e = this.getYear(), t = new Date; return t.setUTCFullYear(e, 0, 1), t.setUTCHours(0), t.setUTCMinutes(0), t.setUTCSeconds(0), t.setUTCMilliseconds(0), new DayPilot.Date(t); }, DayPilot.Date.prototype.firstDayOfWeek = function (e) {
343
+ var t = this;
344
+ if (e instanceof DayPilot.Locale)
345
+ e = e.weekStarts;
346
+ else if ("string" == typeof e && DayPilot.Locale.find(e)) {
347
+ var a = DayPilot.Locale.find(e);
348
+ e = a.weekStarts;
349
+ }
350
+ else
351
+ e = e || 0;
352
+ for (var r = t.dayOfWeek(); r !== e;)
353
+ t = t.addDays(-1), r = t.dayOfWeek();
354
+ return new DayPilot.Date(t);
355
+ }, DayPilot.Date.prototype.getDay = function () { return new Date(this.ticks).getUTCDate(); }, DayPilot.Date.prototype.getDatePart = function () { var e = new Date(this.ticks); return e.setUTCHours(0), e.setUTCMinutes(0), e.setUTCSeconds(0), e.setUTCMilliseconds(0), new DayPilot.Date(e); }, DayPilot.Date.prototype.getYear = function () { return new Date(this.ticks).getUTCFullYear(); }, DayPilot.Date.prototype.getHours = function () { return new Date(this.ticks).getUTCHours(); }, DayPilot.Date.prototype.getMilliseconds = function () { return new Date(this.ticks).getUTCMilliseconds(); }, DayPilot.Date.prototype.getMinutes = function () { return new Date(this.ticks).getUTCMinutes(); }, DayPilot.Date.prototype.getMonth = function () { return new Date(this.ticks).getUTCMonth(); }, DayPilot.Date.prototype.getSeconds = function () { return new Date(this.ticks).getUTCSeconds(); }, DayPilot.Date.prototype.getTotalTicks = function () { return this.getTime(); }, DayPilot.Date.prototype.getTime = function () { return this.ticks; }, DayPilot.Date.prototype.getTimePart = function () { var e = this.getDatePart(); return DayPilot.DateUtil.diff(this, e); }, DayPilot.Date.prototype.lastDayOfMonth = function () { var e = new Date(this.firstDayOfMonth().getTime()), t = this.daysInMonth(); return e.setUTCDate(t), new DayPilot.Date(e); }, DayPilot.Date.prototype.weekNumber = function () { var e = this.firstDayOfYear(), t = (this.getTime() - e.getTime()) / 864e5; return Math.ceil((t + e.dayOfWeek() + 1) / 7); }, DayPilot.Date.prototype.weekNumberISO = function () { var e = !1, t = this.dayOfYear(), a = this.firstDayOfYear().dayOfWeek(), r = this.firstDayOfYear().addYears(1).addDays(-1).dayOfWeek(); 0 === a && (a = 7), 0 === r && (r = 7); var o = 8 - a; 4 !== a && 4 !== r || (e = !0); var n = Math.ceil((t - o) / 7), i = n; return o >= 4 && (i += 1), i > 52 && !e && (i = 1), 0 === i && (i = this.firstDayOfYear().addDays(-1).weekNumberISO()), i; }, DayPilot.Date.prototype.toDateLocal = function () { var e = new Date(this.ticks), t = new Date; return t.setFullYear(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate()), t.setHours(e.getUTCHours()), t.setMinutes(e.getUTCMinutes()), t.setSeconds(e.getUTCSeconds()), t.setMilliseconds(e.getUTCMilliseconds()), t; }, DayPilot.Date.prototype.toDate = function () { return new Date(this.ticks); }, DayPilot.Date.prototype.toJSON = function () { return this.value; }, DayPilot.Date.prototype.toString = function (e, a) { return e ? new t(e, a).print(this) : this.toStringSortable(); }, DayPilot.Date.prototype.toStringSortable = function () { return e(this.ticks); }, DayPilot.Date.parse = function (e, a, r) { return new t(a, r).parse(e); };
356
+ DayPilot.Date.today = function () { return new DayPilot.Date(DayPilot.DateUtil.localToday(), !0); }, DayPilot.Date.fromYearMonthDay = function (e, t, a) { t = t || 1, a = a || 1; var r = new Date(0); return r.setUTCFullYear(e), r.setUTCMonth(t - 1), r.setUTCDate(a), new DayPilot.Date(r); }, DayPilot.DateUtil = {}, DayPilot.DateUtil.fromStringSortable = function (e, t) {
357
+ if (!e)
358
+ throw "Can't create DayPilot.Date from an empty string";
359
+ var a = e.length, r = 10 === a, o = 19 === a, n = a > 19;
360
+ if (!r && !o && !n)
361
+ throw "Invalid string format (use '2010-01-01' or '2010-01-01T00:00:00'): " + e;
362
+ if (DayPilot.Date.Cache.Parsing[e] && !t)
363
+ return DayPilot.Stats.cacheHitsParsing += 1, DayPilot.Date.Cache.Parsing[e];
364
+ var i = e.substring(0, 4), d = e.substring(5, 7), s = e.substring(8, 10), l = new Date(0);
365
+ if (l.setUTCFullYear(i, d - 1, s), r)
366
+ return DayPilot.Date.Cache.Parsing[e] = l, l;
367
+ var u = e.substring(11, 13), c = e.substring(14, 16), f = e.substring(17, 19);
368
+ if (l.setUTCHours(u), l.setUTCMinutes(c), l.setUTCSeconds(f), o)
369
+ return DayPilot.Date.Cache.Parsing[e] = l, l;
370
+ var m = e[19], y = 0;
371
+ if ("." === m) {
372
+ var h = parseInt(e.substring(20, 23));
373
+ l.setUTCMilliseconds(h), y = DayPilot.DateUtil.getTzOffsetMinutes(e.substring(23));
374
+ }
375
+ else
376
+ y = DayPilot.DateUtil.getTzOffsetMinutes(e.substring(19));
377
+ var g = new DayPilot.Date(l);
378
+ return t || (g = g.addMinutes(-y)), l = g.toDate(), DayPilot.Date.Cache.Parsing[e] = l, l;
379
+ }, DayPilot.DateUtil.getTzOffsetMinutes = function (e) {
380
+ if (DayPilot.Util.isNullOrUndefined(e) || "" === e)
381
+ return 0;
382
+ if ("Z" === e)
383
+ return 0;
384
+ var t = e[0], a = parseInt(e.substring(1, 3)), r = parseInt(e.substring(4)), o = 60 * a + r;
385
+ if ("-" === t)
386
+ return -o;
387
+ if ("+" === t)
388
+ return o;
389
+ throw "Invalid timezone spec: " + e;
390
+ }, DayPilot.DateUtil.hasTzSpec = function (e) { return !!e.indexOf("+") || !!e.indexOf("-"); }, DayPilot.DateUtil.daysDiff = function (e, t) {
391
+ if (e && t || function () { throw "two parameters required"; }(), e = new DayPilot.Date(e), t = new DayPilot.Date(t), e.getTime() > t.getTime())
392
+ return null;
393
+ for (var a = 0, r = e.getDatePart(), o = t.getDatePart(); r < o;)
394
+ r = r.addDays(1), a++;
395
+ return a;
396
+ }, DayPilot.DateUtil.daysSpan = function (e, t) {
397
+ if (e && t || function () { throw "two parameters required"; }(), e = new DayPilot.Date(e), t = new DayPilot.Date(t), e === t)
398
+ return 0;
399
+ var a = DayPilot.DateUtil.daysDiff(e, t);
400
+ return t == t.getDatePart() && a--, a;
401
+ }, DayPilot.DateUtil.diff = function (e, t) {
402
+ if (!(e && t && e.getTime && t.getTime))
403
+ throw "Both compared objects must be Date objects (DayPilot.Date.diff).";
404
+ return e.getTime() - t.getTime();
405
+ }, DayPilot.DateUtil.fromLocal = function (e) { e || (e = new Date); var t = new Date; return t.setUTCFullYear(e.getFullYear(), e.getMonth(), e.getDate()), t.setUTCHours(e.getHours()), t.setUTCMinutes(e.getMinutes()), t.setUTCSeconds(e.getSeconds()), t.setUTCMilliseconds(e.getMilliseconds()), t; }, DayPilot.DateUtil.localToday = function () { var e = new Date; return e.setHours(0), e.setMinutes(0), e.setSeconds(0), e.setMilliseconds(0), e; }, DayPilot.DateUtil.hours = function (e, t) {
406
+ var a = e.getUTCMinutes();
407
+ a < 10 && (a = "0" + a);
408
+ var r = e.getUTCHours();
409
+ if (t) {
410
+ var o = r < 12, r = r % 12;
411
+ 0 === r && (r = 12);
412
+ return r + ":" + a + " " + (o ? "AM" : "PM");
413
+ }
414
+ return r + ":" + a;
415
+ }, DayPilot.DateUtil.max = function (e, t) { return e.getTime() > t.getTime() ? e : t; }, DayPilot.DateUtil.min = function (e, t) { return e.getTime() < t.getTime() ? e : t; };
416
+ var t = function (e, t) {
417
+ "string" == typeof t && (t = DayPilot.Locale.find(t));
418
+ var t = t || DayPilot.Locale.US, a = [{ "seq": "yyyy", "expr": "[0-9]{4,4}", "str": function (e) { return e.getYear(); } }, { "seq": "yy", "expr": "[0-9]{2,2}", "str": function (e) { return e.getYear() % 100; } }, { "seq": "mm", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getMinutes(); return t < 10 ? "0" + t : t; } }, { "seq": "m", "expr": "[0-9]{1,2}", "str": function (e) { return e.getMinutes(); } }, { "seq": "HH", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getHours(); return t < 10 ? "0" + t : t; } }, { "seq": "H", "expr": "[0-9]{1,2}", "str": function (e) { return e.getHours(); } }, { "seq": "hh", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getHours(), t = t % 12; 0 === t && (t = 12); var a = t; return a < 10 ? "0" + a : a; } }, { "seq": "h", "expr": "[0-9]{1,2}", "str": function (e) { var t = e.getHours(), t = t % 12; return 0 === t && (t = 12), t; } }, { "seq": "ss", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getSeconds(); return t < 10 ? "0" + t : t; } }, { "seq": "s", "expr": "[0-9]{1,2}", "str": function (e) { return e.getSeconds(); } }, { "seq": "MMMM", "expr": "[^\\s0-9]*", "str": function (e) { return t.monthNames[e.getMonth()]; }, "transform": function (e) { var a = DayPilot.indexOf(t.monthNames, e, equalsIgnoreCase); return a < 0 ? null : a + 1; } }, { "seq": "MMM", "expr": "[^\\s0-9]*", "str": function (e) { return t.monthNamesShort[e.getMonth()]; }, "transform": function (e) { var a = DayPilot.indexOf(t.monthNamesShort, e, equalsIgnoreCase); return a < 0 ? null : a + 1; } }, { "seq": "MM", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getMonth() + 1; return t < 10 ? "0" + t : t; } }, { "seq": "M", "expr": "[0-9]{1,2}", "str": function (e) { return e.getMonth() + 1; } }, { "seq": "dddd", "expr": "[^\\s0-9]*", "str": function (e) { return t.dayNames[e.getDayOfWeek()]; } }, { "seq": "ddd", "expr": "[^\\s0-9]*", "str": function (e) { return t.dayNamesShort[e.getDayOfWeek()]; } }, { "seq": "dd", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getDay(); return t < 10 ? "0" + t : t; } }, { "seq": "%d", "expr": "[0-9]{1,2}", "str": function (e) { return e.getDay(); } }, { "seq": "d", "expr": "[0-9]{1,2}", "str": function (e) { return e.getDay(); } }, { "seq": "tt", "expr": "(AM|PM|am|pm)", "str": function (e) { return e.getHours() < 12 ? "AM" : "PM"; }, "transform": function (e) { return e.toUpperCase(); } }], r = function (e) { return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); };
419
+ this.init = function () { this.year = this.findSequence("yyyy"), this.month = this.findSequence("MMMM") || this.findSequence("MMM") || this.findSequence("MM") || this.findSequence("M"), this.day = this.findSequence("dd") || this.findSequence("d"), this.hours = this.findSequence("HH") || this.findSequence("H"), this.minutes = this.findSequence("mm") || this.findSequence("m"), this.seconds = this.findSequence("ss") || this.findSequence("s"), this.ampm = this.findSequence("tt"), this.hours12 = this.findSequence("hh") || this.findSequence("h"); }, this.findSequence = function (t) {
420
+ function o(e) { return parseInt(e); }
421
+ return e.indexOf(t) === -1 ? null : { "findValue": function (n) {
422
+ for (var i = r(e), d = null, s = 0; s < a.length; s++) {
423
+ var l = (a[s].length, t === a[s].seq), u = a[s].expr;
424
+ l && (u = "(" + u + ")", d = a[s].transform), i = i.replace(a[s].seq, u);
425
+ }
426
+ i = "^" + i + "$";
427
+ try {
428
+ var c = new RegExp(i), f = c.exec(n);
429
+ return f ? (d = d || o)(f[1]) : null;
430
+ }
431
+ catch (e) {
432
+ throw "unable to create regex from: " + i;
433
+ }
434
+ } };
435
+ }, this.print = function (t) {
436
+ for (var r = function (e) {
437
+ for (var t = 0; t < a.length; t++)
438
+ if (a[t] && a[t].seq === e)
439
+ return a[t];
440
+ return null;
441
+ }, o = e.length <= 0, n = 0, i = []; !o;) {
442
+ var d = e.substring(n), s = /%?(.)\1*/.exec(d);
443
+ if (s && s.length > 0) {
444
+ var l = s[0], u = r(l);
445
+ u ? i.push(u) : i.push(l), n += l.length, o = e.length <= n;
446
+ }
447
+ else
448
+ o = !0;
449
+ }
450
+ for (var c = 0; c < i.length; c++) {
451
+ var f = i[c];
452
+ "string" != typeof f && (i[c] = f.str(t));
453
+ }
454
+ return i.join("");
455
+ }, this.parse = function (e) {
456
+ var t = this.year.findValue(e);
457
+ if (!t)
458
+ return null;
459
+ var a = this.month.findValue(e);
460
+ if (DayPilot.Util.isNullOrUndefined(a))
461
+ return null;
462
+ if (a > 12 || a < 1)
463
+ return null;
464
+ var r = this.day.findValue(e), o = DayPilot.Date.fromYearMonthDay(t, a).daysInMonth();
465
+ if (r < 1 || r > o)
466
+ return null;
467
+ var n = this.hours ? this.hours.findValue(e) : 0, i = this.minutes ? this.minutes.findValue(e) : 0, d = this.seconds ? this.seconds.findValue(e) : 0, s = this.ampm ? this.ampm.findValue(e) : null;
468
+ if (this.ampm && this.hours12) {
469
+ var l = this.hours12.findValue(e);
470
+ if (l < 1 || l > 12)
471
+ return null;
472
+ n = "PM" === s ? 12 === l ? 12 : l + 12 : 12 === l ? 0 : l;
473
+ }
474
+ if (n < 0 || n > 23)
475
+ return null;
476
+ if (i < 0 || i > 59)
477
+ return null;
478
+ if (d < 0 || d > 59)
479
+ return null;
480
+ var u = new Date;
481
+ return u.setUTCFullYear(t, a - 1, r), u.setUTCHours(n), u.setUTCMinutes(i), u.setUTCSeconds(d), u.setUTCMilliseconds(0), new DayPilot.Date(u);
482
+ }, this.init();
483
+ };
484
+ DayPilot.Event = function (e, t, a) {
485
+ var r = this;
486
+ this.calendar = t, this.data = e ? e : {}, this.part = a ? a : {}, "undefined" == typeof this.data.id && (this.data.id = this.data.value);
487
+ var o = {}, n = ["id", "text", "start", "end"];
488
+ this.isEvent = !0, this.temp = function () {
489
+ if (o.dirty)
490
+ return o;
491
+ for (var e = 0; e < n.length; e++)
492
+ o[n[e]] = r.data[n[e]];
493
+ return o.dirty = !0, o;
494
+ }, this.copy = function () {
495
+ for (var e = {}, t = 0; t < n.length; t++)
496
+ e[n[t]] = r.data[n[t]];
497
+ return e;
498
+ }, this.commit = function () {
499
+ if (o.dirty) {
500
+ for (var e = 0; e < n.length; e++)
501
+ r.data[n[e]] = o[n[e]];
502
+ o.dirty = !1;
503
+ }
504
+ }, this.dirty = function () { return o.dirty; }, this.id = function (e) { return "undefined" == typeof e ? r.data.id : void (this.temp().id = e); }, this.value = function (e) { return "undefined" == typeof e ? r.id() : void r.id(e); }, this.text = function (e) { return "undefined" == typeof e ? r.data.text : (this.temp().text = e, void this.client.innerHTML(e)); }, this.start = function (e) { return "undefined" == typeof e ? new DayPilot.Date(r.data.start) : void (this.temp().start = new DayPilot.Date(e)); }, this.end = function (e) { return "undefined" == typeof e ? new DayPilot.Date(r.data.end) : void (this.temp().end = new DayPilot.Date(e)); }, this.partStart = function () { return new DayPilot.Date(this.part.start); }, this.partEnd = function () { return new DayPilot.Date(this.part.end); }, this.tag = function (e) {
505
+ var t = r.data.tag;
506
+ if (!t)
507
+ return null;
508
+ if ("undefined" == typeof e)
509
+ return r.data.tag;
510
+ for (var a = r.calendar.tagFields, o = -1, n = 0; n < a.length; n++)
511
+ e === a[n] && (o = n);
512
+ if (o === -1)
513
+ throw "Field name not found.";
514
+ return t[o];
515
+ }, this.client = {}, this.client.innerHTML = function (e) { return "undefined" == typeof e ? r.cache && "undefined" != typeof r.cache.html ? r.cache.html : "undefined" != typeof r.data.html ? r.data.html : r.data.text : void (r.data.html = e); }, this.client.html = this.client.innerHTML, this.client.header = function (e) { return "undefined" == typeof e ? r.data.header : void (r.data.header = e); }, this.client.cssClass = function (e) { return "undefined" == typeof e ? r.data.cssClass : void (r.data.cssClass = e); }, this.client.toolTip = function (e) { return "undefined" == typeof e ? r.cache && "undefined" != typeof r.cache.toolTip ? r.cache.toolTip : "undefined" != typeof r.data.toolTip ? r.data.toolTip : r.data.text : void (r.data.toolTip = e); }, this.client.barVisible = function (e) { return "undefined" == typeof e ? r.cache && "undefined" != typeof r.cache.barHidden ? !r.cache.barHidden : r.calendar.durationBarVisible && !r.data.barHidden : void (r.data.barHidden = !e); }, this.client.backColor = function (e) { return "undefined" == typeof e ? r.cache && "undefined" != typeof r.cache.backColor ? r.cache.backColor : "undefined" != typeof r.data.backColor ? r.data.backColor : r.calendar.eventBackColor : void (r.data.backColor = e); }, this.client.borderColor = function (e) { return "undefined" == typeof e ? r.cache && "undefined" != typeof r.cache.borderColor ? r.cache.borderColor : "undefined" != typeof r.data.borderColor ? r.data.borderColor : r.calendar.eventBorderColor : void (r.data.borderColor = e); }, this.client.moveEnabled = function (e) { return "undefined" == typeof e ? "Disabled" !== r.calendar.eventMoveHandling && !r.data.moveDisabled : void (r.data.moveDisabled = !e); }, this.client.resizeEnabled = function (e) { return "undefined" == typeof e ? "Disabled" !== r.calendar.eventResizeHandling && !r.data.resizeDisabled : void (r.data.resizeDisabled = !e); }, this.client.clickEnabled = function (e) { return "undefined" == typeof e ? "Disabled" !== r.calendar.eventClickHandling && !r.data.clickDisabled : void (r.data.clickDisabled = !e); }, this.toJSON = function (e) {
516
+ var t = {};
517
+ if (t.value = this.id(), t.id = this.id(), t.text = this.text(), t.start = this.start(), t.end = this.end(), t.tag = {}, r.calendar && r.calendar.tagFields)
518
+ for (var a = r.calendar.tagFields, o = 0; o < a.length; o++)
519
+ t.tag[a[o]] = this.tag(a[o]);
520
+ return t;
521
+ };
522
+ };
523
+ }
524
+ }(), DayPilot.JSON = {}, function () {
525
+ function e(e) { return e < 10 ? "0" + e : e; }
526
+ function t(e) { return i.lastIndex = 0, i.test(e) ? '"' + e.replace(i, function (e) { var t = d[e]; return "string" == typeof t ? t : "\\u" + ("0000" + e.charCodeAt(0).toString(16)).slice(-4); }) + '"' : '"' + e + '"'; }
527
+ function a(e, i) {
528
+ var d, s, l, u, c, f = r, m = i[e];
529
+ switch (m && "object" == typeof m && "function" == typeof m.toJSON2 ? m = m.toJSON2(e) : m && "object" == typeof m && "function" == typeof m.toJSON && !m.ignoreToJSON && (m = m.toJSON(e)),
530
+ "function" == typeof n && (m = n.call(i, e, m)), typeof m) {
531
+ case "string": return t(m);
532
+ case "number": return isFinite(m) ? String(m) : "null";
533
+ case "boolean":
534
+ case "null": return String(m);
535
+ case "object":
536
+ if (!m)
537
+ return "null";
538
+ if (r += o, c = [], "number" == typeof m.length && !m.propertyIsEnumerable("length")) {
539
+ for (u = m.length, d = 0; d < u; d += 1)
540
+ c[d] = a(d, m) || "null";
541
+ return l = 0 === c.length ? "[]" : r ? "[\n" + r + c.join(",\n" + r) + "\n" + f + "]" : "[" + c.join(",") + "]", r = f, l;
542
+ }
543
+ if (n && "object" == typeof n)
544
+ for (u = n.length, d = 0; d < u; d += 1)
545
+ s = n[d], "string" == typeof s && (l = a(s, m), l && c.push(t(s) + (r ? ": " : ":") + l));
546
+ else
547
+ for (s in m)
548
+ Object.hasOwnProperty.call(m, s) && (l = a(s, m), l && c.push(t(s) + (r ? ": " : ":") + l));
549
+ return l = 0 === c.length ? "{}" : r ? "{\n" + r + c.join(",\n" + r) + "\n" + f + "}" : "{" + c.join(",") + "}", r = f, l;
550
+ }
551
+ }
552
+ "function" != typeof Date.prototype.toJSON2 && (Date.prototype.toJSON2 = function (t) { return this.getUTCFullYear() + "-" + e(this.getUTCMonth() + 1) + "-" + e(this.getUTCDate()) + "T" + e(this.getUTCHours()) + ":" + e(this.getUTCMinutes()) + ":" + e(this.getUTCSeconds()); }, String.prototype.toJSON = Number.prototype.toJSON = Boolean.prototype.toJSON = function (e) { return this.valueOf(); });
553
+ var r, o, n, i = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, d = { "\b": "\\b", "\t": "\\t", "\n": "\\n", "\f": "\\f", "\r": "\\r", '"': '\\"', "\\": "\\\\" };
554
+ "function" != typeof DayPilot.JSON.stringify && (DayPilot.JSON.stringify = function (e, t, i) {
555
+ var d;
556
+ if (r = "", o = "", "number" == typeof i)
557
+ for (d = 0; d < i; d += 1)
558
+ o += " ";
559
+ else
560
+ "string" == typeof i && (o = i);
561
+ if (n = t, t && "function" != typeof t && ("object" != typeof t || "number" != typeof t.length))
562
+ throw new Error("JSON.stringify");
563
+ return a("", { "": e });
564
+ });
565
+ }();
566
+ if ("undefined" == typeof DayPilot)
567
+ var DayPilot = {};
568
+ "undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () {
569
+ var e = function () { };
570
+ if ("undefined" == typeof DayPilot.Calendar || !DayPilot.Calendar.events) {
571
+ var t = {};
572
+ t.selectedCells = [], t.topSelectedCell = null, t.bottomSelectedCell = null, t.selecting = !1, t.column = null, t.firstSelected = null, t.firstMousePos = null, t.originalMouse = null, t.originalHeight = null, t.originalTop = null, t.resizing = null, t.globalHandlers = !1, t.moving = null, t.register = function (e) {
573
+ t.registered || (t.registered = []);
574
+ for (var i = t.registered, n = 0; n < i.length; n++)
575
+ if (i[n] === e)
576
+ return;
577
+ i.push(e);
578
+ }, t.unregister = function (e) {
579
+ var i = t.registered;
580
+ if (i) {
581
+ var n = DayPilot.indexOf(i, e);
582
+ n !== -1 && i.splice(n, 1);
583
+ }
584
+ }, t.getCellsAbove = function (e) {
585
+ for (var i = [], n = t.getColumn(e), s = e.parentNode, l = null; s && l !== t.firstSelected;)
586
+ for (l = s.getElementsByTagName("td")[n], i.push(l), s = s.previousSibling; s && "TR" !== s.tagName;)
587
+ s = s.previousSibling;
588
+ return i;
589
+ }, t.getCellsBelow = function (e) {
590
+ for (var i = [], n = t.getColumn(e), s = e.parentNode, l = null; s && l !== t.firstSelected;)
591
+ for (l = s.getElementsByTagName("td")[n], i.push(l), s = s.nextSibling; s && "TR" !== s.tagName;)
592
+ s = s.nextSibling;
593
+ return i;
594
+ }, t.getColumn = function (e) {
595
+ for (var t = 0; e.previousSibling;)
596
+ e = e.previousSibling, "TD" === e.tagName && t++;
597
+ return t;
598
+ }, t.gUnload = function (e) {
599
+ if (t.registered)
600
+ for (var i = t.registered, n = 0; n < i.length; n++) {
601
+ var s = i[n];
602
+ s.dispose(), t.unregister(s);
603
+ }
604
+ }, t.gMouseUp = function (i) {
605
+ if (t.resizing) {
606
+ if (!t.resizingShadow)
607
+ return t.resizing.style.cursor = "default", document.body.style.cursor = "default", void (t.resizing = null);
608
+ var n = t.resizing.event, s = t.resizingShadow.clientHeight + 4, l = t.resizingShadow.offsetTop, a = t.resizing.dpBorder;
609
+ t.deleteShadow(t.resizingShadow), t.resizingShadow = null, t.resizing.style.cursor = "default", n.calendar.nav.top.style.cursor = "auto", t.resizing.onclick = null, t.resizing = null, n.calendar.a(n, s, l, a);
610
+ }
611
+ else if (t.moving) {
612
+ if (!t.movingShadow)
613
+ return t.moving = null, void (document.body.style.cursor = "default");
614
+ var l = t.movingShadow.offsetTop;
615
+ t.deleteShadow(t.movingShadow);
616
+ var n = t.moving.event, o = t.movingShadow.column;
617
+ t.moving = null, t.movingShadow = null, n.calendar.nav.top.style.cursor = "auto";
618
+ var r = i || window.event;
619
+ n.calendar.b(n, o, l, r);
620
+ }
621
+ else if (t.selecting && null !== t.topSelectedCell) {
622
+ var h = t.selecting.calendar;
623
+ t.selecting = !1;
624
+ var c = h.getSelection();
625
+ h.c(c.start, c.end), "Hold" !== h.timeRangeSelectedHandling && "HoldForever" !== h.timeRangeSelectedHandling && e();
626
+ }
627
+ else
628
+ t.selecting = !1;
629
+ }, t.deleteShadow = function (e) { e && e.parentNode && e.parentNode.removeChild(e); }, t.moveShadow = function (e) { var i = t.movingShadow, n = i.parentNode; n.style.display = "none", i.parentNode.removeChild(i), e.firstChild.appendChild(i), i.style.left = "0px", n.style.display = "", i.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px"; }, t.Calendar = function (e, i) {
630
+ var n = !1;
631
+ if (this instanceof t.Calendar && !this.d && (n = !0, this.d = !0), !n)
632
+ throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
633
+ var s = this;
634
+ this.uniqueID = null, this.v = "2021.4.338-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.f = !0, 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.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.g(); }, this.g = function () { DayPilot.de(s.elements.selection), s.elements.selection = [], s.nav.activeSelection = null; }, this.h = navigator && navigator.userAgent && navigator.userAgent.indexOf("MSIE") !== -1, this.i = navigator && navigator.userAgent && navigator.userAgent.indexOf("Firefox") !== -1, this.j = function () {
635
+ if (/Opera[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
636
+ return new Number(RegExp.$1) >= 10.5;
637
+ }
638
+ return !1;
639
+ }(), this.k = function () {
640
+ if (/AppleWebKit[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
641
+ return new Number(RegExp.$1) >= 522;
642
+ }
643
+ return !1;
644
+ }(), this.cleanSelection = this.clearSelection, this.l = function (e, t, i) { var n = {}; n.action = e, n.parameters = i, n.data = t, n.header = this.m(); var l = "JSON" + DayPilot.JSON.stringify(n); __doPostBack(s.uniqueID, l); }, this.n = function (e, t, i) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.callbackTimeout = window.setTimeout(function () { s.loadingStart(); }, 100); var n = {}; n.action = e, n.parameters = i, n.data = t, n.header = this.m(); var l = "JSON" + DayPilot.JSON.stringify(n); this.backendUrl ? DayPilot.request(this.backendUrl, this.o, l, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, l, this.p, this.clientName, this.onCallbackError, !0); }, this.onCallbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.dispose = function () { var e = s; e.q(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.r(), e.s(), e.nav.select = null, e.nav.cornerRight = null, e.nav.scrollable = null, e.nav.zoom = null, e.nav.loading = null, e.nav.header = null, e.nav.hourTable = null, e.nav.scrolltop = null, e.nav.scroll = null, e.nav.main = null, e.nav.message = null, e.nav.messageClose = null, e.nav.top = null, t.unregister(e); }, this.t = function () { this.nav.top.dispose = this.dispose; }, this.o = function (e) { s.p(e.responseText); }, this.m = function () { var e = {}; return e.control = "dpc", e.id = this.id, e.v = this.v, e.days = s.days, e.startDate = s.startDate, e.heightSpec = s.heightSpec, e.businessBeginsHour = s.businessBeginsHour, e.businessEndsHour = s.businessEndsHour, e.hashes = s.hashes, e.timeFormat = s.timeFormat, e.viewType = s.viewType, e.locale = s.locale, e; }, this.u = function (e, t) {
645
+ for (var i = e.parentNode; i && "TD" !== i.tagName;)
646
+ i = i.parentNode;
647
+ var n = document.createElement("div");
648
+ n.setAttribute("unselectable", "on"), n.style.position = "absolute", n.style.width = e.offsetWidth + "px", n.style.height = e.offsetHeight + "px", n.style.left = e.offsetLeft + "px", n.style.top = e.offsetTop + "px", n.style.boxSizing = "border-box", n.style.zIndex = 101, n.className = s.w("_shadow");
649
+ var l = document.createElement("div");
650
+ return l.className = s.w("_shadow_inner"), n.appendChild(l), i.firstChild.appendChild(n), n;
651
+ }, this.z = {}, this.z.locale = function () { var e = DayPilot.Locale.find(s.locale); return e ? e : DayPilot.Locale.US; }, this.z.timeFormat = function () { return "Auto" !== s.timeFormat ? s.timeFormat : this.locale().timeFormat; };
652
+ var l = this.z;
653
+ this.p = function (e, t) {
654
+ if (e && 0 === e.indexOf("$$$")) {
655
+ if (!window.console)
656
+ throw "Error received from the server side: " + e;
657
+ return void console.log("Error received from the server side: " + e);
658
+ }
659
+ var e = JSON.parse(e);
660
+ if (e.CallBackRedirect)
661
+ return void (document.location.href = e.CallBackRedirect);
662
+ if ("None" === e.UpdateType)
663
+ return s.loadingStop(), void s.A();
664
+ if (s.q(), "Full" === e.UpdateType && (s.columns = e.Columns, s.days = e.Days, s.startDate = new DayPilot.Date(e.StartDate), s.heightSpec = e.HeightSpec ? e.HeightSpec : s.heightSpec, s.businessBeginsHour = e.BusinessBeginsHour ? e.BusinessBeginsHour : s.businessBeginsHour, s.businessEndsHour = e.BusinessEndsHour ? e.BusinessEndsHour : s.businessEndsHour, s.headerDateFormat = e.HeaderDateFormat ? e.HeaderDateFormat : s.headerDateFormat, s.viewType = e.ViewType, s.backColor = e.BackColor ? e.BackColor : s.backColor, s.eventHeaderVisible = e.EventHeaderVisible ? e.EventHeaderVisible : s.eventHeaderVisible, s.timeFormat = e.TimeFormat ? e.TimeFormat : s.timeFormat, s.locale = e.Locale ? e.Locale : s.locale, s.B()), e.Hashes)
665
+ for (var i in e.Hashes)
666
+ s.hashes[i] = e.Hashes[i];
667
+ s.events.list = e.Events, s.C(), s.D(), "Full" === e.UpdateType && (s.E(), s.F(), s.G(), s.H()), s.A(), s.I(), s.clearSelection(), s.afterRender(e.CallBackData, !0), s.loadingStop();
668
+ }, this.J = function () { return 24; }, this.K = function () { return this.businessBeginsHour > this.businessEndsHour ? 24 - this.businessBeginsHour + this.businessEndsHour : this.businessEndsHour - this.businessBeginsHour; }, this.L = function () { return 48; }, this.M = function () { return 2 === s.api; }, this.eventClickCallBack = function (e, t) { this.n("EventClick", t, e); }, this.eventClickPostBack = function (e, t) { this.l("EventClick", t, e); }, this.N = function (e) {
669
+ var t = this, i = t.event;
670
+ if (s.M()) {
671
+ var n = {};
672
+ if (n.e = i, n.originalEvent = e, n.meta = e.metaKey, n.ctrl = e.ctrlKey, n.control = s, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onEventClick && (s.O.apply(function () { s.onEventClick(n); }), n.preventDefault.value))
673
+ return;
674
+ switch (s.eventClickHandling) {
675
+ case "CallBack":
676
+ s.eventClickCallBack(i);
677
+ break;
678
+ case "PostBack": s.eventClickPostBack(i);
679
+ }
680
+ "function" == typeof s.onEventClicked && s.O.apply(function () { s.onEventClicked(n); });
681
+ }
682
+ else
683
+ switch (s.eventClickHandling) {
684
+ case "PostBack":
685
+ s.eventClickPostBack(i);
686
+ break;
687
+ case "CallBack":
688
+ s.eventClickCallBack(i);
689
+ break;
690
+ case "JavaScript": s.onEventClick(i);
691
+ }
692
+ }, this.eventDeleteCallBack = function (e, t) { this.n("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.l("EventDelete", t, e); }, this.P = function (e) {
693
+ if (s.M()) {
694
+ var t = {};
695
+ if (t.e = e, t.control = s, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onEventDelete && (s.O.apply(function () { s.onEventDelete(t); }), t.preventDefault.value))
696
+ return;
697
+ switch (s.eventDeleteHandling) {
698
+ case "CallBack":
699
+ s.eventDeleteCallBack(e);
700
+ break;
701
+ case "PostBack":
702
+ s.eventDeletePostBack(e);
703
+ break;
704
+ case "Update": s.events.remove(e);
705
+ }
706
+ "function" == typeof s.onEventDeleted && s.O.apply(function () { s.onEventDeleted(t); });
707
+ }
708
+ else
709
+ switch (s.eventDeleteHandling) {
710
+ case "PostBack":
711
+ s.eventDeletePostBack(e);
712
+ break;
713
+ case "CallBack":
714
+ s.eventDeleteCallBack(e);
715
+ break;
716
+ case "JavaScript": s.onEventDelete(e);
717
+ }
718
+ }, this.eventResizeCallBack = function (e, t, i, n) {
719
+ if (!t)
720
+ throw "newStart is null";
721
+ if (!i)
722
+ throw "newEnd is null";
723
+ var s = {};
724
+ s.e = e, s.newStart = t, s.newEnd = i, this.n("EventResize", n, s);
725
+ }, this.eventResizePostBack = function (e, t, i, n) {
726
+ if (!t)
727
+ throw "newStart is null";
728
+ if (!i)
729
+ throw "newEnd is null";
730
+ var s = {};
731
+ s.e = e, s.newStart = t, s.newEnd = i, this.l("EventResize", n, s);
732
+ }, this.a = function (e, t, i, n) {
733
+ var l = 1, a = new Date, o = new Date, r = e.start(), h = e.end();
734
+ if ("top" === n) {
735
+ var c = r.getDatePart(), d = Math.floor((i - l) / s.cellHeight), u = 30 * d, v = 60 * u * 1e3;
736
+ a = c.addTime(v), o = e.end();
737
+ }
738
+ else if ("bottom" === n) {
739
+ var c = h.getDatePart(), d = Math.floor((i + t - l) / s.cellHeight), u = 30 * d, v = 60 * u * 1e3;
740
+ a = r, o = c.addTime(v);
741
+ }
742
+ if (s.M()) {
743
+ var p = {};
744
+ if (p.e = e, p.control = s, p.newStart = a, p.newEnd = o, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onEventResize && (s.O.apply(function () { s.onEventResize(p); }), p.preventDefault.value))
745
+ return;
746
+ switch (s.eventResizeHandling) {
747
+ case "PostBack":
748
+ s.eventResizePostBack(e, a, o);
749
+ break;
750
+ case "CallBack":
751
+ s.eventResizeCallBack(e, a, o);
752
+ break;
753
+ case "Update": e.start(a), e.end(o), s.events.update(e);
754
+ }
755
+ "function" == typeof s.onEventResized && s.O.apply(function () { s.onEventResized(p); });
756
+ }
757
+ else
758
+ switch (s.eventResizeHandling) {
759
+ case "PostBack":
760
+ s.eventResizePostBack(e, a, o);
761
+ break;
762
+ case "CallBack":
763
+ s.eventResizeCallBack(e, a, o);
764
+ break;
765
+ case "JavaScript": s.onEventResize(e, a, o);
766
+ }
767
+ }, this.eventMovePostBack = function (e, t, i, n, s) {
768
+ if (!t)
769
+ throw "newStart is null";
770
+ if (!i)
771
+ throw "newEnd is null";
772
+ var l = {};
773
+ l.e = e, l.newStart = t, l.newEnd = i, this.l("EventMove", s, l);
774
+ }, this.eventMoveCallBack = function (e, t, i, n, s) {
775
+ if (!t)
776
+ throw "newStart is null";
777
+ if (!i)
778
+ throw "newEnd is null";
779
+ var l = {};
780
+ l.e = e, l.newStart = t, l.newEnd = i, this.n("EventMove", s, l);
781
+ }, this.b = function (e, t, i, n) {
782
+ var l = 1, a = Math.floor((i - l) / s.cellHeight), o = 30 * a * 60 * 1e3, r = e.start(), h = e.end(), c = new Date;
783
+ r instanceof DayPilot.Date && (r = r.toDate()), c.setTime(Date.UTC(r.getUTCFullYear(), r.getUTCMonth(), r.getUTCDate()));
784
+ var d = r.getTime() - (c.getTime() + 3600 * r.getUTCHours() * 1e3 + 30 * Math.floor(r.getUTCMinutes() / 30) * 60 * 1e3), u = h.getTime() - r.getTime(), v = this.columns[t], p = v.Start.getTime(), f = new Date;
785
+ f.setTime(p + o + d);
786
+ var g = new DayPilot.Date(f), m = g.addTime(u);
787
+ if (s.M()) {
788
+ var y = {};
789
+ if (y.e = e, y.newStart = g, y.newEnd = m, y.ctrl = n.ctrlKey, y.shift = n.shiftKey, y.control = s, y.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onEventMove && (s.O.apply(function () { s.onEventMove(y); }), y.preventDefault.value))
790
+ return;
791
+ switch (s.eventMoveHandling) {
792
+ case "PostBack":
793
+ s.eventMovePostBack(e, g, m, v.Value);
794
+ break;
795
+ case "CallBack":
796
+ s.eventMoveCallBack(e, g, m, v.Value);
797
+ break;
798
+ case "Update": e.start(g), e.end(m), s.events.update(e);
799
+ }
800
+ "function" == typeof s.onEventMoved && s.O.apply(function () { s.onEventMoved(y); });
801
+ }
802
+ else
803
+ switch (s.eventMoveHandling) {
804
+ case "PostBack":
805
+ s.eventMovePostBack(e, g, m, v.Value);
806
+ break;
807
+ case "CallBack":
808
+ s.eventMoveCallBack(e, g, m, v.Value);
809
+ break;
810
+ case "JavaScript": s.onEventMove(e, g, m, v.Value, !1);
811
+ }
812
+ }, this.timeRangeSelectedPostBack = function (e, t, i, n) { var s = {}; s.start = e, s.end = t, this.l("TimeRangeSelected", n, s); }, this.timeRangeSelectedCallBack = function (e, t, i, n) { var s = {}; s.start = e, s.end = t, this.n("TimeRangeSelected", n, s); }, this.c = function (e, t) {
813
+ if (e = new DayPilot.Date(e), t = new DayPilot.Date(t), this.M()) {
814
+ var i = {};
815
+ if (i.start = e, i.end = t, i.control = s, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onTimeRangeSelect && (s.O.apply(function () { s.onTimeRangeSelect(i); }), i.preventDefault.value))
816
+ return;
817
+ switch (s.timeRangeSelectedHandling) {
818
+ case "PostBack":
819
+ s.timeRangeSelectedPostBack(e, t);
820
+ break;
821
+ case "CallBack": s.timeRangeSelectedCallBack(e, t);
822
+ }
823
+ "function" == typeof s.onTimeRangeSelected && s.O.apply(function () { s.onTimeRangeSelected(i); });
824
+ }
825
+ else
826
+ switch (s.timeRangeSelectedHandling) {
827
+ case "PostBack":
828
+ s.timeRangeSelectedPostBack(e, t);
829
+ break;
830
+ case "CallBack":
831
+ s.timeRangeSelectedCallBack(e, t);
832
+ break;
833
+ case "JavaScript": s.onTimeRangeSelected(e, t);
834
+ }
835
+ }, this.Q = function (e) {
836
+ if (!t.selecting && "Disabled" !== s.timeRangeSelectedHandling) {
837
+ var i = window.event ? window.event.button : e.which;
838
+ if (1 === i || 0 === i)
839
+ return t.firstMousePos = DayPilot.mc(e || window.event), t.selecting = {}, t.selecting.calendar = s, t.selectedCells && (s.clearSelection(), t.selectedCells = []), t.column = t.getColumn(this), t.selectedCells.push(this), t.firstSelected = this, t.topSelectedCell = this, t.bottomSelectedCell = this, s.R(), !1;
840
+ }
841
+ }, this.R = function () {
842
+ this.getSelection();
843
+ !function () { return; }(), function () {
844
+ var e = t.topSelectedCell, i = t.bottomSelectedCell, n = function () {
845
+ if (e.data)
846
+ return e.data.x;
847
+ for (var t = e.parentNode.cells, i = 0; i < t.length; i++)
848
+ if (t[i] === e)
849
+ return i;
850
+ return -1;
851
+ }(), l = s.columns[n];
852
+ if (l) {
853
+ var a = l.Start, o = s.getPixels(e.start, a).boxTop, r = s.getPixels(i.end, a).boxBottom, h = r - o, c = function () {
854
+ if (s.nav.activeSelection)
855
+ return s.nav.activeSelection;
856
+ var e = document.createElement("div");
857
+ e.setAttribute("unselectable", "on"), e.style.position = "absolute", e.style.left = "0px", e.style.width = "100%";
858
+ var t = document.createElement("div");
859
+ return t.setAttribute("unselectable", "on"), t.className = s.w("_shadow_inner"), e.appendChild(t), s.nav.events.rows[0].cells[n].selection.appendChild(e), s.elements.selection.push(e), s.nav.activeSelection = e, e;
860
+ }();
861
+ c.className = s.w("_shadow"), c.firstChild.innerHTML = "", c.style.top = o + "px", c.style.height = h + "px";
862
+ }
863
+ }();
864
+ }, this.S = function (e) {
865
+ if ("undefined" != typeof t && t.selecting) {
866
+ var i = DayPilot.mc(e || window.event);
867
+ t.getColumn(this) === t.column && (s.clearSelection(), i.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(this), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(this), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), s.R());
868
+ }
869
+ }, this.getSelection = function () { var e = t.topSelectedCell.start, i = t.bottomSelectedCell.end; return new DayPilot.Selection(e, i, null, s); }, this.T = function (e) { }, this.U = function (e) {
870
+ if (e < 0)
871
+ return null;
872
+ for (var t = 0, i = s.nav.events.rows[0].cells, n = 0; n < i.length; n++) {
873
+ if (t += i[n].offsetWidth, e < t)
874
+ return n;
875
+ }
876
+ return null;
877
+ }, this.V = {}, this.V.getCellCoords = function () {
878
+ var e = {};
879
+ if (e.x = 0, e.y = 0, !s.coords)
880
+ return null;
881
+ e.x = s.U(s.coords.x);
882
+ var t = 0, i = Math.floor((s.coords.y - t) / s.cellHeight);
883
+ return e.y = i, e.x < 0 ? null : e;
884
+ }, this.B = function () {
885
+ this.columns = this.W();
886
+ for (var e = 0; e < this.columns.length; e++)
887
+ this.X(this.columns[e]);
888
+ }, this.X = function (e) {
889
+ e.Start = new DayPilot.Date(e.Start), e.putIntoBlock = function (e) {
890
+ for (var t = 0; t < this.blocks.length; t++) {
891
+ var i = this.blocks[t];
892
+ if (i.overlapsWith(e.part.top, e.part.height))
893
+ return i.events.push(e), i.min = Math.min(i.min, e.part.top), i.max = Math.max(i.max, e.part.top + e.part.height), t;
894
+ }
895
+ var i = [];
896
+ return i.lines = [], i.events = [], i.overlapsWith = function (e, t) { return !(e + t - 1 < this.min || e > this.max - 1); }, i.putIntoLine = function (e) {
897
+ for (var t = 0; t < this.lines.length; t++) {
898
+ var i = this.lines[t];
899
+ if (i.isFree(e.part.top, e.part.height))
900
+ return i.push(e), t;
901
+ }
902
+ var i = [];
903
+ return i.isFree = function (e, t) {
904
+ for (var i = e + t - 1, n = this.length, s = 0; s < n; s++) {
905
+ var l = this[s];
906
+ if (!(i < l.part.top || e > l.part.top + l.part.height - 1))
907
+ return !1;
908
+ }
909
+ return !0;
910
+ }, i.push(e), this.lines.push(i), this.lines.length - 1;
911
+ }, i.events.push(e), i.min = e.part.top, i.max = e.part.top + e.part.height, this.blocks.push(i), this.blocks.length - 1;
912
+ }, e.putIntoLine = function (e) {
913
+ for (var t = 0; t < this.lines.length; t++) {
914
+ var i = this.lines[t];
915
+ if (i.isFree(e.part.top, e.part.height))
916
+ return i.push(e), t;
917
+ }
918
+ var i = [];
919
+ return i.isFree = function (e, t) {
920
+ for (var i = e + t - 1, n = this.length, s = 0; s < n; s++) {
921
+ var l = this[s];
922
+ if (!(i < l.part.top || e > l.part.top + l.part.height - 1))
923
+ return !1;
924
+ }
925
+ return !0;
926
+ }, i.push(e), this.lines.push(i), this.lines.length - 1;
927
+ };
928
+ }, this.W = function () {
929
+ var e = [], t = this.startDate.getDatePart(), i = this.days;
930
+ switch (this.viewType) {
931
+ case "Day":
932
+ i = 1;
933
+ break;
934
+ case "Week":
935
+ i = 7, t = t.firstDayOfWeek(l.locale().weekStarts);
936
+ break;
937
+ case "WorkWeek": i = 5, t = t.firstDayOfWeek(1);
938
+ }
939
+ for (var n = 0; n < i; n++) {
940
+ var a = s.headerDateFormat ? s.headerDateFormat : l.locale().datePattern, o = {};
941
+ o.Start = t.addDays(n), o.Name = o.Start.toString(a, l.locale()), o.InnerHTML = o.Name, e.push(o);
942
+ }
943
+ return e;
944
+ }, this.visibleStart = function () { return this.columns[0].Start; }, this.visibleEnd = function () { var e = this.columns.length - 1; return this.columns[e].Start.addDays(1); }, this.w = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.q = function () {
945
+ if (this.elements.events)
946
+ for (var e = 0; e < this.elements.events.length; e++) {
947
+ var t = this.elements.events[e], i = t.event;
948
+ if (i && (i.calendar = null), t.onclick = null, t.onclickSave = null, t.onmouseover = null, t.onmouseout = null, t.onmousemove = null, t.onmousedown = null, t.firstChild && t.firstChild.firstChild && t.firstChild.firstChild.tagName && "IMG" === t.firstChild.firstChild.tagName.toUpperCase()) {
949
+ var n = t.firstChild.firstChild;
950
+ n.onmousedown = null, n.onmousemove = null, n.onclick = null;
951
+ }
952
+ t.helper = null, t.data = null, t.event = null, DayPilot.de(t);
953
+ }
954
+ this.elements.events = [];
955
+ }, this.Y = function (e) {
956
+ var i = e.cache || e.data, n = this.nav.events, l = document.createElement("div");
957
+ l.style.position = "absolute", l.style.left = e.part.left + "%", l.style.top = e.part.top + "px", l.style.width = e.part.width + "%", l.style.height = Math.max(e.part.height, 2) + "px", l.style.overflow = "hidden", l.data = e, l.event = e, l.unselectable = "on", l.style.MozUserSelect = "none", l.style.KhtmlUserSelect = "none", l.className = this.w("_event"), i.cssClass && DayPilot.Util.addClass(l, i.cssClass), l.isFirst = e.part.start.getTime() === e.start().getTime(), l.isLast = e.part.end.getTime() === e.end().getTime(), l.onclick = this.N, l.onmouseout = function (e) { l.deleteIcon && (l.deleteIcon.style.display = "none"); }, l.onmousemove = function (e) {
958
+ var i = s.eventHeaderVisible ? s.eventHeaderHeight : 10;
959
+ if ("undefined" != typeof t) {
960
+ var n = DayPilot.mo3(l, e);
961
+ if (n && !t.resizing && !t.moving) {
962
+ l.deleteIcon && (l.deleteIcon.style.display = "");
963
+ var a = this.isLast;
964
+ n.y <= i && "Disabled" !== s.eventResizeHandling ? (this.style.cursor = "n-resize", this.dpBorder = "top") : this.offsetHeight - n.y <= 5 && "Disabled" !== s.eventResizeHandling ? a ? (this.style.cursor = "s-resize", this.dpBorder = "bottom") : this.style.cursor = "not-allowed" : t.resizing || t.moving || ("Disabled" !== s.eventClickHandling ? this.style.cursor = "pointer" : this.style.cursor = "default");
965
+ }
966
+ }
967
+ }, l.onmousedown = function (e) {
968
+ e = e || window.event;
969
+ var i = e.which || e.button;
970
+ if ("n-resize" !== this.style.cursor && "s-resize" !== this.style.cursor || 1 !== i) {
971
+ if (1 === i && "Disabled" !== s.eventMoveHandling) {
972
+ t.moving = this, t.moving.event = this.event;
973
+ var n = t.moving.helper = {};
974
+ n.oldColumn = s.columns[this.data.part.dayIndex].Value, t.originalMouse = DayPilot.mc(e), t.originalTop = this.offsetTop;
975
+ var l = DayPilot.mo3(this, e);
976
+ l ? t.moveOffsetY = l.y : t.moveOffsetY = 0, s.nav.top.style.cursor = "move";
977
+ }
978
+ }
979
+ else
980
+ t.resizing = this, t.originalMouse = DayPilot.mc(e), t.originalHeight = this.offsetHeight, t.originalTop = this.offsetTop, s.nav.top.style.cursor = this.style.cursor;
981
+ return !1;
982
+ };
983
+ var a = document.createElement("div");
984
+ if (a.setAttribute("unselectable", "on"), a.className = s.w("_event_inner"), a.innerHTML = e.client.html(), i.borderColor && (a.style.borderColor = i.borderColor), i.backColor && (a.style.background = i.backColor, (DayPilot.browser.ie9 || DayPilot.browser.ielt9) && (a.style.filter = "")), i.fontColor && (a.style.color = i.fontColor), l.appendChild(a), e.client.barVisible()) {
985
+ var o = e.part.height - 2, r = 100 * e.part.barTop / o, h = Math.ceil(100 * e.part.barHeight / o), c = document.createElement("div");
986
+ c.setAttribute("unselectable", "on"), c.className = this.w("_event_bar"), c.style.position = "absolute", i.barBackColor && (c.style.backgroundColor = i.barBackColor);
987
+ var d = document.createElement("div");
988
+ d.setAttribute("unselectable", "on"), d.className = this.w("_event_bar_inner"), d.style.top = r + "%", 0 < h && h <= 1 ? d.style.height = "1px" : d.style.height = h + "%", i.barColor && (d.style.backgroundColor = i.barColor), c.appendChild(d), l.appendChild(c);
989
+ }
990
+ if ("Disabled" !== s.eventDeleteHandling) {
991
+ var u = document.createElement("div");
992
+ u.style.position = "absolute", u.style.right = "2px", u.style.top = "2px", u.style.width = "17px", u.style.height = "17px", u.className = s.w("_event_delete"), u.onclick = function (e) { var t = this.parentNode.event; t && s.P(t); }, u.style.display = "none", l.deleteIcon = u, l.appendChild(u);
993
+ }
994
+ if (n.rows[0].cells[e.part.dayIndex]) {
995
+ n.rows[0].cells[e.part.dayIndex].firstChild.appendChild(l), s.Z(l);
996
+ }
997
+ s.elements.events.push(l);
998
+ }, this.Z = function (e) {
999
+ for (var t = e && e.childNodes ? e.childNodes.length : 0, i = 0; i < t; i++)
1000
+ try {
1001
+ var n = e.childNodes[i];
1002
+ 1 === n.nodeType && (n.unselectable = "on", this.Z(n));
1003
+ }
1004
+ catch (e) { }
1005
+ }, this.I = function () {
1006
+ for (var e = 0; e < this.columns.length; e++) {
1007
+ var t = this.columns[e];
1008
+ if (t.blocks)
1009
+ for (var i = 0; i < t.blocks.length; i++)
1010
+ for (var n = t.blocks[i], s = 0; s < n.lines.length; s++)
1011
+ for (var l = n.lines[s], a = 0; a < l.length; a++) {
1012
+ var o = l[a];
1013
+ o.part.width = 100 / n.lines.length, o.part.left = o.part.width * s;
1014
+ var r = s === n.lines.length - 1;
1015
+ r || (o.part.width = 1.5 * o.part.width), this.Y(o);
1016
+ }
1017
+ }
1018
+ }, this.$ = function () { this.nav.top.innerHTML = "", this.f ? DayPilot.Util.addClass(this.nav.top, this.w("_main")) : (this.nav.top.style.lineHeight = "1.2", this.nav.top.style.textAlign = "left"), this.nav.top.style.MozUserSelect = "none", this.nav.top.style.KhtmlUserSelect = "none", this.nav.top.style.position = "relative", this.nav.top.style.width = this.width ? this.width : "100%", this.hideUntilInit && (this.nav.top.style.visibility = "hidden"), this.visible || (this.nav.top.style.display = "none"), this.nav.scroll = document.createElement("div"), this.nav.scroll.style.height = this._() + "px", "BusinessHours" === this.heightSpec ? this.nav.scroll.style.overflow = "auto" : this.nav.scroll.style.overflow = "hidden", this.nav.scroll.style.position = "relative", !this.f; var e = this.aa(); this.nav.top.appendChild(e), this.nav.scroll.style.zoom = 1; var t = this.ba(); this.nav.scrollable = t.firstChild, this.nav.scroll.appendChild(t), this.nav.top.appendChild(this.nav.scroll), this.nav.scrollLayer = document.createElement("div"), this.nav.scrollLayer.style.position = "absolute", this.nav.scrollLayer.style.top = "0px", this.nav.scrollLayer.style.left = "0px", this.nav.top.appendChild(this.nav.scrollLayer), this.nav.loading = document.createElement("div"), this.nav.loading.style.position = "absolute", this.nav.loading.style.top = "0px", this.nav.loading.style.left = this.hourWidth + 5 + "px", this.nav.loading.style.backgroundColor = this.loadingLabelBackColor, this.nav.loading.style.fontSize = this.loadingLabelFontSize, this.nav.loading.style.fontFamily = this.loadingLabelFontFamily, this.nav.loading.style.color = this.loadingLabelFontColor, this.nav.loading.style.padding = "2px", this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.display = "none", this.nav.top.appendChild(this.nav.loading); }, this.G = function () { this.fasterDispose || DayPilot.pu(this.nav.hourTable), this.nav.scrollable.rows[0].cells[0].innerHTML = "", this.nav.hourTable = this.ca(), this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable); }, this.ba = function () {
1019
+ var e = document.createElement("div");
1020
+ e.style.zoom = 1, e.style.position = "relative";
1021
+ var t = document.createElement("table");
1022
+ t.cellSpacing = "0", t.cellPadding = "0", t.border = "0", t.style.border = "0px none", t.style.width = "100%", t.style.position = "absolute";
1023
+ var i, n = t.insertRow(-1);
1024
+ if (i = n.insertCell(-1), i.valign = "top", i.style.padding = "0px", i.style.border = "0px none", this.nav.hourTable = this.ca(), i.appendChild(this.nav.hourTable), i = n.insertCell(-1), i.valign = "top", i.width = "100%", i.style.padding = "0px", i.style.border = "0px none", this.f) {
1025
+ var s = document.createElement("div");
1026
+ s.style.position = "relative", i.appendChild(s), s.appendChild(this.da()), s.appendChild(this.ea());
1027
+ }
1028
+ else
1029
+ i.appendChild(this.da());
1030
+ return e.appendChild(t), this.nav.zoom = e, e;
1031
+ }, this.da = function () { var e = document.createElement("table"); return e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.f || (e.style.borderLeft = "1px solid " + this.borderColor), this.nav.main = e, this.nav.events = e, e; }, this.ea = function () {
1032
+ var e = document.createElement("table");
1033
+ e.style.top = "0px", e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.position = "absolute", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.nav.events = e;
1034
+ for (var t = this.columns, i = t.length, n = e.insertRow(-1), l = 0; l < i; l++) {
1035
+ var a = n.insertCell(-1);
1036
+ a.style.padding = "0px", a.style.border = "0px none", a.style.height = "0px", a.style.overflow = "visible", s.rtl || (a.style.textAlign = "left");
1037
+ var o = document.createElement("div");
1038
+ o.style.marginRight = s.columnMarginRight + "px", o.style.position = "relative", o.style.height = "1px", this.f || (o.style.fontSize = "1px", o.style.lineHeight = "1.2"), o.style.marginTop = "-1px";
1039
+ var r = document.createElement("div");
1040
+ a.selection = r, a.appendChild(o), a.appendChild(r);
1041
+ }
1042
+ return e;
1043
+ }, this.ca = function () {
1044
+ var e = document.createElement("table");
1045
+ if (e.cellSpacing = "0", e.cellPadding = "0", e.border = "0", e.style.border = "0px none", e.style.width = this.hourWidth + "px", e.oncontextmenu = function () { return !1; }, this.f ? 0 : 1) {
1046
+ var t = e.insertRow(-1);
1047
+ t.style.height = "1px", t.style.backgroundColor = "white";
1048
+ var i = t.insertCell(-1);
1049
+ i.style.padding = "0px", i.style.border = "0px none";
1050
+ }
1051
+ for (var n = 24, s = 0; s < n; s++)
1052
+ this.fa(e, s);
1053
+ return e;
1054
+ }, this.fa = function (e, t) { var i = 2 * this.cellHeight, n = e.insertRow(-1); n.style.height = i + "px"; var s = n.insertCell(-1); s.valign = "bottom", s.unselectable = "on", !this.f, s.style.cursor = "default", s.style.padding = "0px", s.style.border = "0px none"; var a = document.createElement("div"); a.style.position = "relative", this.f && (a.className = this.w("_rowheader")), a.style.width = this.hourWidth + "px", a.style.height = i + "px", a.style.overflow = "hidden", a.unselectable = "on"; var o = document.createElement("div"); this.f && (o.className = this.w("_rowheader_inner")), o.unselectable = "on"; var r = document.createElement("div"); r.unselectable = "on"; var h = this.startDate.addHours(t), c = h.getHours(), d = c < 12, u = l.timeFormat(); "Clock12Hours" === u && (c %= 12, 0 === c && (c = 12)), r.innerHTML = c; var v = document.createElement("span"); v.unselectable = "on", this.f ? v.className = this.w("_rowheader_minutes") : (v.style.fontSize = "10px", v.style.verticalAlign = "super"); var p; p = "Clock12Hours" === u ? d ? "AM" : "PM" : "00", this.f ? v.innerHTML = p : v.innerHTML = "&nbsp;" + p, r.appendChild(v), o.appendChild(r), a.appendChild(o), s.appendChild(a); }, this._ = function () {
1055
+ switch (this.heightSpec) {
1056
+ case "Full": return 48 * this.cellHeight;
1057
+ case "BusinessHours":
1058
+ var e = this.K();
1059
+ return e * this.cellHeight * 2;
1060
+ case "BusinessHoursNoScroll":
1061
+ var e = this.K();
1062
+ return e * this.cellHeight * 2;
1063
+ default: throw "DayPilot.Calendar: Unexpected 'heightSpec' value.";
1064
+ }
1065
+ }, this.ga = function () {
1066
+ var e = s.nav.corner ? s.nav.corner.parentNode : null;
1067
+ if (e) {
1068
+ e.innerHTML = "";
1069
+ var t = this.ha();
1070
+ e.appendChild(t), s.nav.corner = t;
1071
+ }
1072
+ }, this.aa = function () {
1073
+ var e = document.createElement("div");
1074
+ this.f || (e.style.borderLeft = "1px solid " + this.borderColor, e.style.borderRight = "1px solid " + this.borderColor), e.style.overflow = "auto";
1075
+ var t = document.createElement("table");
1076
+ t.cellPadding = "0", t.cellSpacing = "0", t.border = "0", t.style.width = "100%", t.style.borderCollapse = "separate", t.style.border = "0px none";
1077
+ var i = t.insertRow(-1), n = i.insertCell(-1);
1078
+ n.style.padding = "0px", n.style.border = "0px none";
1079
+ var s = this.ha();
1080
+ n.appendChild(s), this.nav.corner = s, n = i.insertCell(-1), n.style.width = "100%", !this.f, n.valign = "top", n.style.position = "relative", n.style.padding = "0px", n.style.border = "0px none", this.nav.header = document.createElement("table"), this.nav.header.cellPadding = "0", this.nav.header.cellSpacing = "0", this.nav.header.border = "0", this.nav.header.width = "100%", this.nav.header.style.tableLayout = "fixed", this.f || (this.nav.header.style.borderBottom = "0px none #000000", this.nav.header.style.borderRight = "0px none #000000", this.nav.header.style.borderLeft = "1px solid " + this.borderColor, this.nav.header.style.borderTop = "1px solid " + this.borderColor), this.nav.header.oncontextmenu = function () { return !1; };
1081
+ var l = "hidden" !== this.nav.scroll.style.overflow;
1082
+ if (this.f || l && (this.nav.header.style.borderRight = "1px solid " + this.borderColor), n.appendChild(this.nav.header), l) {
1083
+ n = i.insertCell(-1), n.unselectable = "on", !this.f;
1084
+ var a = document.createElement("div");
1085
+ if (a.unselectable = "on", a.style.position = "relative", a.style.width = "16px", this.f) {
1086
+ a.style.height = this.headerHeight + "px", a.className = this.w("_cornerright");
1087
+ var o = document.createElement("div");
1088
+ o.className = this.w("_cornerright_inner"), a.appendChild(o);
1089
+ }
1090
+ else
1091
+ ;
1092
+ n.appendChild(a), this.nav.cornerRight = a;
1093
+ }
1094
+ return e.appendChild(t), e;
1095
+ }, this.ha = function () { var e = document.createElement("div"); e.style.position = "relative", this.f && (e.className = this.w("_corner")), e.style.width = this.hourWidth + "px", e.style.height = this.headerHeight + "px", e.oncontextmenu = function () { return !1; }; var t = document.createElement("div"); return t.unselectable = "on", this.f && (t.className = this.w("_corner_inner")), e.appendChild(t), e; }, this.r = function () {
1096
+ var e = this.nav.main;
1097
+ e.root = null, e.onmouseup = null;
1098
+ for (var t = 0; t < e.rows.length; t++)
1099
+ for (var i = e.rows[t], n = 0; n < i.cells.length; n++) {
1100
+ var s = i.cells[n];
1101
+ s.root = null, s.onmousedown = null, s.onmousemove = null, s.onmouseout = null, s.onmouseup = null;
1102
+ }
1103
+ this.fasterDispose || DayPilot.pu(e);
1104
+ }, this.F = function () {
1105
+ var e = this.nav.main, i = 18e5, n = this.L(), l = s.columns;
1106
+ for (e && this.r(); e && e.rows && e.rows.length > 0;)
1107
+ this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
1108
+ this.tableCreated = !0;
1109
+ var a = l.length;
1110
+ if (this.f) {
1111
+ for (var o = this.nav.events; o && o.rows && o.rows.length > 0;)
1112
+ this.fasterDispose || DayPilot.pu(o.rows[0]), o.deleteRow(0);
1113
+ for (var a = l.length, r = o.insertRow(-1), h = 0; h < a; h++) {
1114
+ var c = r.insertCell(-1);
1115
+ c.style.padding = "0px", c.style.border = "0px none", c.style.height = "0px", c.style.overflow = "visible", s.rtl || (c.style.textAlign = "left");
1116
+ var d = document.createElement("div");
1117
+ d.style.marginRight = s.columnMarginRight + "px", d.style.position = "relative", d.style.height = "1px", this.f || (d.style.fontSize = "1px", d.style.lineHeight = "1.2"), d.style.marginTop = "-1px";
1118
+ var u = document.createElement("div");
1119
+ u.style.position = "relative", c.selection = u, c.appendChild(d), c.appendChild(u);
1120
+ }
1121
+ }
1122
+ if (!this.f) {
1123
+ var r = e.insertRow(-1);
1124
+ r.style.backgroundColor = "white";
1125
+ for (var h = 0; h < a; h++) {
1126
+ var c = r.insertCell(-1);
1127
+ c.style.padding = "0px", c.style.border = "0px none", c.style.height = "1px", c.style.overflow = "visible", c.style.width = 100 / l.length + "%";
1128
+ var d = document.createElement("div");
1129
+ d.style.display = "block", d.style.marginRight = s.columnMarginRight + "px", d.style.position = "relative", d.style.height = "1px", d.style.fontSize = "1px", d.style.lineHeight = "1.2", d.style.marginTop = "-1px", c.appendChild(d);
1130
+ }
1131
+ }
1132
+ for (var v = 0; v < n; v++) {
1133
+ var r = (this.f ? 0 : 1, e.insertRow(-1));
1134
+ r.style.MozUserSelect = "none", r.style.KhtmlUserSelect = "none";
1135
+ for (var h = 0; h < a; h++) {
1136
+ var p = this.columns[h], c = r.insertCell(-1);
1137
+ if (c.start = p.Start.addTime(v * i), c.end = c.start.addTime(i),
1138
+ c.onmousedown = this.Q, c.onmouseup = function () { return !1; }, c.onclick = function () { return !1; }, c.root = this, c.style.padding = "0px", c.style.border = "0px none", c.style.verticalAlign = "top", !this.f, c.style.height = s.cellHeight + "px", c.style.overflow = "hidden", c.unselectable = "on", this.f) {
1139
+ var d = document.createElement("div");
1140
+ d.unselectable = "on", d.style.height = s.cellHeight + "px", d.style.position = "relative", d.className = this.w("_cell");
1141
+ this.ia(c.start, c.end) && this.f && DayPilot.Util.addClass(d, s.w("_cell_business"));
1142
+ var f = document.createElement("div");
1143
+ f.setAttribute("unselectable", "on"), f.className = this.w("_cell_inner"), d.appendChild(f), c.appendChild(d);
1144
+ }
1145
+ else
1146
+ ;
1147
+ c.appendChild(d);
1148
+ }
1149
+ }
1150
+ e.onmouseup = this.T, e.root = this, s.nav.scrollable.onmousemove = function (e) {
1151
+ e = e || window.event;
1152
+ var i = s.nav.scrollable;
1153
+ s.coords = DayPilot.mo3(i, e);
1154
+ var n = DayPilot.mc(e);
1155
+ if (t.resizing) {
1156
+ t.resizingShadow || (t.resizingShadow = s.u(t.resizing, !1, s.shadow));
1157
+ var l = s.cellHeight, a = 1, o = n.y - t.originalMouse.y;
1158
+ if ("bottom" === t.resizing.dpBorder) {
1159
+ var r = Math.floor((t.originalHeight + t.originalTop + o + l / 2) / l) * l - t.originalTop + a;
1160
+ r < l && (r = l);
1161
+ var h = s.nav.main.clientHeight;
1162
+ t.originalTop + r > h && (r = h - t.originalTop), t.resizingShadow.style.height = r + "px";
1163
+ }
1164
+ else if ("top" === t.resizing.dpBorder) {
1165
+ var c = Math.floor((t.originalTop + o - a + l / 2) / l) * l + a;
1166
+ c < a && (c = a), c > t.originalTop + t.originalHeight - l && (c = t.originalTop + t.originalHeight - l);
1167
+ var r = t.originalHeight - (c - t.originalTop);
1168
+ r < l ? r = l : t.resizingShadow.style.top = c + "px", t.resizingShadow.style.height = r + "px";
1169
+ }
1170
+ }
1171
+ else if (t.moving) {
1172
+ if (t.movingShadow || (t.movingShadow = s.u(t.moving, !s.h, s.shadow), t.movingShadow.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px"), !s.coords)
1173
+ return;
1174
+ var l = s.cellHeight, a = 1, d = t.moveOffsetY;
1175
+ d || (d = l / 2);
1176
+ var c = Math.floor((s.coords.y - d - a + l / 2) / l) * l + a;
1177
+ c < a && (c = a);
1178
+ var u = s.nav.events, h = s.nav.main.clientHeight, v = parseInt(t.movingShadow.style.height);
1179
+ c + v > h && (c = h - v), t.movingShadow.parentNode.style.display = "none", t.movingShadow.style.top = c + "px", t.movingShadow.parentNode.style.display = "";
1180
+ var p = u.clientWidth / u.rows[0].cells.length, f = Math.floor((s.coords.x - 45) / p);
1181
+ f < 0 && (f = 0), f < u.rows[0].cells.length && f >= 0 && t.movingShadow.column !== f && (t.movingShadow.column = f, t.moveShadow(u.rows[0].cells[f]));
1182
+ }
1183
+ else if (t.selecting) {
1184
+ var n = DayPilot.mc(e || window.event), g = s.V.getCellCoords(), m = t.column, y = s.nav.main.rows[g.y].cells[m];
1185
+ n.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(y), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(y), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), s.R();
1186
+ }
1187
+ }, s.nav.scrollable.style.display = "";
1188
+ }, this.ia = function (e, t) { return this.businessBeginsHour < this.businessEndsHour ? !(e.getHours() < this.businessBeginsHour || e.getHours() >= this.businessEndsHour || 6 === e.getDayOfWeek() || 0 === e.getDayOfWeek()) : e.getHours() >= this.businessBeginsHour || e.getHours() < this.businessEndsHour; }, this.s = function () {
1189
+ var e = this.nav.header;
1190
+ if (e && e.rows)
1191
+ for (var t = 0; t < e.rows.length; t++)
1192
+ for (var i = e.rows[t], n = 0; n < i.cells.length; n++) {
1193
+ var s = i.cells[n];
1194
+ s.onclick = null, s.onmousemove = null, s.onmouseout = null;
1195
+ }
1196
+ this.fasterDispose || DayPilot.pu(e);
1197
+ }, this.ja = function (e) {
1198
+ for (var t = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], i = this.columns, n = i.length, l = 0; l < n; l++) {
1199
+ var a = i[l], o = e ? t.insertCell(-1) : t.cells[l];
1200
+ o.data = a, o.style.overflow = "hidden", o.style.padding = "0px", o.style.border = "0px none", o.style.height = this.headerHeight + "px";
1201
+ var r = e ? document.createElement("div") : o.firstChild;
1202
+ if (e) {
1203
+ r.unselectable = "on", r.style.MozUserSelect = "none", r.style.backgroundColor = a.BackColor, r.style.cursor = "default", r.style.position = "relative", this.f && (r.className = s.w("_colheader")), r.style.height = this.headerHeight + "px";
1204
+ var h = document.createElement("div");
1205
+ this.f ? h.className = s.w("_colheader_inner") : (h.style.position = "absolute", h.style.left = "0px", h.style.width = "100%", h.style.padding = "2px", r.style.textAlign = "center"), h.unselectable = "on", r.appendChild(h), o.appendChild(r);
1206
+ }
1207
+ var h = r.firstChild;
1208
+ h.innerHTML = a.InnerHTML;
1209
+ }
1210
+ }, this.ka = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.E = function () {
1211
+ var e = this.nav.header, t = !0, i = this.columns;
1212
+ for (i.length; this.headerCreated && e && e.rows && e.rows.length > 0;)
1213
+ this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
1214
+ this.headerCreated = !0;
1215
+ this.ja(t);
1216
+ }, this.loadingStart = function () { this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = ""); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.n("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.la = function () { var e = this.nav.scroll; e.onscroll || (e.onscroll = function () { s.ma(); }); var t = "undefined" != typeof this.na.scrollpos ? this.na.scrollpos : this.initScrollPos; t && ("Auto" === t && (t = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), e.root = this, 0 === e.scrollTop && (e.scrollTop = t)); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.oa = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && e > 0 && (this.f ? t.style.width = e + "px" : t.style.width = e - 3 + "px"); }, this.pa = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp), DayPilot.re(window, "unload", t.gUnload)); }, this.events = {}, this.events.add = function (e) {
1217
+ var t = null;
1218
+ if (e instanceof DayPilot.Event)
1219
+ t = e.data;
1220
+ else {
1221
+ if ("object" != typeof e)
1222
+ throw "DayPilot.Calendar.events.add() expects an object or DayPilot.Event instance.";
1223
+ t = e;
1224
+ }
1225
+ s.events.list || (s.events.list = []), s.events.list.push(t), s.update(), s.O.notify();
1226
+ }, this.events.find = function (e) {
1227
+ for (var t = 0; t < s.events.list.length; t++) {
1228
+ var i = s.events.list[t];
1229
+ if (i.id === e)
1230
+ return new DayPilot.Event(i, s);
1231
+ }
1232
+ return null;
1233
+ }, this.events.update = function (e) {
1234
+ if (e instanceof DayPilot.Event)
1235
+ e.commit();
1236
+ else if ("object" == typeof e) {
1237
+ var t = s.events.find(e.id);
1238
+ if (t) {
1239
+ var i = DayPilot.indexOf(s.events.list, t.data);
1240
+ s.events.list.splice(i, 1, e);
1241
+ }
1242
+ }
1243
+ s.update(), s.O.notify();
1244
+ }, this.events.remove = function (e) {
1245
+ var t;
1246
+ if (e instanceof DayPilot.Event)
1247
+ t = e.data;
1248
+ else if ("object" == typeof e) {
1249
+ var i = s.events.find(e.id);
1250
+ i && (t = i.data);
1251
+ }
1252
+ else if ("string" == typeof e || "number" == typeof e) {
1253
+ var i = s.events.find(e);
1254
+ i && (t = i.data);
1255
+ }
1256
+ var n = DayPilot.indexOf(s.events.list, t);
1257
+ s.events.list.splice(n, 1), s.update(), s.O.notify();
1258
+ }, this.events.load = function (e, t, i) {
1259
+ var n = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, l = function (e) {
1260
+ var i, l = e.request;
1261
+ try {
1262
+ i = JSON.parse(l.responseText);
1263
+ }
1264
+ catch (e) {
1265
+ var a = {};
1266
+ return a.exception = e, void n(a);
1267
+ }
1268
+ if (DayPilot.isArray(i)) {
1269
+ var o = {};
1270
+ if (o.preventDefault = function () { this.preventDefault.value = !0; }, o.data = i, "function" == typeof t && t(o), o.preventDefault.value)
1271
+ return;
1272
+ s.events.list = i, s.qa && s.update();
1273
+ }
1274
+ };
1275
+ if (s.eventsLoadMethod && "POST" === s.eventsLoadMethod.toUpperCase())
1276
+ DayPilot.Http.ajax({ "method": "POST", "data": { "start": s.visibleStart().toString(), "end": s.visibleEnd().toString() }, "url": e, "success": l, "error": n });
1277
+ else {
1278
+ var a = e, o = "start=" + s.visibleStart().toString() + "&end=" + s.visibleEnd().toString();
1279
+ a += a.indexOf("?") > -1 ? "&" + o : "?" + o, DayPilot.Http.ajax({ "method": "GET", "url": a, "success": l, "error": n });
1280
+ }
1281
+ }, this.update = function (e) { s.ra(), s.sa(e), s.ta(), s.q(), s.nav.top.style.cursor = "auto"; s.B(), s.E(), s.F(), s.G(), s.H(), s.ga(), s.ua(), s.C(), s.D(), s.A(), s.I(), s.clearSelection(), this.visible ? this.show() : this.hide(); }, this.va = null, this.sa = function (e) {
1282
+ if (e) {
1283
+ var t = { "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? s.events.list = e.list : s.events.list = e); } } };
1284
+ this.va = t;
1285
+ for (var i in e)
1286
+ if (t[i]) {
1287
+ var n = t[i];
1288
+ n.data = e[i], n.preInit && n.preInit();
1289
+ }
1290
+ else
1291
+ s[i] = e[i];
1292
+ }
1293
+ }, this.wa = function () {
1294
+ var e = this.va;
1295
+ for (var t in e) {
1296
+ var i = e[t];
1297
+ i.postInit && i.postInit();
1298
+ }
1299
+ }, this.xa = function () {
1300
+ if (this.id && this.id.tagName)
1301
+ this.nav.top = this.id;
1302
+ else {
1303
+ if ("string" != typeof this.id)
1304
+ throw "DayPilot.Calendar() constructor requires the target element or its ID as a parameter";
1305
+ if (this.nav.top = document.getElementById(this.id), !this.nav.top)
1306
+ throw "DayPilot.Calendar: The placeholder element not found: '" + e + "'.";
1307
+ }
1308
+ }, this.ya = {}, this.ya.events = [], this.za = function (e) {
1309
+ var t = this.ya.events, i = this.events.list[e], n = {};
1310
+ for (var s in i)
1311
+ n[s] = i[s];
1312
+ if ("function" == typeof this.onBeforeEventRender) {
1313
+ var l = {};
1314
+ l.data = n, this.onBeforeEventRender(l);
1315
+ }
1316
+ t[e] = n;
1317
+ }, this.C = function () {
1318
+ var e = this.events.list;
1319
+ if (s.ya.events = [], e) {
1320
+ var t = e.length, i = 864e5;
1321
+ this.cache.pixels = {};
1322
+ var n = [];
1323
+ this.scrollLabels = [], this.minStart = 1e4, this.maxEnd = 0;
1324
+ for (var l = 0; l < t; l++) {
1325
+ var a = e[l];
1326
+ a.start = new DayPilot.Date(a.start), a.end = new DayPilot.Date(a.end);
1327
+ }
1328
+ if ("function" == typeof this.onBeforeEventRender)
1329
+ for (var l = 0; l < t; l++)
1330
+ this.za(l);
1331
+ for (var l = 0; l < this.columns.length; l++) {
1332
+ var o = {};
1333
+ o.minEnd = 1e6, o.maxStart = -1, this.scrollLabels.push(o);
1334
+ var r = this.columns[l];
1335
+ r.events = [], r.lines = [], r.blocks = [];
1336
+ for (var h = new DayPilot.Date(r.Start), c = h.getTime(), d = h.addTime(i), u = d.getTime(), v = 0; v < t; v++)
1337
+ if (!n[v]) {
1338
+ var a = e[v], p = a.start, f = a.end, g = p.getTime(), m = f.getTime();
1339
+ if (!(m < g)) {
1340
+ var y = !(m <= c || g >= u);
1341
+ if (y) {
1342
+ var b = new DayPilot.Event(a, s);
1343
+ b.part.dayIndex = l, b.part.start = c < g ? a.start : h, b.part.end = u > m ? a.end : d;
1344
+ var w = this.getPixels(b.part.start, r.Start), C = this.getPixels(b.part.end, r.Start), S = w.top, D = C.top;
1345
+ if (S === D && (w.cut || C.cut))
1346
+ continue;
1347
+ var x = C.boxBottom;
1348
+ b.part.top = Math.floor(S / this.cellHeight) * this.cellHeight + 1, b.part.height = Math.max(Math.ceil(x / this.cellHeight) * this.cellHeight - b.part.top, this.cellHeight - 1) + 1, b.part.barTop = Math.max(S - b.part.top - 1, 0), b.part.barHeight = Math.max(D - S - 2, 1);
1349
+ var p = b.part.top, f = b.part.top + b.part.height;
1350
+ p > o.maxStart && (o.maxStart = p), f < o.minEnd && (o.minEnd = f), p < this.minStart && (this.minStart = p), f > this.maxEnd && (this.maxEnd = f), r.events.push(b), "function" == typeof this.onBeforeEventRender && (b.cache = this.ya.events[v]), b.part.start.getTime() === g && b.part.end.getTime() === m && (n[v] = !0);
1351
+ }
1352
+ }
1353
+ }
1354
+ }
1355
+ for (var l = 0; l < this.columns.length; l++) {
1356
+ var r = this.columns[l];
1357
+ r.events.sort(this.Aa);
1358
+ for (var v = 0; v < r.events.length; v++) {
1359
+ var a = r.events[v];
1360
+ r.putIntoBlock(a);
1361
+ }
1362
+ for (var v = 0; v < r.blocks.length; v++) {
1363
+ var k = r.blocks[v];
1364
+ k.events.sort(this.Aa);
1365
+ for (var H = 0; H < k.events.length; H++) {
1366
+ var a = k.events[H];
1367
+ k.putIntoLine(a);
1368
+ }
1369
+ }
1370
+ }
1371
+ }
1372
+ }, this.Aa = function (e, t) {
1373
+ if (!(e && t && e.start && t.start))
1374
+ return 0;
1375
+ var i = e.start().getTime() - t.start().getTime();
1376
+ return 0 !== i ? i : t.end().getTime() - e.end().getTime();
1377
+ }, this.debug = function (e, t) { this.debuggingEnabled && (s.debugMessages || (s.debugMessages = []), s.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.getPixels = function (e, t) {
1378
+ t || (t = this.startDate);
1379
+ var i = t.getTime(), n = e.getTime(), s = this.cache.pixels[n + "_" + i];
1380
+ if (s)
1381
+ return s;
1382
+ i = t.getTime();
1383
+ var l = 18e5, a = n - i, o = a % l, r = a - o, h = r + l;
1384
+ 0 === o && (h = r);
1385
+ var c = {};
1386
+ return c.cut = !1, c.top = this.Ba(a), c.boxTop = this.Ba(r), c.boxBottom = this.Ba(h), this.cache.pixels[n + "_" + i] = c, c;
1387
+ }, this.Ba = function (e) { return Math.floor(this.cellHeight * e / 18e5); }, this.ta = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.D = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.H = function () { var e = this._(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.O = {}, this.O.scope = null, this.O.notify = function () { s.O.scope && s.O.scope["$apply"](); }, this.O.apply = function (e) { e(); }, this.ma = function () { var e = s.nav.scroll.scrollTop, t = e / (2 * s.cellHeight); s.na.scrollHour = t; }, this.ua = function () { var e = 0; s.na.scrollHour ? e = 2 * s.cellHeight * s.na.scrollHour : "Auto" === s.initScrollPos && (e = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), s.nav.scroll.scrollTop = e; }, this.Ca = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof s.events.list || !s.events.list); }, this.A = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { s.visible = !0, s.nav.top.style.display = ""; }, this.hide = function () { s.visible = !1, s.nav.top.style.display = "none"; }, this.Da = function () { this.ta(), this.B(), this.$(), this.E(), this.F(), this.oa(), this.la(), this.pa(), t.register(this), this.Ea(), this.n("Init"); }, this.na = {}, this.Fa = function () { this.na.themes = [], this.na.themes.push(this.theme || this.cssClassPrefix); }, this.Ga = function () {
1388
+ for (var e = this.na.themes, t = 0; t < e.length; t++) {
1389
+ var i = e[t];
1390
+ DayPilot.Util.removeClass(this.nav.top, i + "_main");
1391
+ }
1392
+ this.na.themes = [];
1393
+ }, this.Ha = function () {
1394
+ if (this.afterRender(null, !1), "function" == typeof this.onAfterRender) {
1395
+ var e = {};
1396
+ e.isCallBack = !1, this.onAfterRender(e);
1397
+ }
1398
+ }, this.Ia = function () {
1399
+ if ("function" == typeof this.onInit && !this.Ja) {
1400
+ this.Ja = !0;
1401
+ var e = {};
1402
+ this.onInit(e);
1403
+ }
1404
+ }, this.ra = function () { s.f || (s.f = !0, window.console && window.console.log && window.console.log("DayPilot: cssOnly = false mode is not supported anymore.")); }, this.Ka = function () { var e = s.nav.top; return e.offsetWidth > 0 && e.offsetHeight > 0; }, this.Ea = function () { var e = s.Ka; e() || (s.La = setInterval(function () { e() && (s.la(), s.oa(), clearInterval(s.La)); }, 100)); }, this.init = function () { this.xa(); var e = this.Ca(); return this.ra(), this.Fa(), e ? void this.Da() : (this.ta(), this.B(), this.C(), this.$(), this.E(), this.F(), this.A(), this.oa(), this.la(), this.pa(), t.register(this), this.events && (this.D(), this.I()), this.Ha(), this.Ia(), this.Ea(), this.qa = !0, this); }, this.Init = this.init, this.sa(i);
1405
+ }, 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) {
1406
+ e.fn.daypilotCalendar = function (e) {
1407
+ var t = null, i = this.each(function () {
1408
+ if (!this.daypilot) {
1409
+ var i = new DayPilot.Calendar(this.id);
1410
+ this.daypilot = i;
1411
+ for (name in e)
1412
+ i[name] = e[name];
1413
+ i.init(), t || (t = i);
1414
+ }
1415
+ });
1416
+ return 1 === this.length ? t : i;
1417
+ };
1418
+ }(jQuery), function () {
1419
+ var e = DayPilot.am();
1420
+ e && e.directive("daypilotCalendar", ["$parse", function (e) {
1421
+ return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, n) {
1422
+ var s = new DayPilot.Calendar(i[0]);
1423
+ s.O.scope = t, s.init();
1424
+ var l = n["id"];
1425
+ l && (t[l] = s);
1426
+ var a = n["publishAs"];
1427
+ if (a) {
1428
+ (0, e(a).assign)(t, s);
1429
+ }
1430
+ for (var o in n)
1431
+ 0 === o.indexOf("on") && !function (i) { s[i] = function (s) { var l = e(n[i]); t["$apply"](function () { l(t, { "args": s }); }); }; }(o);
1432
+ var r = t["$watch"], h = n["config"] || n["daypilotConfig"], c = n["events"] || n["daypilotEvents"];
1433
+ r.call(t, h, function (e) {
1434
+ for (var t in e)
1435
+ s[t] = e[t];
1436
+ s.update(), s.Ia();
1437
+ }, !0), r.call(t, c, function (e) { s.events.list = e, s.update(); }, !0);
1438
+ } };
1439
+ }]);
1440
+ }();
1441
+ }
1442
+ }();
1443
+ if ("undefined" == typeof DayPilot)
1444
+ var DayPilot = {};
1445
+ !function () {
1446
+ "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (t) {
1447
+ this.v = "2021.4.338-lite";
1448
+ var e = "navigator_" + (new Date).getTime(), i = this;
1449
+ this.prepare = function () {
1450
+ 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)
1451
+ for (var e in t)
1452
+ this[e] = t[e];
1453
+ this.init();
1454
+ }, 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 () {
1455
+ var t = this.e();
1456
+ if (!t)
1457
+ return this.date;
1458
+ var e = null;
1459
+ if (e = "INPUT" === t.tagName ? t.value : t.innerText, !e)
1460
+ return null;
1461
+ for (var a = DayPilot.Date.parse(e, i.pattern), n = 0; n < i.patterns.length; n++) {
1462
+ if (a)
1463
+ return a;
1464
+ a = DayPilot.Date.parse(e, i.patterns[n]);
1465
+ }
1466
+ return a;
1467
+ }, this.c = function (t) {
1468
+ var e = this.e();
1469
+ if (e) {
1470
+ var a = t.toString(i.pattern, i.locale);
1471
+ "INPUT" === e.tagName ? e.value = a : e.innerHTML = a;
1472
+ }
1473
+ }, 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.f = !0, 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();
1474
+ });
1475
+ }();
1476
+ "undefined" == typeof DayPilot && (DayPilot = {}), function (DayPilot) {
1477
+ "use strict";
1478
+ function e(t, i, a) {
1479
+ var n = i.indexOf(".");
1480
+ if (n === -1)
1481
+ return void ("__proto__" !== i && "constructor" !== i && (t[i] = a));
1482
+ var o = i.substring(0, n);
1483
+ if ("__proto__" !== o && "constructor" !== o) {
1484
+ var l = i.substring(n + 1), d = t[o];
1485
+ "object" == typeof d && null !== d || (t[o] = {}, d = t[o]), e(d, l, a);
1486
+ }
1487
+ }
1488
+ function t(e, i, a) {
1489
+ i = i || {}, a = a || "";
1490
+ for (var n in e) {
1491
+ var o = e[n];
1492
+ "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;
1493
+ }
1494
+ return i;
1495
+ }
1496
+ if (!DayPilot.ModalStatic) {
1497
+ DayPilot.ModalStatic = {}, DayPilot.ModalStatic.list = [], DayPilot.ModalStatic.hide = function () {
1498
+ if (this.list.length > 0) {
1499
+ var e = this.list.pop();
1500
+ e && e.hide();
1501
+ }
1502
+ }, DayPilot.ModalStatic.remove = function (e) {
1503
+ for (var t = DayPilot.ModalStatic.list, i = 0; i < t.length; i++)
1504
+ if (t[i] === e)
1505
+ return void t.splice(i, 1);
1506
+ }, 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) {
1507
+ for (var t = DayPilot.ModalStatic.list, i = 0; i < t.length; i++)
1508
+ if (t[i] === e)
1509
+ return !0;
1510
+ return !1;
1511
+ }, DayPilot.ModalStatic.stretch = function () {
1512
+ if (this.list.length > 0) {
1513
+ var e = this.list[this.list.length - 1];
1514
+ e && e.stretch();
1515
+ }
1516
+ }, DayPilot.ModalStatic.last = function () { var e = DayPilot.ModalStatic.list; return e.length > 0 ? e[e.length - 1] : null; };
1517
+ var i = function () {
1518
+ var e = document.createElement("style");
1519
+ e.setAttribute("type", "text/css"), e.styleSheet || e.appendChild(document.createTextNode("")), (document.head || document.getElementsByTagName("head")[0]).appendChild(e);
1520
+ var t = !!e.styleSheet, i = {};
1521
+ return i.rules = [], i.commit = function () {
1522
+ try {
1523
+ t && (e.styleSheet.cssText = this.rules.join("\n"));
1524
+ }
1525
+ catch (e) { }
1526
+ }, i.add = function (i, a, n) {
1527
+ if (t)
1528
+ return void this.rules.push(i + "{" + a + "}");
1529
+ if (e.sheet.insertRule)
1530
+ "undefined" == typeof n && (n = e.sheet.cssRules.length), e.sheet.insertRule(i + "{" + a + "}", n);
1531
+ else {
1532
+ if (!e.sheet.addRule)
1533
+ throw "No CSS registration method found";
1534
+ e.sheet.addRule(i, a, n);
1535
+ }
1536
+ }, i;
1537
+ }, a = new i;
1538
+ a.add(".modal_default_main", "border: 10px solid #ccc; max-width: 90%;"), a.add(".modal_default_main:focus", "outline: none;"), a.add(".modal_default_content", "padding: 10px 0px;"), a.add(".modal_default_inner", "padding: 20px;"), a.add(".modal_default_input", "padding: 10px 0px;"), a.add(".modal_default_buttons", "margin-top: 10px;"), a.add(".modal_default_buttons", "padding: 10px 0px;"), a.add(".modal_default_form_item", "padding: 10px 0px; position: relative;"), a.add(".modal_default_form_item_level1", "border-left: 2px solid #ccc; margin-left: 10px; padding-left: 20px;"), a.add(".modal_default_form_item.modal_default_form_title", "font-size: 1.5rem; font-weight: bold;"), a.add(".modal_default_form_item input[type=text]", "width: 100%; box-sizing: border-box;"), a.add(".modal_default_form_item textarea", "width: 100%; height: 200px; box-sizing: border-box;"), a.add(".modal_default_form_item input[type=select]", "width: 100%; box-sizing: border-box;"), a.add(".modal_default_form_item label", "display: block;"), a.add(".modal_default_form_item select", "width: 100%; box-sizing: border-box;"), a.add(".modal_default_form_item_label", "margin: 2px 0px;"), a.add(".modal_default_form_item_image img", "max-width: 100%; height: auto;"), a.add(".modal_default_form_item_invalid", ""), a.add(".modal_default_form_item_invalid_message", "position: absolute; right: 0px; top: 9px; background-color: red; color: #ffffff; padding: 2px; border-radius: 2px;"), a.add(".modal_default_background", "opacity: 0.5; background-color: #000;"), a.add(".modal_default_ok", "padding: 3px; width: 80px;"), a.add(".modal_default_cancel", "padding: 3px; width: 80px;"), a.add(".modal_default_form_item_date", "position: relative;"), a.add(".modal_default_form_item_date:after", "content: ''; position: absolute; right: 7px; top: 50%; margin-top: 3px; width: 10px; height: 15px; background-image:url(" + "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojY2NjY2NjO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjM4MDM3MzM2O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDE5MjgiCiAgICAgICB3aWR0aD0iOS45MTUzMDYxIgogICAgICAgaGVpZ2h0PSIxMS4zNjkzNyIKICAgICAgIHg9IjAuMTE3MTg3NSIKICAgICAgIHk9Ii0zLjAwOTk5NTciCiAgICAgICByeT0iMS4zMTE4NTA1IiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNjY2NjY2M7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNTk4MTQwMTI7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MTkzMCIKICAgICAgIHdpZHRoPSIxLjUzNDQxMzYiCiAgICAgICBoZWlnaHQ9IjIuMjE5ODI1IgogICAgICAgeD0iMi4xNTU4NDgzIgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHJ5PSIwLjY3MTc4OTE3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iMS41MjM5NTA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QxOTQ4IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjY3MTc4OTE3IgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHg9IjYuNDUyNzIzNSIKICAgICAgIGhlaWdodD0iMi4yMTk4MjUiCiAgICAgICB3aWR0aD0iMS41MzQ0MTM2IgogICAgICAgaWQ9InJlY3QyMDAzIgogICAgICAgc3R5bGU9ImZpbGw6I2NjY2NjYztmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS41OTgxNDAxMjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAwNSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIHk9Ii0xLjE2NTg0NjYiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iNi45OTI3MDA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDA3IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAxMyIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjEuNTIzOTUwNiIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHJ5PSIwLjI5NjAxNDciIC8+CiAgICA8cmVjdAogICAgICAgcnk9IjAuMjk2MDE0NyIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGlkPSJyZWN0MjAxNSIKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIgLz4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDIwMTciCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB4PSI2Ljk5MjcwMDYiCiAgICAgICB5PSIxLjgwMjkwMzQiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSI0LjczMjU5MDciCiAgICAgICB4PSIxLjU2MzAxMzEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBpZD0icmVjdDIwMTkiCiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiIC8+CiAgICA8cmVjdAogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgaWQ9InJlY3QyMDIxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgeD0iNC4yNTgzMjU2IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgcnk9IjAuMjk2MDE0NyIgLz4KICAgIDxyZWN0CiAgICAgICByeT0iMC4yOTYwMTQ3IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgeD0iNy4wMzE3NjMxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDIzIgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogIDwvZz4KPC9zdmc+Cg==" + ")"), navigator.userAgent.indexOf("Edge") !== -1 && a.add(".modal_default_form_item_date input::-ms-clear", "display: none;"), a.add(".modal_default_form_item_scrollable_scroll", "width: 100%; height: 200px; box-sizing: border-box; border: 1px solid #ccc; overflow-y: auto;"), a.add(".modal_default_form_item_scrollable_scroll_content", "padding: 5px;"), a.add(".modal_default_form_item_searchable", "position: relative;"), a.add(".modal_default_form_item_searchable_icon", ""), a.add(".modal_default_form_item_searchable_icon:after", "content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url(" + "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxwYXRoCiAgICAgICBpZD0icGF0aDMxNzMiCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojOTk5OTk5O3N0cm9rZS13aWR0aDoxLjg1MTk2ODUzO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZSIKICAgICAgIGQ9Ik0gMC45NTQxNDgzOCwwLjY4MTYwMzEgNS4wMzkwNjI1LDUuNDExNTM4NiA5LjEyMzk3NjYsMC42ODE2MDMxIgogICAgICAgIC8+CiAgPC9nPgo8L3N2Zz4K" + ");"), a.add(".modal_default_form_item_searchable_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), a.add(".modal_default_form_item_searchable_list_item", "background: white; padding: 2px; cursor: default;"), a.add(".modal_default_form_item_searchable_list_item_highlight", "background: #ccc;"), a.add(".modal_default_form_item_tabular_main", "margin-top: 10px;"), a.add(".modal_default_form_item_tabular_table", "display: table; width: 100%; xbackground-color: #fff; border-collapse: collapse;"), a.add(".modal_default_form_item_tabular_tbody", "display: table-row-group;"), a.add(".modal_default_form_item_tabular_row", "display: table-row;"), a.add(".modal_default_form_item_tabular_row.modal_default_form_item_tabular_header", ""), a.add(".modal_default_form_item_tabular_cell.modal_default_form_item_tabular_rowaction", "padding: 0px; width: 23px;"), a.add(".modal_default_form_item_tabular_cell", "display: table-cell; border: 0px; padding: 2px 2px 2px 0px; cursor: default; vertical-align: bottom;"), a.add(".modal_default_form_item_tabular_header .modal_default_form_item_tabular_cell", "padding-left: 0px; padding-bottom: 0px;"), a.add(".modal_default_form_item_tabular_table input[type=text], .modal_default_form_item_tabular_table input[type=number]", "width:100%; box-sizing: border-box;"), a.add(".modal_default_form_item_tabular_table select", "width:100%; height:100%; box-sizing: border-box;"), a.add(".modal_default_form_item_tabular_plus", "display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"), a.add(".modal_default_form_item_tabular_plus:after", "content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSA1LjAgMC41IEwgNS4wIDkuNSBNIDAuNSA1LjAgTCA5LjUgNS4wJyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"), a.add(".modal_default_form_item_tabular_delete", "display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"), a.add(".modal_default_form_item_tabular_delete:after", "content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgOS41IDkuNSBNIDAuNSA5LjUgTCA5LjUgMC41JyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"), a.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_plus", "display: none;"), a.add(".modal_default_form_item_tabular_plus_max.modal_default_form_item_tabular_plus", "display: none;"), a.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_delete", "visibility: hidden;"), a.add(".modal_default_form_item_tabular_empty", "height: 1px; margin: 5px 23px 5px 0px; background-color: #ccc;"), a.add(".modal_default_form_item_tabular_spacer .modal_default_form_item_tabular_cell", "padding: 0px;"), a.add(".modal_min_main", "border: 1px solid #ccc; max-width: 90%;"), a.add(".modal_min_background", "opacity: 0.5; background-color: #000;"), a.add(".modal_min_ok", "padding: 3px 10px;"), a.add(".modal_min_cancel", "padding: 3px 10px;"), a.add(".navigator_modal_main", "border-left: 1px solid #c0c0c0;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;background-color: white;color: #000000; box-sizing: content-box;"), a.add(".navigator_modal_main *, .navigator_modal_main *:before, .navigator_modal_main *:after", "box-sizing: content-box;"), a.add(".navigator_modal_month", "font-size: 11px;"), a.add(".navigator_modal_day", "color: black;"), a.add(".navigator_modal_weekend", "background-color: #f0f0f0;"), a.add(".navigator_modal_dayheader", "color: black;"), a.add(".navigator_modal_line", "border-bottom: 1px solid #c0c0c0;"), a.add(".navigator_modal_dayother", "color: gray;"), a.add(".navigator_modal_todaybox", "border: 1px solid red;"), a.add(".navigator_modal_title, .navigator_modal_titleleft, .navigator_modal_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), a.add(".navigator_modal_busy", "font-weight: bold;"), a.add(".navigator_modal_cell", "text-align: center;"), a.add(".navigator_modal_select .navigator_modal_cell_box", "background-color: #FFE794; opacity: 0.5;"), a.add(".navigator_modal_title", "text-align: center;"), a.add(".navigator_modal_titleleft, .navigator_modal_titleright", "text-align: center;"), a.add(".navigator_modal_dayheader", "text-align: center;"), a.add(".navigator_modal_weeknumber", "text-align: center;"), a.add(".navigator_modal_cell_text", "cursor: pointer;"), a.commit(), DayPilot.Modal = function (e) {
1539
+ 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;
1540
+ var t = this;
1541
+ this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.a = !1, this.b = null, this.c = null, this.showHtml = function (e) {
1542
+ if (DayPilot.ModalStatic.displayed(this))
1543
+ throw "This modal dialog is already displayed.";
1544
+ if (this.div || this.d(), this.e(), this.useIframe) {
1545
+ var t = function (e, t) { return function () { e.setInnerHTML(e.id + "iframe", t); }; };
1546
+ window.setTimeout(t(this, e), 0);
1547
+ }
1548
+ else
1549
+ e.nodeType ? this.div.appendChild(e) : this.div.innerHTML = e;
1550
+ this.e(), this.f(), this.g();
1551
+ }, this.showUrl = function (e) {
1552
+ if (DayPilot.ModalStatic.displayed(this))
1553
+ throw "This modal dialog is already displayed.";
1554
+ if (this.useIframe) {
1555
+ this.div || this.d();
1556
+ var i = this.loadingHtml;
1557
+ 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();
1558
+ }
1559
+ else
1560
+ 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"); } });
1561
+ }, this.g = function () {
1562
+ if ("function" == typeof t.onShow) {
1563
+ var e = {};
1564
+ e.root = t.j(), e.modal = t, t.onShow(e);
1565
+ }
1566
+ }, this.j = function () { return t.iframe ? t.iframe.contentWindow.document : t.div; }, this.i = function (e) {
1567
+ var t = new XMLHttpRequest;
1568
+ if (t) {
1569
+ var i = e.method || "GET", a = e.success || function () { }, n = e.error || function () { }, o = e.data, l = e.url;
1570
+ t.open(i, l, !0), t.setRequestHeader("Content-type", "text/plain"), t.onreadystatechange = function () {
1571
+ if (4 === t.readyState)
1572
+ if (200 === t.status || 304 === t.status) {
1573
+ var e = {};
1574
+ e.request = t, a(e);
1575
+ }
1576
+ else if (n) {
1577
+ var e = {};
1578
+ e.request = t, n(e);
1579
+ }
1580
+ else
1581
+ window.console && console.log("HTTP error " + t.status);
1582
+ }, 4 !== t.readyState && ("object" == typeof o && (o = JSON.stringify(o)), t.send(o));
1583
+ }
1584
+ }, 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 () {
1585
+ var e = function () { return t.k().y; }, i = function () { return t.k().x; };
1586
+ if (this.useIframe) {
1587
+ for (var a = i() - 40, n = this.width; n < a && this.m(); n += 10)
1588
+ this.div.style.width = n + "px", this.div.style.marginLeft = "-" + Math.floor(n / 2) + "px";
1589
+ for (var o = this.maxHeight || e() - 2 * this.top, l = this.height; l < o && this.n(); l += 10)
1590
+ this.iframe.style.height = l + "px", this.div.style.height = l + "px";
1591
+ this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.h);
1592
+ }
1593
+ else
1594
+ this.div.style.height = "";
1595
+ }, this.m = function () {
1596
+ 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++) {
1597
+ var o = a[n].offsetLeft + a[n].offsetWidth;
1598
+ i = Math.max(i, o);
1599
+ }
1600
+ return i > t.clientWidth;
1601
+ }, this.n = function () {
1602
+ 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++) {
1603
+ var o = a[n].offsetTop + a[n].offsetHeight;
1604
+ i = Math.max(i, o);
1605
+ }
1606
+ return i > t.clientHeight;
1607
+ }, this.k = function () {
1608
+ var e = document;
1609
+ if ("CSS1Compat" === e.compatMode && e.documentElement && e.documentElement.clientWidth) {
1610
+ var t = e.documentElement.clientWidth, i = e.documentElement.clientHeight;
1611
+ return { x: t, y: i };
1612
+ }
1613
+ var t = e.body.clientWidth, i = e.body.clientHeight;
1614
+ return { x: t, y: i };
1615
+ }, 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) {
1616
+ if (t.c) {
1617
+ var e = e || window.event, i = t.mc(e), a = i.x - t.c.x, n = i.y - t.c.y;
1618
+ t.div.style.marginLeft = "0px", t.div.style.top = t.b.y + n + "px", t.div.style.left = t.b.x + a + "px";
1619
+ }
1620
+ }, this.r = function (e) { t.c && (t.v(), t.div.style.cursor = null, t.c = null); }, this.u = function () {
1621
+ if (this.useIframe) {
1622
+ var e = document.createElement("div");
1623
+ 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;
1624
+ }
1625
+ }, this.v = function () { this.useIframe && (this.div.removeChild(this.mask), this.mask = null); }, this.o = function () { t.w(), t.l(); }, this.p = function () { t.w(); }, this.l = function () {
1626
+ if (!t.left && t.div) {
1627
+ var e = t.div.offsetWidth;
1628
+ t.div.style.marginLeft = "-" + Math.floor(e / 2) + "px";
1629
+ }
1630
+ }, this.w = function () {
1631
+ if (t.hideDiv && t.div && "none" !== t.hideDiv.style.display && "none" !== t.div.style.display) {
1632
+ var e = t.z.scrollY();
1633
+ t.scrollWithPage || (t.div.style.top = e + t.top + "px");
1634
+ }
1635
+ }, 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) {
1636
+ for (var t = { x: e.offsetLeft, y: e.offsetTop }; e.offsetParent;)
1637
+ e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop;
1638
+ return t;
1639
+ }, 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 () {
1640
+ for (var e = t.j(), i = e.querySelectorAll("input, textarea, select"), a = {}, n = 0; n < i.length; n++) {
1641
+ var o = i[n], l = o.name;
1642
+ if (l) {
1643
+ var d = o.value;
1644
+ a[l] = d;
1645
+ }
1646
+ }
1647
+ t.close(a);
1648
+ }, 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 () {
1649
+ if (e)
1650
+ for (var t in e)
1651
+ this[t] = e[t];
1652
+ }, this.C();
1653
+ }, 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) {
1654
+ "object" == typeof t && (i = t, t = ""), i = i || {}, i.height = i.height || 40, i.useIframe = !1;
1655
+ var a = i.okText || "OK", n = i.cancelText || "Cancel", o = t || "";
1656
+ return DayPilot.getPromise(function (t, l) {
1657
+ i.onClosed = function (e) { t(e); };
1658
+ var d = new DayPilot.Modal(i), r = document.createElement("div");
1659
+ r.className = d.theme + "_inner";
1660
+ var s = document.createElement("div");
1661
+ s.className = d.theme + "_content", s.innerHTML = e;
1662
+ var c = document.createElement("div");
1663
+ c.className = d.theme + "_input";
1664
+ var u = document.createElement("input");
1665
+ u.value = o, u.style.width = "100%", u.onkeydown = function (e) {
1666
+ var t = !1;
1667
+ switch (e.keyCode) {
1668
+ case 13:
1669
+ d.close(this.value);
1670
+ break;
1671
+ case 27:
1672
+ d.close();
1673
+ break;
1674
+ default: t = !0;
1675
+ }
1676
+ t || (e.preventDefault(), e.stopPropagation());
1677
+ }, c.appendChild(u);
1678
+ var m = document.createElement("div");
1679
+ m.className = d.theme + "_buttons";
1680
+ var h = document.createElement("button");
1681
+ h.innerText = a, h.className = d.theme + "_ok", h.onclick = function (e) { d.close(u.value); };
1682
+ var p = document.createTextNode(" "), f = document.createElement("button");
1683
+ 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();
1684
+ });
1685
+ };
1686
+ var n = function (e) { return "[object Array]" === Object.prototype.toString.call(e); };
1687
+ DayPilot.Modal.form = function (t, i, a) {
1688
+ if (1 === arguments.length) {
1689
+ var l = t;
1690
+ if (n(l))
1691
+ i = {};
1692
+ else {
1693
+ if ("object" != typeof l)
1694
+ throw "Invalid DayPilot.Modal.form() parameter";
1695
+ i = t, t = [];
1696
+ for (var d in i) {
1697
+ var r = {};
1698
+ r.name = d, r.id = d, t.push(r);
1699
+ }
1700
+ }
1701
+ }
1702
+ var s = {};
1703
+ for (var d in a)
1704
+ s[d] = a[d];
1705
+ s.height = s.height || 40, s.useIframe = !1;
1706
+ var c = s.okText || "OK", u = s.cancelText || "Cancel";
1707
+ return DayPilot.getPromise(function (a, n) {
1708
+ s.onClosed = function (t) {
1709
+ if (t.result) {
1710
+ var n = JSON.parse(JSON.stringify(i));
1711
+ for (var o in t.result)
1712
+ e(n, o, t.result[o]);
1713
+ t.result = n;
1714
+ }
1715
+ a(t);
1716
+ };
1717
+ var l = new DayPilot.Modal(s), d = document.createElement("div");
1718
+ d.className = l.theme + "_inner";
1719
+ var r = document.createElement("div");
1720
+ r.className = l.theme + "_input";
1721
+ var m = new o({ theme: l.theme, form: t, data: i, zIndex: l.zIndex, locale: l.locale, plugins: l.plugins, onKey: function (e) {
1722
+ switch (e.key) {
1723
+ case "Enter":
1724
+ m.validate() && l.close(m.serialize());
1725
+ break;
1726
+ case "Escape": l.close();
1727
+ }
1728
+ }, onChange: function (e) { "function" == typeof l.onChange && l.onChange(e); } }), h = m.create();
1729
+ r.append(h);
1730
+ var p = document.createElement("div");
1731
+ p.className = l.theme + "_buttons";
1732
+ var f = document.createElement("button");
1733
+ f.innerText = c, f.className = l.theme + "_ok", s.okDisabled && (f.disabled = !0), f.onclick = function (e) { m.validate() && l.close(m.serialize()); };
1734
+ var v = document.createTextNode(" "), g = document.createElement("button");
1735
+ 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) {
1736
+ switch (e.keyCode) {
1737
+ case 27:
1738
+ l.close();
1739
+ break;
1740
+ case 13: m.validate() && l.close(m.serialize());
1741
+ }
1742
+ }), l.focus) {
1743
+ var b = null;
1744
+ if ("object" == typeof l.focus) {
1745
+ var y = l.focus.id, I = l.focus.value;
1746
+ b = m.findViewById(y, I);
1747
+ }
1748
+ else
1749
+ "string" == typeof l.focus && (b = m.findViewById(l.focus));
1750
+ b && b.focus();
1751
+ }
1752
+ else {
1753
+ var _ = m.firstFocusable();
1754
+ l.autoFocus && _ ? _.focus() : l.div.focus();
1755
+ }
1756
+ });
1757
+ }, DayPilot.Modal.close = function (e) { var t = DayPilot.Modal.opener(); t && t.close(e); }, DayPilot.Modal.stretch = function (e) {
1758
+ var t = DayPilot.Modal.opener();
1759
+ if (!t)
1760
+ throw "Unable to find the opener DayPilot.Modal instance.";
1761
+ t.stretch();
1762
+ }, 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)); });
1763
+ var o = function (e) {
1764
+ 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 || {};
1765
+ for (var t in e)
1766
+ this[t] = e[t];
1767
+ };
1768
+ 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) {
1769
+ var t = this.theme, i = this, a = document.createElement("div");
1770
+ 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) {
1771
+ var n = document.createElement("div");
1772
+ n.className = t + "_form_item_label", n.innerText = e.text, a.appendChild(n);
1773
+ }
1774
+ var o = this.createInteractive(e);
1775
+ o.onInput = function (e) {
1776
+ if (e = e || {}, i.I(o, { "debounce": !e.immediate }), "function" == typeof i.onChange) {
1777
+ var t = {};
1778
+ t.result = i.serialize(), i.onChange(t);
1779
+ }
1780
+ }, 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);
1781
+ }, 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) {
1782
+ function i() {
1783
+ e.J && (e.J.remove(), e.J = null), e.H.classList.add(u);
1784
+ var t = document.createElement("div");
1785
+ t.classList.add(m), t.innerText = c.message, e.J = t, e.H.appendChild(t);
1786
+ }
1787
+ t = t || {};
1788
+ 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;
1789
+ if (s) {
1790
+ var c = {};
1791
+ c.valid = !0, c.value = e.save()[o.field], c.message = "Error", c.values = this.serialize(), c.result = this.serialize(), s(c);
1792
+ var u = this.theme + "_form_item_invalid", m = this.theme + "_form_item_invalid_message";
1793
+ if (c.valid)
1794
+ clearTimeout(this.F[o.field]), e.J && (e.J.remove(), e.J = null), e.H.classList.remove(u);
1795
+ else if (!n)
1796
+ if (a) {
1797
+ var h = 1e3;
1798
+ clearTimeout(this.F[o.field]), this.F[o.field] = setTimeout(function () { i(); }, h);
1799
+ }
1800
+ else
1801
+ i();
1802
+ l = c.valid;
1803
+ }
1804
+ return l;
1805
+ }, o.prototype.load = function () {
1806
+ var e = this;
1807
+ this.form.forEach(function (t) { e.processFormItem(t, 0); });
1808
+ var i;
1809
+ try {
1810
+ var a = JSON.stringify(this.data);
1811
+ i = t(JSON.parse(a));
1812
+ }
1813
+ catch (e) {
1814
+ throw new Error("The 'data' object is not serializable (it may contain circular dependencies): " + e);
1815
+ }
1816
+ for (var n in i)
1817
+ this.setValue(n, i[n]);
1818
+ }, 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) {
1819
+ var i = this, a = this.getFieldType(e), n = [];
1820
+ if ("radio" === a) {
1821
+ if (e.name) {
1822
+ var o = new l;
1823
+ 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);
1824
+ }
1825
+ 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); }); });
1826
+ }
1827
+ else if ("title" === a) {
1828
+ var o = new l;
1829
+ 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);
1830
+ }
1831
+ else if ("image" === a) {
1832
+ var o = new l;
1833
+ 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);
1834
+ }
1835
+ else if ("html" === a) {
1836
+ var o = new l;
1837
+ 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);
1838
+ }
1839
+ else if ("scrollable" === a) {
1840
+ var o = new l;
1841
+ 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);
1842
+ }
1843
+ else {
1844
+ var o = new l;
1845
+ 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);
1846
+ }
1847
+ 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;
1848
+ }, o.prototype.doOnKey = function (e) {
1849
+ if ("function" == typeof this.onKey) {
1850
+ var t = { key: e };
1851
+ this.onKey(t);
1852
+ }
1853
+ }, o.prototype.createInteractive = function (e) {
1854
+ 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 () {
1855
+ var i = new d;
1856
+ i.apply = function (e) { i.row = e; var t = i.element; t.value = e.value, t.disabled = !e.enabled; };
1857
+ var a = document.createElement("input");
1858
+ return a.name = e.field, a.type = "text", a.autocomplete = "off", a.onkeydown = function (e) {
1859
+ var i = !1;
1860
+ switch (e.keyCode) {
1861
+ case 13:
1862
+ t.doOnKey("Enter");
1863
+ break;
1864
+ case 27:
1865
+ t.doOnKey("Escape");
1866
+ break;
1867
+ default: i = !0;
1868
+ }
1869
+ i || (e.preventDefault(), e.stopPropagation());
1870
+ }, 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;
1871
+ }, "textarea": function () {
1872
+ var i = new d;
1873
+ i.apply = function (e) { i.row = e; var t = i.element; t.value = e.value, t.disabled = !e.enabled; };
1874
+ var a = document.createElement("textarea");
1875
+ return a.name = e.field, e.data.height && (a.style.height = e.data.height + "px"), a.onkeydown = function (e) {
1876
+ var i = !1;
1877
+ switch (e.keyCode) {
1878
+ case 13:
1879
+ (e.ctrlKey || e.metaKey) && t.doOnKey("Enter"), i = !1;
1880
+ break;
1881
+ case 27:
1882
+ t.doOnKey("Escape");
1883
+ break;
1884
+ default: i = !0;
1885
+ }
1886
+ i || e.stopPropagation();
1887
+ }, 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;
1888
+ }, "date": function () {
1889
+ var i = new d;
1890
+ 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; };
1891
+ var a = document.createElement("input");
1892
+ a.name = e.field;
1893
+ 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 }); } });
1894
+ return a.picker = n, a.className = t.theme + "_input_date", a.type = "text", a.onkeydown = function (e) {
1895
+ var i = !1;
1896
+ switch (e.keyCode) {
1897
+ case 13:
1898
+ n.visible ? n.close() : t.doOnKey("Enter");
1899
+ break;
1900
+ case 27:
1901
+ n.visible ? n.close() : t.doOnKey("Escape");
1902
+ break;
1903
+ case 9:
1904
+ n.close(), i = !0;
1905
+ break;
1906
+ default: i = !0;
1907
+ }
1908
+ i || (e.preventDefault(), e.stopPropagation());
1909
+ }, 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;
1910
+ }, "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 () {
1911
+ var i = new d;
1912
+ i.apply = function (e) { i.row = e; var t = i.radio; t.checked = e.checked, t.disabled = !e.enabled; };
1913
+ var a = document.createElement("label"), n = document.createElement("input");
1914
+ 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);
1915
+ var o = document.createTextNode(e.text);
1916
+ return a.append(o), i.element = a, i.radio = n, i.canFocus = function () { return !1; }, i.focus = function () { i.radio.focus(); }, i.save = function () {
1917
+ if (!n.checked)
1918
+ return {};
1919
+ var t = n.K, i = {};
1920
+ return i[e.field] = t, i;
1921
+ }, i;
1922
+ }, "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; } };
1923
+ return t.plugins && t.plugins[e.type] ? t.plugins[e.type](e) : i[e.type]();
1924
+ }, 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) {
1925
+ var i = this.E ? this.E : this.D, a = i.indexOf(e);
1926
+ return this.E = i.map(function (i) {
1927
+ if (i !== e)
1928
+ return i;
1929
+ if (e.propsEqual(t))
1930
+ return e;
1931
+ var a = e.clone();
1932
+ for (var n in t)
1933
+ a[n] = t[n];
1934
+ return a;
1935
+ }), this.E[a];
1936
+ }, o.prototype.updateInteractive = function (e) { var t = this.E.indexOf(e); this.G[t].apply(e); }, o.prototype.applyState = function () {
1937
+ var e = this;
1938
+ if (this.updateDependentState(), this.E) {
1939
+ this.E.filter(function (t, i) { return e.D[i] !== t; }).forEach(function (t) { e.updateInteractive(t); }), this.D = this.E, this.E = null;
1940
+ }
1941
+ }, 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 () {
1942
+ var e = {};
1943
+ return this.G.forEach(function (t) {
1944
+ var i = t.save();
1945
+ for (var a in i)
1946
+ e[a] = i[a];
1947
+ }), e;
1948
+ };
1949
+ 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; };
1950
+ l.prototype.clone = function () {
1951
+ var e = new l;
1952
+ for (var t in this)
1953
+ "id" !== t && (e[t] = this[t]);
1954
+ return e;
1955
+ }, l.prototype.propsEqual = function (e) {
1956
+ for (var t in e)
1957
+ if (this[t] !== e[t])
1958
+ return !1;
1959
+ return !0;
1960
+ }, 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)); };
1961
+ 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) {
1962
+ 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 || {};
1963
+ 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); } } };
1964
+ 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()); } });
1965
+ for (var a in e)
1966
+ i[a] || (this[a] = e[a]);
1967
+ for (var a in e)
1968
+ i[a] && i[a].post(e[a]);
1969
+ };
1970
+ 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 () {
1971
+ function e() {
1972
+ 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 = [];
1973
+ var e = null;
1974
+ r.data.forEach(function (i) {
1975
+ var n = i.name || i.id;
1976
+ if (n.toLowerCase().indexOf(p.value.toLowerCase()) !== -1) {
1977
+ var o = document.createElement("div");
1978
+ 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);
1979
+ }
1980
+ }), r.N || (r.N = e), t();
1981
+ }
1982
+ 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()); }
1983
+ function i(e, t) { var i = e.getBoundingClientRect(), a = t.getBoundingClientRect(); return i.top >= a.top && i.bottom <= a.bottom; }
1984
+ function a(e) { var t = e.item; r.M = t, r.U(!0), o(), l(); }
1985
+ function n() { r.T(); }
1986
+ function o() { r.V(); }
1987
+ function l() { r.O = !0, p.setAttribute("readonly", "readonly"), p.focus(); }
1988
+ function d() { r.O = !1, p.removeAttribute("readonly"), p.value = "", e(); }
1989
+ var r = this, s = this, c = document.createElement("div");
1990
+ c.className = this.theme + "_main", c.style.position = "relative";
1991
+ var u = document.createElement("div");
1992
+ 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()); });
1993
+ var m = document.createElement("div");
1994
+ m.className = this.theme + "_list", m.style.display = "none", m.style.position = "absolute", m.style.zIndex = this.listZIndex;
1995
+ var h = document.createElement("input");
1996
+ h.type = "hidden", h.name = this.name, h.searchable = s, this.S = h;
1997
+ var p = document.createElement("input");
1998
+ 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) {
1999
+ if (r.O) {
2000
+ if ("Enter" === e.key)
2001
+ return;
2002
+ if ("Esc" === e.key || "Escape" === e.key)
2003
+ return;
2004
+ d();
2005
+ }
2006
+ if ("ArrowDown" === e.key) {
2007
+ var i = s.R.indexOf(s.N);
2008
+ i + 1 < s.R.length && (s.N = s.R[i + 1]), t();
2009
+ }
2010
+ else if ("ArrowUp" === e.key) {
2011
+ var i = s.R.indexOf(s.N);
2012
+ i - 1 >= 0 && (s.N = s.R[i - 1]), t();
2013
+ }
2014
+ else
2015
+ "Enter" === e.key ? r.N ? (e.stopPropagation(), a(r.N)) : (e.stopPropagation(), n(), l()) : "Esc" !== e.key && "Escape" !== e.key || (e.stopPropagation(), n(), l());
2016
+ }), 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;
2017
+ }, 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) {
2018
+ 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) {
2019
+ var t = { control: this, ui: e };
2020
+ this.onSelect(t);
2021
+ }
2022
+ };
2023
+ var s = function (e) {
2024
+ 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 || {};
2025
+ for (var t in e)
2026
+ this[t] = e[t];
2027
+ };
2028
+ s.prototype.create = function () {
2029
+ var e = this, t = document.createElement("div");
2030
+ t.className = this.theme + "_main", t.style.position = "relative";
2031
+ var i = document.createElement("input");
2032
+ i.type = "hidden", i.name = e.name, i.table = this, t.appendChild(i);
2033
+ var a = document.createElement("div");
2034
+ a.className = this.theme + "_table";
2035
+ var n = this.X();
2036
+ a.appendChild(n);
2037
+ var o = e.Y({});
2038
+ o.spacer = !0;
2039
+ var l = this.Z(o);
2040
+ l.classList.add(e.theme + "_spacer"), a.appendChild(l);
2041
+ var d = document.createElement("div");
2042
+ d.className = e.theme + "_tbody", a.appendChild(d), t.appendChild(a);
2043
+ var r = document.createElement("div");
2044
+ t.appendChild(r), this.nav.body = d, this.nav.table = a, this.nav.main = t, this.nav.after = r;
2045
+ var s = document.createElement("div"), c = document.createElement("span");
2046
+ return c.className = this.theme + "_plus", c.addEventListener("click", function (t) {
2047
+ if (!e.disabled) {
2048
+ var i = e.item.onNewRow, a = {};
2049
+ if ("function" == typeof i) {
2050
+ var n = {};
2051
+ n.result = e.form.serialize(), n.value = {}, i(n), a = n.value;
2052
+ }
2053
+ var o = e.Y(a);
2054
+ e.D.push(o), e.$(), e._();
2055
+ }
2056
+ }), this.nav.plus = c, s.appendChild(c), t.appendChild(s), t;
2057
+ }, 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) {
2058
+ if ("[object Array]" !== Object.prototype.toString.call(e))
2059
+ throw new Error("Array expected");
2060
+ this.data = e, this.ba(), this.$();
2061
+ }, 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) {
2062
+ var t = this, i = {};
2063
+ return i.data = e, i.cells = [], t.item.columns.forEach(function (a) {
2064
+ var n = a.id, o = e[n], l = t.ea(a);
2065
+ if ("undefined" == typeof o)
2066
+ if ("text" === l)
2067
+ o = "";
2068
+ else if ("number" === l)
2069
+ o = 0;
2070
+ else if ("select" === l) {
2071
+ var d = a.options;
2072
+ o = d && d[0].id;
2073
+ }
2074
+ var r = {};
2075
+ r.id = n, r.value = o, r.type = l, r.data = a, i.cells.push(r);
2076
+ }), i;
2077
+ }, s.prototype.ea = function (e) { var t = e.type; return t || (t = e.options ? "select" : "text"), t; }, s.prototype.$ = function () {
2078
+ var e = this;
2079
+ 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) {
2080
+ var t = e.fa();
2081
+ e.nav.after.appendChild(t);
2082
+ }
2083
+ this.ca();
2084
+ }, s.prototype.fa = function () { var e = document.createElement("div"); return e.className = this.theme + "_empty", e; }, s.prototype.Z = function (e) {
2085
+ var t = this, i = document.createElement("div");
2086
+ i.className = t.theme + "_row", e.cells.forEach(function (a) {
2087
+ var n = document.createElement("div");
2088
+ n.className = t.theme + "_cell";
2089
+ var o = t.ga(a);
2090
+ if (e.spacer) {
2091
+ var l = document.createElement("div");
2092
+ l.style.height = "0px", l.style.overflow = "hidden", l.appendChild(o), n.appendChild(l);
2093
+ }
2094
+ else
2095
+ n.appendChild(o);
2096
+ i.appendChild(n);
2097
+ });
2098
+ var a = document.createElement("div");
2099
+ a.classList.add(t.theme + "_cell"), a.classList.add(t.theme + "_rowaction");
2100
+ var n = document.createElement("span");
2101
+ 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;
2102
+ }, s.prototype._ = function () {
2103
+ var e = this;
2104
+ if ("function" == typeof e.onInput) {
2105
+ var t = {};
2106
+ e.onInput(t);
2107
+ }
2108
+ }, s.prototype.ga = function (e) {
2109
+ var t = this, i = e.type;
2110
+ if ("text" === i || "number" === i) {
2111
+ var a = document.createElement("input");
2112
+ 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;
2113
+ }
2114
+ if ("select" === i) {
2115
+ var n = document.createElement("select");
2116
+ 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;
2117
+ }
2118
+ throw new Error("Unsupported item type: " + i);
2119
+ }, s.prototype.focus = function () { };
2120
+ }
2121
+ }(DayPilot);
2122
+ if ("undefined" == typeof DayPilot)
2123
+ var DayPilot = {};
2124
+ "undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () {
2125
+ if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
2126
+ var t = {};
2127
+ t.Month = function (e, i) {
2128
+ this.v = "2021.4.338-lite", this.nav = {};
2129
+ var n = this;
2130
+ this.id = e, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, this.cssClassPrefix = "month_default", this.eventHeight = 30, this.eventsLoadMethod = "GET", this.a = !0, 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.afterRender = function () { }, this.eventClickHandling = "Enabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.timeRangeSelectedHandling = "Enabled", this.onEventClick = null, this.onEventClicked = 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.b = 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.c(), n.d(), n.f(), "Full" === t.UpdateType && (n.g(), n.h()), n.i(), n.show(), n.j(), 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) { t.calendar = n, n.events.list || (n.events.list = []), n.events.list.push(t.data), n.update(), n.k.notify(); }, this.events.update = function (t) { t.commit(), n.update(), n.k.notify(); }, this.events.remove = function (t) { var e = DayPilot.indexOf(n.events.list, t.data); n.events.list.splice(e, 1), n.update(), n.k.notify(); }, this.events.load = function (t, e, i) {
2131
+ var s = function (t) { var e = {}; e.exception = t.exception, e.request = t.request, "function" == typeof i && i(e); }, a = function (t) {
2132
+ var i, a = t.request;
2133
+ try {
2134
+ i = JSON.parse(a.responseText);
2135
+ }
2136
+ catch (t) {
2137
+ var l = {};
2138
+ return l.exception = t, void s(l);
2139
+ }
2140
+ if (DayPilot.isArray(i)) {
2141
+ var o = {};
2142
+ if (o.preventDefault = function () { this.preventDefault.value = !0; }, o.data = i, "function" == typeof e && e(o), o.preventDefault.value)
2143
+ return;
2144
+ n.events.list = i, n.l && n.update();
2145
+ }
2146
+ };
2147
+ if (n.eventsLoadMethod && "POST" === n.eventsLoadMethod.toUpperCase())
2148
+ DayPilot.Http.ajax({ "method": "POST", "data": { "start": n.visibleStart().toString(), "end": n.visibleEnd().toString() }, "url": t, "success": a, "error": s });
2149
+ else {
2150
+ var l = t, o = "start=" + n.visibleStart().toString() + "&end=" + n.visibleEnd().toString();
2151
+ l += l.indexOf("?") > -1 ? "&" + o : "?" + o, DayPilot.Http.ajax({ "method": "GET", "url": l, "success": a, "error": s });
2152
+ }
2153
+ }, this.update = function (t) {
2154
+ if (this.cells) {
2155
+ this.m(), n.n(t), n.c(), n.d(), n.f(), n.g(), n.h(), n.i(), n.o(), n.j(), this.visible ? this.show() : this.hide();
2156
+ }
2157
+ }, this.p = null, this.n = function (t) {
2158
+ if (t) {
2159
+ var e = { "events": { "preInit": function () { var t = this.data; t && (DayPilot.isArray(t.list) ? n.events.list = t.list : n.events.list = t); } } };
2160
+ this.p = e;
2161
+ for (var i in t)
2162
+ if (e[i]) {
2163
+ var s = e[i];
2164
+ s.data = t[i], s.preInit && s.preInit();
2165
+ }
2166
+ else
2167
+ n[i] = t[i];
2168
+ }
2169
+ }, this.q = function () {
2170
+ var t = this.p;
2171
+ for (var e in t) {
2172
+ var i = t[e];
2173
+ i.postInit && i.postInit();
2174
+ }
2175
+ }, this.r = {}, this.r.events = [], this.s = function (t) {
2176
+ var e = this.r.events, i = this.events.list[t], n = {};
2177
+ for (var s in i)
2178
+ n[s] = i[s];
2179
+ if ("function" == typeof this.onBeforeEventRender) {
2180
+ var a = {};
2181
+ a.data = n, this.onBeforeEventRender(a);
2182
+ }
2183
+ e[t] = n;
2184
+ }, this.f = function () {
2185
+ var t = this.events.list;
2186
+ if (t) {
2187
+ if ("function" == typeof this.onBeforeEventRender)
2188
+ for (var e = 0; e < t.length; e++)
2189
+ this.s(e);
2190
+ for (var i = 0; i < t.length; i++) {
2191
+ var n = t[i];
2192
+ if (n.start = new DayPilot.Date(n.start), n.end = new DayPilot.Date(n.end), !(n.start.getTime() > n.end.getTime()))
2193
+ for (var e = 0; e < this.rows.length; e++) {
2194
+ var s = this.rows[e], a = new DayPilot.Event(n, this);
2195
+ s.belongsHere(a) && (s.events.push(a), "function" == typeof this.onBeforeEventRender && (a.cache = this.r.events[i]));
2196
+ }
2197
+ }
2198
+ for (var l = 0; l < this.rows.length; l++) {
2199
+ var s = this.rows[l];
2200
+ s.events.sort(this.t);
2201
+ for (var o = 0; o < this.rows[l].events.length; o++) {
2202
+ var r = s.events[o], h = s.getStartColumn(r), d = s.getWidth(r);
2203
+ s.putIntoLine(r, h, d, l);
2204
+ }
2205
+ }
2206
+ }
2207
+ }, this.c = function () {
2208
+ for (var t = 0; t < this.elements.events.length; t++) {
2209
+ var e = this.elements.events[t];
2210
+ e.event = null, e.click = null, e.parentNode.removeChild(e);
2211
+ }
2212
+ this.elements.events = [];
2213
+ }, this.j = function () { this.u(); }, this.u = function () {
2214
+ this.elements.events = [];
2215
+ for (var t = 0; t < this.rows.length; t++)
2216
+ for (var e = this.rows[t], i = 0; i < e.lines.length; i++)
2217
+ for (var n = e.lines[i], s = 0; s < n.length; s++)
2218
+ this.w(n[s]);
2219
+ }, this.t = function (t, e) {
2220
+ if (!(t && e && t.start && e.start))
2221
+ return 0;
2222
+ var i = t.start().getTime() - e.start().getTime();
2223
+ return 0 !== i ? i : e.end().getTime() - t.end().getTime();
2224
+ }, this.drawShadow = function (e, i, n, s, a, l) {
2225
+ a || (a = 0);
2226
+ var o = s;
2227
+ this.shadow = {}, this.shadow.list = [], this.shadow.start = { x: e, y: i }, this.shadow.width = s;
2228
+ var r = 7 * i + e - a;
2229
+ r < 0 && (o += r, e = 0, i = 0);
2230
+ for (var h = a; h >= 7;)
2231
+ i--, h -= 7;
2232
+ if (h > e) {
2233
+ h > e + (7 - this.getColCount()) ? (i--, e = e + 7 - h) : (o = o - h + e, e = 0);
2234
+ }
2235
+ else
2236
+ e -= h;
2237
+ i < 0 && (i = 0, e = 0);
2238
+ var d = null;
2239
+ for (t.resizingEvent ? d = "w-resize" : t.movingEvent && (d = "move"), this.nav.top.style.cursor = d; o > 0 && i < this.rows.length;) {
2240
+ var c = Math.min(this.getColCount() - e, o), v = this.rows[i], u = this.getRowTop(i), f = v.getHeight(), p = document.createElement("div");
2241
+ p.setAttribute("unselectable", "on"), p.style.position = "absolute", p.style.left = this.getCellWidth() * e + "%", p.style.width = this.getCellWidth() * c + "%", p.style.top = u + "px", p.style.height = f + "px", p.style.cursor = d;
2242
+ var g = document.createElement("div");
2243
+ g.setAttribute("unselectable", "on"), p.appendChild(g), g.style.position = "absolute", g.style.top = "0px", g.style.right = "0px", g.style.left = "0px", g.style.bottom = "0px", g.style.backgroundColor = "#aaaaaa", g.style.opacity = .5, g.style.filter = "alpha(opacity=50)", this.nav.top.appendChild(p), this.shadow.list.push(p), o -= c + 7 - this.getColCount(), e = 0, i++;
2244
+ }
2245
+ }, this.clearShadow = function () {
2246
+ if (this.shadow) {
2247
+ for (var t = 0; t < this.shadow.list.length; t++)
2248
+ this.nav.top.removeChild(this.shadow.list[t]);
2249
+ this.shadow = null, this.nav.top.style.cursor = "";
2250
+ }
2251
+ }, this.getEventTop = function (t, e) {
2252
+ for (var i = this.headerHeight, n = 0; n < t; n++)
2253
+ i += this.rows[n].getHeight();
2254
+ return i += this.cellHeaderHeight, i += e * this.lineHeight();
2255
+ }, this.getDateFromCell = function (t, e) { return this.firstDate.addDays(7 * e + t); }, this.w = function (e) {
2256
+ var i = e.cache || e.data, s = e.part.row, a = e.part.line, l = e.part.colStart, o = e.part.colWidth, r = this.getCellWidth() * l, h = this.getCellWidth() * o, d = this.getEventTop(s, a), c = document.createElement("div");
2257
+ c.setAttribute("unselectable", "on"), c.style.height = this.eventHeight + "px", c.className = this.z("_event"), i.cssClass && DayPilot.Util.addClass(c, i.cssClass), c.event = e, c.style.width = h + "%", c.style.position = "absolute", c.style.left = r + "%", c.style.top = d + "px", this.showToolTip && e.client.toolTip() && (c.title = e.client.toolTip()), c.onclick = n.A, c.onmousedown = function (i) {
2258
+ i = i || window.event;
2259
+ var r = i.which || i.button;
2260
+ if (i.cancelBubble = !0, i.stopPropagation && i.stopPropagation(), 1 === r)
2261
+ if (t.movingEvent = null, "w-resize" === this.style.cursor || "e-resize" === this.style.cursor) {
2262
+ var h = {};
2263
+ h.start = {}, h.start.x = l, h.start.y = s, h.event = c.event, h.width = DayPilot.DateUtil.daysSpan(h.event.start(), h.event.end()) + 1, h.direction = this.style.cursor, t.resizingEvent = h;
2264
+ }
2265
+ else if ("move" === this.style.cursor || "Disabled" !== n.eventMoveHandling) {
2266
+ n.clearShadow();
2267
+ var d = DayPilot.mo2(n.nav.top, i);
2268
+ if (!d)
2269
+ return;
2270
+ var v = n.getCellBelowPoint(d.x, d.y), u = DayPilot.DateUtil.daysDiff(e.start(), n.rows[s].start), f = 7 * v.y + v.x - (7 * s + l);
2271
+ u && (f += u);
2272
+ var p = {};
2273
+ p.start = {}, p.start.x = l, p.start.y = s, p.start.line = a, p.offset = n.eventMoveToPosition ? 0 : f, p.colWidth = o, p.event = c.event, p.coords = d, t.movingEvent = p;
2274
+ }
2275
+ }, c.onmousemove = function (i) {
2276
+ if ("undefined" != typeof t && !t.movingEvent && !t.resizingEvent) {
2277
+ var s = DayPilot.mo3(c, i);
2278
+ if (s) {
2279
+ var a = 6;
2280
+ s.x <= a && "Disabled" !== n.eventResizeHandling ? e.part.startsHere ? (c.style.cursor = "w-resize", c.dpBorder = "left") : c.style.cursor = "not-allowed" : c.clientWidth - s.x <= a && "Disabled" !== n.eventResizeHandling ? e.part.endsHere ? (c.style.cursor = "e-resize", c.dpBorder = "right") : c.style.cursor = "not-allowed" : c.style.cursor = "default";
2281
+ }
2282
+ }
2283
+ }, c.onmouseout = function (t) { c.style.cursor = ""; };
2284
+ var v = document.createElement("div");
2285
+ v.setAttribute("unselectable", "on"), v.className = this.z("_event_inner"), i.borderColor && (v.style.borderColor = i.borderColor), i.backColor && (v.style.background = i.backColor, (DayPilot.browser.ie9 || DayPilot.browser.ielt9) && (v.style.filter = "")), i.fontColor && (v.style.color = i.fontColor), v.innerHTML = e.client.html(), c.appendChild(v), this.elements.events.push(c), this.nav.events.appendChild(c);
2286
+ }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.d = function () {
2287
+ "string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart());
2288
+ var t, e = (this.startDate, this.lastVisibleDayOfMonth()), i = DayPilot.DateUtil.daysDiff(this.firstDate, e) + 1;
2289
+ t = Math.ceil(i / 7), this.days = 7 * t, this.rows = [];
2290
+ for (var s = 0; s < t; s++) {
2291
+ var a = {};
2292
+ a.start = this.firstDate.addDays(7 * s), a.end = a.start.addDays(this.getColCount()), a.events = [], a.lines = [], a.index = s, a.minHeight = this.cellHeight, a.calendar = this, a.belongsHere = function (t) { return t.end().getTime() === t.start().getTime() && t.start().getTime() === this.start.getTime() || !(t.end().getTime() <= this.start.getTime() || t.start().getTime() >= this.end.getTime()); }, a.getPartStart = function (t) { return DayPilot.DateUtil.max(this.start, t.start()); }, a.getPartEnd = function (t) { return DayPilot.DateUtil.min(this.end, t.end()); }, a.getStartColumn = function (t) { var e = this.getPartStart(t); return DayPilot.DateUtil.daysDiff(this.start, e); }, a.getWidth = function (t) { return DayPilot.DateUtil.daysSpan(this.getPartStart(t), this.getPartEnd(t)) + 1; }, a.putIntoLine = function (t, e, i, n) {
2293
+ for (var s = this, a = 0; a < this.lines.length; a++) {
2294
+ var l = this.lines[a];
2295
+ if (l.isFree(e, i))
2296
+ return l.addEvent(t, e, i, n, a), a;
2297
+ }
2298
+ var l = [];
2299
+ return l.isFree = function (t, e) {
2300
+ for (var i = !0, n = 0; n < this.length; n++)
2301
+ t + e - 1 < this[n].part.colStart || t > this[n].part.colStart + this[n].part.colWidth - 1 || (i = !1);
2302
+ return i;
2303
+ }, l.addEvent = function (t, e, i, n, a) { t.part.colStart = e, t.part.colWidth = i, t.part.row = n, t.part.line = a, t.part.startsHere = s.start.getTime() <= t.start().getTime(), t.part.endsHere = s.end.getTime() >= t.end().getTime(), this.push(t); }, l.addEvent(t, e, i, n, this.lines.length), this.lines.push(l), this.lines.length - 1;
2304
+ }, a.getStart = function () {
2305
+ for (var t = 0, e = 0; e < n.rows.length && e < this.index; e++)
2306
+ t += n.rows[e].getHeight();
2307
+ }, a.getHeight = function () { return Math.max(this.lines.length * n.lineHeight() + n.cellHeaderHeight, this.calendar.cellHeight); }, this.rows.push(a);
2308
+ }
2309
+ this.endDate = this.firstDate.addDays(7 * t);
2310
+ }, this.visibleStart = function () { return n.firstDate; }, this.visibleEnd = function () { return n.endDate; }, this.getHeight = function () {
2311
+ for (var t = this.headerHeight, e = 0; e < this.rows.length; e++)
2312
+ t += this.rows[e].getHeight();
2313
+ return t;
2314
+ }, this.getWidth = function (t, e) { return 7 * e.y + e.x - (7 * t.y + t.x) + 1; }, this.getMinCoords = function (t, e) { return 7 * t.y + t.x < 7 * e.y + e.x ? t : e; }, this.z = function (t) { var e = this.theme || this.cssClassPrefix; return e ? e + t : ""; }, this.B = function () {
2315
+ var e = this.nav.top;
2316
+ e.setAttribute("unselectable", "on"), e.style.MozUserSelect = "none", e.style.KhtmlUserSelect = "none", e.style.WebkitUserSelect = "none", e.style.position = "relative", this.width && (e.style.width = this.width), e.style.height = this.getHeight() + "px", e.onselectstart = function (t) { return !1; }, this.hideUntilInit && (e.style.visibility = "hidden"), this.visible || (e.style.display = "none"), e.className = this.z("_main");
2317
+ var i = document.createElement("div");
2318
+ this.nav.cells = i, i.style.position = "absolute", i.style.left = "0px", i.style.right = "0px", i.setAttribute("unselectable", "on"), e.appendChild(i);
2319
+ var s = document.createElement("div");
2320
+ this.nav.events = s, s.style.position = "absolute", s.style.left = "0px", s.style.right = "0px", s.setAttribute("unselectable", "on"), e.appendChild(s), e.onmousemove = function (e) {
2321
+ if (t.resizingEvent) {
2322
+ var i = DayPilot.mo2(n.nav.top, e);
2323
+ if (!i)
2324
+ return;
2325
+ var s = n.getCellBelowPoint(i.x, i.y);
2326
+ n.clearShadow();
2327
+ var a, l, o = t.resizingEvent;
2328
+ o.start;
2329
+ if ("w-resize" === o.direction) {
2330
+ l = s;
2331
+ var r = o.event.end();
2332
+ r.getDatePart() === r && (r = r.addDays(-1));
2333
+ var h = n.getCellFromDate(r);
2334
+ a = n.getWidth(s, h);
2335
+ }
2336
+ else
2337
+ l = n.getCellFromDate(o.event.start()), a = n.getWidth(l, s);
2338
+ a < 1 && (a = 1), n.drawShadow(l.x, l.y, 0, a);
2339
+ }
2340
+ else if (t.movingEvent) {
2341
+ var i = DayPilot.mo2(n.nav.top, e);
2342
+ if (!i)
2343
+ return;
2344
+ if (i.x === t.movingEvent.coords.x && i.y === t.movingEvent.coords.y)
2345
+ return;
2346
+ var s = n.getCellBelowPoint(i.x, i.y);
2347
+ n.clearShadow();
2348
+ var d = t.movingEvent.event, c = t.movingEvent.offset, a = n.cellMode ? 1 : DayPilot.DateUtil.daysSpan(d.start(), d.end()) + 1;
2349
+ a < 1 && (a = 1), n.drawShadow(s.x, s.y, 0, a, c, d);
2350
+ }
2351
+ else if (t.timeRangeSelecting) {
2352
+ var i = DayPilot.mo2(n.nav.top, e);
2353
+ if (!i)
2354
+ return;
2355
+ var s = n.getCellBelowPoint(i.x, i.y);
2356
+ n.clearShadow();
2357
+ var l = t.timeRangeSelecting, v = 7 * l.y + l.x, u = 7 * s.y + s.x, a = Math.abs(u - v) + 1;
2358
+ a < 1 && (a = 1);
2359
+ var f = v < u ? l : s;
2360
+ t.timeRangeSelecting.from = { x: f.x, y: f.y }, t.timeRangeSelecting.width = a, t.timeRangeSelecting.moved = !0, n.drawShadow(f.x, f.y, 0, a, 0, null);
2361
+ }
2362
+ };
2363
+ }, this.i = function () {
2364
+ this.nav.top.style.height = this.getHeight() + "px";
2365
+ for (var t = 0; t < this.cells.length; t++)
2366
+ for (var e = 0; e < this.cells[t].length; e++)
2367
+ this.cells[t][e].style.top = this.getRowTop(e) + "px", this.cells[t][e].style.height = this.rows[e].getHeight() + "px";
2368
+ }, this.getCellBelowPoint = function (t, e) {
2369
+ for (var i = Math.floor(this.nav.top.clientWidth / this.getColCount()), n = Math.min(Math.floor(t / i), this.getColCount() - 1), s = null, a = this.headerHeight, l = 0, o = 0; o < this.rows.length; o++) {
2370
+ var r = a;
2371
+ if (a += this.rows[o].getHeight(), e < a) {
2372
+ l = e - r, s = o;
2373
+ break;
2374
+ }
2375
+ }
2376
+ null === s && (s = this.rows.length - 1);
2377
+ var h = {};
2378
+ return h.x = n, h.y = s, h.relativeY = l, h;
2379
+ }, this.getCellFromDate = function (t) {
2380
+ for (var e = DayPilot.DateUtil.daysDiff(this.firstDate, t), i = { x: 0, y: 0 }; e >= 7;)
2381
+ i.y++, e -= 7;
2382
+ return i.x = e, i;
2383
+ }, this.h = function () {
2384
+ var t = document.createElement("div");
2385
+ t.oncontextmenu = function () { return !1; }, this.nav.cells.appendChild(t), this.cells = [];
2386
+ for (var e = 0; e < this.getColCount(); e++) {
2387
+ this.cells[e] = [];
2388
+ var i = document.createElement("div");
2389
+ i.setAttribute("unselectable", "on"), i.style.position = "absolute", i.style.left = this.getCellWidth() * e + "%", i.style.width = this.getCellWidth() + "%", i.style.top = "0px", i.style.height = this.headerHeight + "px";
2390
+ var n = e + this.getWeekStart();
2391
+ n > 6 && (n -= 7), this.a && (i.className = this.z("_header"));
2392
+ var a = document.createElement("div");
2393
+ a.setAttribute("unselectable", "on"), a.innerHTML = s.locale().dayNames[n], i.appendChild(a), a.style.position = "absolute", a.style.top = "0px", a.style.bottom = "0px", a.style.left = "0px", a.style.right = "0px", a.className = this.z("_header_inner"), a.innerHTML = s.locale().dayNames[n], t.appendChild(i);
2394
+ for (var l = 0; l < this.rows.length; l++)
2395
+ this.drawCell(e, l, t);
2396
+ }
2397
+ }, this.g = function () {
2398
+ for (var t = 0; t < this.cells.length; t++)
2399
+ for (var e = 0; e < this.cells[t].length; e++)
2400
+ this.cells[t][e].onclick = null;
2401
+ this.nav.cells.innerHTML = "";
2402
+ }, this.C = function () { return 2 === n.api; }, this.drawCell = function (e, i, a) {
2403
+ var l = this.rows[i], o = this.firstDate.addDays(7 * i + e), r = (this.cellProperties ? this.cellProperties[i * this.getColCount() + e] : null, document.createElement("div"));
2404
+ if (r.setAttribute("unselectable", "on"), r.style.position = "absolute", r.style.cursor = "default", r.style.left = this.getCellWidth() * e + "%", r.style.width = this.getCellWidth() + "%", r.style.top = this.getRowTop(i) + "px", r.style.height = l.getHeight() + "px", this.a && (r.className = this.z("_cell"), !this.isWeekend(o))) {
2405
+ var h = this.z("_cell_business");
2406
+ DayPilot.Util.addClass(r, h);
2407
+ }
2408
+ var d = (this.startDate.addMonths(-1).getMonth(), this.startDate.addMonths(1).getMonth(), this.startDate.getMonth(), document.createElement("div"));
2409
+ d.setAttribute("unselectable", "on"), r.appendChild(d), d.style.position = "absolute", d.style.left = "0px", d.style.right = "0px", d.style.top = "0px", d.style.bottom = "0px", d.className = this.z("_cell_inner"), r.onmousedown = function (s) { "Disabled" !== n.timeRangeSelectedHandling && (n.clearShadow(), t.timeRangeSelecting = { "root": n, "x": e, "y": i, "from": { x: e, y: i }, "width": 1 }); }, r.onclick = function () {
2410
+ var t = function (t) { var e = new DayPilot.Date(t), i = e.addDays(1); n.D(e, i); };
2411
+ if ("Disabled" !== n.timeRangeSelectedHandling)
2412
+ return void t(o);
2413
+ };
2414
+ var c = document.createElement("div");
2415
+ c.setAttribute("unselectable", "on"), c.style.height = this.cellHeaderHeight + "px", c.className = this.z("_cell_header");
2416
+ var v = o.getDay();
2417
+ 1 === v ? c.innerHTML = s.locale().monthNames[o.getMonth()] + " " + v : c.innerHTML = v, d.appendChild(c), this.cells[e][i] = r, a.appendChild(r);
2418
+ }, this.getWeekStart = function () { return s.locale().weekStarts; }, this.getColCount = function () { return 7; }, this.getCellWidth = function () { return 14.285; }, this.getRowTop = function (t) {
2419
+ for (var e = this.headerHeight, i = 0; i < t; i++)
2420
+ e += this.rows[i].getHeight();
2421
+ return e;
2422
+ }, this.E = function (t, e, i) { var n = {}; n.action = t, n.parameters = i, n.data = e, n.header = this.F(); var s = "JSON" + DayPilot.JSON.stringify(n); this.backendUrl && DayPilot.request(this.backendUrl, this.G, s, this.ajaxError); }, this.G = function (t) { n.b(t.responseText); }, this.F = function () { var t = {}; return t.control = "dpm", t.id = this.id, t.v = this.v, t.visibleStart = new DayPilot.Date(this.firstDate), t.visibleEnd = t.visibleStart.addDays(this.days), t.startDate = n.startDate, t.timeFormat = this.timeFormat, t.weekStarts = this.weekStarts, t; }, this.eventClickCallBack = function (t, e) { this.E("EventClick", e, t); }, this.A = function (e) { t.movingEvent = null, t.resizingEvent = null; var i = this, e = e || window.event; e.ctrlKey; e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(), n.eventClickSingle(i, e); }, this.eventClickSingle = function (t, e) {
2423
+ var i = t.event;
2424
+ if (i.client.clickEnabled())
2425
+ if (n.C()) {
2426
+ var s = {};
2427
+ if (s.e = i, s.control = n, s.div = t, s.originalEvent = e, s.meta = e.metaKey, s.ctrl = e.ctrlKey, s.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventClick && (n.k.apply(function () { n.onEventClick(s); }), s.preventDefault.value))
2428
+ return;
2429
+ switch (n.eventClickHandling) {
2430
+ case "CallBack": n.eventClickCallBack(i);
2431
+ }
2432
+ "function" == typeof n.onEventClicked && n.k.apply(function () { n.onEventClicked(s); });
2433
+ }
2434
+ else
2435
+ switch (n.eventClickHandling) {
2436
+ case "CallBack":
2437
+ n.eventClickCallBack(i);
2438
+ break;
2439
+ case "JavaScript": n.onEventClick(i);
2440
+ }
2441
+ }, this.eventMoveCallBack = function (t, e, i, n, s) {
2442
+ if (!e)
2443
+ throw "newStart is null";
2444
+ if (!i)
2445
+ throw "newEnd is null";
2446
+ var a = {};
2447
+ a.e = t, a.newStart = e, a.newEnd = i, a.position = s, this.E("EventMove", n, a);
2448
+ }, this.H = function (t, e, i, s, a, l) {
2449
+ var o = t.start().getTimePart(), r = t.end().getDatePart();
2450
+ r !== t.end() && (r = r.addDays(1));
2451
+ var h = DayPilot.DateUtil.diff(t.end(), r), d = this.getDateFromCell(e, i);
2452
+ d = d.addDays(-s);
2453
+ var c = DayPilot.DateUtil.daysSpan(t.start(), t.end()) + 1, v = d.addDays(c), u = d.addTime(o), f = v.addTime(h);
2454
+ if (n.C()) {
2455
+ var p = {};
2456
+ if (p.e = t, p.control = n, p.newStart = u, p.newEnd = f, p.ctrl = a.ctrlKey, p.shift = a.shiftKey, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventMove && (n.k.apply(function () { n.onEventMove(p); }), p.preventDefault.value))
2457
+ return;
2458
+ switch (n.eventMoveHandling) {
2459
+ case "CallBack":
2460
+ n.eventMoveCallBack(t, u, f);
2461
+ break;
2462
+ case "Update": t.start(u), t.end(f), n.events.update(t);
2463
+ }
2464
+ "function" == typeof n.onEventMoved && n.k.apply(function () { n.onEventMoved(p); });
2465
+ }
2466
+ else
2467
+ switch (n.eventMoveHandling) {
2468
+ case "CallBack":
2469
+ n.eventMoveCallBack(t, u, f);
2470
+ break;
2471
+ case "JavaScript": n.onEventMove(t, u, f);
2472
+ }
2473
+ }, this.eventResizeCallBack = function (t, e, i, n) {
2474
+ if (!e)
2475
+ throw "newStart is null";
2476
+ if (!i)
2477
+ throw "newEnd is null";
2478
+ var s = {};
2479
+ s.e = t, s.newStart = e, s.newEnd = i, this.E("EventResize", n, s);
2480
+ }, this.I = function (t, e, i) {
2481
+ var s = t.start().getTimePart(), a = t.end().getDatePart();
2482
+ a !== t.end() && (a = a.addDays(1));
2483
+ var l = DayPilot.DateUtil.diff(t.end(), a), o = this.getDateFromCell(e.x, e.y), r = o.addDays(i), h = o.addTime(s), d = r.addTime(l);
2484
+ if (n.C()) {
2485
+ var c = {};
2486
+ if (c.e = t, c.control = n, c.newStart = h, c.newEnd = d, c.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventResize && (n.k.apply(function () { n.onEventResize(c); }), c.preventDefault.value))
2487
+ return;
2488
+ switch (n.eventResizeHandling) {
2489
+ case "CallBack":
2490
+ n.eventResizeCallBack(t, h, d);
2491
+ break;
2492
+ case "Update": t.start(h), t.end(d), n.events.update(t);
2493
+ }
2494
+ "function" == typeof n.onEventResized && n.k.apply(function () { n.onEventResized(c); });
2495
+ }
2496
+ else
2497
+ switch (n.eventResizeHandling) {
2498
+ case "CallBack":
2499
+ n.eventResizeCallBack(t, h, d);
2500
+ break;
2501
+ case "JavaScript": n.onEventResize(t, h, d);
2502
+ }
2503
+ }, this.timeRangeSelectedCallBack = function (t, e, i) { var n = {}; n.start = t, n.end = e, this.E("TimeRangeSelected", i, n); }, this.D = function (t, e) {
2504
+ if (this.C()) {
2505
+ var i = {};
2506
+ if (i.control = n, i.start = t, i.end = e, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.k.apply(function () { n.onTimeRangeSelect(i); }), i.preventDefault.value))
2507
+ return;
2508
+ switch (n.timeRangeSelectedHandling) {
2509
+ case "CallBack": n.timeRangeSelectedCallBack(t, e);
2510
+ }
2511
+ "function" == typeof n.onTimeRangeSelected && n.k.apply(function () { n.onTimeRangeSelected(i); });
2512
+ }
2513
+ else
2514
+ switch (n.timeRangeSelectedHandling) {
2515
+ case "CallBack":
2516
+ n.timeRangeSelectedCallBack(t, e);
2517
+ break;
2518
+ case "JavaScript": n.onTimeRangeSelected(t, e);
2519
+ }
2520
+ }, this.k = {}, this.k.scope = null, this.k.notify = function () { n.k.scope && n.k.scope["$apply"](); }, this.k.apply = function (t) { t(); }, this.clearSelection = function () { n.clearShadow(); }, this.commandCallBack = function (t, e) { var i = {}; i.command = t, this.E("Command", e, i); }, this.isWeekend = function (t) { return t = new DayPilot.Date(t), 0 === t.dayOfWeek() || 6 === t.dayOfWeek(); }, this.J = {}, this.J.locale = function () { var t = DayPilot.Locale.find(n.locale); return t ? t : DayPilot.Locale.US; };
2521
+ var s = this.J;
2522
+ this.debug = function (t, e) { this.debuggingEnabled && (n.debugMessages || (n.debugMessages = []), n.debugMessages.push(t), "undefined" != typeof console && console.log(t)); }, this.dispose = function () { var t = n; t.nav.top && (t.c(), t.nav.top.removeAttribute("style"), t.nav.top.removeAttribute("class"), t.nav.top.innerHTML = "", t.nav.top.dp = null, t.nav.top.onmousemove = null, t.nav.top = null); }, this.K = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp)); }, this.loadFromServer = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof n.events.list || !n.events.list); }, this.o = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { n.visible = !0, n.nav.top.style.display = ""; }, this.hide = function () { n.visible = !1, n.nav.top.style.display = "none"; }, this.L = function () {
2523
+ if (this.id && this.id.tagName)
2524
+ this.nav.top = this.id;
2525
+ else {
2526
+ if ("string" != typeof this.id)
2527
+ throw "DayPilot.Month() constructor requires the target element or its ID as a parameter";
2528
+ if (this.nav.top = document.getElementById(this.id), !this.nav.top)
2529
+ throw "DayPilot.Month: The placeholder element not found: '" + id + "'.";
2530
+ }
2531
+ }, this.m = function () { n.a || (n.a = !0, window.console && window.console.log && window.console.log("DayPilot: cssOnly = false mode is not supported anymore.")); }, this.M = function () { this.d(), this.B(), this.h(), this.K(), this.E("Init"); }, this.init = function () { this.L(); var t = this.loadFromServer(); return this.m(), t ? void this.M() : (this.d(), this.f(), this.B(), this.h(), this.o(), this.j(), this.K(), this.messageHTML && this.message(this.messageHTML), void this.fireAfterRenderDetached(null, !1)); }, this.Init = this.init, this.n(i);
2532
+ }, t.gMouseUp = function (e) {
2533
+ if (t.movingEvent) {
2534
+ var i = t.movingEvent;
2535
+ if (!i.event)
2536
+ return;
2537
+ if (!i.event.calendar)
2538
+ return;
2539
+ if (!i.event.calendar.shadow)
2540
+ return;
2541
+ if (!i.event.calendar.shadow.start)
2542
+ return;
2543
+ var n = t.movingEvent.event.calendar, s = t.movingEvent.event, a = n.shadow.start, l = n.shadow.position, o = t.movingEvent.offset;
2544
+ n.clearShadow(), t.movingEvent = null;
2545
+ var e = e || window.event;
2546
+ return n.H(s, a.x, a.y, o, e, l), e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(), t.movingEvent = null, !1;
2547
+ }
2548
+ if (t.resizingEvent) {
2549
+ var i = t.resizingEvent;
2550
+ if (!i.event)
2551
+ return;
2552
+ if (!i.event.calendar)
2553
+ return;
2554
+ if (!i.event.calendar.shadow)
2555
+ return;
2556
+ if (!i.event.calendar.shadow.start)
2557
+ return;
2558
+ var n = t.resizingEvent.event.calendar, s = t.resizingEvent.event, a = n.shadow.start, r = n.shadow.width;
2559
+ return n.clearShadow(), t.resizingEvent = null, n.I(s, a, r), e.cancelBubble = !0, t.resizingEvent = null, !1;
2560
+ }
2561
+ if (t.timeRangeSelecting) {
2562
+ if (t.timeRangeSelecting.moved) {
2563
+ var h = t.timeRangeSelecting, n = h.root, a = new DayPilot.Date(n.getDateFromCell(h.from.x, h.from.y)), d = a.addDays(h.width);
2564
+ n.D(a, d), n.clearShadow();
2565
+ }
2566
+ t.timeRangeSelecting = null;
2567
+ }
2568
+ }, DayPilot.Month = t.Month, "undefined" != typeof jQuery && !function (t) {
2569
+ t.fn.daypilotMonth = function (t) {
2570
+ var e = null, i = this.each(function () {
2571
+ if (!this.daypilot) {
2572
+ var i = new DayPilot.Month(this.id);
2573
+ this.daypilot = i;
2574
+ for (name in t)
2575
+ i[name] = t[name];
2576
+ i.Init(), e || (e = i);
2577
+ }
2578
+ });
2579
+ return 1 === this.length ? e : i;
2580
+ };
2581
+ }(jQuery), function () {
2582
+ var t = DayPilot.am();
2583
+ t && t.directive("daypilotMonth", ["$parse", function (t) {
2584
+ return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (e, i, n) {
2585
+ var s = new DayPilot.Month(i[0]);
2586
+ s.k.scope = e, s.init();
2587
+ var a = n["id"];
2588
+ a && (e[a] = s);
2589
+ var l = n["publishAs"];
2590
+ if (l) {
2591
+ (0, t(l).assign)(e, s);
2592
+ }
2593
+ for (var o in n)
2594
+ 0 === o.indexOf("on") && !function (i) { s[i] = function (s) { var a = t(n[i]); e["$apply"](function () { a(e, { "args": s }); }); }; }(o);
2595
+ var r = e["$watch"], h = n["config"] || n["daypilotConfig"], d = n["events"] || n["daypilotEvents"];
2596
+ r.call(e, h, function (t) {
2597
+ for (var e in t)
2598
+ s[e] = t[e];
2599
+ s.update();
2600
+ }, !0), r.call(e, d, function (t) { s.events.list = t, s.update(); }, !0);
2601
+ } };
2602
+ }]);
2603
+ }(), "undefined" != typeof Sys && Sys.Application && Sys.Application.notifyScriptLoaded && Sys.Application.notifyScriptLoaded();
2604
+ }
2605
+ }();
2606
+ if ("undefined" == typeof DayPilot)
2607
+ var DayPilot = {};
2608
+ "undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () {
2609
+ if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.nav) {
2610
+ DayPilot.Navigator = function (t, e) {
2611
+ this.v = "2021.4.338-lite";
2612
+ var i = this;
2613
+ 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.cssOnly = !0, 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.cssOnly ? this.root.className = this.c("_main") : 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.cssOnly ? this.c("_" + e) : this.c(e); DayPilot.Util.addClass(t, i); }, this.h = function (t, e) { var i = this.cssOnly ? this.c("_" + e) : this.c(e); DayPilot.Util.removeClass(t, i); }, this.i = function (t, e) {
2614
+ var s = {};
2615
+ s.cells = [], s.days = [], s.weeks = [];
2616
+ 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;
2617
+ s.rowCount = u;
2618
+ var f = (new DayPilot.Date).getDatePart(), y = 7 * a.cellWidth() + this.d();
2619
+ s.width = y;
2620
+ var p = this.cellHeight * u + this.titleHeight + this.dayHeaderHeight;
2621
+ s.height = p;
2622
+ var v = document.createElement("div");
2623
+ if (v.style.width = y + "px", v.style.height = p + "px", "Horizontal" === this.orientation)
2624
+ v.style.position = "absolute", v.style.left = y * t + "px", v.style.top = "0px", s.top = 0, s.left = y * t;
2625
+ else {
2626
+ v.style.position = "relative";
2627
+ var m = t > 0 ? i.months[t - 1].top + i.months[t - 1].height : 0;
2628
+ s.top = m, s.left = 0;
2629
+ }
2630
+ this.cssOnly ? v.className = this.c("_month") : v.className = this.c("month"), v.style.cursor = "default", v.style.MozUserSelect = "none", v.style.KhtmlUserSelect = "none", v.style.WebkitUserSelect = "none", v.month = s, this.root.appendChild(v);
2631
+ var g = this.titleHeight + this.dayHeaderHeight, b = document.createElement("div");
2632
+ b.style.position = "absolute", b.style.left = "0px", b.style.right = "0px", b.style.top = "0px", b.style.width = a.cellWidth() + "px", b.style.height = this.titleHeight + "px", b.style.lineHeight = this.titleHeight + "px", b.setAttribute("unselectable", "on"), this.cssOnly ? b.className = this.c("_titleleft") : b.className = this.c("titleleft"), e.left && (b.style.cursor = "pointer", b.innerHTML = "<span>&lt;</span>", b.onclick = this.j), v.appendChild(b), this.tl = b;
2633
+ var D = document.createElement("div");
2634
+ D.style.position = "absolute", D.style.left = a.cellWidth() + "px", D.style.top = "0px", D.style.width = 5 * a.cellWidth() + this.d() + "px", D.style.height = this.titleHeight + "px", D.style.lineHeight = this.titleHeight + "px", D.setAttribute("unselectable", "on"), this.cssOnly ? D.className = this.c("_title") : D.className = this.c("title"), D.innerHTML = a.locale().monthNames[n.getMonth()] + " " + n.getYear(), v.appendChild(D), this.ti = D;
2635
+ var x = document.createElement("div");
2636
+ x.style.position = "absolute", x.style.left = 6 * a.cellWidth() + this.d() + "px", x.style.right = 6 * a.cellWidth() + this.d() + "px", x.style.top = "0px", x.style.width = a.cellWidth() + "px", x.style.height = this.titleHeight + "px", x.style.lineHeight = this.titleHeight + "px", x.setAttribute("unselectable", "on"), this.cssOnly ? x.className = this.c("_titleright") : x.className = this.c("titleright"), e.right && (x.style.cursor = "pointer", x.innerHTML = "<span>&gt;</span>", x.onclick = this.k), v.appendChild(x), this.tr = x;
2637
+ var w = this.d();
2638
+ if (this.showWeekNumbers)
2639
+ for (var k = 0; k < u; k++) {
2640
+ var S = r.addDays(7 * k), C = null;
2641
+ switch (this.weekNumberAlgorithm) {
2642
+ case "Auto":
2643
+ C = 1 === a.weekStarts() ? S.weekNumberISO() : S.weekNumber();
2644
+ break;
2645
+ case "US":
2646
+ C = S.weekNumber();
2647
+ break;
2648
+ case "ISO8601":
2649
+ C = S.weekNumberISO();
2650
+ break;
2651
+ default: throw "Unknown weekNumberAlgorithm value.";
2652
+ }
2653
+ var H = document.createElement("div");
2654
+ H.style.position = "absolute", H.style.left = "0px", H.style.right = "0px", H.style.top = k * this.cellHeight + g + "px", H.style.width = a.cellWidth() + "px", H.style.height = this.cellHeight + "px", H.style.lineHeight = this.cellHeight + "px", H.setAttribute("unselectable", "on"), this.cssOnly ? H.className = this.c("_weeknumber") : H.className = this.c("weeknumber"), H.innerHTML = "<span>" + C + "</span>", v.appendChild(H), s.weeks.push(H);
2655
+ }
2656
+ for (var P = 0; P < 7; P++) {
2657
+ s.cells[P] = [];
2658
+ var H = document.createElement("div");
2659
+ 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"), this.cssOnly ? H.className = this.c("_dayheader") : H.className = this.c("dayheader"), H.innerHTML = "<span>" + this.l(P) + "</span>", v.appendChild(H), s.days.push(H);
2660
+ for (var k = 0; k < u; k++) {
2661
+ var S = r.addDays(7 * k + P), M = this.m(S) && "none" !== this.n(), N = S.firstDayOfMonth() === n, O = S < n, E = S >= n.addMonths(1);
2662
+ if ("month" === this.n())
2663
+ M = M && N;
2664
+ else if ("day" === this.n())
2665
+ M = M && (N || l && O || o && E);
2666
+ else if ("week" === this.n()) {
2667
+ var W = S.firstDayOfMonth() === n;
2668
+ M = M && (W || l && O || o && E);
2669
+ }
2670
+ var T = document.createElement("div");
2671
+ s.cells[P][k] = T;
2672
+ var R = i.o(P, k), A = R.x, B = R.y;
2673
+ T.day = S, T.x = P, T.y = k, T.left = A, T.top = B, T.isCurrentMonth = N, T.isNextMonth = E, T.isPrevMonth = O, T.showBefore = l, T.showAfter = o, this.cssOnly ? T.className = this.c(N ? "_day" : "_dayother") : T.className = this.c(N ? "day" : "dayother"), i.g(T, "cell"), S.getTime() === f.getTime() && N && this.g(T, "today"), 0 !== S.dayOfWeek() && 6 !== S.dayOfWeek() || this.g(T, "weekend"), T.style.position = "absolute", T.style.left = A + "px", T.style.right = A + "px", T.style.top = B + "px", T.style.width = a.cellWidth() + "px", T.style.height = this.cellHeight + "px", T.style.lineHeight = this.cellHeight + "px";
2674
+ var _ = document.createElement("div");
2675
+ _.style.position = "absolute", this.cssOnly ? _.className = S.getTime() === f.getTime() && N ? this.c("_todaybox") : this.c("_daybox") : _.className = S.getTime() === f.getTime() && N ? this.c("todaybox") : this.c("daybox"), i.g(_, "cell_box"), _.style.left = "0px", _.style.top = "0px", _.style.right = "0px", _.style.bottom = "0px", T.appendChild(_);
2676
+ var U = null;
2677
+ if (this.cells && this.cells[S.toStringSortable()] && (U = this.cells[S.toStringSortable()]), "function" == typeof i.onBeforeCellRender) {
2678
+ var I = {};
2679
+ I.cell = U || {}, I.cell.day = S, I.cell.isCurrentMonth = N, I.cell.isToday = S.getTime() === f.getTime() && N, I.cell.isWeekend = 0 === S.dayOfWeek() || 6 === S.dayOfWeek(), U ? (I.cell.html = U.html || S.getDay(), I.cell.cssClass = U.css) : (I.cell.html = S.getDay(), I.cell.cssClass = null), i.onBeforeCellRender(I), U = I.cell;
2680
+ }
2681
+ if (U && DayPilot.Util.addClass(T, U.cssClass || U.css), N || l && O || o && E) {
2682
+ var L = document.createElement("div");
2683
+ 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"), T.isClickable = !0, U && U.html && (L.innerHTML = U.html), T.appendChild(L);
2684
+ }
2685
+ T.setAttribute("unselectable", "on"), T.onclick = this.p, v.appendChild(T), M && (i.q(v, P, k), this.selected.push(T));
2686
+ }
2687
+ }
2688
+ var V = document.createElement("div");
2689
+ V.style.position = "absolute", V.style.left = "0px", V.style.top = g - 2 + "px", V.style.width = 7 * a.cellWidth() + this.d() + "px", V.style.height = "1px", V.style.fontSize = "1px", V.style.lineHeight = "1px", this.cssOnly ? V.className = this.c("_line") : V.className = this.c("line"), v.appendChild(V), this.months.push(s);
2690
+ }, 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 () {
2691
+ if (this.items)
2692
+ for (var t = 0; t < this.showMonths; t++)
2693
+ for (var e = 0; e < 7; e++)
2694
+ for (var i = 0; i < 6; i++) {
2695
+ var s = this.months[t].cells[e][i];
2696
+ s && (1 === this.items[s.day.toStringSortable()] ? this.g(s, "busy") : this.h(s, "busy"));
2697
+ }
2698
+ }, this.t = function () { var t = {}; t.startDate = i.startDate, t.selectionStart = i.selectionStart, t.selectionEnd = i.selectionEnd.addDays(1), i.state.value = JSON.stringify(t); }, this.n = function () { return (this.selectMode || "").toLowerCase(); }, this.u = function () {
2699
+ var t = this.selectionDay || this.selectionStart;
2700
+ t || (t = DayPilot.Date.today());
2701
+ var t = new DayPilot.Date(t);
2702
+ switch (this.n()) {
2703
+ case "day":
2704
+ this.selectionStart = t, this.selectionDay = t, this.selectionEnd = t;
2705
+ break;
2706
+ case "week":
2707
+ this.selectionDay = t, this.selectionStart = t.firstDayOfWeek(a.weekStarts()), this.selectionEnd = this.selectionStart.addDays(6);
2708
+ break;
2709
+ case "month":
2710
+ this.selectionDay = t, this.selectionStart = t.firstDayOfMonth(), this.selectionEnd = this.selectionStart.lastDayOfMonth();
2711
+ break;
2712
+ case "none":
2713
+ this.selectionEnd = t;
2714
+ break;
2715
+ default: throw "Unknown selectMode value.";
2716
+ }
2717
+ }, this.w = null, this.select = function (t, e) {
2718
+ if (!this.z)
2719
+ return void (this.w = { "date": t, "options": e });
2720
+ var i = !0, s = !0;
2721
+ "object" == typeof e ? (e.dontFocus && (i = !1), e.dontNotify && (s = !1)) : "boolean" == typeof e && (i = !e);
2722
+ var n = this.selectionStart, a = this.selectionEnd;
2723
+ this.selectionStart = new DayPilot.Date(t).getDatePart(), this.selectionDay = this.selectionStart;
2724
+ var l = !1;
2725
+ if (i) {
2726
+ var o = this.startDate;
2727
+ (this.selectionStart < this.A() || this.selectionStart >= this.B()) && (o = this.selectionStart.firstDayOfMonth()), o.toStringSortable() !== this.startDate.toStringSortable() && (l = !0), this.startDate = o;
2728
+ }
2729
+ this.u(), this.f(), this.b(), this.C(), this.s(), this.t(), !s || n.equals(this.selectionStart) && a.equals(this.selectionEnd) || this.D(), l && this.E();
2730
+ }, this.update = function (t) {
2731
+ if (!i.z)
2732
+ throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that hasn't been initialized yet.");
2733
+ if (i.F)
2734
+ throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed.");
2735
+ i.G(), i.H(t), i.I();
2736
+ }, this.I = function () { i.cssOnly || (i.cssOnly = !0), 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) {
2737
+ if (t) {
2738
+ var e = { "events": { "preInit": function () { var t = this.data; t && (DayPilot.isArray(t.list) ? i.events.list = t.list : i.events.list = t); } } };
2739
+ this.K = e;
2740
+ for (var s in t)
2741
+ if (e[s]) {
2742
+ var n = e[s];
2743
+ n.data = t[s], n.preInit && n.preInit();
2744
+ }
2745
+ else
2746
+ i[s] = t[s];
2747
+ }
2748
+ }, this.L = function () {
2749
+ var t = this.K;
2750
+ for (var e in t) {
2751
+ var i = t[e];
2752
+ i.postInit && i.postInit();
2753
+ }
2754
+ }, this.M = function (t, e, i) { var s = {}; s.action = t, s.parameters = i, s.data = e, s.header = this.N(); var n = "JSON" + JSON.stringify(s); this.backendUrl ? DayPilot.request(this.backendUrl, this.O, n, this.P) : WebForm_DoCallback(this.uniqueID, n, this.Q, null, this.callbackError, !0); }, this.P = function (t) {
2755
+ if ("function" == typeof i.onAjaxError) {
2756
+ var e = {};
2757
+ e.request = t, i.onAjaxError(e);
2758
+ }
2759
+ else
2760
+ "function" == typeof i.ajaxError && i.ajaxError(t);
2761
+ }, this.O = function (t) { i.Q(t.responseText); }, this.R = function (t, e, s) { var n = {}; n.action = t, n.parameters = s, n.data = e, n.header = this.N(); var a = "JSON" + JSON.stringify(n); __doPostBack(i.uniqueID, a); }, this.N = function () { var t = {}; return t.v = this.v, t.startDate = this.startDate, t.selectionStart = this.selectionStart, t.showMonths = this.showMonths, t; }, this.S = function (t, e) { "refresh" === t && this.E(); }, this.l = function (t) { var e = t + a.weekStarts(); return e > 6 && (e -= 7), a.locale().dayNamesShort[e]; }, this.m = function (t) { return null !== this.selectionStart && null !== this.selectionEnd && (this.selectionStart.getTime() <= t.getTime() && t.getTime() <= this.selectionEnd.getTime()); }, this.T = function (t) {
2762
+ for (var e = 0; e < i.months.length; e++) {
2763
+ var s = i.months[e];
2764
+ if (!s)
2765
+ return null;
2766
+ if (t.x < s.left || s.width < t.x)
2767
+ return null;
2768
+ i.months[e].height;
2769
+ if (s.top <= t.y && t.y < s.top + s.height)
2770
+ return e;
2771
+ }
2772
+ return null;
2773
+ }, this.U = function (t) {
2774
+ var e = DayPilot.mo3(i.nav.top, t), s = i.T(e);
2775
+ if (null === s)
2776
+ return null;
2777
+ var n = i.months[s], a = this.titleHeight + this.dayHeaderHeight;
2778
+ if (n.top <= e.y && e.y < n.top + a)
2779
+ return { "month": s, "x": 0, "y": 0, "coords": e, "header": !0 };
2780
+ for (var l = 0; l < n.cells.length; l++)
2781
+ for (var o = 0; o < n.cells[l].length; o++) {
2782
+ var h = n.cells[l][o], r = h.top + n.top, c = h.left + n.left;
2783
+ if (c <= e.x && e.x < c + i.cellWidth && r <= e.y && e.y < r + i.cellHeight)
2784
+ return { "month": s, "x": l, "y": o, "coords": e };
2785
+ }
2786
+ return null;
2787
+ }, this.V = function (t) {
2788
+ if (i.freeHandSelectionEnabled) {
2789
+ var e = i.U(t);
2790
+ e && !e.header && (s.start = e), i.months[e.month].cells[e.x][e.y], t.preventDefault();
2791
+ }
2792
+ }, this.W = function (t) {
2793
+ if (s.start) {
2794
+ var e = i.U(t);
2795
+ if (s.end)
2796
+ s.end = e;
2797
+ else if (e) {
2798
+ var n = 3, a = DayPilot.distance(s.start.coords, e.coords);
2799
+ a > n && (s.end = e);
2800
+ }
2801
+ s.end && (s.clear(), s.draw());
2802
+ }
2803
+ }, this.X = {};
2804
+ var s = this.X;
2805
+ s.start = null, s.drawCell = function (t) { var e = i.months[t.month], n = i.o(t.x, t.y), a = e.top + n.y, l = e.left + n.x, o = document.createElement("div"); o.style.position = "absolute", o.style.left = l + "px", o.style.top = a + "px", o.style.height = i.cellHeight + "px", o.style.width = i.cellWidth + "px", o.style.backgroundColor = "#ccc", o.style.opacity = .5, o.style.cursor = "default", i.nav.preselection.appendChild(o), s.cells.push(o); }, s.clear = function () {
2806
+ if (s.cells) {
2807
+ for (var t = 0; t < s.cells.length; t++)
2808
+ i.nav.preselection.removeChild(s.cells[t]);
2809
+ s.cells = [];
2810
+ }
2811
+ }, s.draw = function () {
2812
+ var t = s.ordered(), e = new n(t.start), a = t.end;
2813
+ if (a) {
2814
+ if (a === s.end && a.header && a.month > 0) {
2815
+ a.month -= 1;
2816
+ var l = i.months[a.month];
2817
+ a.x = 6, a.y = l.rowCount - 1;
2818
+ }
2819
+ for (s.cells = []; !e.is(a);) {
2820
+ s.drawCell(e);
2821
+ var o = new n(e).next();
2822
+ if (!o)
2823
+ return;
2824
+ e.month = o.month, e.x = o.x, e.y = o.y;
2825
+ }
2826
+ s.drawCell(e);
2827
+ }
2828
+ }, s.ordered = function () { var t = s.start, e = s.end, i = {}; return !e || new n(t).before(e) ? (i.start = t, i.end = e) : (i.start = e, i.end = t), i; };
2829
+ var n = function (t, e, s) {
2830
+ if (t instanceof n)
2831
+ return t;
2832
+ if ("object" == typeof t) {
2833
+ var a = t;
2834
+ this.month = a.month, this.x = a.x, this.y = a.y;
2835
+ }
2836
+ else
2837
+ this.month = t, this.x = e, this.y = s;
2838
+ this.is = function (t) { return this.month === t.month && this.x === t.x && this.y === t.y; }, this.next = function () {
2839
+ var t = this;
2840
+ if (t.x < 6)
2841
+ return { "month": t.month, "x": t.x + 1, "y": t.y };
2842
+ var e = i.months[t.month];
2843
+ return t.y < e.rowCount - 1 ? { "month": t.month, "x": 0, "y": t.y + 1 } : t.month < i.months.length - 1 ? { "month": t.month + 1, "x": 0, "y": 0 } : null;
2844
+ }, this.visible = function () { var t = this.cell(); return !!t.isCurrentMonth || (!(!t.isPrevMonth || !t.showBefore) || !(!t.isNextMonth || !t.showAfter)); }, this.nextVisible = function () {
2845
+ for (var t = this; !t.visible();) {
2846
+ var e = t.next();
2847
+ if (!e)
2848
+ return null;
2849
+ t = new n(e);
2850
+ }
2851
+ return t;
2852
+ }, this.previous = function () {
2853
+ var t = this;
2854
+ if (t.x > 0)
2855
+ return { "month": t.month, "x": t.x - 1, "y": t.y };
2856
+ i.months[t.month];
2857
+ if (t.y > 0)
2858
+ return { "month": t.month, "x": 6, "y": t.y - 1 };
2859
+ if (t.month > 0) {
2860
+ var e = i.months[t.month - 1];
2861
+ return { "month": t.month - 1, "x": 6, "y": e.rowCount - 1 };
2862
+ }
2863
+ return null;
2864
+ }, this.previousVisible = function () {
2865
+ for (var t = this; !t.visible();) {
2866
+ var e = t.previous();
2867
+ if (!e)
2868
+ return null;
2869
+ t = new n(e);
2870
+ }
2871
+ return t;
2872
+ }, this.cell = function () { return i.months[this.month].cells[this.x][this.y]; }, this.date = function () { return this.cell().day; }, this.before = function (t) { return this.date() < new n(t).date(); };
2873
+ };
2874
+ this.p = function (t) {
2875
+ var e = this.parentNode, s = this.parentNode.month, n = this.x, a = this.y, l = s.cells[n][a].day;
2876
+ if (s.cells[n][a].isClickable) {
2877
+ i.clearSelection(), i.selectionDay = l;
2878
+ var l = i.selectionDay;
2879
+ switch (i.n()) {
2880
+ case "none":
2881
+ i.selectionStart = l, i.selectionEnd = l;
2882
+ break;
2883
+ case "day":
2884
+ if (i.autoFocusOnClick) {
2885
+ var o = l;
2886
+ if (l < i.A() || l >= i.B())
2887
+ return void i.select(l);
2888
+ }
2889
+ var h = s.cells[n][a];
2890
+ i.q(e, n, a), i.selected.push(h), i.selectionStart = h.day, i.selectionEnd = h.day;
2891
+ break;
2892
+ case "week":
2893
+ if (i.autoFocusOnClick) {
2894
+ var o = s.cells[0][a].day, r = s.cells[6][a].day;
2895
+ if (o.firstDayOfMonth() === r.firstDayOfMonth() && (o < i.A() || r >= i.B()))
2896
+ return void i.select(l);
2897
+ }
2898
+ for (var c = 0; c < 7; c++)
2899
+ i.q(e, c, a), i.selected.push(s.cells[c][a]);
2900
+ i.selectionStart = s.cells[0][a].day, i.selectionEnd = s.cells[6][a].day;
2901
+ break;
2902
+ case "month":
2903
+ if (i.autoFocusOnClick) {
2904
+ var o = l;
2905
+ if (l < i.A() || l >= i.B())
2906
+ return void i.select(l);
2907
+ }
2908
+ for (var o = null, r = null, a = 0; a < 6; a++)
2909
+ for (var n = 0; n < 7; n++) {
2910
+ var h = s.cells[n][a];
2911
+ h && h.day.getYear() === l.getYear() && h.day.getMonth() === l.getMonth() && (i.q(e, n, a), i.selected.push(h), null === o && (o = h.day), r = h.day);
2912
+ }
2913
+ i.selectionStart = o, i.selectionEnd = r;
2914
+ break;
2915
+ default: throw "unknown selectMode";
2916
+ }
2917
+ i.t(), i.D();
2918
+ }
2919
+ }, this.D = function (t) {
2920
+ var e = i.selectionStart, s = i.selectionEnd.addDays(1), n = DayPilot.DateUtil.daysDiff(e, s), a = i.selectionDay;
2921
+ if (t = t || {}, i.e()) {
2922
+ var l = {};
2923
+ if (l.start = e, l.end = s, l.day = a, l.days = n, l.mode = t.mode || i.selectMode, l.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(l), l.preventDefault.value))
2924
+ return;
2925
+ switch (i.timeRangeSelectedHandling) {
2926
+ case "Bind":
2927
+ if ("object" == typeof bound) {
2928
+ var o = {};
2929
+ o.start = e, o.end = s, o.days = n, o.day = a, bound.commandCallBack(i.command, o);
2930
+ }
2931
+ break;
2932
+ case "None": break;
2933
+ case "PostBack": i.timeRangeSelectedPostBack(e, s, a);
2934
+ }
2935
+ "function" == typeof i.onTimeRangeSelected && i.onTimeRangeSelected(l);
2936
+ }
2937
+ else
2938
+ switch (i.timeRangeSelectedHandling) {
2939
+ case "Bind":
2940
+ if ("object" == typeof bound) {
2941
+ var o = {};
2942
+ o.start = e, o.end = s, o.days = n, o.day = a, bound.commandCallBack(i.command, o);
2943
+ }
2944
+ break;
2945
+ case "JavaScript":
2946
+ i.onTimeRangeSelected(e, s, a);
2947
+ break;
2948
+ case "None": break;
2949
+ case "PostBack": i.timeRangeSelectedPostBack(e, s, a);
2950
+ }
2951
+ }, this.timeRangeSelectedPostBack = function (t, e, i, s) { var n = {}; n.start = t, n.end = e, n.day = s, this.R("TimeRangeSelected", i, n); }, this.k = function (t) { i.Y(i.skipMonths); }, this.j = function (t) { i.Y(-i.skipMonths); }, this.Y = function (t) { this.startDate = this.startDate.addMonths(t), this.f(), this.b(), this.C(), this.t(), this.E(), this.s(); }, this.A = function () { return i.startDate.firstDayOfMonth(); }, this.B = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths); }, this.visibleStart = function () { return i.startDate.firstDayOfMonth().firstDayOfWeek(a.weekStarts()); }, this.visibleEnd = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths - 1).firstDayOfWeek(a.weekStarts()).addDays(42); }, this.E = function () {
2952
+ var t = this.visibleStart(), e = this.visibleEnd();
2953
+ if (i.e()) {
2954
+ var s = {};
2955
+ if (s.start = t, s.end = e, s.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onVisibleRangeChange && (i.onVisibleRangeChange(s), s.preventDefault.value))
2956
+ return;
2957
+ switch (this.visibleRangeChangedHandling) {
2958
+ case "CallBack":
2959
+ this.visibleRangeChangedCallBack(null);
2960
+ break;
2961
+ case "PostBack":
2962
+ this.visibleRangeChangedPostBack(null);
2963
+ break;
2964
+ case "Disabled":
2965
+ }
2966
+ "function" == typeof i.onVisibleRangeChanged && i.onVisibleRangeChanged(s);
2967
+ }
2968
+ else
2969
+ switch (this.visibleRangeChangedHandling) {
2970
+ case "CallBack":
2971
+ this.visibleRangeChangedCallBack(null);
2972
+ break;
2973
+ case "PostBack":
2974
+ this.visibleRangeChangedPostBack(null);
2975
+ break;
2976
+ case "JavaScript":
2977
+ this.onVisibleRangeChanged(t, e);
2978
+ break;
2979
+ case "Disabled":
2980
+ }
2981
+ }, this.visibleRangeChangedCallBack = function (t) { var e = {}; this.M("Visible", t, e); }, this.visibleRangeChangedPostBack = function (t) { var e = {}; this.R("Visible", t, e); }, this.Q = function (t, e) { var t = JSON.parse(t); i.items = t.Items, i.cells = t.Cells, i.cells ? i.update() : i.s(); }, this.C = function () {
2982
+ for (var t = 0; t < this.showMonths; t++) {
2983
+ var e = this.Z(t);
2984
+ this.i(t, e);
2985
+ }
2986
+ this.root.style.height = this.$() + "px", this.nav.preselection = document.createElement("div"), this.nav.preselection.style.position = "absolute", this.nav.preselection.style.left = "0px", this.nav.preselection.style.top = "0px", this.root.appendChild(this.nav.preselection);
2987
+ }, this.$ = function () {
2988
+ if ("Horizontal" === this.orientation) {
2989
+ for (var t = 0, e = 0; e < this.months.length; e++) {
2990
+ var i = this.months[e];
2991
+ i.height > t && (t = i.height);
2992
+ }
2993
+ return t;
2994
+ }
2995
+ for (var s = 0, e = 0; e < this.months.length; e++) {
2996
+ var i = this.months[e];
2997
+ s += i.height;
2998
+ }
2999
+ return s;
3000
+ }, this.Z = function (t) {
3001
+ if (this.internal.showLinks)
3002
+ return this.internal.showLinks;
3003
+ var e = {};
3004
+ 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;
3005
+ }, this._ = {}, this._.scope = null, this._.notify = function () { i._.scope && i._.scope["$apply"](); }, this.internal = {}, this.internal.initialized = function () { return i.z; }, this.aa = {};
3006
+ var a = this.aa;
3007
+ a.locale = function () { return DayPilot.Locale.find(i.locale); }, a.weekStarts = function () {
3008
+ if ("Auto" === i.weekStarts) {
3009
+ var t = a.locale();
3010
+ return t ? t.weekStarts : 0;
3011
+ }
3012
+ return i.weekStarts;
3013
+ }, a.cellWidth = function () {
3014
+ if (i.a.cellWidth)
3015
+ return i.a.cellWidth;
3016
+ var t = i.ba("_cell_dimensions").width;
3017
+ return t || (t = i.cellWidth), i.a.cellWidth = t, t;
3018
+ }, this.clearSelection = function () {
3019
+ for (var t = 0; t < this.selected.length; t++) {
3020
+ var e = this.selected[t];
3021
+ i.r(e.parentNode, e.x, e.y);
3022
+ }
3023
+ this.selected = [];
3024
+ }, this.ca = function () { return !!this.backendUrl && ("undefined" == typeof i.items || !i.items); }, this.events = {}, this.J = function () {
3025
+ if (DayPilot.isArray(this.events.list)) {
3026
+ this.items = {};
3027
+ for (var t = 0; t < this.events.list.length; t++) {
3028
+ var e = this.events.list[t];
3029
+ if (!e.hidden) {
3030
+ var i = this.da(e);
3031
+ for (var s in i)
3032
+ this.items[s] = 1;
3033
+ }
3034
+ }
3035
+ }
3036
+ }, this.ba = function (t) { var e = document.createElement("div"); e.style.position = "absolute", e.style.top = "-2000px", e.style.left = "-2000px", e.className = this.c(t); var s = i.root || document.body; s.appendChild(e); var n = e.offsetHeight, a = e.offsetWidth; s.removeChild(e); var l = {}; return l.height = n, l.width = a, l; }, this.da = function (t) {
3037
+ for (var e = new DayPilot.Date(t.start), i = new DayPilot.Date(t.end), s = {}, n = e.getDatePart(); n.getTime() < i.getTime();)
3038
+ s[n.toStringSortable()] = 1, n = n.addDays(1);
3039
+ return s;
3040
+ }, this.show = function () { i.visible = !0, i.root.style.display = ""; }, this.hide = function () { i.visible = !1, i.root.style.display = "none"; }, this.ea = function () {
3041
+ if (this.id && this.id.tagName)
3042
+ this.nav.top = this.id;
3043
+ else {
3044
+ if ("string" != typeof this.id)
3045
+ throw "DayPilot.Navigator() constructor requires the target element or its ID as a parameter";
3046
+ if (this.nav.top = document.getElementById(this.id), !this.nav.top)
3047
+ throw "DayPilot.Navigator: The placeholder element not found: '" + t + "'.";
3048
+ }
3049
+ this.root = this.nav.top;
3050
+ }, this.init = function () {
3051
+ if (this.ea(), !this.root.dp) {
3052
+ i.cssOnly || (i.cssOnly = !0, DayPilot.Util.log("DayPilot: cssOnly = false mode is not supported since DayPilot Pro 8.0.")), this.u(), this.b(), this.C(), this.J(), this.s(), this.fa(), this.ga(), this.ha();
3053
+ return this.ca() && this.E(), this.z = !0, this.L(), this.w && (this.select(this.w.date, this.w.options), this.w = null), this;
3054
+ }
3055
+ }, this.ga = function () { i.nav.top.onmousedown = this.V, i.nav.top.onmousemove = this.W; }, this.ha = function () { DayPilot.re(document, "mouseup", i.ia); }, this.ia = function (t) {
3056
+ if (s.start && s.end) {
3057
+ var e = DayPilot.mo3(i.nav.top, t);
3058
+ if (e.x === s.start.coords.x && e.y === s.start.coords.y)
3059
+ return s.start = null, void s.clear();
3060
+ s.clear();
3061
+ var a = s.ordered();
3062
+ 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();
3063
+ i.D({ "mode": "FreeHand" });
3064
+ }
3065
+ s.start = null, s.end = null;
3066
+ }, 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);
3067
+ }, "undefined" != typeof jQuery && !function (t) {
3068
+ t.fn.daypilotNavigator = function (t) {
3069
+ var e = null, i = this.each(function () {
3070
+ if (!this.daypilot) {
3071
+ var i = new DayPilot.Navigator(this.id);
3072
+ this.daypilot = i;
3073
+ for (var s in t)
3074
+ i[s] = t[s];
3075
+ i.Init(), e || (e = i);
3076
+ }
3077
+ });
3078
+ return 1 === this.length ? e : i;
3079
+ };
3080
+ }(jQuery), function () {
3081
+ var t = DayPilot.am();
3082
+ t && t.directive("daypilotNavigator", ["$parse", function (t) {
3083
+ return { "restrict": "E", "template": "<div id='{{id}}'></div>", "compile": function (e, i) {
3084
+ return e.replaceWith(this["template"].replace("{{id}}", i["id"])), function (e, i, s) {
3085
+ var n = new DayPilot.Navigator(i[0]);
3086
+ n._.scope = e, n.init();
3087
+ var a = s["id"];
3088
+ a && (e[a] = n);
3089
+ var l = s["publishAs"];
3090
+ if (l) {
3091
+ (0, t(l).assign)(e, n);
3092
+ }
3093
+ for (var o in s)
3094
+ if (0 === o.indexOf("on")) {
3095
+ var h = DayPilot.Util.shouldApply(o);
3096
+ h ? !function (i) { n[i] = function (n) { var a = t(s[i]); e["$apply"](function () { a(e, { "args": n }); }); }; }(o) : !function (i) { n[i] = function (n) { t(s[i])(e, { "args": n }); }; }(o);
3097
+ }
3098
+ var r = e["$watch"], c = s["config"] || s["daypilotConfig"], d = s["events"] || s["daypilotEvents"];
3099
+ r.call(e, c, function (t, e) {
3100
+ for (var i in t)
3101
+ n[i] = t[i];
3102
+ n.update();
3103
+ }, !0), r.call(e, d, function (t) { n.events.list = t, n.J(), n.s(); }, !0);
3104
+ };
3105
+ } };
3106
+ }]);
3107
+ }(), "undefined" != typeof Sys && Sys.Application && Sys.Application.notifyScriptLoaded && Sys.Application.notifyScriptLoaded();
3108
+ }
3109
+ }();
3110
+
3111
+ function rand() {
3112
+ return ((1 + Math.random()) * 0x10000) | 0;
3113
+ }
3114
+ ;
3115
+ function optHash(options) {
3116
+ return JSON.stringify(options);
3117
+ }
3118
+ ;
3119
+ class EventDiff {
3120
+ constructor() {
3121
+ this.orig = { "hashes": {} };
3122
+ }
3123
+ diff(list) {
3124
+ const orig = this.orig;
3125
+ let result = {};
3126
+ // new hashes, new ids
3127
+ let hashes = {};
3128
+ list = list || [];
3129
+ for (let i = 0; i < list.length; i++) {
3130
+ let e = list[i];
3131
+ let id = e.id;
3132
+ if (!id) {
3133
+ throw "The 'id' property must be specified for event data object";
3134
+ }
3135
+ if (hashes.hasOwnProperty("" + id)) {
3136
+ throw "Duplicate event IDs are not allowed, id: " + id;
3137
+ }
3138
+ hashes["" + id] = JSON.stringify(e);
3139
+ }
3140
+ // array of new objects
3141
+ result.add = list.filter(function (item) {
3142
+ return !orig.hashes.hasOwnProperty(item.id);
3143
+ });
3144
+ // array of IDs
3145
+ result.remove = Object.getOwnPropertyNames(orig.hashes).filter(function (id) {
3146
+ return !hashes.hasOwnProperty(id);
3147
+ }).map(function (id) {
3148
+ return JSON.parse(orig.hashes[id]).id;
3149
+ }); // array of ids
3150
+ // array of new objects
3151
+ result.modify = list.filter(function (item) {
3152
+ return orig.hashes.hasOwnProperty(item.id) && orig.hashes[item.id] !== hashes[item.id];
3153
+ });
3154
+ result.changeCount = result.add.length + result.modify.length + result.remove.length;
3155
+ orig.hashes = hashes;
3156
+ return result;
3157
+ }
3158
+ }
3159
+
3160
+ class DayPilotCalendarComponent {
3161
+ constructor() {
3162
+ this.viewChange = new EventEmitter();
3163
+ this.events = [];
3164
+ this._requestUpdateFull = false;
3165
+ this._requestUpdateEvents = false;
3166
+ this._requestViewChange = false;
3167
+ this._hashOptions = "";
3168
+ this._hashEvents = "";
3169
+ this._id = "dp_" + new Date().getTime() + rand();
3170
+ }
3171
+ get id() {
3172
+ return this._id;
3173
+ }
3174
+ ngOnInit() {
3175
+ }
3176
+ ngOnDestroy() {
3177
+ this.dispose();
3178
+ }
3179
+ ngAfterViewInit() {
3180
+ this.dispose();
3181
+ let dp = new DayPilot.Calendar(this.id);
3182
+ this.control = dp;
3183
+ this.updateOptions();
3184
+ this.updateEvents();
3185
+ this._requestUpdateFull = false; // config just loaded and calling init(), no need to call update again
3186
+ this._requestUpdateEvents = false; // config just loaded and calling init(), no need to call update again
3187
+ dp.init();
3188
+ }
3189
+ ngDoCheck() {
3190
+ if (!this.control) {
3191
+ return;
3192
+ }
3193
+ this.updateOptions();
3194
+ this.updateEvents();
3195
+ if (this._requestUpdateFull) {
3196
+ this.control.update();
3197
+ this._requestUpdateFull = false;
3198
+ this._requestUpdateEvents = false;
3199
+ }
3200
+ else if (this._requestUpdateEvents) {
3201
+ this.control.update({ "events": this.events });
3202
+ this._requestUpdateEvents = false;
3203
+ }
3204
+ if (this._requestViewChange) {
3205
+ this._requestViewChange = false;
3206
+ let args = {};
3207
+ this.viewChange.emit(args);
3208
+ }
3209
+ }
3210
+ dispose() {
3211
+ if (this.control) {
3212
+ this.control.dispose();
3213
+ //@ts-ignore
3214
+ this.control = null;
3215
+ }
3216
+ }
3217
+ updateOptions() {
3218
+ let hash = optHash(this.config);
3219
+ if (hash !== this._hashOptions) {
3220
+ let dp = this.control;
3221
+ for (let name in this.config) {
3222
+ dp[name] = this.config[name];
3223
+ }
3224
+ this._requestUpdateFull = true;
3225
+ this._requestViewChange = true;
3226
+ }
3227
+ this._hashOptions = hash;
3228
+ }
3229
+ updateEvents() {
3230
+ let hash = optHash(this.events);
3231
+ if (hash !== this._hashEvents) {
3232
+ let dp = this.control;
3233
+ if (dp) {
3234
+ dp.events.list = this.events;
3235
+ }
3236
+ this._requestUpdateEvents = true;
3237
+ }
3238
+ this._hashEvents = hash;
3239
+ }
3240
+ }
3241
+ DayPilotCalendarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: DayPilotCalendarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3242
+ DayPilotCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0", type: DayPilotCalendarComponent, selector: "daypilot-calendar", inputs: { events: "events", config: "config" }, outputs: { viewChange: "viewChange" }, ngImport: i0, template: `
3243
+ <div id='{{id}}'></div>`, isInline: true, styles: [""] });
3244
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: DayPilotCalendarComponent, decorators: [{
3245
+ type: Component,
3246
+ args: [{
3247
+ selector: 'daypilot-calendar',
3248
+ template: `
3249
+ <div id='{{id}}'></div>`,
3250
+ styles: [``]
3251
+ }]
3252
+ }], propDecorators: { viewChange: [{
3253
+ type: Output
3254
+ }], events: [{
3255
+ type: Input
3256
+ }], config: [{
3257
+ type: Input
3258
+ }] } });
3259
+
3260
+ class DayPilotMonthComponent {
3261
+ constructor() {
3262
+ this.events = [];
3263
+ this._requestUpdate = false;
3264
+ this._hashOptions = "";
3265
+ this._hashEvents = "";
3266
+ this._id = "dp_" + new Date().getTime() + rand();
3267
+ }
3268
+ get id() {
3269
+ return this._id;
3270
+ }
3271
+ ngOnInit() {
3272
+ }
3273
+ ngOnDestroy() {
3274
+ this.dispose();
3275
+ }
3276
+ ngAfterViewInit() {
3277
+ this.dispose();
3278
+ this.control = new DayPilot.Month(this.id);
3279
+ this.updateOptions();
3280
+ this.updateEvents();
3281
+ this._requestUpdate = false; // config just loaded and calling init(), no need to call update again
3282
+ this.control.init();
3283
+ }
3284
+ ngDoCheck() {
3285
+ if (!this.control) {
3286
+ return;
3287
+ }
3288
+ this.updateOptions();
3289
+ this.updateEvents();
3290
+ if (this._requestUpdate) {
3291
+ this.control.update();
3292
+ this._requestUpdate = false;
3293
+ }
3294
+ }
3295
+ dispose() {
3296
+ if (this.control) {
3297
+ this.control.dispose();
3298
+ //@ts-ignore
3299
+ this.control = null;
3300
+ }
3301
+ }
3302
+ updateOptions() {
3303
+ let hash = optHash(this.config);
3304
+ if (hash !== this._hashOptions) {
3305
+ let dp = this.control;
3306
+ for (let name in this.config) {
3307
+ dp[name] = this.config[name];
3308
+ }
3309
+ this._requestUpdate = true;
3310
+ }
3311
+ this._hashOptions = hash;
3312
+ }
3313
+ updateEvents() {
3314
+ let hash = optHash(this.events);
3315
+ if (hash !== this._hashEvents) {
3316
+ let dp = this.control;
3317
+ dp.events.list = this.events;
3318
+ this._requestUpdate = true;
3319
+ }
3320
+ this._hashEvents = hash;
3321
+ }
3322
+ }
3323
+ DayPilotMonthComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: DayPilotMonthComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3324
+ DayPilotMonthComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0", type: DayPilotMonthComponent, selector: "daypilot-month", inputs: { events: "events", config: "config" }, ngImport: i0, template: `
3325
+ <div id='{{id}}'></div>`, isInline: true, styles: [""] });
3326
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: DayPilotMonthComponent, decorators: [{
3327
+ type: Component,
3328
+ args: [{
3329
+ selector: 'daypilot-month',
3330
+ template: `
3331
+ <div id='{{id}}'></div>`,
3332
+ styles: [``]
3333
+ }]
3334
+ }], propDecorators: { events: [{
3335
+ type: Input
3336
+ }], config: [{
3337
+ type: Input
3338
+ }] } });
3339
+
3340
+ class DayPilotNavigatorComponent {
3341
+ constructor() {
3342
+ this.events = [];
3343
+ this.dateChange = new EventEmitter();
3344
+ this._requestUpdate = false;
3345
+ this._hashOptions = "";
3346
+ this._hashEvents = "";
3347
+ this._onTrs = null;
3348
+ this._dateSet = false;
3349
+ this._currentDate = null;
3350
+ this._date = DayPilot.Date.today();
3351
+ this._id = "dp_" + new Date().getTime() + rand();
3352
+ }
3353
+ get date() {
3354
+ return this._date;
3355
+ }
3356
+ // @Input() date: DayPilot.Date = DayPilot.Date.today();
3357
+ set date(value) {
3358
+ this._date = value;
3359
+ this._dateSet = true;
3360
+ }
3361
+ get id() {
3362
+ return this._id;
3363
+ }
3364
+ ngOnInit() {
3365
+ }
3366
+ ngOnDestroy() {
3367
+ this.dispose();
3368
+ }
3369
+ ngAfterViewInit() {
3370
+ this.dispose();
3371
+ this.control = new DayPilot.Navigator(this.id);
3372
+ let component = this;
3373
+ this.updateOptions();
3374
+ this.updateEvents();
3375
+ let dp = this.control;
3376
+ this.control.onTimeRangeSelected = function (args) {
3377
+ // emit event
3378
+ component.dateChange.emit(args.day);
3379
+ // call the original
3380
+ if (component._onTrs) {
3381
+ component._onTrs.call(dp, args);
3382
+ }
3383
+ };
3384
+ this._requestUpdate = false; // config just loaded and calling init(), no need to call update again
3385
+ this.control.init();
3386
+ if (this.control.selectionDay !== DayPilot.Date.today()) {
3387
+ component.dateChange.emit(this.control.selectionDay);
3388
+ }
3389
+ }
3390
+ ngDoCheck() {
3391
+ if (!this.control) {
3392
+ return;
3393
+ }
3394
+ this.updateOptions();
3395
+ this.updateEvents();
3396
+ if (this._requestUpdate) {
3397
+ this.control.update();
3398
+ this._requestUpdate = false;
3399
+ }
3400
+ }
3401
+ dispose() {
3402
+ if (this.control) {
3403
+ this.control.dispose();
3404
+ //@ts-ignore
3405
+ this.control = null;
3406
+ }
3407
+ }
3408
+ updateOptions() {
3409
+ let dp = this.control;
3410
+ let hash = optHash(this.config);
3411
+ if (hash !== this._hashOptions) {
3412
+ for (let name in this.config) {
3413
+ if (name === "selectionDay") {
3414
+ continue; // ignore
3415
+ }
3416
+ if (name === "onTimeRangeSelected") {
3417
+ this._onTrs = this.config.onTimeRangeSelected;
3418
+ }
3419
+ else {
3420
+ dp[name] = this.config[name];
3421
+ }
3422
+ this._requestUpdate = true;
3423
+ }
3424
+ }
3425
+ if (this._dateSet && this.date) {
3426
+ this._dateSet = false;
3427
+ this._currentDate = dp.selectionDay;
3428
+ dp.select(this.date);
3429
+ }
3430
+ this._hashOptions = hash;
3431
+ }
3432
+ updateEvents() {
3433
+ let hash = optHash(this.events);
3434
+ if (hash !== this._hashEvents) {
3435
+ let dp = this.control;
3436
+ dp.events.list = this.events;
3437
+ this._requestUpdate = true;
3438
+ }
3439
+ this._hashEvents = hash;
3440
+ }
3441
+ }
3442
+ DayPilotNavigatorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: DayPilotNavigatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3443
+ DayPilotNavigatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0", type: DayPilotNavigatorComponent, selector: "daypilot-navigator", inputs: { events: "events", config: "config", date: "date" }, outputs: { dateChange: "dateChange" }, ngImport: i0, template: `
3444
+ <div id='{{id}}'></div>`, isInline: true, styles: [""] });
3445
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: DayPilotNavigatorComponent, decorators: [{
3446
+ type: Component,
3447
+ args: [{
3448
+ selector: 'daypilot-navigator',
3449
+ template: `
3450
+ <div id='{{id}}'></div>`,
3451
+ styles: [``]
3452
+ }]
3453
+ }], propDecorators: { events: [{
3454
+ type: Input
3455
+ }], config: [{
3456
+ type: Input
3457
+ }], dateChange: [{
3458
+ type: Output
3459
+ }], date: [{
3460
+ type: Input
3461
+ }] } });
3462
+
3463
+ const COMPONENTS = [
3464
+ DayPilotCalendarComponent,
3465
+ DayPilotMonthComponent,
3466
+ DayPilotNavigatorComponent
3467
+ ];
3468
+ class DayPilotModule {
3469
+ }
3470
+ DayPilotModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: DayPilotModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3471
+ DayPilotModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: DayPilotModule, declarations: [DayPilotCalendarComponent,
3472
+ DayPilotMonthComponent,
3473
+ DayPilotNavigatorComponent], exports: [DayPilotCalendarComponent,
3474
+ DayPilotMonthComponent,
3475
+ DayPilotNavigatorComponent] });
3476
+ DayPilotModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: DayPilotModule, imports: [[]] });
3477
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: DayPilotModule, decorators: [{
3478
+ type: NgModule,
3479
+ args: [{
3480
+ declarations: [
3481
+ ...COMPONENTS
3482
+ ],
3483
+ imports: [],
3484
+ exports: [
3485
+ ...COMPONENTS
3486
+ ]
3487
+ }]
3488
+ }] });
3489
+
3490
+ /*
3491
+ * Public API Surface of daypilot-lite-angular
3492
+ */
3493
+
3494
+ /**
3495
+ * Generated bundle index. Do not edit.
3496
+ */
3497
+
3498
+ export { DayPilot, DayPilotCalendarComponent, DayPilotModule, DayPilotMonthComponent, DayPilotNavigatorComponent };
3499
+ //# sourceMappingURL=daypilot-daypilot-lite-angular.mjs.map