function resliceDaySegs(segs, dayDate, colIndex) {
    var dayStart = dayDate;
    var dayEnd = Object(_fullcalendar_common__WEBPACK_IMPORTED_MODULE_1__["addDays"])(dayStart, 1);
    var dayRange = { start: dayStart, end: dayEnd };
    var newSegs = [];
    for (var _i = 0, segs_2 = segs; _i < segs_2.length; _i++) {
        var seg = segs_2[_i];
        var eventRange = seg.eventRange;
        var origRange = eventRange.range;
        var slicedRange = Object(_fullcalendar_common__WEBPACK_IMPORTED_MODULE_1__["intersectRanges"])(origRange, dayRange);
        if (slicedRange) {
            newSegs.push(Object(tslib__WEBPACK_IMPORTED_MODULE_2__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_2__["__assign"])({}, seg), { firstCol: colIndex, lastCol: colIndex, eventRange: {
                    def: eventRange.def,
                    ui: Object(tslib__WEBPACK_IMPORTED_MODULE_2__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_2__["__assign"])({}, eventRange.ui), { durationEditable: false }),
                    instance: eventRange.instance,
                    range: slicedRange
                }, isStart: seg.isStart && slicedRange.start.valueOf() === origRange.start.valueOf(), isEnd: seg.isEnd && slicedRange.end.valueOf() === origRange.end.valueOf() }));
        }
    }
    return newSegs;
}
// Given the events within an array of segment objects, reslice them to be in a single day
Given the events within an array of segment objects, reslice them to be in a single day
Given the events within an array of segment objects reslice them to be in a single day
function resliceDaySegs(segs, dayDate, colIndex) {
    var dayStart = dayDate;
    var dayEnd = Object(_fullcalendar_common__WEBPACK_IMPORTED_MODULE_1__["addDays"])(dayStart, 1);
    var dayRange = { start: dayStart, end: dayEnd };
    var newSegs = [];
    for (var _i = 0, segs_2 = segs; _i < segs_2.length; _i++) {
        var seg = segs_2[_i];
        var eventRange = seg.eventRange;
        var origRange = eventRange.range;
        var slicedRange = Object(_fullcalendar_common__WEBPACK_IMPORTED_MODULE_1__["intersectRanges"])(origRange, dayRange);
        if (slicedRange) {
            newSegs.push(Object(tslib__WEBPACK_IMPORTED_MODULE_2__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_2__["__assign"])({}, seg), { firstCol: colIndex, lastCol: colIndex, eventRange: {
                    def: eventRange.def,
                    ui: Object(tslib__WEBPACK_IMPORTED_MODULE_2__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_2__["__assign"])({}, eventRange.ui), { durationEditable: false }),
                    instance: eventRange.instance,
                    range: slicedRange
                }, isStart: seg.isStart && slicedRange.start.valueOf() === origRange.start.valueOf(), isEnd: seg.isEnd && slicedRange.end.valueOf() === origRange.end.valueOf() }));
        }
    }
    return newSegs;
}
function resliceDaySegs ( segs , dayDate , colIndex ) { var dayStart = dayDate ; var dayEnd = Object ( _fullcalendar_common__WEBPACK_IMPORTED_MODULE_1__ [ "addDays" ] ) ( dayStart , 1 ) ; var dayRange = { start : dayStart , end : dayEnd } ; var newSegs = [ ] ; for ( var _i = 0 , segs_2 = segs ; _i < segs_2 . length ; _i ++ ) { var seg = segs_2 [ _i ] ; var eventRange = seg . eventRange ; var origRange = eventRange . range ; var slicedRange = Object ( _fullcalendar_common__WEBPACK_IMPORTED_MODULE_1__ [ "intersectRanges" ] ) ( origRange , dayRange ) ; if ( slicedRange ) { newSegs . push ( Object ( tslib__WEBPACK_IMPORTED_MODULE_2__ [ "__assign" ] ) ( Object ( tslib__WEBPACK_IMPORTED_MODULE_2__ [ "__assign" ] ) ( { } , seg ) , { firstCol : colIndex , lastCol : colIndex , eventRange : { def : eventRange . def , ui : Object ( tslib__WEBPACK_IMPORTED_MODULE_2__ [ "__assign" ] ) ( Object ( tslib__WEBPACK_IMPORTED_MODULE_2__ [ "__assign" ] ) ( { } , eventRange . ui ) , { durationEditable : false } ) , instance : eventRange . instance , range : slicedRange } , isStart : seg . isStart && slicedRange . start . valueOf ( ) === origRange . start . valueOf ( ) , isEnd : seg . isEnd && slicedRange . end . valueOf ( ) === origRange . end . valueOf ( ) } ) ) ; } } return newSegs ; }
Given the events within an array of segment objects, reslice them to be in a single day
Given the events within an array of segment objects reslice them to be in a single day