$(window).on("load",function(){$("div.message-positive").addClass("alert-success"),$("div.message-warning").addClass("alert-warning"),$("div.message-negative").addClass("alert-danger"),$("table.info").addClass("table"),$(".notifCheck").addClass("checkbox"),$('.collapse li:not(".dropdown")').on("click",function(){$(".navbar-toggler").hasClass("collapsed")||$(".navbar-toggler").trigger("click")}),$("#authMenu .nav-link").on("click",function(e){window.datas.choicetab=e.target.hash.substr(1)}),$("#remove2fModal").on("show.bs.modal",function(e){var e=$(e.relatedTarget),t=e.attr("device"),a=e.attr("epoch"),e=e.attr("prefix"),i=$(this);i.find(".remove2f").attr("device",t),i.find(".remove2f").attr("epoch",a),i.find(".remove2f").attr("prefix",e)}),$(".nav-item").click(function(){$(".nav-item").attr("tabIndex",0)}),$(".nav-item").focusin(function(){$(".nav-item").attr("tabIndex",0)}),$(".nav-item").focusout(function(){$(".nav-item").attr("tabIndex",0)})}),$(document).on("portalLoaded",{},function(e,t){$(document).ready(function(){function t(){var e=$("span#remembertimer").text();"stopped"!=$("input#rememberStopped").val()&&(e--,$("span#remembertimer").text(e),0<e?window.setTimeout(t,1e3):(e=$("#id_"+$.cookie(a)+" form .sslclick")).length?e.click():$("#id_"+$.cookie(a)+" form")?.submit())}$("#globalrememberauthchoice").change(function(){var e=this.checked;$('input[name="rememberauthchoice"]').each(function(){$(this).val(e)})}),$("#buttonRememberStopped").click(function(){var e;"stopped"!=$("input#rememberStopped").val()?e="stopped":(e="running",window.setTimeout(t,0)),$("input#rememberStopped").val(e),$("#remembertimercontainer").hide(),$("#globalrememberauthchoicecontainer").css("display","flex")});var a=$("#rememberCookieName").val();9==window.datas.authError&&(void 0!==a&&void 0!==$.cookie(a)?($("#remembertimercontainer").css("display","flex"),$("#globalrememberauthchoice").prop("checked",!0),$('input[name="rememberauthchoice"]').each(function(){$(this).val("true")}),$("span#remembertimer").text(parseInt($("span#remembertimer").text())+1),window.setTimeout(t,0)):$("#globalrememberauthchoicecontainer").css("display","flex"))})});