"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Event = void 0; var Event = (function () { function Event(obj) { this.id = obj.id; this.start = obj.start; this.end = obj.end; this.ressourceId = obj.ressourceId; this.title = (obj === null || obj === void 0 ? void 0 : obj.title) || this.id; this.isDisplayed = false; this.offset = 0; this.editable = (obj === null || obj === void 0 ? void 0 : obj.editable) === undefined ? null : obj.editable; this.ressourceEditable = (obj === null || obj === void 0 ? void 0 : obj.ressourceEditable) === undefined ? null : obj.ressourceEditable; this.moving = false; this.selected = false; this.bgColor = obj.bgColor; } Object.defineProperty(Event.prototype, "startStr", { get: function () { return this.start.toISOString(); }, enumerable: false, configurable: true }); Object.defineProperty(Event.prototype, "endStr", { get: function () { return this.end.toISOString(); }, enumerable: false, configurable: true }); Event.toTimeSlot = function (obj) { if (obj instanceof Event) { return obj; } else { return new Event(obj); } }; return Event; }()); exports.Event = Event; exports.default = Event; //# sourceMappingURL=Event.js.map