var TcHmi;!function(TcHmi){!function(Functions){!function(Beckhoff){Beckhoff.EventClassesProvider=function(rowValue,dataIndex,rowNumber){let classes=[];switch(rowValue.type){case TcHmi.Server.Events.Type.Message:classes.push("message");break;case TcHmi.Server.Events.Type.Alarm:classes.push("alarm")}if(TcHmi.Server.Events.isMessage(rowValue)||TcHmi.Server.Events.isAlarm(rowValue))switch(rowValue.severity){case TcHmi.Server.Events.Severity.Verbose:classes.push("verbose");break;case TcHmi.Server.Events.Severity.Info:classes.push("info");break;case TcHmi.Server.Events.Severity.Warning:classes.push("warning");break;case TcHmi.Server.Events.Severity.Error:classes.push("error");break;case TcHmi.Server.Events.Severity.Critical:classes.push("critical")}if(TcHmi.Server.Events.isAlarm(rowValue)){switch(rowValue.alarmState){case TcHmi.Server.Events.AlarmState.Raised:classes.push("raised");break;case TcHmi.Server.Events.AlarmState.Confirmed:classes.push("confirmed");break;case TcHmi.Server.Events.AlarmState.Cleared:classes.push("cleared");break;case TcHmi.Server.Events.AlarmState.ClearedAndConfirmed:classes.push("cleared-and-confirmed");break;case TcHmi.Server.Events.AlarmState.Invalid:classes.push("invalid")}rowValue.confirmationState===TcHmi.Server.Events.ConfirmationState.NotRequired||rowValue.confirmationState===TcHmi.Server.Events.ConfirmationState.NotSupported?classes.push("no-confirmation-needed"):rowValue.confirmationState===TcHmi.Server.Events.ConfirmationState.Reset&&classes.push("confirmation-reset")}return classes}}(Functions.Beckhoff||(Functions.Beckhoff={}))}(TcHmi.Functions||(TcHmi.Functions={}))}(TcHmi||(TcHmi={})),TcHmi.Functions.registerFunctionEx("EventClassesProvider","TcHmi.Controls.Beckhoff.TcHmiEventGrid",TcHmi.Functions.Beckhoff.EventClassesProvider);