"
);
}),
(e.prototype.renderBgIntroHtml = function (t) {
return this.renderIntroHtml();
}),
(e.prototype.renderBgCellsHtml = function (t) {
var e,
n,
i = [];
for (e = 0; e < this.colCnt; e++)
(n = this.getCellDate(t, e)), i.push(this.renderBgCellHtml(n));
return i.join("");
}),
(e.prototype.renderBgCellHtml = function (t, e) {
var n = this,
i = n.view,
r = n.dateProfile.activeUnzonedRange.containsDate(t),
o = n.getDayClasses(t);
return (
o.unshift("fc-day", i.calendar.theme.getClass("widgetContent")),
'
"
);
}),
(e.prototype.renderIntroHtml = function () {}),
(e.prototype.bookendCells = function (t) {
var e = this.renderIntroHtml();
e && (this.isRTL ? t.append(e) : t.prepend(e));
}),
e
);
})(o.default);
e.default = s;
},
function (t, e) {
Object.defineProperty(e, "__esModule", { value: !0 });
var n = (function () {
function t(t, e) {
(this.component = t), (this.fillRenderer = e);
}
return (
(t.prototype.render = function (t) {
var e = this.component,
n = e._getDateProfile().activeUnzonedRange,
i = t.buildEventInstanceGroup(e.hasAllDayBusinessHours, n),
r = i
? e.eventRangesToEventFootprints(i.sliceRenderRanges(n))
: [];
this.renderEventFootprints(r);
}),
(t.prototype.renderEventFootprints = function (t) {
var e = this.component.eventFootprintsToSegs(t);
this.renderSegs(e), (this.segs = e);
}),
(t.prototype.renderSegs = function (t) {
this.fillRenderer &&
this.fillRenderer.renderSegs("businessHours", t, {
getClasses: function (t) {
return ["fc-nonbusiness", "fc-bgevent"];
},
});
}),
(t.prototype.unrender = function () {
this.fillRenderer && this.fillRenderer.unrender("businessHours"),
(this.segs = null);
}),
(t.prototype.getSegs = function () {
return this.segs || [];
}),
t
);
})();
e.default = n;
},
function (t, e, n) {
Object.defineProperty(e, "__esModule", { value: !0 });
var i = n(3),
r = n(4),
o = (function () {
function t(t) {
(this.fillSegTag = "div"),
(this.component = t),
(this.elsByFill = {});
}
return (
(t.prototype.renderFootprint = function (t, e, n) {
this.renderSegs(t, this.component.componentFootprintToSegs(e), n);
}),
(t.prototype.renderSegs = function (t, e, n) {
var i;
return (
(e = this.buildSegEls(t, e, n)),
(i = this.attachSegEls(t, e)),
i && this.reportEls(t, i),
e
);
}),
(t.prototype.unrender = function (t) {
var e = this.elsByFill[t];
e && (e.remove(), delete this.elsByFill[t]);
}),
(t.prototype.buildSegEls = function (t, e, n) {
var r,
o = this,
s = "",
a = [];
if (e.length) {
for (r = 0; r < e.length; r++)
s += this.buildSegHtml(t, e[r], n);
i(s).each(function (t, r) {
var s = e[t],
l = i(r);
n.filterEl && (l = n.filterEl(s, l)),
l &&
((l = i(l)),
l.is(o.fillSegTag) && ((s.el = l), a.push(s)));
});
}
return a;
}),
(t.prototype.buildSegHtml = function (t, e, n) {
var i = n.getClasses ? n.getClasses(e) : [],
o = r.cssToStr(n.getCss ? n.getCss(e) : {});
return (
"<" +
this.fillSegTag +
(i.length ? ' class="' + i.join(" ") + '"' : "") +
(o ? ' style="' + o + '"' : "") +
" />"
);
}),
(t.prototype.attachSegEls = function (t, e) {}),
(t.prototype.reportEls = function (t, e) {
this.elsByFill[t]
? (this.elsByFill[t] = this.elsByFill[t].add(e))
: (this.elsByFill[t] = i(e));
}),
t
);
})();
e.default = o;
},
function (t, e, n) {
Object.defineProperty(e, "__esModule", { value: !0 });
var i = n(13),
r = n(36),
o = n(6),
s = (function () {
function t(t, e) {
(this.view = t._getView()),
(this.component = t),
(this.eventRenderer = e);
}
return (
(t.prototype.renderComponentFootprint = function (t) {
this.renderEventFootprints([this.fabricateEventFootprint(t)]);
}),
(t.prototype.renderEventDraggingFootprints = function (t, e, n) {
this.renderEventFootprints(
t,
e,
"fc-dragging",
n ? null : this.view.opt("dragOpacity")
);
}),
(t.prototype.renderEventResizingFootprints = function (t, e, n) {
this.renderEventFootprints(t, e, "fc-resizing");
}),
(t.prototype.renderEventFootprints = function (t, e, n, i) {
var r,
o = this.component.eventFootprintsToSegs(t),
s = "fc-helper " + (n || "");
for (
o = this.eventRenderer.renderFgSegEls(o), r = 0;
r < o.length;
r++
)
o[r].el.addClass(s);
if (null != i)
for (r = 0; r < o.length; r++) o[r].el.css("opacity", i);
this.helperEls = this.renderSegs(o, e);
}),
(t.prototype.renderSegs = function (t, e) {}),
(t.prototype.unrender = function () {
this.helperEls &&
(this.helperEls.remove(), (this.helperEls = null));
}),
(t.prototype.fabricateEventFootprint = function (t) {
var e,
n = this.view.calendar,
s = n.footprintToDateProfile(t),
a = new i.default(new o.default(n));
return (
(a.dateProfile = s),
(e = a.buildInstance()),
new r.default(t, a, e)
);
}),
t
);
})();
e.default = s;
},
function (t, e, n) {
Object.defineProperty(e, "__esModule", { value: !0 });
var i = n(2),
r = n(21),
o = n(15),
s = (function (t) {
function e() {
return (null !== t && t.apply(this, arguments)) || this;
}
return (
i.__extends(e, t),
(e.prototype.bindToEl = function (t) {
var e = this.component;
e.bindSegHandlerToEl(t, "click", this.handleClick.bind(this)),
e.bindSegHandlerToEl(
t,
"mouseenter",
this.handleMouseover.bind(this)
),
e.bindSegHandlerToEl(
t,
"mouseleave",
this.handleMouseout.bind(this)
);
}),
(e.prototype.handleClick = function (t, e) {
!1 ===
this.component.publiclyTrigger("eventClick", {
context: t.el[0],
args: [t.footprint.getEventLegacy(), e, this.view],
}) && e.preventDefault();
}),
(e.prototype.handleMouseover = function (t, e) {
r.default.get().shouldIgnoreMouse() ||
this.mousedOverSeg ||
((this.mousedOverSeg = t),
this.view.isEventDefResizable(t.footprint.eventDef) &&
t.el.addClass("fc-allow-mouse-resize"),
this.component.publiclyTrigger("eventMouseover", {
context: t.el[0],
args: [t.footprint.getEventLegacy(), e, this.view],
}));
}),
(e.prototype.handleMouseout = function (t, e) {
this.mousedOverSeg &&
((this.mousedOverSeg = null),
this.view.isEventDefResizable(t.footprint.eventDef) &&
t.el.removeClass("fc-allow-mouse-resize"),
this.component.publiclyTrigger("eventMouseout", {
context: t.el[0],
args: [t.footprint.getEventLegacy(), e || {}, this.view],
}));
}),
(e.prototype.end = function () {
this.mousedOverSeg && this.handleMouseout(this.mousedOverSeg);
}),
e
);
})(o.default);
e.default = s;
},
function (t, e, n) {
Object.defineProperty(e, "__esModule", { value: !0 });
var i = n(2),
r = n(14),
o = n(245),
s = n(225),
a = n(59),
l = n(224),
u = n(223),
d = n(222),
c = (function (t) {
function e() {
return (null !== t && t.apply(this, arguments)) || this;
}
return i.__extends(e, t), e;
})(r.default);
(e.default = c),
(c.prototype.dateClickingClass = o.default),
(c.prototype.dateSelectingClass = s.default),
(c.prototype.eventPointingClass = a.default),
(c.prototype.eventDraggingClass = l.default),
(c.prototype.eventResizingClass = u.default),
(c.prototype.externalDroppingClass = d.default);
},
function (t, e, n) {
Object.defineProperty(e, "__esModule", { value: !0 });
var i = n(2),
r = n(3),
o = n(4),
s = n(53),
a = n(249),
l = n(5),
u = n(12),
d = n(36),
c = n(56),
p = n(60),
h = n(40),
f = n(55),
g = n(250),
v = n(251),
y = n(252),
m = (function (t) {
function e(e) {
var n = t.call(this, e) || this;
return (
(n.cellWeekNumbersVisible = !1),
(n.bottomCoordPadding = 0),
(n.isRigid = !1),
(n.hasAllDayBusinessHours = !0),
n
);
}
return (
i.__extends(e, t),
(e.prototype.componentFootprintToSegs = function (t) {
var e,
n,
i = this.sliceRangeByRow(t.unzonedRange);
for (e = 0; e < i.length; e++)
(n = i[e]),
this.isRTL
? ((n.leftCol = this.daysPerRow - 1 - n.lastRowDayIndex),
(n.rightCol = this.daysPerRow - 1 - n.firstRowDayIndex))
: ((n.leftCol = n.firstRowDayIndex),
(n.rightCol = n.lastRowDayIndex));
return i;
}),
(e.prototype.renderDates = function (t) {
(this.dateProfile = t), this.updateDayTable(), this.renderGrid();
}),
(e.prototype.unrenderDates = function () {
this.removeSegPopover();
}),
(e.prototype.renderGrid = function () {
var t,
e,
n = this.view,
i = this.rowCnt,
r = this.colCnt,
o = "";
for (
this.headContainerEl &&
this.headContainerEl.html(this.renderHeadHtml()),
t = 0;
t < i;
t++
)
o += this.renderDayRowHtml(t, this.isRigid);
for (
this.el.html(o),
this.rowEls = this.el.find(".fc-row"),
this.cellEls = this.el.find(".fc-day, .fc-disabled-day"),
this.rowCoordCache = new s.default({
els: this.rowEls,
isVertical: !0,
}),
this.colCoordCache = new s.default({
els: this.cellEls.slice(0, this.colCnt),
isHorizontal: !0,
}),
t = 0;
t < i;
t++
)
for (e = 0; e < r; e++)
this.publiclyTrigger("dayRender", {
context: n,
args: [this.getCellDate(t, e), this.getCellEl(t, e), n],
});
}),
(e.prototype.renderDayRowHtml = function (t, e) {
var n = this.view.calendar.theme,
i = ["fc-row", "fc-week", n.getClass("dayRow")];
return (
e && i.push("fc-rigid"),
'
"
);
}),
(e.prototype.renderNumberIntroHtml = function (t) {
return this.renderIntroHtml();
}),
(e.prototype.renderNumberCellsHtml = function (t) {
var e,
n,
i = [];
for (e = 0; e < this.colCnt; e++)
(n = this.getCellDate(t, e)),
i.push(this.renderNumberCellHtml(n));
return i.join("");
}),
(e.prototype.renderNumberCellHtml = function (t) {
var e,
n,
i = this.view,
r = "",
o = this.dateProfile.activeUnzonedRange.containsDate(t),
s = this.getIsDayNumbersVisible() && o;
return s || this.cellWeekNumbersVisible
? ((e = this.getDayClasses(t)),
e.unshift("fc-day-top"),
this.cellWeekNumbersVisible &&
(n =
"ISO" === t._locale._fullCalendar_weekCalc
? 1
: t._locale.firstDayOfWeek()),
(r +=
'
";
}),
(e.prototype.prepareHits = function () {
this.colCoordCache.build(),
this.rowCoordCache.build(),
(this.rowCoordCache.bottoms[this.rowCnt - 1] +=
this.bottomCoordPadding);
}),
(e.prototype.releaseHits = function () {
this.colCoordCache.clear(), this.rowCoordCache.clear();
}),
(e.prototype.queryHit = function (t, e) {
if (
this.colCoordCache.isLeftInBounds(t) &&
this.rowCoordCache.isTopInBounds(e)
) {
var n = this.colCoordCache.getHorizontalIndex(t),
i = this.rowCoordCache.getVerticalIndex(e);
if (null != i && null != n) return this.getCellHit(i, n);
}
}),
(e.prototype.getHitFootprint = function (t) {
var e = this.getCellRange(t.row, t.col);
return new u.default(new l.default(e.start, e.end), !0);
}),
(e.prototype.getHitEl = function (t) {
return this.getCellEl(t.row, t.col);
}),
(e.prototype.getCellHit = function (t, e) {
return {
row: t,
col: e,
component: this,
left: this.colCoordCache.getLeftOffset(e),
right: this.colCoordCache.getRightOffset(e),
top: this.rowCoordCache.getTopOffset(t),
bottom: this.rowCoordCache.getBottomOffset(t),
};
}),
(e.prototype.getCellEl = function (t, e) {
return this.cellEls.eq(t * this.colCnt + e);
}),
(e.prototype.executeEventUnrender = function () {
this.removeSegPopover(),
t.prototype.executeEventUnrender.call(this);
}),
(e.prototype.getOwnEventSegs = function () {
return t.prototype.getOwnEventSegs
.call(this)
.concat(this.popoverSegs || []);
}),
(e.prototype.renderDrag = function (t, e, n) {
var i;
for (i = 0; i < t.length; i++)
this.renderHighlight(t[i].componentFootprint);
if (t.length && e && e.component !== this)
return (
this.helperRenderer.renderEventDraggingFootprints(t, e, n), !0
);
}),
(e.prototype.unrenderDrag = function () {
this.unrenderHighlight(), this.helperRenderer.unrender();
}),
(e.prototype.renderEventResize = function (t, e, n) {
var i;
for (i = 0; i < t.length; i++)
this.renderHighlight(t[i].componentFootprint);
this.helperRenderer.renderEventResizingFootprints(t, e, n);
}),
(e.prototype.unrenderEventResize = function () {
this.unrenderHighlight(), this.helperRenderer.unrender();
}),
(e.prototype.removeSegPopover = function () {
this.segPopover && this.segPopover.hide();
}),
(e.prototype.limitRows = function (t) {
var e,
n,
i = this.eventRenderer.rowStructs || [];
for (e = 0; e < i.length; e++)
this.unlimitRow(e),
!1 !==
(n =
!!t &&
("number" == typeof t
? t
: this.computeRowLevelLimit(e))) && this.limitRow(e, n);
}),
(e.prototype.computeRowLevelLimit = function (t) {
function e(t, e) {
o = Math.max(o, r(e).outerHeight());
}
var n,
i,
o,
s = this.rowEls.eq(t),
a = s.height(),
l = this.eventRenderer.rowStructs[t].tbodyEl.children();
for (n = 0; n < l.length; n++)
if (
((i = l.eq(n).removeClass("fc-limited")),
(o = 0),
i.find("> td > :first-child").each(e),
i.position().top + o > a)
)
return n;
return !1;
}),
(e.prototype.limitRow = function (t, e) {
var n,
i,
o,
s,
a,
l,
u,
d,
c,
p,
h,
f,
g,
v,
y,
m = this,
b = this.eventRenderer.rowStructs[t],
w = [],
D = 0,
E = function (n) {
for (; D < n; )
(l = m.getCellSegs(t, D, e)),
l.length &&
((c = i[e - 1][D]),
(y = m.renderMoreLink(t, D, l)),
(v = r("").append(y)),
c.append(v),
w.push(v[0])),
D++;
};
if (e && e < b.segLevels.length) {
for (
n = b.segLevels[e - 1],
i = b.cellMatrix,
o = b.tbodyEl
.children()
.slice(e)
.addClass("fc-limited")
.get(),
s = 0;
s < n.length;
s++
) {
for (a = n[s], E(a.leftCol), d = [], u = 0; D <= a.rightCol; )
(l = this.getCellSegs(t, D, e)),
d.push(l),
(u += l.length),
D++;
if (u) {
for (
c = i[e - 1][a.leftCol],
p = c.attr("rowspan") || 1,
h = [],
f = 0;
f < d.length;
f++
)
(g = r('
').attr("rowspan", p)),
(l = d[f]),
(y = this.renderMoreLink(
t,
a.leftCol + f,
[a].concat(l)
)),
(v = r("").append(y)),
g.append(v),
h.push(g[0]),
w.push(g[0]);
c.addClass("fc-limited").after(r(h)), o.push(c[0]);
}
}
E(this.colCnt), (b.moreEls = r(w)), (b.limitedEls = r(o));
}
}),
(e.prototype.unlimitRow = function (t) {
var e = this.eventRenderer.rowStructs[t];
e.moreEls && (e.moreEls.remove(), (e.moreEls = null)),
e.limitedEls &&
(e.limitedEls.removeClass("fc-limited"),
(e.limitedEls = null));
}),
(e.prototype.renderMoreLink = function (t, e, n) {
var i = this,
o = this.view;
return r('')
.text(this.getMoreLinkText(n.length))
.on("click", function (s) {
var a = i.opt("eventLimitClick"),
l = i.getCellDate(t, e),
u = r(s.currentTarget),
d = i.getCellEl(t, e),
c = i.getCellSegs(t, e),
p = i.resliceDaySegs(c, l),
h = i.resliceDaySegs(n, l);
"function" == typeof a &&
(a = i.publiclyTrigger("eventLimitClick", {
context: o,
args: [
{
date: l.clone(),
dayEl: d,
moreEl: u,
segs: p,
hiddenSegs: h,
},
s,
o,
],
})),
"popover" === a
? i.showSegPopover(t, e, u, p)
: "string" == typeof a && o.calendar.zoomTo(l, a);
});
}),
(e.prototype.showSegPopover = function (t, e, n, i) {
var r,
o,
s = this,
l = this.view,
u = n.parent();
(r = 1 === this.rowCnt ? l.el : this.rowEls.eq(t)),
(o = {
className:
"fc-more-popover " + l.calendar.theme.getClass("popover"),
content: this.renderSegPopoverContent(t, e, i),
parentEl: l.el,
top: r.offset().top,
autoHide: !0,
viewportConstrain: this.opt("popoverViewportConstrain"),
hide: function () {
s.popoverSegs &&
s.triggerBeforeEventSegsDestroyed(s.popoverSegs),
s.segPopover.removeElement(),
(s.segPopover = null),
(s.popoverSegs = null);
},
}),
this.isRTL
? (o.right = u.offset().left + u.outerWidth() + 1)
: (o.left = u.offset().left - 1),
(this.segPopover = new a.default(o)),
this.segPopover.show(),
this.bindAllSegHandlersToEl(this.segPopover.el),
this.triggerAfterEventSegsRendered(i);
}),
(e.prototype.renderSegPopoverContent = function (t, e, n) {
var i,
s = this.view,
a = s.calendar.theme,
l = this.getCellDate(t, e).format(this.opt("dayPopoverFormat")),
u = r(
'
' +
o.htmlEscape(l) +
'
'
),
d = u.find(".fc-event-container");
for (
n = this.eventRenderer.renderFgSegEls(n, !0),
this.popoverSegs = n,
i = 0;
i < n.length;
i++
)
this.hitsNeeded(),
(n[i].hit = this.getCellHit(t, e)),
this.hitsNotNeeded(),
d.append(n[i].el);
return u;
}),
(e.prototype.resliceDaySegs = function (t, e) {
var n,
i,
o,
s = e.clone(),
a = s.clone().add(1, "days"),
c = new l.default(s, a),
p = [];
for (n = 0; n < t.length; n++)
(i = t[n]),
(o =
i.footprint.componentFootprint.unzonedRange.intersect(c)) &&
p.push(
r.extend({}, i, {
footprint: new d.default(
new u.default(
o,
i.footprint.componentFootprint.isAllDay
),
i.footprint.eventDef,
i.footprint.eventInstance
),
isStart: i.isStart && o.isStart,
isEnd: i.isEnd && o.isEnd,
})
);
return this.eventRenderer.sortEventSegs(p), p;
}),
(e.prototype.getMoreLinkText = function (t) {
var e = this.opt("eventLimitText");
return "function" == typeof e ? e(t) : "+" + t + " " + e;
}),
(e.prototype.getCellSegs = function (t, e, n) {
for (
var i,
r = this.eventRenderer.rowStructs[t].segMatrix,
o = n || 0,
s = [];
o < r.length;
)
(i = r[o][e]), i && s.push(i), o++;
return s;
}),
e
);
})(h.default);
(e.default = m),
(m.prototype.eventRendererClass = g.default),
(m.prototype.businessHourRendererClass = c.default),
(m.prototype.helperRendererClass = v.default),
(m.prototype.fillRendererClass = y.default),
p.default.mixInto(m),
f.default.mixInto(m);
},
function (t, e, n) {
function i(t) {
return (function (t) {
function e() {
var e = (null !== t && t.apply(this, arguments)) || this;
return (e.colWeekNumbersVisible = !1), e;
}
return (
r.__extends(e, t),
(e.prototype.renderHeadIntroHtml = function () {
var t = this.view;
return this.colWeekNumbersVisible
? '
" +
s.htmlEscape(this.opt("weekNumberTitle")) +
"
"
: "";
}),
(e.prototype.renderNumberIntroHtml = function (t) {
var e = this.view,
n = this.getCellDate(t, 0);
return this.colWeekNumbersVisible
? '
";
},
renderBgIntroHtml: function () {
var t = this.view;
return (
'
"
);
},
renderIntroHtml: function () {
return (
'
"
);
},
}),
(o = {
renderBgIntroHtml: function () {
var t = this.view;
return (
'
" +
t.getAllDayHtml() +
"
"
);
},
renderIntroHtml: function () {
return (
'
"
);
},
});
},
function (t, e, n) {
Object.defineProperty(e, "__esModule", { value: !0 });
var i = n(2),
r = n(3),
o = n(0),
s = n(4),
a = n(40),
l = n(56),
u = n(60),
d = n(55),
c = n(53),
p = n(5),
h = n(12),
f = n(246),
g = n(247),
v = n(248),
y = [
{ hours: 1 },
{ minutes: 30 },
{ minutes: 15 },
{ seconds: 30 },
{ seconds: 15 },
],
m = (function (t) {
function e(e) {
var n = t.call(this, e) || this;
return n.processOptions(), n;
}
return (
i.__extends(e, t),
(e.prototype.componentFootprintToSegs = function (t) {
var e,
n = this.sliceRangeByTimes(t.unzonedRange);
for (e = 0; e < n.length; e++)
this.isRTL
? (n[e].col = this.daysPerRow - 1 - n[e].dayIndex)
: (n[e].col = n[e].dayIndex);
return n;
}),
(e.prototype.sliceRangeByTimes = function (t) {
var e,
n,
i = [];
for (n = 0; n < this.daysPerRow; n++)
(e = t.intersect(this.dayRanges[n])) &&
i.push({
startMs: e.startMs,
endMs: e.endMs,
isStart: e.isStart,
isEnd: e.isEnd,
dayIndex: n,
});
return i;
}),
(e.prototype.processOptions = function () {
var t,
e = this.opt("slotDuration"),
n = this.opt("snapDuration");
(e = o.duration(e)),
(n = n ? o.duration(n) : e),
(this.slotDuration = e),
(this.snapDuration = n),
(this.snapsPerSlot = e / n),
(t = this.opt("slotLabelFormat")),
r.isArray(t) && (t = t[t.length - 1]),
(this.labelFormat = t || this.opt("smallTimeFormat")),
(t = this.opt("slotLabelInterval")),
(this.labelInterval = t
? o.duration(t)
: this.computeLabelInterval(e));
}),
(e.prototype.computeLabelInterval = function (t) {
var e, n, i;
for (e = y.length - 1; e >= 0; e--)
if (
((n = o.duration(y[e])),
(i = s.divideDurationByDuration(n, t)),
s.isInt(i) && i > 1)
)
return n;
return o.duration(t);
}),
(e.prototype.renderDates = function (t) {
(this.dateProfile = t),
this.updateDayTable(),
this.renderSlats(),
this.renderColumns();
}),
(e.prototype.unrenderDates = function () {
this.unrenderColumns();
}),
(e.prototype.renderSkeleton = function () {
var t = this.view.calendar.theme;
this.el.html(
''
),
(this.bottomRuleEl = this.el.find("hr"));
}),
(e.prototype.renderSlats = function () {
var t = this.view.calendar.theme;
(this.slatContainerEl = this.el
.find("> .fc-slats")
.html(
'
' +
this.renderSlatRowHtml() +
"
"
)),
(this.slatEls = this.slatContainerEl.find("tr")),
(this.slatCoordCache = new c.default({
els: this.slatEls,
isVertical: !0,
}));
}),
(e.prototype.renderSlatRowHtml = function () {
for (
var t,
e,
n,
i = this.view,
r = i.calendar,
a = r.theme,
l = this.isRTL,
u = this.dateProfile,
d = "",
c = o.duration(+u.minTime),
p = o.duration(0);
c < u.maxTime;
)
(t = r.msToUtcMoment(u.renderUnzonedRange.startMs).time(c)),
(e = s.isInt(
s.divideDurationByDuration(p, this.labelInterval)
)),
(n =
'
"),
c.add(this.slotDuration),
p.add(this.slotDuration);
return d;
}),
(e.prototype.renderColumns = function () {
var t = this.dateProfile,
e = this.view.calendar.theme;
(this.dayRanges = this.dayDates.map(function (e) {
return new p.default(
e.clone().add(t.minTime),
e.clone().add(t.maxTime)
);
})),
this.headContainerEl &&
this.headContainerEl.html(this.renderHeadHtml()),
this.el
.find("> .fc-bg")
.html(
'
' +
this.renderBgTrHtml(0) +
"
"
),
(this.colEls = this.el.find(".fc-day, .fc-disabled-day")),
(this.colCoordCache = new c.default({
els: this.colEls,
isHorizontal: !0,
})),
this.renderContentSkeleton();
}),
(e.prototype.unrenderColumns = function () {
this.unrenderContentSkeleton();
}),
(e.prototype.renderContentSkeleton = function () {
var t,
e,
n = "";
for (t = 0; t < this.colCnt; t++)
n +=
'
';
(e = this.contentSkeletonEl =
r(
'
' +
n +
"
"
)),
(this.colContainerEls = e.find(".fc-content-col")),
(this.helperContainerEls = e.find(".fc-helper-container")),
(this.fgContainerEls = e.find(
".fc-event-container:not(.fc-helper-container)"
)),
(this.bgContainerEls = e.find(".fc-bgevent-container")),
(this.highlightContainerEls = e.find(
".fc-highlight-container"
)),
(this.businessContainerEls = e.find(".fc-business-container")),
this.bookendCells(e.find("tr")),
this.el.append(e);
}),
(e.prototype.unrenderContentSkeleton = function () {
this.contentSkeletonEl &&
(this.contentSkeletonEl.remove(),
(this.contentSkeletonEl = null),
(this.colContainerEls = null),
(this.helperContainerEls = null),
(this.fgContainerEls = null),
(this.bgContainerEls = null),
(this.highlightContainerEls = null),
(this.businessContainerEls = null));
}),
(e.prototype.groupSegsByCol = function (t) {
var e,
n = [];
for (e = 0; e < this.colCnt; e++) n.push([]);
for (e = 0; e < t.length; e++) n[t[e].col].push(t[e]);
return n;
}),
(e.prototype.attachSegsByCol = function (t, e) {
var n, i, r;
for (n = 0; n < this.colCnt; n++)
for (i = t[n], r = 0; r < i.length; r++)
e.eq(n).append(i[r].el);
}),
(e.prototype.getNowIndicatorUnit = function () {
return "minute";
}),
(e.prototype.renderNowIndicator = function (t) {
if (this.colContainerEls) {
var e,
n = this.componentFootprintToSegs(
new h.default(new p.default(t, t.valueOf() + 1), !1)
),
i = this.computeDateTop(t, t),
o = [];
for (e = 0; e < n.length; e++)
o.push(
r(
''
)
.css("top", i)
.appendTo(this.colContainerEls.eq(n[e].col))[0]
);
n.length > 0 &&
o.push(
r(
''
)
.css("top", i)
.appendTo(this.el.find(".fc-content-skeleton"))[0]
),
(this.nowIndicatorEls = r(o));
}
}),
(e.prototype.unrenderNowIndicator = function () {
this.nowIndicatorEls &&
(this.nowIndicatorEls.remove(), (this.nowIndicatorEls = null));
}),
(e.prototype.updateSize = function (e, n, i) {
t.prototype.updateSize.call(this, e, n, i),
this.slatCoordCache.build(),
i &&
this.updateSegVerticals(
[].concat(
this.eventRenderer.getSegs(),
this.businessSegs || []
)
);
}),
(e.prototype.getTotalSlatHeight = function () {
return this.slatContainerEl.outerHeight();
}),
(e.prototype.computeDateTop = function (t, e) {
return this.computeTimeTop(o.duration(t - e.clone().stripTime()));
}),
(e.prototype.computeTimeTop = function (t) {
var e,
n,
i = this.slatEls.length,
r = this.dateProfile,
o = (t - r.minTime) / this.slotDuration;
return (
(o = Math.max(0, o)),
(o = Math.min(i, o)),
(e = Math.floor(o)),
(e = Math.min(e, i - 1)),
(n = o - e),
this.slatCoordCache.getTopPosition(e) +
this.slatCoordCache.getHeight(e) * n
);
}),
(e.prototype.updateSegVerticals = function (t) {
this.computeSegVerticals(t), this.assignSegVerticals(t);
}),
(e.prototype.computeSegVerticals = function (t) {
var e,
n,
i,
r = this.opt("agendaEventMinHeight");
for (e = 0; e < t.length; e++)
(n = t[e]),
(i = this.dayDates[n.dayIndex]),
(n.top = this.computeDateTop(n.startMs, i)),
(n.bottom = Math.max(
n.top + r,
this.computeDateTop(n.endMs, i)
));
}),
(e.prototype.assignSegVerticals = function (t) {
var e, n;
for (e = 0; e < t.length; e++)
(n = t[e]), n.el.css(this.generateSegVerticalCss(n));
}),
(e.prototype.generateSegVerticalCss = function (t) {
return { top: t.top, bottom: -t.bottom };
}),
(e.prototype.prepareHits = function () {
this.colCoordCache.build(), this.slatCoordCache.build();
}),
(e.prototype.releaseHits = function () {
this.colCoordCache.clear();
}),
(e.prototype.queryHit = function (t, e) {
var n = this.snapsPerSlot,
i = this.colCoordCache,
r = this.slatCoordCache;
if (i.isLeftInBounds(t) && r.isTopInBounds(e)) {
var o = i.getHorizontalIndex(t),
s = r.getVerticalIndex(e);
if (null != o && null != s) {
var a = r.getTopOffset(s),
l = r.getHeight(s),
u = (e - a) / l,
d = Math.floor(u * n),
c = s * n + d,
p = a + (d / n) * l,
h = a + ((d + 1) / n) * l;
return {
col: o,
snap: c,
component: this,
left: i.getLeftOffset(o),
right: i.getRightOffset(o),
top: p,
bottom: h,
};
}
}
}),
(e.prototype.getHitFootprint = function (t) {
var e,
n = this.getCellDate(0, t.col),
i = this.computeSnapTime(t.snap);
return (
n.time(i),
(e = n.clone().add(this.snapDuration)),
new h.default(new p.default(n, e), !1)
);
}),
(e.prototype.computeSnapTime = function (t) {
return o.duration(
this.dateProfile.minTime + this.snapDuration * t
);
}),
(e.prototype.getHitEl = function (t) {
return this.colEls.eq(t.col);
}),
(e.prototype.renderDrag = function (t, e, n) {
var i;
if (e) {
if (t.length)
return (
this.helperRenderer.renderEventDraggingFootprints(t, e, n),
!0
);
} else
for (i = 0; i < t.length; i++)
this.renderHighlight(t[i].componentFootprint);
}),
(e.prototype.unrenderDrag = function () {
this.unrenderHighlight(), this.helperRenderer.unrender();
}),
(e.prototype.renderEventResize = function (t, e, n) {
this.helperRenderer.renderEventResizingFootprints(t, e, n);
}),
(e.prototype.unrenderEventResize = function () {
this.helperRenderer.unrender();
}),
(e.prototype.renderSelectionFootprint = function (t) {
this.opt("selectHelper")
? this.helperRenderer.renderComponentFootprint(t)
: this.renderHighlight(t);
}),
(e.prototype.unrenderSelection = function () {
this.helperRenderer.unrender(), this.unrenderHighlight();
}),
e
);
})(a.default);
(e.default = m),
(m.prototype.eventRendererClass = f.default),
(m.prototype.businessHourRendererClass = l.default),
(m.prototype.helperRendererClass = g.default),
(m.prototype.fillRendererClass = v.default),
u.default.mixInto(m),
d.default.mixInto(m);
},
function (t, e, n) {
Object.defineProperty(e, "__esModule", { value: !0 });
var i = n(2),
r = n(5),
o = n(221),
s = (function (t) {
function e() {
return (null !== t && t.apply(this, arguments)) || this;
}
return (
i.__extends(e, t),
(e.prototype.buildRenderRange = function (e, n, i) {
var o = t.prototype.buildRenderRange.call(this, e, n, i),
s = this.msToUtcMoment(o.startMs, i),
a = this.msToUtcMoment(o.endMs, i);
return (
/^(year|month)$/.test(n) &&
(s.startOf("week"),
a.weekday() && a.add(1, "week").startOf("week")),
new r.default(s, a)
);
}),
e
);
})(o.default);
e.default = s;
},
function (t, e, n) {
Object.defineProperty(e, "__esModule", { value: !0 });
var i = n(2),
r = n(0),
o = n(4),
s = n(62),
a = n(253),
l = (function (t) {
function e() {
return (null !== t && t.apply(this, arguments)) || this;
}
return (
i.__extends(e, t),
(e.prototype.setGridHeight = function (t, e) {
e && (t *= this.dayGrid.rowCnt / 6),
o.distributeHeight(this.dayGrid.rowEls, t, !e);
}),
(e.prototype.isDateInOtherMonth = function (t, e) {
return t.month() !== r.utc(e.currentUnzonedRange.startMs).month();
}),
e
);
})(s.default);
(e.default = l), (l.prototype.dateProfileGeneratorClass = a.default);
},
function (t, e, n) {
Object.defineProperty(e, "__esModule", { value: !0 });
var i = n(2),
r = n(3),
o = n(4),
s = n(5),
a = n(41),
l = n(39),
u = n(254),
d = n(255),
c = (function (t) {
function e(e, n) {
var i = t.call(this, e, n) || this;
return (
(i.segSelector = ".fc-list-item"),
(i.scroller = new l.default({
overflowX: "hidden",
overflowY: "auto",
})),
i
);
}
return (
i.__extends(e, t),
(e.prototype.renderSkeleton = function () {
this.el.addClass(
"fc-list-view " + this.calendar.theme.getClass("listView")
),
this.scroller.render(),
this.scroller.el.appendTo(this.el),
(this.contentEl = this.scroller.scrollEl);
}),
(e.prototype.unrenderSkeleton = function () {
this.scroller.destroy();
}),
(e.prototype.updateSize = function (e, n, i) {
t.prototype.updateSize.call(this, e, n, i),
this.scroller.clear(),
n || this.scroller.setHeight(this.computeScrollerHeight(e));
}),
(e.prototype.computeScrollerHeight = function (t) {
return t - o.subtractInnerElHeight(this.el, this.scroller.el);
}),
(e.prototype.renderDates = function (t) {
for (
var e = this.calendar,
n = e.msToUtcMoment(t.renderUnzonedRange.startMs, !0),
i = e.msToUtcMoment(t.renderUnzonedRange.endMs, !0),
r = [],
o = [];
n < i;
)
r.push(n.clone()),
o.push(new s.default(n, n.clone().add(1, "day"))),
n.add(1, "day");
(this.dayDates = r), (this.dayRanges = o);
}),
(e.prototype.componentFootprintToSegs = function (t) {
var e,
n,
i,
r = this.dayRanges,
o = [];
for (e = 0; e < r.length; e++)
if (
(n = t.unzonedRange.intersect(r[e])) &&
((i = {
startMs: n.startMs,
endMs: n.endMs,
isStart: n.isStart,
isEnd: n.isEnd,
dayIndex: e,
}),
o.push(i),
!i.isEnd &&
!t.isAllDay &&
e + 1 < r.length &&
t.unzonedRange.endMs <
r[e + 1].startMs + this.nextDayThreshold)
) {
(i.endMs = t.unzonedRange.endMs), (i.isEnd = !0);
break;
}
return o;
}),
(e.prototype.renderEmptyMessage = function () {
this.contentEl.html(
'
' +
o.htmlEscape(this.opt("noEventsMessage")) +
"
"
);
}),
(e.prototype.renderSegList = function (t) {
var e,
n,
i,
o = this.groupSegsByDay(t),
s = r(
'
'
),
a = s.find("tbody");
for (e = 0; e < o.length; e++)
if ((n = o[e]))
for (
a.append(this.dayHeaderHtml(this.dayDates[e])),
this.eventRenderer.sortEventSegs(n),
i = 0;
i < n.length;
i++
)
a.append(n[i].el);
this.contentEl.empty().append(s);
}),
(e.prototype.groupSegsByDay = function (t) {
var e,
n,
i = [];
for (e = 0; e < t.length; e++)
(n = t[e]), (i[n.dayIndex] || (i[n.dayIndex] = [])).push(n);
return i;
}),
(e.prototype.dayHeaderHtml = function (t) {
var e = this.opt("listDayFormat"),
n = this.opt("listDayAltFormat");
return (
'
"
);
}),
e
);
})(a.default);
(e.default = c),
(c.prototype.eventRendererClass = u.default),
(c.prototype.eventPointingClass = d.default);
},
,
,
,
,
,
function (t, e, n) {
var i = n(3),
r = n(16),
o = n(4),
s = n(220);
n(10),
n(47),
n(256),
n(257),
n(260),
n(261),
n(262),
n(263),
(i.fullCalendar = r),
(i.fn.fullCalendar = function (t) {
var e = Array.prototype.slice.call(arguments, 1),
n = this;
return (
this.each(function (r, a) {
var l,
u = i(a),
d = u.data("fullCalendar");
"string" == typeof t
? "getCalendar" === t
? r || (n = d)
: "destroy" === t
? d && (d.destroy(), u.removeData("fullCalendar"))
: d
? i.isFunction(d[t])
? ((l = d[t].apply(d, e)),
r || (n = l),
"destroy" === t && u.removeData("fullCalendar"))
: o.warn("'" + t + "' is an unknown FullCalendar method.")
: o.warn(
"Attempting to call a FullCalendar method on an element with no calendar."
)
: d ||
((d = new s.default(u, t)),
u.data("fullCalendar", d),
d.render());
}),
n
);
}),
(t.exports = r);
},
function (t, e, n) {
Object.defineProperty(e, "__esModule", { value: !0 });
var i = n(2),
r = n(48),
o = (function (t) {
function e() {
return (null !== t && t.apply(this, arguments)) || this;
}
return (
i.__extends(e, t),
(e.prototype.setElement = function (t) {
(this.el = t),
this.bindGlobalHandlers(),
this.renderSkeleton(),
this.set("isInDom", !0);
}),
(e.prototype.removeElement = function () {
this.unset("isInDom"),
this.unrenderSkeleton(),
this.unbindGlobalHandlers(),
this.el.remove();
}),
(e.prototype.bindGlobalHandlers = function () {}),
(e.prototype.unbindGlobalHandlers = function () {}),
(e.prototype.renderSkeleton = function () {}),
(e.prototype.unrenderSkeleton = function () {}),
e
);
})(r.default);
e.default = o;
},
function (t, e) {
Object.defineProperty(e, "__esModule", { value: !0 });
var n = (function () {
function t(t) {
this.items = t || [];
}
return (
(t.prototype.proxyCall = function (t) {
for (var e = [], n = 1; n < arguments.length; n++)
e[n - 1] = arguments[n];
var i = [];
return (
this.items.forEach(function (n) {
i.push(n[t].apply(n, e));
}),
i
);
}),
t
);
})();
e.default = n;
},
function (t, e, n) {
Object.defineProperty(e, "__esModule", { value: !0 });
var i = n(3),
r = n(4),
o = (function () {
function t(t, e) {
(this.el = null),
(this.viewsWithButtons = []),
(this.calendar = t),
(this.toolbarOptions = e);
}
return (
(t.prototype.setToolbarOptions = function (t) {
this.toolbarOptions = t;
}),
(t.prototype.render = function () {
var t = this.toolbarOptions.layout,
e = this.el;
t
? (e
? e.empty()
: (e = this.el =
i(
""
)),
e
.append(this.renderSection("left"))
.append(this.renderSection("right"))
.append(this.renderSection("center"))
.append(''))
: this.removeElement();
}),
(t.prototype.removeElement = function () {
this.el && (this.el.remove(), (this.el = null));
}),
(t.prototype.renderSection = function (t) {
var e = this,
n = this.calendar,
o = n.theme,
s = n.optionsManager,
a = n.viewSpecManager,
l = i(''),
u = this.toolbarOptions.layout[t],
d = s.get("customButtons") || {},
c = s.overrides.buttonText || {},
p = s.get("buttonText") || {};
return (
u &&
i.each(u.split(" "), function (t, s) {
var u,
h = i(),
f = !0;
i.each(s.split(","), function (t, s) {
var l, u, g, v, y, m, b, w, D;
"title" === s
? ((h = h.add(i("
"))), (f = !1))
: ((l = d[s])
? ((g = function (t) {
l.click && l.click.call(w[0], t);
}),
(v = o.getCustomButtonIconClass(l)) ||
(v = o.getIconClass(s)) ||
(y = l.text))
: (u = a.getViewSpec(s))
? (e.viewsWithButtons.push(s),
(g = function () {
n.changeView(s);
}),
(y = u.buttonTextOverride) ||
(v = o.getIconClass(s)) ||
(y = u.buttonTextDefault))
: n[s] &&
((g = function () {
n[s]();
}),
(y = c[s]) ||
(v = o.getIconClass(s)) ||
(y = p[s])),
g &&
((b = [
"fc-" + s + "-button",
o.getClass("button"),
o.getClass("stateDefault"),
]),
y
? ((m = r.htmlEscape(y)), (D = ""))
: v &&
((m = ""),
(D = ' aria-label="' + s + '"')),
(w = i(
'"
)
.click(function (t) {
w.hasClass(o.getClass("stateDisabled")) ||
(g(t),
(w.hasClass(o.getClass("stateActive")) ||
w.hasClass(o.getClass("stateDisabled"))) &&
w.removeClass(o.getClass("stateHover")));
})
.mousedown(function () {
w.not("." + o.getClass("stateActive"))
.not("." + o.getClass("stateDisabled"))
.addClass(o.getClass("stateDown"));
})
.mouseup(function () {
w.removeClass(o.getClass("stateDown"));
})
.hover(
function () {
w.not("." + o.getClass("stateActive"))
.not("." + o.getClass("stateDisabled"))
.addClass(o.getClass("stateHover"));
},
function () {
w.removeClass(
o.getClass("stateHover")
).removeClass(o.getClass("stateDown"));
}
)),
(h = h.add(w))));
}),
f &&
h
.first()
.addClass(o.getClass("cornerLeft"))
.end()
.last()
.addClass(o.getClass("cornerRight"))
.end(),
h.length > 1
? ((u = i("")),
f && u.addClass(o.getClass("buttonGroup")),
u.append(h),
l.append(u))
: l.append(h);
}),
l
);
}),
(t.prototype.updateTitle = function (t) {
this.el && this.el.find("h2").text(t);
}),
(t.prototype.activateButton = function (t) {
this.el &&
this.el
.find(".fc-" + t + "-button")
.addClass(this.calendar.theme.getClass("stateActive"));
}),
(t.prototype.deactivateButton = function (t) {
this.el &&
this.el
.find(".fc-" + t + "-button")
.removeClass(this.calendar.theme.getClass("stateActive"));
}),
(t.prototype.disableButton = function (t) {
this.el &&
this.el
.find(".fc-" + t + "-button")
.prop("disabled", !0)
.addClass(this.calendar.theme.getClass("stateDisabled"));
}),
(t.prototype.enableButton = function (t) {
this.el &&
this.el
.find(".fc-" + t + "-button")
.prop("disabled", !1)
.removeClass(this.calendar.theme.getClass("stateDisabled"));
}),
(t.prototype.getViewsWithButtons = function () {
return this.viewsWithButtons;
}),
t
);
})();
e.default = o;
},
function (t, e, n) {
Object.defineProperty(e, "__esModule", { value: !0 });
var i = n(2),
r = n(3),
o = n(4),
s = n(32),
a = n(31),
l = n(48),
u = (function (t) {
function e(e, n) {
var i = t.call(this) || this;
return (
(i._calendar = e),
(i.overrides = r.extend({}, n)),
(i.dynamicOverrides = {}),
i.compute(),
i
);
}
return (
i.__extends(e, t),
(e.prototype.add = function (t) {
var e,
n = 0;
this.recordOverrides(t);
for (e in t) n++;
if (1 === n) {
if (
"height" === e ||
"contentHeight" === e ||
"aspectRatio" === e
)
return void this._calendar.updateViewSize(!0);
if ("defaultDate" === e) return;
if ("businessHours" === e) return;
if (/^(event|select)(Overlap|Constraint|Allow)$/.test(e))
return;
if ("timezone" === e)
return void this._calendar.view.flash("initialEvents");
}
this._calendar.renderHeader(),
this._calendar.renderFooter(),
(this._calendar.viewsByType = {}),
this._calendar.reinitView();
}),
(e.prototype.compute = function () {
var t, e, n, i, r;
(t = o.firstDefined(
this.dynamicOverrides.locale,
this.overrides.locale
)),
(e = a.localeOptionHash[t]),
e ||
((t = s.globalDefaults.locale),
(e = a.localeOptionHash[t] || {})),
(n = o.firstDefined(
this.dynamicOverrides.isRTL,
this.overrides.isRTL,
e.isRTL,
s.globalDefaults.isRTL
)),
(i = n ? s.rtlDefaults : {}),
(this.dirDefaults = i),
(this.localeDefaults = e),
(r = s.mergeOptions([
s.globalDefaults,
i,
e,
this.overrides,
this.dynamicOverrides,
])),
a.populateInstanceComputableOptions(r),
this.reset(r);
}),
(e.prototype.recordOverrides = function (t) {
var e;
for (e in t) this.dynamicOverrides[e] = t[e];
this._calendar.viewSpecManager.clearCache(), this.compute();
}),
e
);
})(l.default);
e.default = u;
},
function (t, e, n) {
Object.defineProperty(e, "__esModule", { value: !0 });
var i = n(0),
r = n(3),
o = n(22),
s = n(4),
a = n(32),
l = n(31),
u = (function () {
function t(t, e) {
(this.optionsManager = t), (this._calendar = e), this.clearCache();
}
return (
(t.prototype.clearCache = function () {
this.viewSpecCache = {};
}),
(t.prototype.getViewSpec = function (t) {
var e = this.viewSpecCache;
return e[t] || (e[t] = this.buildViewSpec(t));
}),
(t.prototype.getUnitViewSpec = function (t) {
var e, n, i;
if (-1 !== r.inArray(t, s.unitsDesc))
for (
e = this._calendar.header.getViewsWithButtons(),
r.each(o.viewHash, function (t) {
e.push(t);
}),
n = 0;
n < e.length;
n++
)
if ((i = this.getViewSpec(e[n])) && i.singleUnit === t)
return i;
}),
(t.prototype.buildViewSpec = function (t) {
for (
var e,
n,
r,
l,
u,
d = this.optionsManager.overrides.views || {},
c = [],
p = [],
h = [],
f = t;
f;
)
(e = o.viewHash[f]),
(n = d[f]),
(f = null),
"function" == typeof e && (e = { class: e }),
e &&
(c.unshift(e),
p.unshift(e.defaults || {}),
(r = r || e.duration),
(f = f || e.type)),
n && (h.unshift(n), (r = r || n.duration), (f = f || n.type));
return (
(e = s.mergeProps(c)),
(e.type = t),
!!e.class &&
((r =
r ||
this.optionsManager.dynamicOverrides.duration ||
this.optionsManager.overrides.duration),
r &&
((l = i.duration(r)),
l.valueOf() &&
((u = s.computeDurationGreatestUnit(l, r)),
(e.duration = l),
(e.durationUnit = u),
1 === l.as(u) &&
((e.singleUnit = u), h.unshift(d[u] || {})))),
(e.defaults = a.mergeOptions(p)),
(e.overrides = a.mergeOptions(h)),
this.buildViewSpecOptions(e),
this.buildViewSpecButtonText(e, t),
e)
);
}),
(t.prototype.buildViewSpecOptions = function (t) {
var e = this.optionsManager;
(t.options = a.mergeOptions([
a.globalDefaults,
t.defaults,
e.dirDefaults,
e.localeDefaults,
e.overrides,
t.overrides,
e.dynamicOverrides,
])),
l.populateInstanceComputableOptions(t.options);
}),
(t.prototype.buildViewSpecButtonText = function (t, e) {
function n(n) {
var i = n.buttonText || {};
return (
i[e] ||
(t.buttonTextKey ? i[t.buttonTextKey] : null) ||
(t.singleUnit ? i[t.singleUnit] : null)
);
}
var i = this.optionsManager;
(t.buttonTextOverride =
n(i.dynamicOverrides) ||
n(i.overrides) ||
t.overrides.buttonText),
(t.buttonTextDefault =
n(i.localeDefaults) ||
n(i.dirDefaults) ||
t.defaults.buttonText ||
n(a.globalDefaults) ||
(t.duration
? this._calendar.humanizeDuration(t.duration)
: null) ||
e);
}),
t
);
})();
e.default = u;
},
function (t, e, n) {
function i(t, e) {
return t.getPrimitive() === e.getPrimitive();
}
Object.defineProperty(e, "__esModule", { value: !0 });
var r = n(3),
o = n(4),
s = n(243),
a = n(52),
l = n(6),
u = n(38),
d = n(13),
c = n(18),
p = n(11),
h = n(7),
f = (function () {
function t(t) {
(this.calendar = t),
(this.stickySource = new a.default(t)),
(this.otherSources = []);
}
return (
(t.prototype.requestEvents = function (t, e, n, i) {
return (
(!i &&
this.currentPeriod &&
this.currentPeriod.isWithinRange(t, e) &&
n === this.currentPeriod.timezone) ||
this.setPeriod(new s.default(t, e, n)),
this.currentPeriod.whenReleased()
);
}),
(t.prototype.addSource = function (t) {
this.otherSources.push(t),
this.currentPeriod && this.currentPeriod.requestSource(t);
}),
(t.prototype.removeSource = function (t) {
o.removeExact(this.otherSources, t),
this.currentPeriod && this.currentPeriod.purgeSource(t);
}),
(t.prototype.removeAllSources = function () {
(this.otherSources = []),
this.currentPeriod && this.currentPeriod.purgeAllSources();
}),
(t.prototype.refetchSource = function (t) {
var e = this.currentPeriod;
e && (e.freeze(), e.purgeSource(t), e.requestSource(t), e.thaw());
}),
(t.prototype.refetchAllSources = function () {
var t = this.currentPeriod;
t &&
(t.freeze(),
t.purgeAllSources(),
t.requestSources(this.getSources()),
t.thaw());
}),
(t.prototype.getSources = function () {
return [this.stickySource].concat(this.otherSources);
}),
(t.prototype.multiQuerySources = function (t) {
t ? r.isArray(t) || (t = [t]) : (t = []);
var e,
n = [];
for (e = 0; e < t.length; e++)
n.push.apply(n, this.querySources(t[e]));
return n;
}),
(t.prototype.querySources = function (t) {
var e,
n,
o = this.otherSources;
for (e = 0; e < o.length; e++) if ((n = o[e]) === t) return [n];
return (n = this.getSourceById(l.default.normalizeId(t)))
? [n]
: ((t = u.default.parse(t, this.calendar)),
t
? r.grep(o, function (e) {
return i(t, e);
})
: void 0);
}),
(t.prototype.getSourceById = function (t) {
return r.grep(this.otherSources, function (e) {
return e.id && e.id === t;
})[0];
}),
(t.prototype.setPeriod = function (t) {
this.currentPeriod &&
(this.unbindPeriod(this.currentPeriod),
(this.currentPeriod = null)),
(this.currentPeriod = t),
this.bindPeriod(t),
t.requestSources(this.getSources());
}),
(t.prototype.bindPeriod = function (t) {
this.listenTo(t, "release", function (t) {
this.trigger("release", t);
});
}),
(t.prototype.unbindPeriod = function (t) {
this.stopListeningTo(t);
}),
(t.prototype.getEventDefByUid = function (t) {
if (this.currentPeriod)
return this.currentPeriod.getEventDefByUid(t);
}),
(t.prototype.addEventDef = function (t, e) {
e && this.stickySource.addEventDef(t),
this.currentPeriod && this.currentPeriod.addEventDef(t);
}),
(t.prototype.removeEventDefsById = function (t) {
this.getSources().forEach(function (e) {
e.removeEventDefsById(t);
}),
this.currentPeriod && this.currentPeriod.removeEventDefsById(t);
}),
(t.prototype.removeAllEventDefs = function () {
this.getSources().forEach(function (t) {
t.removeAllEventDefs();
}),
this.currentPeriod && this.currentPeriod.removeAllEventDefs();
}),
(t.prototype.mutateEventsWithId = function (t, e) {
var n,
i = this.currentPeriod,
r = [];
return i
? (i.freeze(),
(n = i.getEventDefsById(t)),
n.forEach(function (t) {
i.removeEventDef(t),
r.push(e.mutateSingle(t)),
i.addEventDef(t);
}),
i.thaw(),
function () {
i.freeze();
for (var t = 0; t < n.length; t++)
i.removeEventDef(n[t]), r[t](), i.addEventDef(n[t]);
i.thaw();
})
: function () {};
}),
(t.prototype.buildMutatedEventInstanceGroup = function (t, e) {
var n,
i,
r = this.getEventDefsById(t),
o = [];
for (n = 0; n < r.length; n++)
(i = r[n].clone()) instanceof d.default &&
(e.mutateSingle(i), o.push.apply(o, i.buildInstances()));
return new c.default(o);
}),
(t.prototype.freeze = function () {
this.currentPeriod && this.currentPeriod.freeze();
}),
(t.prototype.thaw = function () {
this.currentPeriod && this.currentPeriod.thaw();
}),
(t.prototype.getEventDefsById = function (t) {
return this.currentPeriod.getEventDefsById(t);
}),
(t.prototype.getEventInstances = function () {
return this.currentPeriod.getEventInstances();
}),
(t.prototype.getEventInstancesWithId = function (t) {
return this.currentPeriod.getEventInstancesWithId(t);
}),
(t.prototype.getEventInstancesWithoutId = function (t) {
return this.currentPeriod.getEventInstancesWithoutId(t);
}),
t
);
})();
(e.default = f), p.default.mixInto(f), h.default.mixInto(f);
},
function (t, e, n) {
Object.defineProperty(e, "__esModule", { value: !0 });
var i = n(3),
r = n(4),
o = n(20),
s = n(11),
a = n(5),
l = n(18),
u = (function () {
function t(t, e, n) {
(this.pendingCnt = 0),
(this.freezeDepth = 0),
(this.stuntedReleaseCnt = 0),
(this.releaseCnt = 0),
(this.start = t),
(this.end = e),
(this.timezone = n),
(this.unzonedRange = new a.default(
t.clone().stripZone(),
e.clone().stripZone()
)),
(this.requestsByUid = {}),
(this.eventDefsByUid = {}),
(this.eventDefsById = {}),
(this.eventInstanceGroupsById = {});
}
return (
(t.prototype.isWithinRange = function (t, e) {
return !t.isBefore(this.start) && !e.isAfter(this.end);
}),
(t.prototype.requestSources = function (t) {
this.freeze();
for (var e = 0; e < t.length; e++) this.requestSource(t[e]);
this.thaw();
}),
(t.prototype.requestSource = function (t) {
var e = this,
n = { source: t, status: "pending", eventDefs: null };
(this.requestsByUid[t.uid] = n),
(this.pendingCnt += 1),
t.fetch(this.start, this.end, this.timezone).then(
function (t) {
"cancelled" !== n.status &&
((n.status = "completed"),
(n.eventDefs = t),
e.addEventDefs(t),
e.pendingCnt--,
e.tryRelease());
},
function () {
"cancelled" !== n.status &&
((n.status = "failed"), e.pendingCnt--, e.tryRelease());
}
);
}),
(t.prototype.purgeSource = function (t) {
var e = this.requestsByUid[t.uid];
e &&
(delete this.requestsByUid[t.uid],
"pending" === e.status
? ((e.status = "cancelled"),
this.pendingCnt--,
this.tryRelease())
: "completed" === e.status &&
e.eventDefs.forEach(this.removeEventDef.bind(this)));
}),
(t.prototype.purgeAllSources = function () {
var t,
e,
n = this.requestsByUid,
i = 0;
for (t in n)
(e = n[t]),
"pending" === e.status
? (e.status = "cancelled")
: "completed" === e.status && i++;
(this.requestsByUid = {}),
(this.pendingCnt = 0),
i && this.removeAllEventDefs();
}),
(t.prototype.getEventDefByUid = function (t) {
return this.eventDefsByUid[t];
}),
(t.prototype.getEventDefsById = function (t) {
var e = this.eventDefsById[t];
return e ? e.slice() : [];
}),
(t.prototype.addEventDefs = function (t) {
for (var e = 0; e < t.length; e++) this.addEventDef(t[e]);
}),
(t.prototype.addEventDef = function (t) {
var e,
n = this.eventDefsById,
i = t.id,
r = n[i] || (n[i] = []),
o = t.buildInstances(this.unzonedRange);
for (
r.push(t), this.eventDefsByUid[t.uid] = t, e = 0;
e < o.length;
e++
)
this.addEventInstance(o[e], i);
}),
(t.prototype.removeEventDefsById = function (t) {
var e = this;
this.getEventDefsById(t).forEach(function (t) {
e.removeEventDef(t);
});
}),
(t.prototype.removeAllEventDefs = function () {
var t = i.isEmptyObject(this.eventDefsByUid);
(this.eventDefsByUid = {}),
(this.eventDefsById = {}),
(this.eventInstanceGroupsById = {}),
t || this.tryRelease();
}),
(t.prototype.removeEventDef = function (t) {
var e = this.eventDefsById,
n = e[t.id];
delete this.eventDefsByUid[t.uid],
n &&
(r.removeExact(n, t),
n.length || delete e[t.id],
this.removeEventInstancesForDef(t));
}),
(t.prototype.getEventInstances = function () {
var t,
e = this.eventInstanceGroupsById,
n = [];
for (t in e) n.push.apply(n, e[t].eventInstances);
return n;
}),
(t.prototype.getEventInstancesWithId = function (t) {
var e = this.eventInstanceGroupsById[t];
return e ? e.eventInstances.slice() : [];
}),
(t.prototype.getEventInstancesWithoutId = function (t) {
var e,
n = this.eventInstanceGroupsById,
i = [];
for (e in n) e !== t && i.push.apply(i, n[e].eventInstances);
return i;
}),
(t.prototype.addEventInstance = function (t, e) {
var n = this.eventInstanceGroupsById;
(n[e] || (n[e] = new l.default())).eventInstances.push(t),
this.tryRelease();
}),
(t.prototype.removeEventInstancesForDef = function (t) {
var e,
n = this.eventInstanceGroupsById,
i = n[t.id];
i &&
((e = r.removeMatching(i.eventInstances, function (e) {
return e.def === t;
})),
i.eventInstances.length || delete n[t.id],
e && this.tryRelease());
}),
(t.prototype.tryRelease = function () {
this.pendingCnt ||
(this.freezeDepth ? this.stuntedReleaseCnt++ : this.release());
}),
(t.prototype.release = function () {
this.releaseCnt++,
this.trigger("release", this.eventInstanceGroupsById);
}),
(t.prototype.whenReleased = function () {
var t = this;
return this.releaseCnt
? o.default.resolve(this.eventInstanceGroupsById)
: o.default.construct(function (e) {
t.one("release", e);
});
}),
(t.prototype.freeze = function () {
this.freezeDepth++ || (this.stuntedReleaseCnt = 0);
}),
(t.prototype.thaw = function () {
--this.freezeDepth ||
!this.stuntedReleaseCnt ||
this.pendingCnt ||
this.release();
}),
t
);
})();
(e.default = u), s.default.mixInto(u);
},
function (t, e, n) {
Object.defineProperty(e, "__esModule", { value: !0 });
var i = n(3),
r = n(4),
o = n(7),
s = (function () {
function t(t, e) {
(this.isFollowing = !1),
(this.isHidden = !1),
(this.isAnimating = !1),
(this.options = e = e || {}),
(this.sourceEl = t),
(this.parentEl = e.parentEl ? i(e.parentEl) : t.parent());
}
return (
(t.prototype.start = function (t) {
this.isFollowing ||
((this.isFollowing = !0),
(this.y0 = r.getEvY(t)),
(this.x0 = r.getEvX(t)),
(this.topDelta = 0),
(this.leftDelta = 0),
this.isHidden || this.updatePosition(),
r.getEvIsTouch(t)
? this.listenTo(i(document), "touchmove", this.handleMove)
: this.listenTo(i(document), "mousemove", this.handleMove));
}),
(t.prototype.stop = function (t, e) {
var n = this,
r = this.options.revertDuration,
o = function () {
(n.isAnimating = !1),
n.removeElement(),
(n.top0 = n.left0 = null),
e && e();
};
this.isFollowing &&
!this.isAnimating &&
((this.isFollowing = !1),
this.stopListeningTo(i(document)),
t && r && !this.isHidden
? ((this.isAnimating = !0),
this.el.animate(
{ top: this.top0, left: this.left0 },
{ duration: r, complete: o }
))
: o());
}),
(t.prototype.getEl = function () {
var t = this.el;
return (
t ||
((t = this.el =
this.sourceEl
.clone()
.addClass(this.options.additionalClass || "")
.css({
position: "absolute",
visibility: "",
display: this.isHidden ? "none" : "",
margin: 0,
right: "auto",
bottom: "auto",
width: this.sourceEl.width(),
height: this.sourceEl.height(),
opacity: this.options.opacity || "",
zIndex: this.options.zIndex,
})),
t.addClass("fc-unselectable"),
t.appendTo(this.parentEl)),
t
);
}),
(t.prototype.removeElement = function () {
this.el && (this.el.remove(), (this.el = null));
}),
(t.prototype.updatePosition = function () {
var t, e;
this.getEl(),
null == this.top0 &&
((t = this.sourceEl.offset()),
(e = this.el.offsetParent().offset()),
(this.top0 = t.top - e.top),
(this.left0 = t.left - e.left)),
this.el.css({
top: this.top0 + this.topDelta,
left: this.left0 + this.leftDelta,
});
}),
(t.prototype.handleMove = function (t) {
(this.topDelta = r.getEvY(t) - this.y0),
(this.leftDelta = r.getEvX(t) - this.x0),
this.isHidden || this.updatePosition();
}),
(t.prototype.hide = function () {
this.isHidden ||
((this.isHidden = !0), this.el && this.el.hide());
}),
(t.prototype.show = function () {
this.isHidden &&
((this.isHidden = !1),
this.updatePosition(),
this.getEl().show());
}),
t
);
})();
(e.default = s), o.default.mixInto(s);
},
function (t, e, n) {
Object.defineProperty(e, "__esModule", { value: !0 });
var i = n(2),
r = n(23),
o = n(15),
s = (function (t) {
function e(e) {
var n = t.call(this, e) || this;
return (n.dragListener = n.buildDragListener()), n;
}
return (
i.__extends(e, t),
(e.prototype.end = function () {
this.dragListener.endInteraction();
}),
(e.prototype.bindToEl = function (t) {
var e = this.component,
n = this.dragListener;
e.bindDateHandlerToEl(t, "mousedown", function (t) {
e.shouldIgnoreMouse() || n.startInteraction(t);
}),
e.bindDateHandlerToEl(t, "touchstart", function (t) {
e.shouldIgnoreTouch() || n.startInteraction(t);
});
}),
(e.prototype.buildDragListener = function () {
var t,
e = this,
n = this.component,
i = new r.default(n, {
scroll: this.opt("dragScroll"),
interactionStart: function () {
t = i.origHit;
},
hitOver: function (e, n, i) {
n || (t = null);
},
hitOut: function () {
t = null;
},
interactionEnd: function (i, r) {
var o;
!r &&
t &&
(o = n.getSafeHitFootprint(t)) &&
e.view.triggerDayClick(o, n.getHitEl(t), i);
},
});
return (
(i.shouldCancelTouchScroll = !1), (i.scrollAlwaysKills = !0), i
);
}),
e
);
})(o.default);
e.default = s;
},
function (t, e, n) {
function i(t) {
var e,
n,
i,
r = [];
for (e = 0; e < t.length; e++) {
for (n = t[e], i = 0; i < r.length && s(n, r[i]).length; i++);
(n.level = i), (r[i] || (r[i] = [])).push(n);
}
return r;
}
function r(t) {
var e, n, i, r, o;
for (e = 0; e < t.length; e++)
for (n = t[e], i = 0; i < n.length; i++)
for (r = n[i], r.forwardSegs = [], o = e + 1; o < t.length; o++)
s(r, t[o], r.forwardSegs);
}
function o(t) {
var e,
n,
i = t.forwardSegs,
r = 0;
if (void 0 === t.forwardPressure) {
for (e = 0; e < i.length; e++)
(n = i[e]), o(n), (r = Math.max(r, 1 + n.forwardPressure));
t.forwardPressure = r;
}
}
function s(t, e, n) {
void 0 === n && (n = []);
for (var i = 0; i < e.length; i++) a(t, e[i]) && n.push(e[i]);
return n;
}
function a(t, e) {
return t.bottom > e.top && t.top < e.bottom;
}
Object.defineProperty(e, "__esModule", { value: !0 });
var l = n(2),
u = n(4),
d = n(42),
c = (function (t) {
function e(e, n) {
var i = t.call(this, e, n) || this;
return (i.timeGrid = e), i;
}
return (
l.__extends(e, t),
(e.prototype.renderFgSegs = function (t) {
this.renderFgSegsIntoContainers(t, this.timeGrid.fgContainerEls);
}),
(e.prototype.renderFgSegsIntoContainers = function (t, e) {
var n, i;
for (
n = this.timeGrid.groupSegsByCol(t), i = 0;
i < this.timeGrid.colCnt;
i++
)
this.updateFgSegCoords(n[i]);
this.timeGrid.attachSegsByCol(n, e);
}),
(e.prototype.unrenderFgSegs = function () {
this.fgSegs &&
this.fgSegs.forEach(function (t) {
t.el.remove();
});
}),
(e.prototype.computeEventTimeFormat = function () {
return this.opt("noMeridiemTimeFormat");
}),
(e.prototype.computeDisplayEventEnd = function () {
return !0;
}),
(e.prototype.fgSegHtml = function (t, e) {
var n,
i,
r,
o = this.view,
s = o.calendar,
a = t.footprint.componentFootprint,
l = a.isAllDay,
d = t.footprint.eventDef,
c = o.isEventDefDraggable(d),
p = !e && t.isStart && o.isEventDefResizableFromStart(d),
h = !e && t.isEnd && o.isEventDefResizableFromEnd(d),
f = this.getSegClasses(t, c, p || h),
g = u.cssToStr(this.getSkinCss(d));
if (
(f.unshift("fc-time-grid-event", "fc-v-event"),
o.isMultiDayRange(a.unzonedRange))
) {
if (t.isStart || t.isEnd) {
var v = s.msToMoment(t.startMs),
y = s.msToMoment(t.endMs);
(n = this._getTimeText(v, y, l)),
(i = this._getTimeText(v, y, l, "LT")),
(r = this._getTimeText(v, y, l, null, !1));
}
} else
(n = this.getTimeText(t.footprint)),
(i = this.getTimeText(t.footprint, "LT")),
(r = this.getTimeText(t.footprint, null, !1));
return (
'
' +
(h ? '' : "") +
""
);
}),
(e.prototype.updateFgSegCoords = function (t) {
this.timeGrid.computeSegVerticals(t),
this.computeFgSegHorizontals(t),
this.timeGrid.assignSegVerticals(t),
this.assignFgSegHorizontals(t);
}),
(e.prototype.computeFgSegHorizontals = function (t) {
var e, n, s;
if ((this.sortEventSegs(t), (e = i(t)), r(e), (n = e[0]))) {
for (s = 0; s < n.length; s++) o(n[s]);
for (s = 0; s < n.length; s++)
this.computeFgSegForwardBack(n[s], 0, 0);
}
}),
(e.prototype.computeFgSegForwardBack = function (t, e, n) {
var i,
r = t.forwardSegs;
if (void 0 === t.forwardCoord)
for (
r.length
? (this.sortForwardSegs(r),
this.computeFgSegForwardBack(r[0], e + 1, n),
(t.forwardCoord = r[0].backwardCoord))
: (t.forwardCoord = 1),
t.backwardCoord =
t.forwardCoord - (t.forwardCoord - n) / (e + 1),
i = 0;
i < r.length;
i++
)
this.computeFgSegForwardBack(r[i], 0, t.forwardCoord);
}),
(e.prototype.sortForwardSegs = function (t) {
t.sort(u.proxy(this, "compareForwardSegs"));
}),
(e.prototype.compareForwardSegs = function (t, e) {
return (
e.forwardPressure - t.forwardPressure ||
(t.backwardCoord || 0) - (e.backwardCoord || 0) ||
this.compareEventSegs(t, e)
);
}),
(e.prototype.assignFgSegHorizontals = function (t) {
var e, n;
for (e = 0; e < t.length; e++)
(n = t[e]),
n.el.css(this.generateFgSegHorizontalCss(n)),
n.bottom - n.top < 30 && n.el.addClass("fc-short");
}),
(e.prototype.generateFgSegHorizontalCss = function (t) {
var e,
n,
i = this.opt("slotEventOverlap"),
r = t.backwardCoord,
o = t.forwardCoord,
s = this.timeGrid.generateSegVerticalCss(t),
a = this.timeGrid.isRTL;
return (
i && (o = Math.min(1, r + 2 * (o - r))),
a ? ((e = 1 - o), (n = r)) : ((e = r), (n = 1 - o)),
(s.zIndex = t.level + 1),
(s.left = 100 * e + "%"),
(s.right = 100 * n + "%"),
i &&
t.forwardPressure &&
(s[a ? "marginLeft" : "marginRight"] = 20),
s
);
}),
e
);
})(d.default);
e.default = c;
},
function (t, e, n) {
Object.defineProperty(e, "__esModule", { value: !0 });
var i = n(2),
r = n(3),
o = n(58),
s = (function (t) {
function e() {
return (null !== t && t.apply(this, arguments)) || this;
}
return (
i.__extends(e, t),
(e.prototype.renderSegs = function (t, e) {
var n,
i,
o,
s = [];
for (
this.eventRenderer.renderFgSegsIntoContainers(
t,
this.component.helperContainerEls
),
n = 0;
n < t.length;
n++
)
(i = t[n]),
e &&
e.col === i.col &&
((o = e.el),
i.el.css({
left: o.css("left"),
right: o.css("right"),
"margin-left": o.css("margin-left"),
"margin-right": o.css("margin-right"),
})),
s.push(i.el[0]);
return r(s);
}),
e
);
})(o.default);
e.default = s;
},
function (t, e, n) {
Object.defineProperty(e, "__esModule", { value: !0 });
var i = n(2),
r = n(57),
o = (function (t) {
function e() {
return (null !== t && t.apply(this, arguments)) || this;
}
return (
i.__extends(e, t),
(e.prototype.attachSegEls = function (t, e) {
var n,
i = this.component;
return (
"bgEvent" === t
? (n = i.bgContainerEls)
: "businessHours" === t
? (n = i.businessContainerEls)
: "highlight" === t && (n = i.highlightContainerEls),
i.updateSegVerticals(e),
i.attachSegsByCol(i.groupSegsByCol(e), n),
e.map(function (t) {
return t.el[0];
})
);
}),
e
);
})(r.default);
e.default = o;
},
function (t, e, n) {
Object.defineProperty(e, "__esModule", { value: !0 });
var i = n(3),
r = n(4),
o = n(7),
s = (function () {
function t(t) {
(this.isHidden = !0), (this.margin = 10), (this.options = t || {});
}
return (
(t.prototype.show = function () {
this.isHidden &&
(this.el || this.render(),
this.el.show(),
this.position(),
(this.isHidden = !1),
this.trigger("show"));
}),
(t.prototype.hide = function () {
this.isHidden ||
(this.el.hide(), (this.isHidden = !0), this.trigger("hide"));
}),
(t.prototype.render = function () {
var t = this,
e = this.options;
(this.el = i('')
.addClass(e.className || "")
.css({ top: 0, left: 0 })
.append(e.content)
.appendTo(e.parentEl)),
this.el.on("click", ".fc-close", function () {
t.hide();
}),
e.autoHide &&
this.listenTo(
i(document),
"mousedown",
this.documentMousedown
);
}),
(t.prototype.documentMousedown = function (t) {
this.el && !i(t.target).closest(this.el).length && this.hide();
}),
(t.prototype.removeElement = function () {
this.hide(),
this.el && (this.el.remove(), (this.el = null)),
this.stopListeningTo(i(document), "mousedown");
}),
(t.prototype.position = function () {
var t,
e,
n,
o,
s,
a = this.options,
l = this.el.offsetParent().offset(),
u = this.el.outerWidth(),
d = this.el.outerHeight(),
c = i(window),
p = r.getScrollParent(this.el);
(o = a.top || 0),
(s =
void 0 !== a.left
? a.left
: void 0 !== a.right
? a.right - u
: 0),
p.is(window) || p.is(document)
? ((p = c), (t = 0), (e = 0))
: ((n = p.offset()), (t = n.top), (e = n.left)),
(t += c.scrollTop()),
(e += c.scrollLeft()),
!1 !== a.viewportConstrain &&
((o = Math.min(o, t + p.outerHeight() - d - this.margin)),
(o = Math.max(o, t + this.margin)),
(s = Math.min(s, e + p.outerWidth() - u - this.margin)),
(s = Math.max(s, e + this.margin))),
this.el.css({ top: o - l.top, left: s - l.left });
}),
(t.prototype.trigger = function (t) {
this.options[t] &&
this.options[t].apply(
this,
Array.prototype.slice.call(arguments, 1)
);
}),
t
);
})();
(e.default = s), o.default.mixInto(s);
},
function (t, e, n) {
function i(t, e) {
var n, i;
for (n = 0; n < e.length; n++)
if (((i = e[n]), i.leftCol <= t.rightCol && i.rightCol >= t.leftCol))
return !0;
return !1;
}
function r(t, e) {
return t.leftCol - e.leftCol;
}
Object.defineProperty(e, "__esModule", { value: !0 });
var o = n(2),
s = n(3),
a = n(4),
l = n(42),
u = (function (t) {
function e(e, n) {
var i = t.call(this, e, n) || this;
return (i.dayGrid = e), i;
}
return (
o.__extends(e, t),
(e.prototype.renderBgRanges = function (e) {
(e = s.grep(e, function (t) {
return t.eventDef.isAllDay();
})),
t.prototype.renderBgRanges.call(this, e);
}),
(e.prototype.renderFgSegs = function (t) {
var e = (this.rowStructs = this.renderSegRows(t));
this.dayGrid.rowEls.each(function (t, n) {
s(n).find(".fc-content-skeleton > table").append(e[t].tbodyEl);
});
}),
(e.prototype.unrenderFgSegs = function () {
for (var t, e = this.rowStructs || []; (t = e.pop()); )
t.tbodyEl.remove();
this.rowStructs = null;
}),
(e.prototype.renderSegRows = function (t) {
var e,
n,
i = [];
for (e = this.groupSegRows(t), n = 0; n < e.length; n++)
i.push(this.renderSegRow(n, e[n]));
return i;
}),
(e.prototype.renderSegRow = function (t, e) {
function n(t) {
for (; o < t; )
(d = (y[i - 1] || [])[o]),
d
? d.attr(
"rowspan",
parseInt(d.attr("rowspan") || 1, 10) + 1
)
: ((d = s("
")), a.append(d)),
(v[i][o] = d),
(y[i][o] = d),
o++;
}
var i,
r,
o,
a,
l,
u,
d,
c = this.dayGrid.colCnt,
p = this.buildSegLevels(e),
h = Math.max(1, p.length),
f = s(""),
g = [],
v = [],
y = [];
for (i = 0; i < h; i++) {
if (
((r = p[i]),
(o = 0),
(a = s("
")),
g.push([]),
v.push([]),
y.push([]),
r)
)
for (l = 0; l < r.length; l++) {
for (
u = r[l],
n(u.leftCol),
d = s('
').append(u.el),
u.leftCol !== u.rightCol
? d.attr("colspan", u.rightCol - u.leftCol + 1)
: (y[i][o] = d);
o <= u.rightCol;
)
(v[i][o] = d), (g[i][o] = u), o++;
a.append(d);
}
n(c), this.dayGrid.bookendCells(a), f.append(a);
}
return {
row: t,
tbodyEl: f,
cellMatrix: v,
segMatrix: g,
segLevels: p,
segs: e,
};
}),
(e.prototype.buildSegLevels = function (t) {
var e,
n,
o,
s = [];
for (this.sortEventSegs(t), e = 0; e < t.length; e++) {
for (n = t[e], o = 0; o < s.length && i(n, s[o]); o++);
(n.level = o), (s[o] || (s[o] = [])).push(n);
}
for (o = 0; o < s.length; o++) s[o].sort(r);
return s;
}),
(e.prototype.groupSegRows = function (t) {
var e,
n = [];
for (e = 0; e < this.dayGrid.rowCnt; e++) n.push([]);
for (e = 0; e < t.length; e++) n[t[e].row].push(t[e]);
return n;
}),
(e.prototype.computeEventTimeFormat = function () {
return this.opt("extraSmallTimeFormat");
}),
(e.prototype.computeDisplayEventEnd = function () {
return 1 === this.dayGrid.colCnt;
}),
(e.prototype.fgSegHtml = function (t, e) {
var n,
i,
r = this.view,
o = t.footprint.eventDef,
s = t.footprint.componentFootprint.isAllDay,
l = r.isEventDefDraggable(o),
u = !e && s && t.isStart && r.isEventDefResizableFromStart(o),
d = !e && s && t.isEnd && r.isEventDefResizableFromEnd(o),
c = this.getSegClasses(t, l, u || d),
p = a.cssToStr(this.getSkinCss(o)),
h = "";
return (
c.unshift("fc-day-grid-event", "fc-h-event"),
t.isStart &&
(n = this.getTimeText(t.footprint)) &&
(h = '' + a.htmlEscape(n) + ""),
(i =
'' +
(a.htmlEscape(o.title || "") || " ") +
""),
'
" +
(u ? '' : "") +
(d ? '' : "") +
""
);
}),
e
);
})(l.default);
e.default = u;
},
function (t, e, n) {
Object.defineProperty(e, "__esModule", { value: !0 });
var i = n(2),
r = n(3),
o = n(58),
s = (function (t) {
function e() {
return (null !== t && t.apply(this, arguments)) || this;
}
return (
i.__extends(e, t),
(e.prototype.renderSegs = function (t, e) {
var n,
i = [];
return (
(n = this.eventRenderer.renderSegRows(t)),
this.component.rowEls.each(function (t, o) {
var s,
a,
l = r(o),
u = r('
');
e && e.row === t
? (a = e.el.position().top)
: ((s = l.find(".fc-content-skeleton tbody")),
s.length || (s = l.find(".fc-content-skeleton table")),
(a = s.position().top)),
u.css("top", a).find("table").append(n[t].tbodyEl),
l.append(u),
i.push(u[0]);
}),
r(i)
);
}),
e
);
})(o.default);
e.default = s;
},
function (t, e, n) {
Object.defineProperty(e, "__esModule", { value: !0 });
var i = n(2),
r = n(3),
o = n(57),
s = (function (t) {
function e() {
var e = (null !== t && t.apply(this, arguments)) || this;
return (e.fillSegTag = "td"), e;
}
return (
i.__extends(e, t),
(e.prototype.attachSegEls = function (t, e) {
var n,
i,
r,
o = [];
for (n = 0; n < e.length; n++)
(i = e[n]),
(r = this.renderFillRow(t, i)),
this.component.rowEls.eq(i.row).append(r),
o.push(r[0]);
return o;
}),
(e.prototype.renderFillRow = function (t, e) {
var n,
i,
o,
s = this.component.colCnt,
a = e.leftCol,
l = e.rightCol + 1;
return (
(n = "businessHours" === t ? "bgevent" : t.toLowerCase()),
(i = r(
'
'
)),
(o = i.find("tr")),
a > 0 && o.append('
'),
o.append(e.el.attr("colspan", l - a)),
l < s && o.append('
'),
this.component.bookendCells(o),
i
);
}),
e
);
})(o.default);
e.default = s;
},
function (t, e, n) {
Object.defineProperty(e, "__esModule", { value: !0 });
var i = n(2),
r = n(228),
o = n(5),
s = (function (t) {
function e() {
return (null !== t && t.apply(this, arguments)) || this;
}
return (
i.__extends(e, t),
(e.prototype.buildRenderRange = function (e, n, i) {
var r,
s = t.prototype.buildRenderRange.call(this, e, n, i),
a = this.msToUtcMoment(s.startMs, i),
l = this.msToUtcMoment(s.endMs, i);
return (
this.opt("fixedWeekCount") &&
((r = Math.ceil(l.diff(a, "weeks", !0))),
l.add(6 - r, "weeks")),
new o.default(a, l)
);
}),
e
);
})(r.default);
e.default = s;
},
function (t, e, n) {
Object.defineProperty(e, "__esModule", { value: !0 });
var i = n(2),
r = n(4),
o = n(42),
s = (function (t) {
function e() {
return (null !== t && t.apply(this, arguments)) || this;
}
return (
i.__extends(e, t),
(e.prototype.renderFgSegs = function (t) {
t.length
? this.component.renderSegList(t)
: this.component.renderEmptyMessage();
}),
(e.prototype.fgSegHtml = function (t) {
var e,
n = this.view,
i = n.calendar,
o = i.theme,
s = t.footprint,
a = s.eventDef,
l = s.componentFootprint,
u = a.url,
d = ["fc-list-item"].concat(this.getClasses(a)),
c = this.getBgColor(a);
return (
(e = l.isAllDay
? n.getAllDayHtml()
: n.isMultiDayRange(l.unzonedRange)
? t.isStart || t.isEnd
? r.htmlEscape(
this._getTimeText(
i.msToMoment(t.startMs),
i.msToMoment(t.endMs),
l.isAllDay
)
)
: n.getAllDayHtml()
: r.htmlEscape(this.getTimeText(s))),
u && d.push("fc-has-url"),
'