?`You have exceeded the maximum number of violations (${this.MAX_VIOLATIONS}). Your quiz has been automatically submitted.`
:`${message}. This is violation ${this.violationCount} of ${this.MAX_VIOLATIONS}. ${remaining} warning${remaining===1?'':'s'} remaining before automatic submission.`,
violationCount:this.violationCount,
isAutoSubmit
};
this.warning$.next(warning);
if(isAutoSubmit){
this.hasSubmitted=true;
this.stop();
// Slight delay so the modal renders before submit fires