@daypilot/daypilot-lite-angular
Version:
DayPilot Lite for Angular
454 lines (448 loc) • 417 kB
JavaScript
import * as i0 from '@angular/core';
import { EventEmitter, Component, Output, Input, NgModule } from '@angular/core';
//@ts-nocheck
/*
Copyright © 2025 Annpoint, s.r.o.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-------------------------------------------------------------------------
NOTE: Requires the following acknowledgement (see also NOTICE):
This software includes DayPilot (https://www.daypilot.org).
*/
var DayPilot;
(function (DayPilot) {
class CalendarPropsAndEvents {
}
DayPilot.CalendarPropsAndEvents = CalendarPropsAndEvents;
class CalendarConfig extends CalendarPropsAndEvents {
}
DayPilot.CalendarConfig = CalendarConfig;
class Calendar extends CalendarPropsAndEvents {
}
DayPilot.Calendar = Calendar;
class Column {
}
DayPilot.Column = Column;
class MonthPropsAndEvents {
}
DayPilot.MonthPropsAndEvents = MonthPropsAndEvents;
class MonthConfig extends MonthPropsAndEvents {
}
DayPilot.MonthConfig = MonthConfig;
class Month extends MonthPropsAndEvents {
}
DayPilot.Month = Month;
class NavigatorPropsAndEvents {
}
DayPilot.NavigatorPropsAndEvents = NavigatorPropsAndEvents;
class NavigatorConfig extends NavigatorPropsAndEvents {
}
DayPilot.NavigatorConfig = NavigatorConfig;
class Navigator extends NavigatorPropsAndEvents {
}
DayPilot.Navigator = Navigator;
class Locale {
}
DayPilot.Locale = Locale;
class MenuPropsAndEvents {
}
DayPilot.MenuPropsAndEvents = MenuPropsAndEvents;
class MenuConfig extends MenuPropsAndEvents {
}
DayPilot.MenuConfig = MenuConfig;
class Menu extends MenuPropsAndEvents {
}
DayPilot.Menu = Menu;
class MenuBar {
}
DayPilot.MenuBar = MenuBar;
class SwitcherPropsAndEvents {
}
DayPilot.SwitcherPropsAndEvents = SwitcherPropsAndEvents;
class SwitcherConfig extends SwitcherPropsAndEvents {
}
DayPilot.SwitcherConfig = SwitcherConfig;
class Switcher extends SwitcherPropsAndEvents {
}
DayPilot.Switcher = Switcher;
class Date {
}
DayPilot.Date = Date;
class DayPilotDateCache {
}
DayPilot.DayPilotDateCache = DayPilotDateCache;
class Util {
}
DayPilot.Util = Util;
class ColorUtil {
}
DayPilot.ColorUtil = ColorUtil;
class Http {
}
DayPilot.Http = Http;
class Duration {
}
DayPilot.Duration = Duration;
class Event {
}
DayPilot.Event = Event;
class Selection {
}
DayPilot.Selection = Selection;
// modal
class ModalPropsAndEvents {
}
DayPilot.ModalPropsAndEvents = ModalPropsAndEvents;
class ModalConfig extends ModalPropsAndEvents {
}
DayPilot.ModalConfig = ModalConfig;
class Modal extends ModalPropsAndEvents {
}
DayPilot.Modal = Modal;
class ModalAlertConfig extends ModalConfig {
}
DayPilot.ModalAlertConfig = ModalAlertConfig;
class ModalConfirmConfig extends ModalConfig {
}
DayPilot.ModalConfirmConfig = ModalConfirmConfig;
class ModalPromptConfig extends ModalConfig {
}
DayPilot.ModalPromptConfig = ModalPromptConfig;
class ModalFormConfig extends ModalConfig {
}
DayPilot.ModalFormConfig = ModalFormConfig;
})(DayPilot || (DayPilot = {}));
/*
DayPilot Lite
Copyright (c) 2005 - 2025 Annpoint s.r.o.
https://www.daypilot.org/
Licensed under Apache Software License 2.0
Version: 2025.1.638-lite
*/
var DayPilot = {};
if ("undefined" == typeof DayPilot)
var DayPilot = {};
if (function () {
function e(e) {
var t = DayPilot.Date.Cache.Ticks;
if (t[e])
return DayPilot.Stats.cacheHitsTicks += 1, t[e];
var i, a = new Date(e), n = a.getUTCMilliseconds();
i = 0 === n ? "" : n < 10 ? ".00" + n : n < 100 ? ".0" + n : "." + n;
var o = a.getUTCSeconds();
o < 10 && (o = "0" + o);
var r = a.getUTCMinutes();
r < 10 && (r = "0" + r);
var s = a.getUTCHours();
s < 10 && (s = "0" + s);
var l = a.getUTCDate();
l < 10 && (l = "0" + l);
var d = a.getUTCMonth() + 1;
d < 10 && (d = "0" + d);
var c = a.getUTCFullYear();
if (c <= 0)
throw "The minimum year supported is 1.";
c < 10 ? c = "000" + c : c < 100 ? c = "00" + c : c < 1e3 && (c = "0" + c);
var u = c + "-" + d + "-" + l + "T" + s + ":" + r + ":" + o + i;
return t[e] = u, u;
}
function t(e, t) { return !DayPilot.Util.isNullOrUndefined(e) && (!DayPilot.Util.isNullOrUndefined(t) && e.toLocaleLowerCase() === t.toLocaleLowerCase()); }
function i(e) { e = Math.min(e, 255), e = Math.max(e, 0); var t = e.toString(16); return e < 16 ? "0" + t : t; }
if ("undefined" == typeof DayPilot.$) {
"undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), DayPilot.$ = function (e) { return document.getElementById(e); }, Object.defineProperty(DayPilot, "isKhtml", { get: function () { return "undefined" != typeof navigator && navigator.userAgent && navigator.userAgent.indexOf("KHTML") !== -1; } }), DayPilot.mo2 = function (e, t) {
if (t = t || window.event, "undefined" != typeof t.offsetX) {
var i = { x: t.offsetX + 1, y: t.offsetY + 1 };
if (!e)
return i;
for (var a = t.srcElement; a && a !== e;)
"SPAN" !== a.tagName && (i.x += a.offsetLeft, a.offsetTop > 0 && (i.y += a.offsetTop - a.scrollTop)), a = a.offsetParent;
return a ? i : null;
}
if ("undefined" != typeof t.layerX) {
var i = { x: t.layerX, y: t.layerY, src: t.target };
if (!e)
return i;
for (var a = t.target; a && "absolute" !== a.style.position && "relative" !== a.style.position;)
a = a.parentNode, DayPilot.isKhtml && (i.y += a.scrollTop);
for (; a && a !== e;)
i.x += a.offsetLeft, i.y += a.offsetTop - a.scrollTop, a = a.offsetParent;
return a ? i : null;
}
return null;
}, DayPilot.mo3 = function (e, t) {
var i, a = DayPilot.page(t);
if (a)
if (e) {
var n = DayPilot.abs(e);
if (!n)
throw new Error("no abs");
i = { x: a.x - n.x, y: a.y - n.y };
}
else
i = { x: a.x, y: a.y };
else if (i = DayPilot.mo2(e, t), !i)
return null;
return i.shift = t.shiftKey, i.meta = t.metaKey, i.ctrl = t.ctrlKey, i.alt = t.altKey, i;
}, DayPilot.browser = {}, Object.defineProperty(DayPilot.browser, "hover", { get: function () { return !window.matchMedia("(any-hover: none)").matches; } }), DayPilot.touch = {}, DayPilot.page = function (e) { var t = e.changedTouches && e.changedTouches[0] ? e.changedTouches[0] : e; return "undefined" != typeof t.pageX ? { x: t.pageX, y: t.pageY } : "undefined" != typeof e.clientX && document.body && document.documentElement ? { x: e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft, y: e.clientY + document.body.scrollTop + document.documentElement.scrollTop } : null; }, DayPilot.abs = function (e, t) {
if (!e)
return null;
if (e.getBoundingClientRect) {
var i = DayPilot.absBoundingClientBased(e);
if (t) {
var a = DayPilot.absOffsetBased(e, !1), t = DayPilot.absOffsetBased(e, !0);
i.x += t.x - a.x, i.y += t.y - a.y, i.w = t.w, i.h = t.h;
}
return i;
}
return DayPilot.absOffsetBased(e, t);
}, DayPilot.absBoundingClientBased = function (e) { var t = e.getBoundingClientRect(); return { x: t.left + window.pageXOffset, y: t.top + window.pageYOffset, w: e.clientWidth, h: e.clientHeight, toString: function () { return "x:" + this.x + " y:" + this.y + " w:" + this.w + " h:" + this.h; } }; }, DayPilot.absOffsetBased = function (e, t) {
for (var i = { 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;)
e = e.offsetParent, i.x -= e.scrollLeft, i.y -= e.scrollTop, t && (i.x < 0 && (i.w += i.x, i.x = 0), i.y < 0 && (i.h += i.y, i.y = 0), e.scrollLeft > 0 && i.x + i.w > e.clientWidth && (i.w -= i.x + i.w - e.clientWidth), e.scrollTop && i.y + i.h > e.clientHeight && (i.h -= i.y + i.h - e.clientHeight)), i.x += e.offsetLeft, i.y += e.offsetTop;
var a = DayPilot.pageOffset();
return i.x += a.x, i.y += a.y, i;
}, DayPilot.isArray = function (e) { return "[object Array]" === Object.prototype.toString.call(e); }, DayPilot.distance = function (e, t) { return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2)); }, DayPilot.sheet = function () {
if ("undefined" == typeof window) {
var e = {};
return e.add = function () { }, e.commit = function () { }, e;
}
var t = document.createElement("style");
t.setAttribute("type", "text/css"), t.styleSheet || t.appendChild(document.createTextNode("")), (document.head || document.getElementsByTagName("head")[0]).appendChild(t);
var i = !!t.styleSheet, e = {};
return e.rules = [], e.commit = function () { i && (t.styleSheet.cssText = this.rules.join("\n")); }, e.add = function (e, a, n) { return i ? void this.rules.push(e + "{" + a + "}") : void (t.sheet.insertRule ? ("undefined" == typeof n && (n = t.sheet.cssRules.length), t.sheet.insertRule(e + "{" + a + "}", n)) : t.sheet.addRule && t.sheet.addRule(e, a, n)); }, e;
}, DayPilot.gs = function (e, t) { return window.getComputedStyle(e, null).getPropertyValue(t) || ""; }, DayPilot.StyleReader = function (e) { this.get = function (t) { return e ? DayPilot.gs(e, t) : null; }, this.getPx = function (e) { var t = this.get(e); return t.indexOf("px") === -1 ? void 0 : parseInt(t, 10); }; }, function () {
if (!DayPilot.Global.defaultCss) {
var e = DayPilot.sheet();
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: #333; border: 1px solid #999;"), e.add(".calendar_default_event_bar", "top: 0px;bottom: 0px;left: 0px;width: 6px;background-color: #9dc8e8;"), e.add(".calendar_default_event_bar_inner", "position: absolute;width: 6px;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 8px; font-size: 13px;"), 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_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(".calendar_default_event_moving_source", "opacity: 0.5;"), e.add(".calendar_default_shadow_inner", "box-sizing: border-box; background-color: #bbbbbb;border: 1px solid #888888;opacity: 0.5;height: 100%;"), e.add(".calendar_default_shadow", "box-shadow: 0 2px 5px rgba(0,0,0,.2);"), e.add(".menu_default_main", "user-select:none; font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;font-size: 13px;border: 1px solid #dddddd;background-color: white;padding: 0px;cursor: default;background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAABCAIAAABG0om7AAAAKXRFWHRDcmVhdGlvbiBUaW1lAHBvIDEwIDUgMjAxMCAyMjozMzo1OSArMDEwMGzy7+IAAAAHdElNRQfaBQoUJAesj4VUAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAABGdBTUEAALGPC/xhBQAAABVJREFUeNpj/P//PwO1weMnT2RlZAAYuwX/4oA3BgAAAABJRU5ErkJggg==);background-repeat: repeat-y;xborder-radius: 5px;-moz-box-shadow:0px 2px 3px rgba(000,000,000,0.3),inset 0px 0px 2px rgba(255,255,255,0.8);-webkit-box-shadow:0px 2px 3px rgba(000,000,000,0.3),inset 0px 0px 2px rgba(255,255,255,0.8);box-shadow:0px 2px 3px rgba(000,000,000,0.3),inset 0px 0px 2px rgba(255,255,255,0.8);"), e.add(".menu_default_main, .menu_default_main *, .menu_default_main *:before, .menu_default_main *:after", "box-sizing: content-box;"), e.add(".menu_default_title", "background-color: #f2f2f2;border-bottom: 1px solid gray;padding: 4px 4px 4px 37px;"), e.add(".menu_default_main a", "padding: 2px 2px 2px 35px;color: black;text-decoration: none;cursor: default;"), e.add(".menu_default_main.menu_default_withchildren a", "padding: 2px 35px 2px 35px;"), e.add(".menu_default_main a img", "margin-left: 6px;margin-top: 2px;"), e.add(".menu_default_item_text", "display: block;height: 20px;line-height: 20px; overflow:hidden;padding-left: 2px;padding-right: 20px; white-space: nowrap;"), e.add(".menu_default_main a:hover", "background-color: #f3f3f3;"), e.add(".menu_default_main div div", "border-top: 1px solid #dddddd;margin-top: 2px;margin-bottom: 2px;margin-left: 28px;"), e.add(".menu_default_main a.menu_default_item_disabled", "color: #ccc"), e.add(".menu_default_item_haschildren.menu_default_item_haschildren_active", "background-color: #f3f3f3;"), e.add(".menu_default_item_haschildren a:before", "content: ''; border-width: 5px; border-color: transparent transparent transparent #666; border-style: solid; width: 0px; height:0px; position: absolute; right: 5px; margin-top: 5px;"), e.add(".menu_default_item_icon", "position: absolute; top:0px; left: 0px; padding: 2px 2px 2px 8px;"), e.add(".menu_default_item a i", "height: 20px;line-height: 20px;"), e.add(".menu_default_item .menu_default_item_symbol", "width: 18px; height: 18px; color: #999; margin-left: 6px;margin-top: 2px;"), e.add(".menubar_default_main", "border-bottom: 1px solid #ccc; font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px; user-select:none;"), e.add(".menubar_default_item", "display: inline-block; padding: 6px 10px; cursor: default;"), e.add(".menubar_default_item:hover", "background-color: #f2f2f2;"), e.add(".menubar_default_item_active", "background-color: #f2f2f2;"), 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:#333; 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; color: #999;"), 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: 10px;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_event_bar", "top: 1px;bottom: 1px;left: 2px;width: 6px;"), e.add(".month_default_event_bar_inner", "position: absolute;width: 6px;background-color: #1066a8;"), e.add(".month_default_event_continueleft .month_default_event_bar", "display: none;"), e.add(".month_default_selected .month_default_event_inner", "background: #ddd;"), 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.add(".month_default_shadow_inner", "box-sizing: border-box; background-color: #bbbbbb;border: 1px solid #888888;opacity: 0.5;height: 100%;"), e.add(".month_default_shadow", "box-shadow: 0 2px 5px rgba(0,0,0,.2);"), e.commit(), DayPilot.Global.defaultCss = !0;
}
}(), 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 () {
if ("undefined" != typeof pageXOffset)
return { x: pageXOffset, y: pageYOffset };
var e = DayPilot.doc();
return { x: e.scrollLeft, y: e.scrollTop };
}, DayPilot.indexOf = function (e, t) {
if (!e || !e.length)
return -1;
for (var i = 0; i < e.length; i++)
if (e[i] === t)
return i;
return -1;
}, DayPilot.ac = function (e, t) {
if (!t)
var t = [];
for (var i = 0; e.children && i < e.children.length; i++)
t.push(e.children[i]), DayPilot.ac(e.children[i], t);
return t;
}, DayPilot.rfa = function (e, t) { var i = DayPilot.indexOf(e, t); i !== -1 && e.splice(i, 1); }, 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.re = function (e, t, i) { i && t && e && e.addEventListener(t, i, !1); }, DayPilot.rePassive = function (e, t, i) { i && t && e && e.addEventListener(t, i, { "passive": !0 }); }, DayPilot.reNonPassive = function (e, t, i) { i && t && e && e.addEventListener(t, i, { "passive": !1 }); }, DayPilot.pu = function (e) {
var t, i, a, n = e.attributes;
if (n)
for (i = n.length, t = 0; t < i; t += 1)
n[t] && (a = n[t].name, "function" == typeof e[a] && (e[a] = null));
if (n = e.childNodes)
for (i = n.length, t = 0; t < i; t += 1) {
DayPilot.pu(e.childNodes[t]);
}
}, DayPilot.de = function (e) {
if (e)
if (DayPilot.isArray(e))
for (var t = 0; t < e.length; t++)
DayPilot.de(e[t]);
else
e.parentNode && e.parentNode.removeChild(e);
}, 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, i, a) { this.type = "selection", this.start = e.isDayPilotDate ? e : new DayPilot.Date(e), this.end = t.isDayPilotDate ? t : new DayPilot.Date(t), this.resource = i, this.root = a, 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, i, a) {
var n = DayPilot.createXmlHttp();
n && (n.open("POST", e, !0), n.setRequestHeader("Content-type", "text/plain"), n.onreadystatechange = function () {
if (4 === n.readyState)
return 200 !== n.status && 304 !== n.status ? void (a ? a(n) : window.console && console.log("HTTP error " + n.status)) : void t(n);
}, 4 !== n.readyState && ("object" == typeof i && (i = JSON.stringify(i)), n.send(i)));
}, DayPilot.ajax = function (e) {
if (!e)
throw new DayPilot.Exception("Parameter object required.");
if ("string" != typeof e.url)
throw new DayPilot.Exception("The parameter object must have 'url' property.");
var t = DayPilot.createXmlHttp();
if (!t)
throw new DayPilot.Exception("Unable to create XMLHttpRequest object");
var i = "object" == typeof e.data, a = e.data, n = e.method || (e.data ? "POST" : "GET"), o = e.success || function () { }, r = e.error || function () { }, s = e.url, l = e.contentType || (i ? "application/json" : "text/plain"), d = e.headers || {};
t.open(n, s, !0), t.setRequestHeader("Content-type", l), DayPilot.Util.ownPropsAsArray(d).forEach(function (e) { t.setRequestHeader(e.key, e.val); }), t.onreadystatechange = function () {
if (4 === t.readyState)
if (200 === t.status || 201 === t.status || 204 === t.status || 304 === t.status) {
var e = {};
e.request = t, t.responseText && (e.data = JSON.parse(t.responseText)), o(e);
}
else if (r) {
var e = {};
e.request = t, r(e);
}
else
window.console && console.log("HTTP error " + t.status);
}, 4 !== t.readyState && (i && (a = JSON.stringify(a)), t.send(a));
}, DayPilot.createXmlHttp = function () { return new XMLHttpRequest; }, DayPilot.Http = {}, DayPilot.Http.ajax = function (e) { DayPilot.ajax(e); }, DayPilot.Http.get = function (e, t) { return t = t || {}, new Promise(function (i, a) { var n = {}; n.url = e, n.method = "GET", n.success = function (e) { i(e); }, n.error = function (e) { a(e); }, n.contentType = t.contentType, n.headers = t.headers, DayPilot.ajax(n); }); }, DayPilot.Http.post = function (e, t, i) { return i = i || {}, new Promise(function (a, n) { var o = {}; o.url = e, o.method = "POST", o.data = t, o.success = function (e) { a(e); }, o.error = function (e) { n(e); }, o.contentType = i.contentType, o.headers = i.headers, DayPilot.ajax(o); }); }, DayPilot.Http.put = function (e, t, i) { return i = i || {}, new Promise(function (a, n) { var o = {}; o.url = e, o.method = "PUT", o.data = t, o.success = function (e) { a(e); }, o.error = function (e) { n(e); }, o.contentType = i.contentType, o.headers = i.headers, DayPilot.ajax(o); }); }, DayPilot.Http.delete = function (e, t) { return t = t || {}, new Promise(function (i, a) { var n = {}; n.url = e, n.method = "DELETE", n.success = function (e) { i(e); }, n.error = function (e) { a(e); }, n.contentType = t.contentType, n.headers = t.headers, DayPilot.ajax(n); }); }, DayPilot.Util = {}, DayPilot.Util.addClass = function (e, t) {
if (e) {
if (!e.className)
return void (e.className = t);
new RegExp("(^|\\s)" + t + "($|\\s)").test(e.className) || (e.className = e.className + " " + t);
}
}, DayPilot.Util.removeClass = function (e, t) {
if (e) {
var i = new RegExp("(^|\\s)" + t + "($|\\s)");
e.className = e.className.replace(i, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, "");
}
}, DayPilot.Util.copyProps = function (e, t, i) {
if (t || (t = {}), !e)
return t;
if ("undefined" == typeof i)
for (var a in e)
e.hasOwnProperty(a) && "undefined" != typeof e[a] && (t[a] = e[a]);
else
for (var n = 0; n < i.length; n++) {
var a = i[n];
"undefined" != typeof e[a] && (t[a] = e[a]);
}
return t;
}, DayPilot.Util.ownPropsAsArray = function (e) {
var t = [];
if (!e)
return t;
for (var i in e)
if (e.hasOwnProperty(i)) {
var a = {};
a.key = i, a.val = e[i], t.push(a);
}
return t;
}, DayPilot.Util.replaceCharAt = function (e, t, i) { return e.substr(0, t) + i + e.substr(t + i.length); }, DayPilot.Util.isNullOrUndefined = function (e) { return null === e || "undefined" == typeof e; }, DayPilot.Util.escapeHtml = function (e) { var t = document.createElement("div"); return t.innerText = e, t.innerHTML; }, DayPilot.Util.escapeTextHtml = function (e, t) { return DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : DayPilot.Util.escapeHtml(e) : t; }, DayPilot.Util.overlaps = function (e, t, i, a) { return !(t <= i || e >= a); }, DayPilot.Util.isVueVNode = function (e) { return !!e && (DayPilot.isArray(e) ? DayPilot.Util.isVueVNode(e[0]) : e["__v_isVNode"]); }, DayPilot.Areas = {}, DayPilot.Areas.attach = function (e, t, i) {
var i = i || {}, n = i.areas, o = i.allowed || function () { return !0; }, r = i.offsetX || 0;
n = a(t, n), n && DayPilot.isArray(n) && 0 !== n.length && (DayPilot.re(e, "mousemove", function (a) { e.active || e.areasDisabled || !o() || DayPilot.Areas.showAreas(e, t, a, n, { "offsetX": r, "eventDiv": i.eventDiv }); }), DayPilot.re(e, "mouseleave", function (t) { DayPilot.Areas.hideAreas(e, t); }), n.forEach(function (a) {
if (DayPilot.Areas.isVisible(a)) {
var n = DayPilot.Areas.createArea(e, t, a, { "offsetX": r, "eventDiv": i.eventDiv });
e.appendChild(n);
}
}));
}, DayPilot.Areas.disable = function (e) { e.areasDisabled = !0, Array.from(e.childNodes).filter(function (e) { return e.isActiveArea && !e.area.start; }).forEach(function (e) { e.c = e.style.display, e.style.display = "none"; }); }, DayPilot.Areas.enable = function (e) { e.areasDisabled = !1, Array.from(e.childNodes).filter(function (e) { return e.isActiveArea && !e.area.start; }).forEach(function (e) { e.c ? e.style.display = e.c : e.style.display = ""; }); }, DayPilot.Areas.remove = function (e) { var t = Array.from(e.childNodes).filter(function (e) { return e.isActiveArea; }); DayPilot.de(t); }, DayPilot.Areas.isVisible = function (e) { var t = e.visibility || e.v || "Visible"; return "Visible" === t || "TouchVisible" === t && !DayPilot.browser.hover; }, DayPilot.Areas.copy = function (e) { return DayPilot.isArray(e) ? e.map(function (e) { return DayPilot.Util.copyProps(e, {}); }) : []; };
var a = function (e, t) { return DayPilot.isArray(t) || (t = e.areas, t || (e.cache ? t = e.cache.areas : e.data && (t = e.data.areas))), t; };
DayPilot.Areas.showAreas = function (e, t, i, a, n) {
if (!DayPilot.Global.resizing && !DayPilot.Global.moving && !DayPilot.Global.selecting && !e.active && DayPilot.browser.hover) {
if (DayPilot.Areas.all && DayPilot.Areas.all.length > 0)
for (var o = 0; o < DayPilot.Areas.all.length; o++) {
var r = DayPilot.Areas.all[o];
r !== e && DayPilot.Areas.hideAreas(r, i);
}
if (e.active = {}, DayPilot.isArray(a) || (a = t.areas, a || (t.cache ? a = t.cache.areas : t.data && (a = t.data.areas))), a && 0 !== a.length && !(e.areas && e.areas.length > 0)) {
e.areas = [];
for (var o = 0; o < a.length; o++) {
var s = a[o];
if (!DayPilot.Areas.isVisible(s)) {
var l = DayPilot.Areas.createArea(e, t, s, n);
e.areas.push(l), e.appendChild(l), DayPilot.Areas.all.push(e);
}
}
e.active.children = DayPilot.ac(e);
}
}
}, DayPilot.Areas.createArea = function (e, t, i, a) {
function n(e, t, i) { var a = {}; return a.area = e, a.source = t, a.originalEvent = i, a.preventDefault = function () { a.preventDefault.value = !0; }, "function" == typeof e.onClick && e.onClick(a), a; }
function o(e, t, i) { DayPilot.Bubble && DayPilot.Bubble.touchPosition(i), e.calendar.bubble && e.calendar.bubble.showEvent(e, !0); }
function r(e, t, i, a) {
DayPilot.Menu && DayPilot.Menu.touchPosition(a);
var n = i.contextMenu || i.menu;
if (n instanceof DayPilot.Menu || (t.isEvent && t.client.contextMenu() ? n = t.client.contextMenu() : t.isEvent && t.calendar.contextMenu && (n = t.calendar.contextMenu)),
n && n.show) {
var o = { "type": "area", "div": e, "e": t, "area": i, "a": d };
n.show(t, { "initiator": o });
}
}
function s(e) { return "string" == typeof e && isNaN(e) ? e : "undefined" != typeof e ? e + "px" : void 0; }
var a = a || {}, l = (a.offsetX || 0, a.eventDiv || e), d = document.createElement("div");
d.isActiveArea = !0, d.area = i, d.setAttribute("unselectable", "on");
var c = i.w || i.width, u = i.h || i.height, h = i.cssClass || i.css || i.className;
if ("undefined" != typeof i.style && d.setAttribute("style", i.style), d.style.position = "absolute", d.style.width = s(c), d.style.height = s(u), d.style.right = s(i.right), d.style.top = s(i.top), d.style.left = s(i.left), d.style.bottom = s(i.bottom), d.style.borderRadius = s(i.borderRadius), "undefined" != typeof i.html || "undefined" != typeof i.text)
d.innerHTML = DayPilot.Util.escapeTextHtml(i.text, i.html);
else if (i.icon) {
var f = document.createElement("i");
f.className = i.icon, d.appendChild(f);
}
else if (i.image) {
var m = document.createElement("img");
m.src = i.image, d.appendChild(m);
}
else if (i.symbol) {
var p = "http://www.w3.org/2000/svg", v = document.createElementNS(p, "svg");
v.setAttribute("width", "100%"), v.setAttribute("height", "100%");
var y = document.createElementNS(p, "use");
y.setAttribute("href", i.symbol), v.appendChild(y), d.appendChild(v);
}
if (h && (d.className = h), i.toolTip && d.setAttribute("title", i.toolTip), i.backColor && (d.style.background = i.backColor), i.background && (d.style.background = i.background), i.fontColor && (d.style.color = i.fontColor), i.padding && (d.style.padding = i.padding + "px", d.style.boxSizing = "border-box"), i.verticalAlignment)
switch (d.style.display = "flex", i.verticalAlignment) {
case "center":
d.style.alignItems = "center";
break;
case "top":
d.style.alignItems = "flex-start";
break;
case "bottom": d.style.alignItems = "flex-end";
}
if (i.horizontalAlignment)
switch (d.style.display = "flex", i.horizontalAlignment) {
case "right":
d.style.justifyContent = "flex-end";
break;
case "left":
d.style.justifyContent = "flex-start";
break;
case "center": d.style.justifyContent = "center";
}
if ("ResizeEnd" === i.action || "ResizeStart" === i.action || "Move" === i.action) {
if (t.calendar.isCalendar)
switch (i.action) {
case "ResizeEnd":
i.cursor = "s-resize", i.dpBorder = "bottom";
break;
case "ResizeStart":
i.cursor = "n-resize", i.dpBorder = "top";
break;
case "Move": i.cursor = "move";
}
if (t.calendar.isScheduler || t.calendar.isMonth)
switch (i.action) {
case "ResizeEnd":
i.cursor = "e-resize", i.dpBorder = "right";
break;
case "ResizeStart":
i.cursor = "w-resize", i.dpBorder = "left";
break;
case "Move": i.cursor = "move";
}
d.onmousemove = function (e, t, i) { return function (a) { t.calendar.internal && t.calendar.internal.dragInProgress && t.calendar.internal.dragInProgress() || (a.cancelBubble = !0, e.style.cursor = i.cursor, i.dpBorder && (e.dpBorder = i.dpBorder)); }; }(l, t, i), d.onmouseout = function (e, t, i) { return function (t) { e.style.cursor = ""; }; }(l, t, i);
}
if (("ResizeEnd" === i.action || "ResizeStart" === i.action) && t.isEvent && t.calendar.internal.touch) {
var g = function (e, t, i) { return function (a) { a.cancelBubble = !0; var n = t.calendar.internal.touch, o = a.touches ? a.touches[0] : a, r = { x: o.pageX, y: o.pageY }; t.calendar.coords = n.relativeCoords(a), n.preventEventTap = !0, t.calendar.isScheduler ? n.startResizing(e, "ResizeEnd" === i.action ? "right" : "left") : t.calendar.isCalendar && n.startResizing(e, "ResizeEnd" === i.action ? "bottom" : "top", r); }; }(l, t, i);
DayPilot.rePassive(d, DayPilot.touch.start, g);
}
if ("ContextMenu" === i.action && t.isEvent && t.calendar.internal.touch) {
var g = function (e, t, i) { return function (a) { a.cancelBubble = !0, a.preventDefault(), r(e, t, i, a), t.calendar.internal.touch.preventEventTap = !0; }; }(l, t, i), b = function (e, t, i) { return function (e) { e.cancelBubble = !0, e.preventDefault(); }; }(l, t, i);
DayPilot.reNonPassive(d, DayPilot.touch.start, g), DayPilot.reNonPassive(d, DayPilot.touch.end, b);
}
if ("Bubble" === i.action && t.isEvent && t.calendar.internal.touch) {
var g = function (e, t, i) {
return function (e) {
e.cancelBubble = !0, e.preventDefault();
var a = n(i, t, e);
if (!a.preventDefault.value) {
o(t, i, e);
t.calendar.internal.touch.preventEventTap = !0, "function" == typeof i.onClicked && i.onClicked(a);
}
};
}(l, t, i), b = function (e, t, i) { return function (e) { e.cancelBubble = !0, e.preventDefault(); }; }(l, t, i);
DayPilot.reNonPassive(d, DayPilot.touch.start, g), DayPilot.reNonPassive(d, DayPilot.touch.end, b);
}
if ("Move" === i.action && t.isEvent && t.calendar.internal.touch) {
var g = function (e, t, i) { return function (i) { i.cancelBubble = !0; var a = t.calendar.internal.touch, n = i.touches ? i.touches[0] : i, o = { x: n.pageX, y: n.pageY }; t.calendar.coords = a.relativeCoords(i), DayPilot.Global && DayPilot.Global.touch && (DayPilot.Global.touch.active = !0), a.preventEventTap = !0, a.startMoving(e, o); }; }(l, t, i);
DayPilot.rePassive(d, DayPilot.touch.start, g);
}
if ("Bubble" === i.action && t.isEvent ? (d.onmousemove = function (e, t, i) { return function (e) { i.bubble ? i.bubble.showEvent(t, !0) : t.calendar.bubble && t.calendar.bubble.showEvent(t, !0); }; }(e, t, i), d.onmouseout = function (e, t, i) { return function (e) { "undefined" != typeof DayPilot.Bubble && (i.bubble ? i.bubble.hideOnMouseOut() : t.calendar.bubble && t.calendar.bubble.hideOnMouseOut()); }; }(e, t, i)) : "Bubble" === i.action && t.isRow ? (d.onmousemove = function (e, t, i) { return function (e) { i.bubble ? i.bubble.showResource(t, !0) : t.calendar.resourceBubble && t.calendar.resourceBubble.showResource(t, !0); }; }(e, t, i), d.onmouseout = function (e, t, i) { return function (e) { "undefined" != typeof D