var TcHmi;!function(TcHmi){!function(Controls){!function(System){class TcHmiView extends TcHmi.Controls.System.TcHmiPartial{constructor(element,pcElement,attrs){super(element,pcElement,attrs)}__processAccessConfig(){super.__processAccessConfig();const currentAccess=TcHmi.Access.checkAccess(this,"observe");if(null===currentAccess);else if(!1===currentAccess){if(TcHmi.Server.getWebsocketReadyState()===WebSocket.OPEN){let localization=this.__localization;const loggedInUser=TcHmi.Server.getCurrentUserConfig();4===loggedInUser.state?TcHmi.DialogManager.updateTextEx("__TcHmiViewAccess",tchmi_format_string(localization.getText("Error_Dialog_Load_View_Insufficient_Access_User_Details"),this.__id,window.location.pathname,loggedInUser.userIsInGroups.join(", "),loggedInUser.domain,loggedInUser.session,loggedInUser.name),{severity:TcHmi.DialogManager.DialogSeverity.Error,buttonReload:!TCHMI_DESIGNER}):TcHmi.DialogManager.updateTextEx("__TcHmiViewAccess",tchmi_format_string(localization.getText("Error_Dialog_Load_View_Insufficient_Access"),this.__id,window.location.pathname),{severity:TcHmi.DialogManager.DialogSeverity.Error,buttonReload:!TCHMI_DESIGNER}),TcHmi.DialogManager.showDialog("__TcHmiViewAccess",!0,TcHmi.DialogManager.DialogType.Overlay)}}else!0===currentAccess&&"__TcHmiViewAccess"===TcHmi.DialogManager.getDialogOwner()&&TcHmi.DialogManager.showDialog("__TcHmiViewAccess",!1);document.body.classList.toggle("tchmi-view-observe-disallowed",!currentAccess)}}System.TcHmiView=TcHmiView}(Controls.System||(Controls.System={}))}(TcHmi.Controls||(TcHmi.Controls={}))}(TcHmi||(TcHmi={})),TcHmi.Controls.registerEx("TcHmiView","TcHmi.Controls.System",TcHmi.Controls.System.TcHmiView);