function buildSegCompareObj(seg) {
    var eventRange = seg.eventRange;
    var eventDef = eventRange.def;
    var range = eventRange.instance ? eventRange.instance.range : eventRange.range;
    var start = range.start ? range.start.valueOf() : 0; // TODO: better support for open-range events
    var end = range.end ? range.end.valueOf() : 0; // "
    return Object(tslib__WEBPACK_IMPORTED_MODULE_1__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_1__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_1__["__assign"])({}, eventDef.extendedProps), eventDef), { id: eventDef.publicId, start: start,
        end: end, duration: end - start, allDay: Number(eventDef.allDay), _seg: seg // for later retrieval
     });
}
// returns a object with all primitive props that can be compared
returns a object with all primitive props that can be compared
returns a object with all primitive props that can be compared
function buildSegCompareObj(seg) {
    var eventRange = seg.eventRange;
    var eventDef = eventRange.def;
    var range = eventRange.instance ? eventRange.instance.range : eventRange.range;
    var start = range.start ? range.start.valueOf() : 0; 
    var end = range.end ? range.end.valueOf() : 0; 
    return Object(tslib__WEBPACK_IMPORTED_MODULE_1__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_1__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_1__["__assign"])({}, eventDef.extendedProps), eventDef), { id: eventDef.publicId, start: start,
        end: end, duration: end - start, allDay: Number(eventDef.allDay), _seg: seg 
     });
}
function buildSegCompareObj ( seg ) { var eventRange = seg . eventRange ; var eventDef = eventRange . def ; var range = eventRange . instance ? eventRange . instance . range : eventRange . range ; var start = range . start ? range . start . valueOf ( ) : 0 ; var end = range . end ? range . end . valueOf ( ) : 0 ; return Object ( tslib__WEBPACK_IMPORTED_MODULE_1__ [ "__assign" ] ) ( Object ( tslib__WEBPACK_IMPORTED_MODULE_1__ [ "__assign" ] ) ( Object ( tslib__WEBPACK_IMPORTED_MODULE_1__ [ "__assign" ] ) ( { } , eventDef . extendedProps ) , eventDef ) , { id : eventDef . publicId , start : start , end : end , duration : end - start , allDay : Number ( eventDef . allDay ) , _seg : seg } ) ; }
returns a object with all primitive props that can be compared
returns a object with all primitive props that can be compared
// TODO: better support for open-range events // " // for later retrieval