const initialState = {
    casStatus: 'forbidden'
};
export default function casReducer(state = initialState, action) {
    switch (action.type) {
        case 'ALLOW_CAS':
            return state;
        case 'ALLOW_CAS_COUNTDOWN': {
            return { casStatus: 'allowing', durationRemaining: action.payload };
        }
        case 'ALLOW_CAS_SUCCEEDED': {
            return { casStatus: 'allowed' };
        }
        case 'ALLOW_CAS_CANCELLED': {
            return { casStatus: 'forbidden' };
        }
        case 'UPDATE_CAS_REMAINING': {
            return { casStatus: 'allowing', durationRemaining: action.payload };
        }
        default:
            return state;
    }
}
//# sourceMappingURL=reducer.js.map