function parseEventDef(refined, extra, sourceId, allDay, hasEnd, context) {
    var def = {
        title: refined.title || '',
        groupId: refined.groupId || '',
        publicId: refined.id || '',
        url: refined.url || '',
        recurringDef: null,
        defId: guid(),
        sourceId: sourceId,
        allDay: allDay,
        hasEnd: hasEnd,
        ui: createEventUi(refined, context),
        extendedProps: Object(tslib__WEBPACK_IMPORTED_MODULE_1__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_1__["__assign"])({}, (refined.extendedProps || {})), extra)
    };
    for (var _i = 0, _a = context.pluginHooks.eventDefMemberAdders; _i < _a.length; _i++) {
        var memberAdder = _a[_i];
        Object(tslib__WEBPACK_IMPORTED_MODULE_1__["__assign"])(def, memberAdder(refined));
    }
    // help out EventApi from having user modify props
    Object.freeze(def.ui.classNames);
    Object.freeze(def.extendedProps);
    return def;
}
/*
Will NOT populate extendedProps with the leftover properties.
Will NOT populate date-related props.
*/
Will NOT populate extendedProps with the leftover properties.
Will NOT populate date-related props.
Will NOT populate extendedProps with the leftover properties . Will NOT populate date - related props .
function parseEventDef(refined, extra, sourceId, allDay, hasEnd, context) {
    var def = {
        title: refined.title || '',
        groupId: refined.groupId || '',
        publicId: refined.id || '',
        url: refined.url || '',
        recurringDef: null,
        defId: guid(),
        sourceId: sourceId,
        allDay: allDay,
        hasEnd: hasEnd,
        ui: createEventUi(refined, context),
        extendedProps: Object(tslib__WEBPACK_IMPORTED_MODULE_1__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_1__["__assign"])({}, (refined.extendedProps || {})), extra)
    };
    for (var _i = 0, _a = context.pluginHooks.eventDefMemberAdders; _i < _a.length; _i++) {
        var memberAdder = _a[_i];
        Object(tslib__WEBPACK_IMPORTED_MODULE_1__["__assign"])(def, memberAdder(refined));
    }
    Object.freeze(def.ui.classNames);
    Object.freeze(def.extendedProps);
    return def;
}
function parseEventDef ( refined , extra , sourceId , allDay , hasEnd , context ) { var def = { title : refined . title || '' , groupId : refined . groupId || '' , publicId : refined . id || '' , url : refined . url || '' , recurringDef : null , defId : guid ( ) , sourceId : sourceId , allDay : allDay , hasEnd : hasEnd , ui : createEventUi ( refined , context ) , extendedProps : Object ( tslib__WEBPACK_IMPORTED_MODULE_1__ [ "__assign" ] ) ( Object ( tslib__WEBPACK_IMPORTED_MODULE_1__ [ "__assign" ] ) ( { } , ( refined . extendedProps || { } ) ) , extra ) } ; for ( var _i = 0 , _a = context . pluginHooks . eventDefMemberAdders ; _i < _a . length ; _i ++ ) { var memberAdder = _a [ _i ] ; Object ( tslib__WEBPACK_IMPORTED_MODULE_1__ [ "__assign" ] ) ( def , memberAdder ( refined ) ) ; } Object . freeze ( def . ui . classNames ) ; Object . freeze ( def . extendedProps ) ; return def ; }
Will NOT populate extendedProps with the leftover properties.
Will NOT populate extendedProps with the leftover properties .
// help out EventApi from having user modify props