"+theme_language("theme_xhred_encoding_warning").replace("_hidden_",$t_uri_usermin?"hidden":"").replace("%prod",get_navigation_module_name()).replace("%lang",get_server_data("language")).replace("%charset",get_server_data("charset")).replace("%link",v___location_prefix+($t_uri_usermin?"/language":"/webmin/edit_lang.cgi"))+"
";theme_alert(theme_language("theme_xhred_global_warning"),t,!1,"sm","warning",!1,"7 modal-charset-warning",2e3),$("body").on("click",".modal-charset-warning a.label",function(e){$(".modal-charset-warning").modal("hide")}),$("body").on("hide.bs.modal",".modal-charset-warning",function(e){localStorage.setItem(v___server_hostname+"-config_portable_theme_charset_warning_shown","true"),theme_config("save")})}}function get_module_title(){return $_right_menu_title=$("#headln2c"),$_right_menu_title.find("span[data-main_title]").text().length?$_right_menu_title.find("span[data-main_title]").text():$_right_menu_title.text().length?$_right_menu_title.text().text():"->"}function get_module_subtitle(){}function editor_background_save(e){if(1===$('textarea[name="data"], textarea[name="text"], textarea[name="directives"], textarea[name="manual"]').length&&1===$('textarea[name="data"], textarea[name="text"], textarea[name="directives"], textarea[name="manual"]').parents("form").find('input[type="submit"]').length){if(!$(".CodeMirror").length)return;function t(){"undefined"!=typeof __cm_editor_static&&$(".container-fluid > .panel > .panel-body").attr("data-cm-line",__cm_editor_static.getCursor().line+","+__cm_editor_static.getCursor().ch).attr("data-cm-state",$('[data-form="submitter"]').hasClass("btn-warning")&&!$('[data-form="submitter"]').next("button").hasClass("disabled"))}$(".ui_reset").remove();var i=$('.container-fluid textarea[name="data"], .container-fluid textarea[name="text"], .container-fluid textarea[name="directives"], .container-fluid textarea[name="manual"]').parents("form"),a=i.find('button[type="button"]').length?i.find('button[type="button"]'):i.find('input[type="submit"]'),n=$('.container-fluid textarea[name="directives"]').length?"-12px":"0";$(".container-fluid select").val()?$(".container-fluid select").val():$(".container-fluid .table-title").text()?$(".container-fluid .table-title").text():$(".container-fluid .panel-body tt:first").text()?$(".container-fluid .panel-body tt:first").text():$(".container-fluid #headln2c tt:first").text()&&$(".container-fluid #headln2c tt:first").text();a.parents("table.ui_form_end_buttons").prev("br").remove(),a.parents("table.ui_form_end_buttons").prev("div.table-responsive").attr("style","margin-bottom: -4px !important"),a.replaceWith('\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t");var s=$('.container-fluid button[type="button"]:not(.ui_form_end_submit)'),_=$('.container-fluid button[type="submit"]:not(.ui_form_end_submit)');window.__cm_editor_static.on("change",function(e,i){__cm_editor_static.save(),s.addClass("btn-warning").removeClass("btn-success").attr("data-form-onbeforeunload",1),t()}),$("body").off("mousedown.cm1"),$("body").on("mousedown.cm1",".CodeMirror",function(e){t()}),$("body").off("keydown.cm1"),$("body").on("keydown.cm1",function(e){13==e.keyCode&&e.ctrlKey&&!e.shiftKey?s.trigger("click"):13==e.keyCode&&e.ctrlKey&&e.shiftKey&&_.trigger("click")});var r='button[type="submit"]:not(.disabled)';$("body").undelegate(r,"click.cm"),$("body").on("click.cm",r,function(e){set_onbeforeunload_status(0,0),$("button").addClass("disabled").find(".fa.fa-arrow-circle-o-left").addClass("invisible").after(''),s.attr("data-form-onbeforeunload",0)});var o='button[data-form="submitter"]:not(.disabled)';$("body").undelegate(o,"click.cm"),$("body").on("click.cm",o,function(e){e.preventDefault();var t=$(this).parents("form"),a=(t.attr("enctype")&&t.attr("enctype").indexOf("form-data")>-1?0:1)?t.serialize():new FormData(t[0]);$("button").addClass("disabled").find(".fa.fa-floppy-o").addClass("invisible").after(''),setTimeout(function(){$.ajax({type:"POST",url:i.attr("action"),data:a,dataType:"text",cache:!1,contentType:!1,processData:!1,success:function(e){if(!Test.strContains(e,v___page_signin_form))return s.removeClass("btn-warning").addClass("btn-success").attr("data-form-onbeforeunload",0),$("button").removeClass("disabled").find(".fa").removeClass("invisible").parent().find(".cspinner_container").remove(),$(".container-fluid > .panel > .panel-body").attr("data-cm-state","false"),set_onbeforeunload_status(0,0),!$(e).find(".panel-body > hr + h3").length||$(e).find(".panel-body .table").length||$(e).find(".panel-body form[action]").length?void 0:(theme_messenger(''+$(e).find(".panel-body hr + h3").html(),60,"error","magic_save_error"),s.removeClass("btn-success").addClass("btn-warning").attr("data-form-onbeforeunload",1),void $(".container-fluid > .panel > .panel-body").attr("data-cm-state","true"));v___available_session=0},error:function(e){}})},300)})}}function page_resized(){navigation_lock_width(),$(".mobile-menu-toggler").hasClass("selected")||($("aside").addClass("hidden-xs"),$("aside").css("transform","translate("+settings_leftmenu_width+"px, 0px)"),$(".switch-toggle").css("display","table"),"function"==typeof jQuery().transition&&$(".__logo")&&!$(".mobile-menu-toggler:visible").length?$(".__logo").transition({y:"-140px"},700,function(){}):$(".__logo")&&$(".__logo").css("transform","translate(0px, 0px)")),set_side_slider_visibility(!0!==settings_side_slider_fixed||$(".mobile-menu-toggler:visible").length||!v___available_navigation?0:1)}function theme_settings_controls(e){var t=$("#atsave, #save_user");e?(set_onbeforeunload_status(1,0),t.addClass("btn-warning")):(set_onbeforeunload_status(0,0),t.removeClass("btn-warning"))}function theme_settings_update(){$.each($("#atsettings .ui_form").serializeArray(),function(e,t){if("true"==t.value||"false"==t.value){if("true"==t.value)i=!0;else if("false"==t.value)i=!1}else var i=t.value;window[t.name]=Test.numeric(i)?parseInt(i):i})}function bind_sameorigin(){$("body").on("click",'a[href^="http"], a[href^="https"], a[href^="ftp"], a[href^="ftps"]',function(e){Core.linkSameOrigin($(this))||$(this).attr("target","_blank")}),$.each($('ul.navigation a[href^="http"], ul.navigation a[href^="https"], ul.navigation a[href^="ftp"], ul.navigation a[href^="ftps"], ul.navigation a[data-href^="http"], ul.navigation a[data-href^="https"], ul.navigation a[data-href^="ftp"], ul.navigation a[data-href^="ftps"]'),function(){$(this).removeClass("navigation_module_trigger").parents("li").addClass("navigation_external"),$(this).attr("target","_blank"),$(this).attr("href",$(this).data("href")),$(this).removeAttr("data-href")})}function reset_switch_position(){Test.string(v___theme_navigation_active)&&set_switch_position(v___theme_navigation_active)}function set_switch_position(e){get_onbeforeunload_status()||($('.switch-toggle input:not([id="open_'+e+'"])').each(function(){$(this).removeAttr("checked")}).promise().done(function(){$("#open_"+e).prop("checked",!0)}),update_navigation_module_name())}function get_navigation_menu_webmin(e){get_onbeforeunload_status()||(navigation_render_start(),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-navigation=1&xhr-navigation-type="+("webmail"==e?"webmail":"webmin"),data:!1,dataType:"text",success:function(t){if(Test.strContains(t,v___page_signin_form))return v___available_session=0,navigation_render_end(),void reset_switch_position();v___theme_navigation_active="webmail"==e?"webmail":get_server_data("product"),$("body ul.navigation").html(t),navigation_render_end(),!get_server_data("loading")&&navigation_detect()}}),get_navigation_menu_buttons())}function get_navigation_menu_virtualmin(e){get_onbeforeunload_status()||(navigation_render_start(),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-navigation=1&xhr-navigation-type=virtualmin"+(e?"&dom="+e:settings_right_virtualmin_default?"&dom="+settings_right_virtualmin_default:""),data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return v___available_session=0,navigation_render_end(),void reset_switch_position();v___theme_navigation_active="virtualmin",$("body ul.navigation").html(e),navigation_render_end(),get_navigation_menu_virtualmin_summary(),!get_server_data("loading")&&navigation_detect()}}),get_navigation_menu_buttons())}function get_navigation_menu_virtualmin_summary(){if(!get_onbeforeunload_status()){var e=$('a[href*=".cgi?dom=$#DOM"]'),t=e.attr("href"),i=$('aside [name="dom"]').val();e.length&&i&&e.attr("href",t.replace("$#DOM",i))}}function get_navigation_menu_cloudmin(e){get_onbeforeunload_status()||(navigation_render_start(),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-navigation=1&xhr-navigation-type=cloudmin"+(e||0===e?"&sid="+e:settings_right_cloudmin_default?"&sid="+settings_right_cloudmin_default:""),data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return v___available_session=0,navigation_render_end(),void reset_switch_position();v___theme_navigation_active="cloudmin",$("body ul.navigation").html(e),theme_shell_link_control(),navigation_render_end(),!get_server_data("loading")&&navigation_detect()}}),get_navigation_menu_buttons())}function get_navigation_menu_buttons(){get_onbeforeunload_status()||$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-buttons=1&xhr-buttons-type="+($t_uri_virtualmin||$t_uri_cloudmin?1:0),data:!1,dataType:"text",success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:($("body ul.user-links").html(e),theme_shell_link_control())}})}function get_default_content(){get_onbeforeunload_status()||($("body").append(''),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-default=1",data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{$("#____switch").html(e),$____switch=$("#____switch").text();var t=v___location_prefix+(3==v___user_level&&Core.moduleAvailable("mailbox")&&$t_uri_webmail?"/mailbox/index.cgi?id=INBOX":3==v___user_level?"/sysinfo.cgi":("/"==$____switch.substring(0,1)?"":"/")+$____switch);(Test.strContains(t,"mysql")||Test.strContains(t,"postgresql"))&&get_bundle_sql(),Test.strContains(t,v___module_file_manager)&&get_bundle_file_manager(),Test.strContains(t,"csf")&&get_bundle_csf(),get_pjax_content(t),$("#____switch").remove()}}}))}function get_default_virtualmin_content(e,t){if(!get_onbeforeunload_status()||t){var i,a="/virtual-server";if(i=1==get_server_data("initial-wizard")?a+"/wizard.cgi":!1!==e?a+"/summary_domain.cgi?dom="+e:"sysinfo.cgi"==settings_right_virtualmin_default||""==settings_right_virtualmin_default?"/sysinfo.cgi":"index.cgi"==settings_right_virtualmin_default?a+"/index.cgi":a+"/summary_domain.cgi?dom="+settings_right_virtualmin_default,t)return v___location_prefix+i;get_pjax_content(v___location_prefix+i)}}function get_default_cloudmin_content(e,t){if(!get_onbeforeunload_status()||t){var i;if(i=!1===e||settings_right_cloudmin_default||"0"==settings_right_cloudmin_default?"sysinfo.cgi"==settings_right_cloudmin_default||""==settings_right_cloudmin_default&&"0"!=settings_right_cloudmin_default?"sysinfo.cgi":"index.cgi"==settings_right_cloudmin_default?"server-manager/index.cgi":"server-manager/edit_serv.cgi?id="+settings_right_cloudmin_default:"server-manager/edit_serv.cgi?id="+e,t)return v___location_prefix+"/"+i;get_pjax_content(v___location_prefix+"/"+i)}}function get_navigation_and_content(e,t,i){get_onbeforeunload_status()||("virtualmin"===e?(get_navigation_menu_virtualmin(!1),1!=settings_right_reload&&1!==t||1===i||get_default_virtualmin_content(!1)):"cloudmin"===e?(get_navigation_menu_cloudmin(!1),1!=settings_right_reload&&1!==t||1===i||get_default_cloudmin_content(!1)):(0==navigation_dashboard_switch_available()&&get_navigation_menu_webmin(e),1!=settings_right_reload&&1!==t||1===i||get_default_content()))}function information_update(){if(!$("body .modal.in").length&&0==v___user_level){var e=$("body").find("#system-status"),t=e.length?e[0]:0;$("#right-side-tabs-sysinfo .graph-container").length||$("#right-side-tabs .info-container").html(get_right_panel_sysinfo_data()),t&&$(t).find('h3 > a[data-refresh="system-status"]').addClass("disabled").find("i").addClass("fa-spin");var i=$(".right-side-tabs-dismiss .fa-reload");i.addClass("fa-spin-fast"),setTimeout(function(){i.removeClass("fa-spin-fast")},3e3),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-info=1",data:!1,dataType:"json",success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:($.each(e,function(e,i){if("cpu_percent"!=e&&"mem_percent"!=e&&"virt_percent"!=e&&"disk_percent"!=e||(Test.numeric(i)?localStorage.setItem(v___server_hostname+"-sysinfo_"+e+"_stats",i):localStorage.setItem(v___server_hostname+"-sysinfo_"+e+"_stats","")),t){if($(t).find('span[data-id="sysinfo_'+e+'"]').html(i),"local_time"==e||"uptime"==e||"running_proc"==e){var a=$(t).find('span[data-id="sysinfo_'+e+'"]'),n=$(t).find('span[data-id="sysinfo_'+e+'"] a'),s=$(t).find('span[data-id="sysinfo_'+e+'"]').text();"local_time"==e&&settings_window_replace_timestamps?n&&n.length?(s=$(t).find('span[data-id="sysinfo_'+e+'"] a').data("convertible-timestamp-full"),a.html(n.html(moment.unix(s).format(settings_window_replaced_timestamp_format_full)))):(s=$(t).find('span[data-id="sysinfo_'+e+'"] > span').data("convertible-timestamp-full"),a.html(moment.unix(s).format(settings_window_replaced_timestamp_format_full))):n&&n.length&&a.html(n.html(s))}if(page_sysinfo_sensor_update_label(),$(t).find('.piechart[data-charts="sysinfo_'+e+'"]').length){var _=$("body").find('.piechart[data-charts="sysinfo_'+e+'"]');_.length&&!isNaN(parseInt(i))&&_.data("easyPieChart").update(i)}"cpu_percent"!=e&&"mem_percent"!=e&&"virt_percent"!=e&&"disk_percent"!=e||localStorage.setItem(v___server_hostname+"-sysinfo_"+e+"_seen",i),$(t).find(".modal-backdrop").remove()}if($__id__=moment().unix(),"cpu_percent"==e||"mem_percent"==e||"virt_percent"==e||"disk_percent"==e||"csf_title"==e||"csf_remote_version"==e||"authentic_remote_version"==e||"package_message"==e?localStorage.getItem(v___server_hostname+"-sysinfo_"+e)||localStorage.setItem(v___server_hostname+"-sysinfo_"+e,i):i&&null!=i&&NaN!=i?localStorage.setItem(v___server_hostname+"-sysinfo_"+e,i):localStorage.setItem(v___server_hostname+"-sysinfo_"+e,""),localStorage.getItem(v___server_hostname+"-sysinfo_package_message_initial")||localStorage.setItem(v___server_hostname+"-sysinfo_package_message_initial",1),"authentic_theme_version"==e&&!localStorage.getItem(v___server_hostname+"-sysinfo_theme_current_version")&&i&&localStorage.setItem(v___server_hostname+"-sysinfo_theme_current_version",i.match(/^\d+|\d+\b|\d+(?=\w)/g)[0]+"."+i.match(/^\d+|\d+\b|\d+(?=\w)/g)[1]),"csf_data"==e&&!localStorage.getItem(v___server_hostname+"-sysinfo_csf_current_version")&&i&&localStorage.setItem(v___server_hostname+"-sysinfo_csf_current_version",i.match(/^\d+|\d+\b|\d+(?=\w)/g)[0]+"."+i.match(/^\d+|\d+\b|\d+(?=\w)/g)[1]),"csf_title"==e||"csf_data"==e||"csf_remote_version"==e||"authentic_remote_version"==e||"authentic_theme_version"==e||"package_message"==e){if("package_message"===e){if((localStorage.getItem(v___server_hostname+"-sysinfo_"+e)!=i||1==localStorage.getItem(v___server_hostname+"-sysinfo_package_message_initial"))&&i&&i.indexOf("badge-danger")>-1){var r=theme_language("theme_xhred_notifications_packages_updates"),o=$(i).html().replace(/badge-danger/g,"badge-success");localStorage.setItem(v___server_hostname+"-notifications_"+$__id__+"_package_message",JSON.stringify({title:r,time:$__id__,timestamp:$__id__,message:o,readStatus:0,type:e,link:$(i).attr("href")})),slider_mark_group_notifications_read("package_message"),localStorage.setItem(v___server_hostname+"-sysinfo_"+e,i),localStorage.setItem(v___server_hostname+"-sysinfo_package_message_initial",0),notifications(r,o,e)}else"package_message"===e&&localStorage.setItem(v___server_hostname+"-sysinfo_"+e,i);$(i).find("i.badge:first-child").length||slider_mark_group_notifications_read("package_message")}var l=localStorage.getItem(v___server_hostname+"-sysinfo_theme_current_version");if(settings_sysinfo_theme_updates&&(0==localStorage.getItem(v___server_hostname+"-sysinfo_authentic_remote_version")&&localStorage.removeItem(v___server_hostname+"-sysinfo_authentic_remote_version"),l&&localStorage.getItem(v___server_hostname+"-sysinfo_authentic_remote_version")&&"authentic_remote_version"==e&&l';localStorage.setItem(v___server_hostname+"-notifications_"+$__id__+"_authentic_remote_version",JSON.stringify({title:c,time:$__id__,timestamp:$__id__,message:d,readStatus:0,type:e,link:v___location_prefix+"/sysinfo.cgi"})),localStorage.setItem(v___server_hostname+"-sysinfo_"+e,i),localStorage.setItem(v___server_hostname+"-sysinfo_theme_current_version",i),notifications(c,d,e)}if("authentic_theme_version"!==e||Test.strContains(i,"CHANGELOG.md")||slider_mark_group_notifications_read("authentic_remote_version"),settings_sysinfo_csf_updates){var h=localStorage.getItem(v___server_hostname+"-sysinfo_csf_current_version");if(h&&null!=h&&localStorage.getItem(v___server_hostname+"-sysinfo_csf_remote_version")&&"csf_remote_version"==e&&h-1&&1!=localStorage.getItem(v___server_hostname+"-sysinfo_csf_not_running")){var g=theme_language("theme_xhred_notifications_firewall_danger"),u=theme_language("theme_xhred_notifications_firewall_danger_message").replace("%v",moment.unix($__id__).format(settings_window_replaced_timestamp_format_short));localStorage.setItem(v___server_hostname+"-notifications_"+$__id__+"_csf_title",JSON.stringify({title:g,time:$__id__,timestamp:$__id__,message:u,readStatus:0,type:e,link:v___location_prefix+"/csf/index.cgi"})),slider_mark_group_notifications_read("csf_title"),localStorage.setItem(v___server_hostname+"-sysinfo_csf_not_running",1),notifications(g,u,"csf_remote_version")}else i&&-1===i.indexOf("label-danger")&&(slider_mark_group_notifications_read("csf_title"),localStorage.removeItem(v___server_hostname+"-sysinfo_csf_not_running"))}if("csf_deny"==e){var v=JSON.parse(i);$.each(v,function(t,i){var a=(i=i.split("|"))[0],n=i[1],s=i[2],_=i[3],r=(i[4],i[5],i[6],i[7]);if(r=r.replace("*Port Scan*",s&&_?'Port '+_+" scan":"Port scan"),!localStorage.getItem(v___server_hostname+"-allowed_trigger_"+(a+n.replace(/\./g,"0"))+"_csf_deny")){var o=theme_language("theme_xhred_notifications_firewall_warning"),l=r+(s&&_?" ("+s+":"+_+")":"");localStorage.setItem(v___server_hostname+"-notifications_"+(a+n.replace(/\./g,"0"))+"_csf_deny",JSON.stringify({title:o,time:$__id__,timestamp:$__id__,message:l,readStatus:0,type:e,link:v___location_prefix+"/csf/index.cgi"})),localStorage.setItem(v___server_hostname+"-allowed_trigger_"+(a+n.replace(/\./g,"0"))+"_csf_deny",1)}})}"cpu_percent"!=e&&"mem_percent"!=e&&"virt_percent"!=e&&"disk_percent"!=e||null!==localStorage.getItem(v___server_hostname+"-sysinfo_"+e+"_seen")&&i>=85&&localStorage.getItem(v___server_hostname+"-sysinfo_"+e+"_seen"),setTimeout(function(){if((localStorage.getItem(v___server_hostname+"-sysinfo_cpu_percent_stats")||localStorage.getItem(v___server_hostname+"-sysinfo_mem_percent_stats")||localStorage.getItem(v___server_hostname+"-sysinfo_virt_percent_stats")||localStorage.getItem(v___server_hostname+"-sysinfo_disk_percent_stats"))&&$("#right-side-tabs-sysinfo .graph-container").length){var t=!localStorage.getItem(v___server_hostname+"-sysinfo_"+e+"_stats"),a=$(".info-container .graph-container."+e);t?a.addClass("hidden").prev("br").addClass("hidden"):a.removeClass("hidden").prev("br").removeClass("hidden"),"cpu_percent"==e&&($("#right-side-tabs-sysinfo .graph-container."+e+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_load")).text(theme_language("theme_xhred_global_cpu_load")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_cpu_percent_stats")+"% ("+localStorage.getItem(v___server_hostname+"-sysinfo_load")+")"),$("#right-side-tabs-sysinfo .graph-container."+e+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_cpu_percent_stats")+"%")),"mem_percent"==e&&($("#right-side-tabs-sysinfo .graph-container."+e+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_real_memory")).text(theme_language("body_real")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_mem_percent_stats")+"% ("+localStorage.getItem(v___server_hostname+"-sysinfo_real_memory")+")"),$("#right-side-tabs-sysinfo .graph-container."+e+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_mem_percent_stats")+"%")),"virt_percent"==e&&($("#right-side-tabs-sysinfo .graph-container."+e+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_virtual_memory")).text(theme_language("body_virt")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_virt_percent_stats")+"% ("+localStorage.getItem(v___server_hostname+"-sysinfo_virtual_memory")+")"),$("#right-side-tabs-sysinfo .graph-container."+e+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_virt_percent_stats")+"%")),"disk_percent"==e&&($("#right-side-tabs-sysinfo .graph-container."+e+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_disk_space")).text(theme_language("body_disk")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_disk_percent_stats")+"% ("+localStorage.getItem(v___server_hostname+"-sysinfo_disk_space")+")"),$("#right-side-tabs-sysinfo .graph-container."+e+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_disk_percent_stats")+"%"))}if($('#right-side-tabs .info-container .info-list-data span[data-data="'+e+'"]').html(i),"package_message"==e&&Core.moduleAvailable("package-updates")&&$('#right-side-tabs .info-container .info-list-data span[data-data="'+e+'"]').html($(i).html($(i).html().split(",")[0])[0].outerHTML),"local_time"==e&&settings_window_replace_timestamps){(o=$('#right-side-tabs .info-container .info-list-data span[data-data="'+e+'"] a'))&&o.length&&o.html(o.next("span").detach());var n=$(".info-container").find("span[data-convertible-timestamp-full]"),s=n.attr("data-convertible-timestamp-full");n.html(moment.unix(s).format(settings_window_replaced_timestamp_format_full)),time.tictac(1)}if("cpu_temperature"==e){var _=0;$.each($(i).filter(".badge-cpustatus"),function(e,t){var a,n=parseInt($(this).text().split(":")[1]),s=n,r=$(this).text().indexOf("°C")>-1;"bg-warning"!=(a=$(this).text().indexOf("RPM")>-1?HTML.label.rpm(s):HTML.label.temperature(n,r))&&"bg-danger"!=a||(_=1),$("#right-side-tabs .info-container .badge-drivestatus.badge-cpustatus").length||$('strong[data-stats="cpu"] + br[data-stats="cpu"]').after(i.replace(/"+theme_language("theme_xhred_encoding_warning").replace("_hidden_",$t_uri_usermin?"hidden":"").replace("%prod",get_navigation_module_name()).replace("%lang",get_server_data("language")).replace("%charset",get_server_data("charset")).replace("%link",v___location_prefix+($t_uri_usermin?"/language":"/webmin/edit_lang.cgi"))+"
";theme_alert(theme_language("theme_xhred_global_warning"),t,!1,"sm","warning",!1,"7 modal-charset-warning",2e3),$("body").on("click",".modal-charset-warning a.label",function(e){$(".modal-charset-warning").modal("hide")}),$("body").on("hide.bs.modal",".modal-charset-warning",function(e){localStorage.setItem(v___server_hostname+"-config_portable_theme_charset_warning_shown","true"),theme_config("save")})}}function get_module_title(){return $_right_menu_title=$("#headln2c"),$_right_menu_title.find("span[data-main_title]").text().length?$_right_menu_title.find("span[data-main_title]").text():$_right_menu_title.text().length?$_right_menu_title.text().text():"->"}function get_module_subtitle(){}function editor_background_save(e){if(1===$('textarea[name="data"], textarea[name="text"], textarea[name="directives"], textarea[name="manual"]').length&&1===$('textarea[name="data"], textarea[name="text"], textarea[name="directives"], textarea[name="manual"]').parents("form").find('input[type="submit"]').length){if(!$(".CodeMirror").length)return;function t(){"undefined"!=typeof __cm_editor_static&&$(".container-fluid > .panel > .panel-body").attr("data-cm-line",__cm_editor_static.getCursor().line+","+__cm_editor_static.getCursor().ch).attr("data-cm-state",$('[data-form="submitter"]').hasClass("btn-warning")&&!$('[data-form="submitter"]').next("button").hasClass("disabled"))}$(".ui_reset").remove();var i=$('.container-fluid textarea[name="data"], .container-fluid textarea[name="text"], .container-fluid textarea[name="directives"], .container-fluid textarea[name="manual"]').parents("form"),a=i.find('button[type="button"]').length?i.find('button[type="button"]'):i.find('input[type="submit"]'),n=$('.container-fluid textarea[name="directives"]').length?"-12px":"0";$(".container-fluid select").val()?$(".container-fluid select").val():$(".container-fluid .table-title").text()?$(".container-fluid .table-title").text():$(".container-fluid .panel-body tt:first").text()?$(".container-fluid .panel-body tt:first").text():$(".container-fluid #headln2c tt:first").text()&&$(".container-fluid #headln2c tt:first").text();a.parents("table.ui_form_end_buttons").prev("br").remove(),a.parents("table.ui_form_end_buttons").prev("div.table-responsive").attr("style","margin-bottom: -4px !important"),a.replaceWith('\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t");var s=$('.container-fluid button[type="button"]:not(.ui_form_end_submit)'),_=$('.container-fluid button[type="submit"]:not(.ui_form_end_submit)');window.__cm_editor_static.on("change",function(e,i){__cm_editor_static.save(),s.addClass("btn-warning").removeClass("btn-success").attr("data-form-onbeforeunload",1),t()}),$("body").off("mousedown.cm1"),$("body").on("mousedown.cm1",".CodeMirror",function(e){t()}),$("body").off("keydown.cm1"),$("body").on("keydown.cm1",function(e){13==e.keyCode&&e.ctrlKey&&!e.shiftKey?s.trigger("click"):13==e.keyCode&&e.ctrlKey&&e.shiftKey&&_.trigger("click")});var r='button[type="submit"]:not(.disabled)';$("body").undelegate(r,"click.cm"),$("body").on("click.cm",r,function(e){set_onbeforeunload_status(0,0),$("button").addClass("disabled").find(".fa.fa-arrow-circle-o-left").addClass("invisible").after(''),s.attr("data-form-onbeforeunload",0)});var o='button[data-form="submitter"]:not(.disabled)';$("body").undelegate(o,"click.cm"),$("body").on("click.cm",o,function(e){e.preventDefault();var t=$(this).parents("form"),a=(t.attr("enctype")&&t.attr("enctype").indexOf("form-data")>-1?0:1)?t.serialize():new FormData(t[0]);$("button").addClass("disabled").find(".fa.fa-floppy-o").addClass("invisible").after(''),setTimeout(function(){$.ajax({type:"POST",url:i.attr("action"),data:a,dataType:"text",cache:!1,contentType:!1,processData:!1,success:function(e){if(!Test.strContains(e,v___page_signin_form))return s.removeClass("btn-warning").addClass("btn-success").attr("data-form-onbeforeunload",0),$("button").removeClass("disabled").find(".fa").removeClass("invisible").parent().find(".cspinner_container").remove(),$(".container-fluid > .panel > .panel-body").attr("data-cm-state","false"),set_onbeforeunload_status(0,0),!$(e).find(".panel-body > hr + h3").length||$(e).find(".panel-body .table").length||$(e).find(".panel-body form[action]").length?void 0:(theme_messenger(''+$(e).find(".panel-body hr + h3").html(),60,"error","magic_save_error"),s.removeClass("btn-success").addClass("btn-warning").attr("data-form-onbeforeunload",1),void $(".container-fluid > .panel > .panel-body").attr("data-cm-state","true"));v___available_session=0},error:function(e){}})},300)})}}function page_resized(){navigation_lock_width(),$(".mobile-menu-toggler").hasClass("selected")||($("aside").addClass("hidden-xs"),$("aside").css("transform","translate("+settings_leftmenu_width+"px, 0px)"),$(".switch-toggle").css("display","table"),"function"==typeof jQuery().transition&&$(".__logo")&&!$(".mobile-menu-toggler:visible").length?$(".__logo").transition({y:"-140px"},700,function(){}):$(".__logo")&&$(".__logo").css("transform","translate(0px, 0px)")),set_side_slider_visibility(!0!==settings_side_slider_fixed||$(".mobile-menu-toggler:visible").length||!v___available_navigation?0:1)}function theme_settings_controls(e){var t=$("#atsave, #save_user");e?(set_onbeforeunload_status(1,0),t.addClass("btn-warning")):(set_onbeforeunload_status(0,0),t.removeClass("btn-warning"))}function theme_settings_update(){$.each($("#atsettings .ui_form").serializeArray(),function(e,t){if("true"==t.value||"false"==t.value){if("true"==t.value)i=!0;else if("false"==t.value)i=!1}else var i=t.value;window[t.name]=Test.numeric(i)?parseInt(i):i})}function bind_sameorigin(){$("body").on("click",'a[href^="http"], a[href^="https"], a[href^="ftp"], a[href^="ftps"]',function(e){Core.linkSameOrigin($(this))||$(this).attr("target","_blank")}),$.each($('ul.navigation a[href^="http"], ul.navigation a[href^="https"], ul.navigation a[href^="ftp"], ul.navigation a[href^="ftps"], ul.navigation a[data-href^="http"], ul.navigation a[data-href^="https"], ul.navigation a[data-href^="ftp"], ul.navigation a[data-href^="ftps"]'),function(){$(this).removeClass("navigation_module_trigger").parents("li").addClass("navigation_external"),$(this).attr("target","_blank"),$(this).attr("href",$(this).data("href")),$(this).removeAttr("data-href")})}function reset_switch_position(){Test.string(v___theme_navigation_active)&&set_switch_position(v___theme_navigation_active)}function set_switch_position(e){get_onbeforeunload_status()||($('.switch-toggle input:not([id="open_'+e+'"])').each(function(){$(this).removeAttr("checked")}).promise().done(function(){$("#open_"+e).prop("checked",!0)}),update_navigation_module_name())}function get_navigation_menu_webmin(e){get_onbeforeunload_status()||(navigation_render_start(),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-navigation=1&xhr-navigation-type="+("webmail"==e?"webmail":"webmin"),data:!1,dataType:"text",success:function(t){if(Test.strContains(t,v___page_signin_form))return v___available_session=0,navigation_render_end(),void reset_switch_position();v___theme_navigation_active="webmail"==e?"webmail":get_server_data("product"),$("body ul.navigation").html(t),navigation_render_end(),!get_server_data("loading")&&navigation_detect()}}),get_navigation_menu_buttons())}function get_navigation_menu_virtualmin(e){get_onbeforeunload_status()||(navigation_render_start(),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-navigation=1&xhr-navigation-type=virtualmin"+(e?"&dom="+e:settings_right_virtualmin_default?"&dom="+settings_right_virtualmin_default:""),data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return v___available_session=0,navigation_render_end(),void reset_switch_position();v___theme_navigation_active="virtualmin",$("body ul.navigation").html(e),navigation_render_end(),get_navigation_menu_virtualmin_summary(),!get_server_data("loading")&&navigation_detect()}}),get_navigation_menu_buttons())}function get_navigation_menu_virtualmin_summary(){if(!get_onbeforeunload_status()){var e=$('a[href*=".cgi?dom=$#DOM"]'),t=e.attr("href"),i=$('aside [name="dom"]').val();e.length&&i&&e.attr("href",t.replace("$#DOM",i))}}function get_navigation_menu_cloudmin(e){get_onbeforeunload_status()||(navigation_render_start(),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-navigation=1&xhr-navigation-type=cloudmin"+(e||0===e?"&sid="+e:settings_right_cloudmin_default?"&sid="+settings_right_cloudmin_default:""),data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return v___available_session=0,navigation_render_end(),void reset_switch_position();v___theme_navigation_active="cloudmin",$("body ul.navigation").html(e),theme_shell_link_control(),navigation_render_end(),!get_server_data("loading")&&navigation_detect()}}),get_navigation_menu_buttons())}function get_navigation_menu_buttons(){get_onbeforeunload_status()||$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-buttons=1&xhr-buttons-type="+($t_uri_virtualmin||$t_uri_cloudmin?1:0),data:!1,dataType:"text",success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:($("body ul.user-links").html(e),theme_shell_link_control())}})}function get_default_content(){get_onbeforeunload_status()||($("body").append(''),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-default=1",data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{$("#____switch").html(e),$____switch=$("#____switch").text();var t=v___location_prefix+(3==v___user_level&&Core.moduleAvailable("mailbox")&&$t_uri_webmail?"/mailbox/index.cgi?id=INBOX":3==v___user_level?"/sysinfo.cgi":("/"==$____switch.substring(0,1)?"":"/")+$____switch);(Test.strContains(t,"mysql")||Test.strContains(t,"postgresql"))&&get_bundle_sql(),Test.strContains(t,v___module_file_manager)&&get_bundle_file_manager(),Test.strContains(t,"csf")&&get_bundle_csf(),get_pjax_content(t),$("#____switch").remove()}}}))}function get_default_virtualmin_content(e,t){if(!get_onbeforeunload_status()||t){var i,a="/virtual-server";if(i=1==get_server_data("initial-wizard")?a+"/wizard.cgi":!1!==e?a+"/summary_domain.cgi?dom="+e:"sysinfo.cgi"==settings_right_virtualmin_default||""==settings_right_virtualmin_default?"/sysinfo.cgi":"index.cgi"==settings_right_virtualmin_default?a+"/index.cgi":a+"/summary_domain.cgi?dom="+settings_right_virtualmin_default,t)return v___location_prefix+i;get_pjax_content(v___location_prefix+i)}}function get_default_cloudmin_content(e,t){if(!get_onbeforeunload_status()||t){var i;if(i=!1===e||settings_right_cloudmin_default||"0"==settings_right_cloudmin_default?"sysinfo.cgi"==settings_right_cloudmin_default||""==settings_right_cloudmin_default&&"0"!=settings_right_cloudmin_default?"sysinfo.cgi":"index.cgi"==settings_right_cloudmin_default?"server-manager/index.cgi":"server-manager/edit_serv.cgi?id="+settings_right_cloudmin_default:"server-manager/edit_serv.cgi?id="+e,t)return v___location_prefix+"/"+i;get_pjax_content(v___location_prefix+"/"+i)}}function get_navigation_and_content(e,t,i){get_onbeforeunload_status()||("virtualmin"===e?(get_navigation_menu_virtualmin(!1),1!=settings_right_reload&&1!==t||1===i||get_default_virtualmin_content(!1)):"cloudmin"===e?(get_navigation_menu_cloudmin(!1),1!=settings_right_reload&&1!==t||1===i||get_default_cloudmin_content(!1)):(0==navigation_dashboard_switch_available()&&get_navigation_menu_webmin(e),1!=settings_right_reload&&1!==t||1===i||get_default_content()))}function information_update(){if(!$("body .modal.in").length&&0==v___user_level){var e=$("body").find("#system-status"),t=e.length?e[0]:0;$("#right-side-tabs-sysinfo .graph-container").length||$("#right-side-tabs .info-container").html(get_right_panel_sysinfo_data()),t&&$(t).find('h3 > a[data-refresh="system-status"]').addClass("disabled").find("i").addClass("fa-spin");var i=$(".right-side-tabs-dismiss .fa-reload");i.addClass("fa-spin-fast"),setTimeout(function(){i.removeClass("fa-spin-fast")},3e3),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-info=1",data:!1,dataType:"json",success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:($.each(e,function(e,i){if("cpu_percent"!=e&&"mem_percent"!=e&&"virt_percent"!=e&&"disk_percent"!=e||(Test.numeric(i)?localStorage.setItem(v___server_hostname+"-sysinfo_"+e+"_stats",i):localStorage.setItem(v___server_hostname+"-sysinfo_"+e+"_stats","")),t){if($(t).find('span[data-id="sysinfo_'+e+'"]').html(i),"local_time"==e||"uptime"==e||"running_proc"==e){var a=$(t).find('span[data-id="sysinfo_'+e+'"]'),n=$(t).find('span[data-id="sysinfo_'+e+'"] a'),s=$(t).find('span[data-id="sysinfo_'+e+'"]').text();"local_time"==e&&settings_window_replace_timestamps?n&&n.length?(s=$(t).find('span[data-id="sysinfo_'+e+'"] a').data("convertible-timestamp-full"),a.html(n.html(moment.unix(s).format(settings_window_replaced_timestamp_format_full)))):(s=$(t).find('span[data-id="sysinfo_'+e+'"] > span').data("convertible-timestamp-full"),a.html(moment.unix(s).format(settings_window_replaced_timestamp_format_full))):n&&n.length&&a.html(n.html(s))}if(page_sysinfo_sensor_update_label(),$(t).find('.piechart[data-charts="sysinfo_'+e+'"]').length){var _=$("body").find('.piechart[data-charts="sysinfo_'+e+'"]');_.length&&!isNaN(parseInt(i))&&_.data("easyPieChart").update(i)}"cpu_percent"!=e&&"mem_percent"!=e&&"virt_percent"!=e&&"disk_percent"!=e||localStorage.setItem(v___server_hostname+"-sysinfo_"+e+"_seen",i),$(t).find(".modal-backdrop").remove()}if($__id__=moment().unix(),"cpu_percent"==e||"mem_percent"==e||"virt_percent"==e||"disk_percent"==e||"csf_title"==e||"csf_remote_version"==e||"authentic_remote_version"==e||"package_message"==e?localStorage.getItem(v___server_hostname+"-sysinfo_"+e)||localStorage.setItem(v___server_hostname+"-sysinfo_"+e,i):i&&null!=i&&NaN!=i?localStorage.setItem(v___server_hostname+"-sysinfo_"+e,i):localStorage.setItem(v___server_hostname+"-sysinfo_"+e,""),localStorage.getItem(v___server_hostname+"-sysinfo_package_message_initial")||localStorage.setItem(v___server_hostname+"-sysinfo_package_message_initial",1),"authentic_theme_version"==e&&!localStorage.getItem(v___server_hostname+"-sysinfo_theme_current_version")&&i&&localStorage.setItem(v___server_hostname+"-sysinfo_theme_current_version",i.match(/^\d+|\d+\b|\d+(?=\w)/g)[0]+"."+i.match(/^\d+|\d+\b|\d+(?=\w)/g)[1]),"csf_data"==e&&!localStorage.getItem(v___server_hostname+"-sysinfo_csf_current_version")&&i&&localStorage.setItem(v___server_hostname+"-sysinfo_csf_current_version",i.match(/^\d+|\d+\b|\d+(?=\w)/g)[0]+"."+i.match(/^\d+|\d+\b|\d+(?=\w)/g)[1]),"csf_title"==e||"csf_data"==e||"csf_remote_version"==e||"authentic_remote_version"==e||"authentic_theme_version"==e||"package_message"==e){if("package_message"===e){if((localStorage.getItem(v___server_hostname+"-sysinfo_"+e)!=i||1==localStorage.getItem(v___server_hostname+"-sysinfo_package_message_initial"))&&i&&i.indexOf("badge-danger")>-1){var r=theme_language("theme_xhred_notifications_packages_updates"),o=$(i).html().replace(/badge-danger/g,"badge-success");localStorage.setItem(v___server_hostname+"-notifications_"+$__id__+"_package_message",JSON.stringify({title:r,time:$__id__,timestamp:$__id__,message:o,readStatus:0,type:e,link:$(i).attr("href")})),slider_mark_group_notifications_read("package_message"),localStorage.setItem(v___server_hostname+"-sysinfo_"+e,i),localStorage.setItem(v___server_hostname+"-sysinfo_package_message_initial",0),notifications(r,o,e)}else"package_message"===e&&localStorage.setItem(v___server_hostname+"-sysinfo_"+e,i);$(i).find("i.badge:first-child").length||slider_mark_group_notifications_read("package_message")}var l=localStorage.getItem(v___server_hostname+"-sysinfo_theme_current_version");if(settings_sysinfo_theme_updates&&(0==localStorage.getItem(v___server_hostname+"-sysinfo_authentic_remote_version")&&localStorage.removeItem(v___server_hostname+"-sysinfo_authentic_remote_version"),l&&localStorage.getItem(v___server_hostname+"-sysinfo_authentic_remote_version")&&"authentic_remote_version"==e&&l';localStorage.setItem(v___server_hostname+"-notifications_"+$__id__+"_authentic_remote_version",JSON.stringify({title:c,time:$__id__,timestamp:$__id__,message:d,readStatus:0,type:e,link:v___location_prefix+"/sysinfo.cgi"})),localStorage.setItem(v___server_hostname+"-sysinfo_"+e,i),localStorage.setItem(v___server_hostname+"-sysinfo_theme_current_version",i),notifications(c,d,e)}if("authentic_theme_version"!==e||Test.strContains(i,"CHANGELOG.md")||slider_mark_group_notifications_read("authentic_remote_version"),settings_sysinfo_csf_updates){var h=localStorage.getItem(v___server_hostname+"-sysinfo_csf_current_version");if(h&&null!=h&&localStorage.getItem(v___server_hostname+"-sysinfo_csf_remote_version")&&"csf_remote_version"==e&&h-1&&1!=localStorage.getItem(v___server_hostname+"-sysinfo_csf_not_running")){var g=theme_language("theme_xhred_notifications_firewall_danger"),u=theme_language("theme_xhred_notifications_firewall_danger_message").replace("%v",moment.unix($__id__).format(settings_window_replaced_timestamp_format_short));localStorage.setItem(v___server_hostname+"-notifications_"+$__id__+"_csf_title",JSON.stringify({title:g,time:$__id__,timestamp:$__id__,message:u,readStatus:0,type:e,link:v___location_prefix+"/csf/index.cgi"})),slider_mark_group_notifications_read("csf_title"),localStorage.setItem(v___server_hostname+"-sysinfo_csf_not_running",1),notifications(g,u,"csf_remote_version")}else i&&-1===i.indexOf("label-danger")&&(slider_mark_group_notifications_read("csf_title"),localStorage.removeItem(v___server_hostname+"-sysinfo_csf_not_running"))}if("csf_deny"==e){var v=JSON.parse(i);$.each(v,function(t,i){var a=(i=i.split("|"))[0],n=i[1],s=i[2],_=i[3],r=(i[4],i[5],i[6],i[7]);if(r=r.replace("*Port Scan*",s&&_?'Port '+_+" scan":"Port scan"),!localStorage.getItem(v___server_hostname+"-allowed_trigger_"+(a+n.replace(/\./g,"0"))+"_csf_deny")){var o=theme_language("theme_xhred_notifications_firewall_warning"),l=r+(s&&_?" ("+s+":"+_+")":"");localStorage.setItem(v___server_hostname+"-notifications_"+(a+n.replace(/\./g,"0"))+"_csf_deny",JSON.stringify({title:o,time:$__id__,timestamp:$__id__,message:l,readStatus:0,type:e,link:v___location_prefix+"/csf/index.cgi"})),localStorage.setItem(v___server_hostname+"-allowed_trigger_"+(a+n.replace(/\./g,"0"))+"_csf_deny",1)}})}"cpu_percent"!=e&&"mem_percent"!=e&&"virt_percent"!=e&&"disk_percent"!=e||null!==localStorage.getItem(v___server_hostname+"-sysinfo_"+e+"_seen")&&i>=85&&localStorage.getItem(v___server_hostname+"-sysinfo_"+e+"_seen"),setTimeout(function(){if((localStorage.getItem(v___server_hostname+"-sysinfo_cpu_percent_stats")||localStorage.getItem(v___server_hostname+"-sysinfo_mem_percent_stats")||localStorage.getItem(v___server_hostname+"-sysinfo_virt_percent_stats")||localStorage.getItem(v___server_hostname+"-sysinfo_disk_percent_stats"))&&$("#right-side-tabs-sysinfo .graph-container").length){var t=!localStorage.getItem(v___server_hostname+"-sysinfo_"+e+"_stats"),a=$(".info-container .graph-container."+e);t?a.addClass("hidden").prev("br").addClass("hidden"):a.removeClass("hidden").prev("br").removeClass("hidden"),"cpu_percent"==e&&($("#right-side-tabs-sysinfo .graph-container."+e+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_load")).text(theme_language("theme_xhred_global_cpu_load")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_cpu_percent_stats")+"% ("+localStorage.getItem(v___server_hostname+"-sysinfo_load")+")"),$("#right-side-tabs-sysinfo .graph-container."+e+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_cpu_percent_stats")+"%")),"mem_percent"==e&&($("#right-side-tabs-sysinfo .graph-container."+e+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_real_memory")).text(theme_language("body_real")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_mem_percent_stats")+"% ("+localStorage.getItem(v___server_hostname+"-sysinfo_real_memory")+")"),$("#right-side-tabs-sysinfo .graph-container."+e+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_mem_percent_stats")+"%")),"virt_percent"==e&&($("#right-side-tabs-sysinfo .graph-container."+e+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_virtual_memory")).text(theme_language("body_virt")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_virt_percent_stats")+"% ("+localStorage.getItem(v___server_hostname+"-sysinfo_virtual_memory")+")"),$("#right-side-tabs-sysinfo .graph-container."+e+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_virt_percent_stats")+"%")),"disk_percent"==e&&($("#right-side-tabs-sysinfo .graph-container."+e+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_disk_space")).text(theme_language("body_disk")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_disk_percent_stats")+"% ("+localStorage.getItem(v___server_hostname+"-sysinfo_disk_space")+")"),$("#right-side-tabs-sysinfo .graph-container."+e+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_disk_percent_stats")+"%"))}if($('#right-side-tabs .info-container .info-list-data span[data-data="'+e+'"]').html(i),"package_message"==e&&Core.moduleAvailable("package-updates")&&$('#right-side-tabs .info-container .info-list-data span[data-data="'+e+'"]').html($(i).html($(i).html().split(",")[0])[0].outerHTML),"local_time"==e&&settings_window_replace_timestamps){(o=$('#right-side-tabs .info-container .info-list-data span[data-data="'+e+'"] a'))&&o.length&&o.html(o.next("span").detach());var n=$(".info-container").find("span[data-convertible-timestamp-full]"),s=n.attr("data-convertible-timestamp-full");n.html(moment.unix(s).format(settings_window_replaced_timestamp_format_full)),time.tictac(1)}if("cpu_temperature"==e){var _=0;$.each($(i).filter(".badge-cpustatus"),function(e,t){var a,n=parseInt($(this).text().split(":")[1]),s=n,r=$(this).text().indexOf("°C")>-1;"bg-warning"!=(a=$(this).text().indexOf("RPM")>-1?HTML.label.rpm(s):HTML.label.temperature(n,r))&&"bg-danger"!=a||(_=1),$("#right-side-tabs .info-container .badge-drivestatus.badge-cpustatus").length||$('strong[data-stats="cpu"] + br[data-stats="cpu"]').after(i.replace(/"+theme_language("theme_xhred_browser_warning")+"
";theme_alert(theme_language("theme_xhred_global_warning"),e,!1,"md","danger",!1,"10 modal-ie-warning",0)},2e3),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var i=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>i.length)&&(t=i.length),t-=e.length;var a=i.lastIndexOf(e,t);return-1!==a&&a===t}),String.prototype.startsWith||String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.indexOf(e,t)===t})),$.extend($.expr[":"],{containsi:function(e,t,i,a){return(e.textContent||e.innerText||"").toLowerCase().indexOf((i[3]||"").toLowerCase())>=0}}),Object.defineProperty(Array.prototype,"reOrder",{enumerable:!1,value:function(e,t){if(t>=this.length)for(var i=t-this.length;1+i--;)this.push(void 0);return this.splice(t,0,this.splice(e,1)[0]),this}}),jQuery.fn.simulateUserClick=function(){return this.each(function(){if("createEvent"in document){var e=this.ownerDocument,t=e.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,e.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null),this.dispatchEvent(t)}else this.click()})},function(e){e.fn.replaceTagName=function(t){for(var i=[],a=this.length;a--;){for(var n=document.createElement(t),s=this[a],_=s.attributes,r=_.length-1;r>=0;r--){var o=_[r];n.setAttribute(o.name,o.value)}n.innerHTML=s.innerHTML,e(s).after(n).remove(),i[a-1]=n}return e(i)}}(jQuery),jQuery.fn.selectText=function(){var e=document,t=this[0];if(e.body.createTextRange)(a=document.body.createTextRange()).moveToElementText(t),a.select();else if(window.getSelection){var i=window.getSelection(),a=document.createRange();a.selectNodeContents(t),i.removeAllRanges(),i.addRange(a)}},function(e){e.fn.replaceText=function(t,i,a){return this.each(function(){var n,s,_=this.firstChild,r=[];if(_)do{3===_.nodeType&&(s=(n=_.nodeValue).replace(t,i))!==n&&(!a&&/this.height()},$.fn.toggleCheckbox=function(){"checkbox"==$(this).attr("type")&&$(this).prop("checked",!$(this).is(":checked"))},jQuery.fn.confirmation=function(e,t){return e=$.extend({className:"btn-danger",timeout:2500},e),$(this).each(function(i,a){function n(){_.removeClass(e.className).data("confirmed",!1).find(".tmp_question").remove()}var s,_=$(a);_.html();_.data("confirmed",!1),_.on("click.confirm",function(i){i.preventDefault(),_.data("confirmed")?(t.call(_,i),n()):(_.data("confirmed",!0),_.append('?').addClass(e.className).bind("mouseout.confirm",function(){s=setTimeout(n,e.timeout)}).bind("mouseover.confirm",function(){clearTimeout(s)}))}).removeClass(e.className)}),$(this)},RegExp.quote=function(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},$(function(){var e,t=".blinking-default:not(.hidden)";setInterval(function(){0==e?($(t).css("opacity","1"),e=1):(e=1)&&($(t).css("opacity","0"),e=0)},900)});if(get_server_data("debug")){if("object"==typeof localStorage)try{localStorage.setItem("d41d8cd98f00",1),localStorage.removeItem("d41d8cd98f00"),$_v__ls__a=1}catch(e){Storage.prototype._setItem=Storage.prototype.setItem,Storage.prototype.setItem=function(){},$_v__ls__a=0}if(page_init(),$___________lrs_r_l=0,$___________left=v___available_navigation?1:0,"undefined"==typeof settings_mailbox_slash_delimiter&&(settings_mailbox_slash_delimiter=!0),"undefined"==typeof settings_right_reload&&(settings_right_reload=!0),"undefined"==typeof settings_right_default_tab_usermin&&(settings_right_default_tab_usermin="/"),"undefined"==typeof settings_right_virtualmin_default&&(settings_right_virtualmin_default="sysinfo.cgi"),"undefined"==typeof settings_right_cloudmin_default&&(settings_right_cloudmin_default="sysinfo.cgi"),"undefined"==typeof settings_font_family&&(settings_font_family=0),"undefined"==typeof settings_navigation_color&&(settings_navigation_color="blue"),"undefined"==typeof settings_background_color&&(settings_background_color="gainsboro"),"undefined"==typeof settings_hide_top_loader&&(settings_hide_top_loader=!1),"undefined"==typeof settings_show_night_mode_link&&(settings_show_night_mode_link=!0),"undefined"==typeof settings_theme_options_button&&(settings_theme_options_button=!0),"undefined"==typeof settings_leftmenu_button_refresh&&(settings_leftmenu_button_refresh=!1),"undefined"==typeof settings_cm_view_palette&&(settings_cm_view_palette="monokai"),"undefined"==typeof settings_cm_editor_palette&&(settings_cm_editor_palette="monokai"),"undefined"==typeof settings_side_slider_palette&&(settings_side_slider_palette="grey"),"undefined"==typeof settings_side_slider_enabled&&(settings_side_slider_enabled=!0),"undefined"==typeof settings_side_slider_fixed&&(settings_side_slider_fixed=!1),"undefined"==typeof settings_side_slider_sysinfo_enabled&&(settings_side_slider_sysinfo_enabled=!0),"undefined"==typeof settings_side_slider_notifications_enabled&&(settings_side_slider_notifications_enabled=!0),"undefined"==typeof settings_side_slider_favorites_enabled&&(settings_side_slider_favorites_enabled=!0),config_portable_module_filemanager_hide_actions="undefined"==typeof localStorage||"false"!=localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_hide_actions"),config_portable_module_filemanager_hide_toolbar="undefined"!=typeof localStorage&&"true"==localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_hide_toolbar"),config_portable_module_filemanager_hovered_toolbar="undefined"!=typeof localStorage&&"true"==localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_hovered_toolbar"),config_portable_module_filemanager_notification_type="undefined"!=typeof localStorage&&localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_notification_type")?localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_notification_type"):2,config_portable_module_filemanager_calculate_size="undefined"!=typeof localStorage&&"true"==localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_calculate_size"),config_portable_module_filemanager_switch_user="undefined"==typeof localStorage||"false"!=localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_switch_user"),config_portable_module_filemanager_remember_tabs="undefined"==typeof localStorage||"false"!=localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_remember_tabs"),config_portable_module_xsql_fit_content_screen_height="undefined"!=typeof localStorage&&"true"==localStorage.getItem(v___server_hostname+"-config_portable_module_xsql_fit_content_screen_height"),"undefined"==typeof settings_hotkeys_active&&(settings_hotkeys_active=!0),"undefined"==typeof settings_button_tooltip&&(settings_button_tooltip=!0),"undefined"==typeof settings_hotkey_toggle_modifier&&(settings_hotkey_toggle_modifier="altKey"),"undefined"==typeof settings_hotkey_toggle_key_webmin&&(settings_hotkey_toggle_key_webmin="w"),"undefined"==typeof settings_hotkey_toggle_key_virtualmin&&(settings_hotkey_toggle_key_virtualmin="v"),"undefined"==typeof settings_hotkey_toggle_key_cloudmin&&(settings_hotkey_toggle_key_cloudmin="c"),"undefined"==typeof settings_hotkey_toggle_key_usermin&&(settings_hotkey_toggle_key_usermin="u"),"undefined"==typeof settings_hotkey_toggle_key_webmail&&(settings_hotkey_toggle_key_webmail="m"),"undefined"==typeof settings_hotkey_toggle_key_night_mode&&(settings_hotkey_toggle_key_night_mode="l"),"undefined"==typeof settings_hotkey_shell&&(settings_hotkey_shell="k"),"undefined"==typeof settings_hotkey_sysinfo&&(settings_hotkey_sysinfo="i"),"undefined"==typeof settings_hotkey_favorites&&(settings_hotkey_favorites="f"),"undefined"==typeof settings_hotkey_focus_search&&(settings_hotkey_focus_search="s"),"undefined"==typeof settings_hotkey_toggle_slider&&(settings_hotkey_toggle_slider="n"),"undefined"==typeof settings_hotkey_reload&&(settings_hotkey_reload="r"),"undefined"==typeof settings_global_passgen_format&&(settings_global_passgen_format="12|a-z,A-Z,0-9,#"),"undefined"==typeof settings_window_replace_timestamps&&(settings_window_replace_timestamps=!0),"undefined"==typeof settings_window_replaced_timestamp_format_full&&(settings_window_replaced_timestamp_format_full="LLLL"),"undefined"==typeof settings_window_replaced_timestamp_format_short&&(settings_window_replaced_timestamp_format_short="L, LTS"),"undefined"==typeof settings_leftmenu_vm_cm_dropdown_icons&&(settings_leftmenu_vm_cm_dropdown_icons=!0),"undefined"==typeof settings_hotkey_custom_1&&(settings_hotkey_custom_1=!1),"undefined"==typeof settings_hotkey_custom_2&&(settings_hotkey_custom_2=!1),"undefined"==typeof settings_hotkey_custom_3&&(settings_hotkey_custom_3=!1),"undefined"==typeof settings_hotkey_custom_4&&(settings_hotkey_custom_4=!1),"undefined"==typeof settings_hotkey_custom_5&&(settings_hotkey_custom_5=!1),"undefined"==typeof settings_hotkey_custom_6&&(settings_hotkey_custom_6=!1),"undefined"==typeof settings_hotkey_custom_7&&(settings_hotkey_custom_7=!1),"undefined"==typeof settings_hotkey_custom_8&&(settings_hotkey_custom_8=!1),"undefined"==typeof settings_hotkey_custom_9&&(settings_hotkey_custom_9=!1),"undefined"==typeof settings_side_slider_background_refresh_time&&(settings_side_slider_background_refresh_time=5),"undefined"==typeof settings_leftmenu_width&&(settings_leftmenu_width=260),"undefined"==typeof settings_sysinfo_easypie_charts&&(settings_sysinfo_easypie_charts=!0),"undefined"==typeof settings_sysinfo_easypie_charts_size?settings_sysinfo_easypie_charts_size=172:settings_sysinfo_easypie_charts_size=parseInt(settings_sysinfo_easypie_charts_size),"undefined"==typeof settings_sysinfo_easypie_charts_width?settings_sysinfo_easypie_charts_width=2:settings_sysinfo_easypie_charts_width=parseInt(settings_sysinfo_easypie_charts_width),"undefined"==typeof settings_sysinfo_easypie_charts_scale?settings_sysinfo_easypie_charts_scale=8:settings_sysinfo_easypie_charts_scale=parseInt(settings_sysinfo_easypie_charts_scale),"undefined"==typeof settings_sysinfo_theme_updates&&(settings_sysinfo_theme_updates=!1),"undefined"==typeof settings_sysinfo_theme_patched_updates&&(settings_sysinfo_theme_patched_updates=!1),"undefined"==typeof settings_sysinfo_csf_updates&&(settings_sysinfo_csf_updates=!1),"undefined"==typeof settings_sysinfo_link_mini&&(settings_sysinfo_link_mini=!1),"undefined"==typeof settings_loader_top&&(settings_loader_top=!0),"undefined"==typeof settings_animation_left&&(settings_animation_left=!0),settings_animation_left?$settings_animation_left_slide_time=175:$settings_animation_left_slide_time=0,"undefined"==typeof settings_animation_tabs&&(settings_animation_tabs=!1),settings_animation_tabs?$settings_animation_tabs_slide_time=350:$settings_animation_tabs_slide_time=0,"undefined"==typeof settings_show_terminal_link&&(settings_show_terminal_link=!0),"undefined"==typeof settings_favorites&&(settings_favorites=!0),$_v__ls__a?_v__ls__a="":_v__ls__a=" hidden",$(".mobile-menu-toggler:visible").length&&set_side_slider_visibility(0),navigation_display(),v___available_navigation?(page_adjust(settings_leftmenu_width,0),navigation_lock_width()):$("head").append(''),$("html").on("dblclick","body",function(){1!=$(this).find(".container-fluid").css("opacity")&&page_display()}),$.support.pjax&&v___available_navigation){var $t_av__excluded_selectors=':not([target="_blank"]):not([href^="#"]):not([data-href^="#"]):not([data-toggle="collapse"]):not([href*="javascript:"]):not(.has-sub):not([data-has-sub-link]):not([onclick]):not([data-nref])';$(document).on("submit","form",function(e){e.preventDefault(),get_onbeforeunload_status()?get_onbeforeunload_message(e,this):get_pjax_action_submit(e,this)}),$(document).on("click","a"+$t_av__excluded_selectors,function(e){get_onbeforeunload_status()?(e.preventDefault(),get_onbeforeunload_message(e,this)):get_pjax_action_click(e,this)}),$(document).on("pjax:error",function(e,t,i,a,n){if("error"===i){var s=$.active;if(s&&($.active=s-1),Test.strContains(n.url,"/csf/index.cgi"))return void theme_reload()}}),$(document).on("pjax:start",function(e,t){get_server_data("loading",1),"number"==typeof set_server_tmp_var_timeout&&clearTimeout(set_server_tmp_var_timeout)}),$(document).on("pjax:beforeReplace",function(e,t,i){navigation_form_control(0),pjax.clear.modules(i)}),$(document).on("ready pjax:beforeSend",function(e,t,i){progress.start();var a=$(e.relatedTarget),n=a.attr("href");n=n||i.url.replace(v___location_origin,""),clicked_in_nav_menu=a.parent().is("[data-linked], .favorites-dcontainer, .menu-exclude.ui-sortable-handle")||"object"==typeof i.callback&&"reference"===i.callback[0],clicked_in_nav_menu&&((Test.strContains(n,"mysql")||Test.strContains(n,"postgresql"))&&get_bundle_sql(),Test.strContains(n,v___module_file_manager)&&get_bundle_file_manager(),Test.strContains(n,"csf")&&get_bundle_csf()),"object"==typeof i.callback&&"beforeSend"===i.callback[0]&&(i.callback[3]?setTimeout(function(){window[i.callback[1].apply(this,i.callback[2])]},i.callback[3]):window[i.callback[1].apply(this,i.callback[2])])}),$(document).on("pjax:success",function(e,t,i,a,n){"object"==typeof n.callback&&"success"===n.callback[0]&&(n.callback[3]?setTimeout(function(){window[n.callback[1].apply(this,n.callback[2])]},n.callback[3]):window[n.callback[1].apply(this,n.callback[2])])}),$(document).on("pjax:complete",function(e,t,i){setTimeout(function(){$(".container-fluid-loading").length||progress.end()},10),get_server_data("loading",0,1)}),$(document).on("ready pjax:end",function(e,t){0!==v___available_session&&(navigation_form_control(1),get_pjax_event_end(e,t))}),$(document).on("pjax:popstate",function(e,t){setTimeout(function(){get_pjax_event_end_funcs(0)},40)})}v___available_session&&($.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-get_theme_language=1",data:!1,dataType:"text",async:v___available_navigation,success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:(get_server_data("language-strings",JSON.parse(e)),"function"==typeof set_side_slider_labels&&set_side_slider_labels())}}),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-get_available_modules=1",data:!1,dataType:"text",async:v___available_navigation,success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:get_server_data("available-modules",JSON.parse(e))}}),theme_config("load")),$(function(){if(1===v___initial_load&&v___available_navigation&&(page_display(),navigation_display()),bind_sameorigin(),time.tictac(),browser.safari(1)&&$("html").css("overflow","auto"),browser.safari()&&$(".__page").addClass("browser_safari"),!v___available_navigation&&$(".container-fluid").removeClass("col-lg-10 col-lg-offset-1").addClass("margined-top-15").parents("html").addClass("single_tab"),$("body").on("click","#quota-virtual-server-collapse a.ui_link, #quota-virtual-server-1-collapse a.ui_link, #bw-virtual-server-collapse a.ui_link, #bw-virtual-server-1-collapse a.ui_link",function(){var e=URI.parseQuery(URI($(this).attr("href")).query()).dom,t="virtualmin";$('.switch-toggle input:not([id="open_'+t+'"]):checked').length&&set_switch_position(t),setTimeout(function(){$("aside select").val()!=e&&get_navigation_menu_virtualmin(e)},300)}),$("body").on("click",".file-input-wrapper",function(){var e=$(this).prev('input[type="radio"]').add($(this).parent("td").prev("td").find('input[type="radio"]'));1===e.length&&e.prop("checked",!0)}),$("body").on("click",".--to-new-tab",function(){$(this).attr("target","_blank")}),$("body").on("click",".favorites-menu a.menu-exclude-link, .right_pane_favorites_link",function(){var e=Test.strContains($(this).attr("href"),"/virtual-server/")?"dom":!!Test.strContains($(this).attr("href"),"/server-manager/")&&"id",t=Test.strContains($(this).attr("href"),"gparent")?"gparent":e,i=URI.parseQuery(URI($(this).attr("href")).query())[t],a="dom"===e?"virtualmin":"id"===e?"cloudmin":"webmin",n=$('.switch-toggle input:not([id="open_'+a+'"]):checked').length;n&&set_switch_position(a),e?setTimeout(function(){$("aside select").val()!=i&&("dom"===e?get_navigation_menu_virtualmin(i):"id"===e&&get_navigation_menu_cloudmin(i))},300):n&&get_navigation_menu_webmin()}),$("body").on("click",function(e){var t=$("aside select");$(e.target).attr("class")&&0===$(e.target).attr("class").indexOf("select2")||t&&t.length>0&&t.hasClass("select2-hidden-accessible")&&t.select2("close")}),$("a").each(function(){$(this).find("img").length&&$(this).css("text-decoration","none")}),$("body").on("keydown",function(e){var t=e.keyCode?e.keyCode:e.which,i=String.fromCharCode(t).toLowerCase();!$('aside input[name="search"]').is(":focus")&&v___available_session&&($(".-shell-port-").hasClass("opened")||v___location_path!=v___location_prefix+"/server-manager/gvnc.cgi"&&v___location_path!=v___location_prefix+"/server-manager/login.cgi"&&v___location_path!=v___location_prefix+"/telnet/"&&v___location_path!=v___location_prefix+"/telnet/index.cgi"&&v___location_path!=v___location_prefix+"/stunnel/"&&v___location_path!=v___location_prefix+"/stunnel/index.cgi"&&($("input").is(":focus")||$("select").is(":focus")||$("textarea").is(":focus")||$(".modal.in").length||!i||!/[a-zA-Z0-9]/.test(i)||e.ctrlKey||e.altKey||e.metaKey||106===t||107===t||109===t||112===t||113===t||114===t||115===t||116===t||117===t||118===t||119===t||120===t||121===t||122===t||123===t||($(".dataTables_filter label input").length||$(".btn-accordion-filter").length?($(".btn-filter-top-right, .btn-accordion-filter").trigger("click"),$(".btn-filter-top-right .dataTable-mirror, .btn-accordion-filter .dataTable-mirror").focus().trigger("keyup")):setTimeout(function(){e.shiftKey&&"1"==i?$('aside input[name="search"]').focus().val("!"):$('aside input[name="search"]').focus().val(i)},1))))}),v___available_navigation&&($(document).ajaxSend(function(e,t,i){}).ajaxStop(function(){setTimeout(function(){0===v___available_session&&session.reauthenticate()},300)}).ajaxError(function(e,t){if(0===t.status){!$(".modal-connection-warning").length&&$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-error=1",data:!1,dataType:"text",error:function(e){var t=theme_language("theme_xhred_connection_error_details").replace("%server",location.host+v___location_prefix);theme_alert(theme_language("theme_xhred_connection_error"),t,!1,"md","danger","unplugged fa-lg","7 modal-connection-warning",0),setTimeout(function(){navigation_render_end(),navigation_detect(),reset_switch_position(),despinnerfy_buttons(),theme_shell_unlock()},200)}})}}),$.ajaxSetup({complete:function(e,t){(Test.strContains(e.responseText,v___page_signin_form)||e&&("auth-required=1"===e.getResponseHeader("Auth-type")||e.responseText&&e.responseText.indexOf("reset-fonts-grids-base")>-1&&e.responseText.indexOf("window.top.location = window.location;")>-1))&&session.reauthenticate()},beforeSend:function(e,t){t.url=navigation_trigger(t.url,1)}})),function(){if("function"==typeof Messenger.Message){var e,t,i,a={}.hasOwnProperty,n=function(e,t){function i(){this.constructor=e}for(var n in t)a.call(t,n)&&(e[n]=t[n]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e};e=jQuery,i=''+Convert.htmlEscape(t)+"
"),10,"success","newGeneratedPassword")}),$("body").on("click",'aside li[data-linked] a[href="'+v___location_prefix+'/shell/"], aside a[href="'+v___location_prefix+'/server-manager/shell.cgi"], aside a[href*="shell=1"]',function(e){e.preventDefault(),e.stopPropagation(),$(".user-link.ported-console:visible").trigger("click")}),$("body").on("change",'form[action*="save_log.cgi"] select[name="idx"]',function(e){var t=$("button.ui_submit.ui_form_end_submit");t.first().trigger("click"),t.addClass("disabled")}),$("body").on("keydown",'form[action*="save_log.cgi"] input[name="filter"], form[action*="save_log.cgi"] input[name="lines"]',function(e){if(13==e.keyCode){e.preventDefault();var t=$("button.ui_submit.ui_form_end_submit");t.first().trigger("click"),t.addClass("disabled")}}),$("aside").on("click",".__logout-link",function(e){progress.start(),get_server_tmp_var("goto",0)}),$("body").on("click",'button, input[type="submit"], a',function(e){v___page_activeElement=this}),$("body").on("click","._c__op_d",function(e){if($(e.target).is(this)){var t=$(this).find(".opener_trigger").first()[0];t&&t.click()}}),$(window).on("resize",function(){page_resized(),theme_shell_adapt()}),setTimeout(function(){window.onbeforeunload=function(){if(get_onbeforeunload_status())return progress.end(),!0;window.setTimeout(function(){v___available_navigation?"csf"===v___module&&(window.location=v___location_prefix?v___location_prefix+"/":"/"):progress.start()},0),window.onbeforeunload=null},$(function(){v___available_navigation||progress.end()})},100),theme_alert_charset(),favorites_detect(),page_render(0),setTimeout(function(){v___initial_load=0},1e3)})}
\ No newline at end of file
+update_navigation_module_name()}function editor_init_check(){return 1===$("textarea").length&&("data"===$("textarea").attr("name")||"text"===$("textarea").attr("name")||"conf"===$("textarea").attr("name")||"script"===$("textarea").attr("name")||Core.curModuleFileQuery("virtual-server","edit_html.cgi","textok=")||v___location_file.indexOf("manual")>-1)?Core.curModule("gnupg")||Core.curModuleFile("virtual-server","mass_ucreate_form.cgi")||Core.curModuleFile("virtual-server","mass_create_form.cgi")||Core.curModuleFile("server-manager","edit_pubkey.cgi")||Core.curModuleFile("server-manager","edit_key.cgi")||check_location_resource("/config.cgi?server-manager")||Core.curModuleFile("useradmin","batch_form.cgi")||Core.curModuleFile("useradmin","gbatch_form.cgi")||"mass_form.cgi"==v___location_file||"notes"===$("textarea").attr("id")?0:1:0}function editor_init(e,t,i,a,n,s,_,r){(_=void 0!==_&&0!=_)||(n=void 0!==n&&0!=n,s=void 0!==s&&0!=s,$.each(e,function(_,o){$(this);var l=["phpini","bind8"];$("#headln2l a").attr("href")?$page=$("#headln2l a").attr("href").split("/")[1]:$page=null,l.indexOf($page)>=0&&$(this).data("name","data"),CodeMirror.modeURL=v___location_prefix+"/unauthenticated/js/codemirror/mode/%N/%N.js";var c=null,d="text/plain",h=!1;v___location_path==v___location_prefix+"/custom/view.cgi"?h=$('form[action="save.cgi"]').find(".table-title").find("tt").text():$('body[class^="'+v___module_file_manager+'"]').length?(h=t.replace(/<(?:.|\n)*?>/gm,"").replace(/ *\([^)]*\) */g,""),t=h):h=$('select[name="file"]').val();var p,f=t||h;if(p=/.+\.([^.]+)$/.exec(f))(g=CodeMirror.findModeByExtension(p[1]))&&(c=g.mode,d=g.mime);else if(/\//.test(f)){var g=CodeMirror.findModeByMIME(f);g&&(c=g.mode,d=f)}else c=null,d="text/plain";if("apache"==$page||"postfix"==$page||"dovecot"==$page||"spam"==$page||"virtualmin-nginx"==$page||"sendmail"==$page||"samba"==$page||"proftpd"==$page||"fail2ban"==$page||"sshd"==$page||"squid"==$page||"ldap-server"==$page?(c="rpm",d="rpm-spec"):"phpini"==$page?(c="z80",d="text/x-z80"):"bind8"==$page||"procmail"==$page||Core.curModuleFile("virtual-server","manual_records.cgi")?(c="clike",d="text/x-java"):"virtual-server"==$page&&"body"==$(this).attr("name")&&(c="htmlmixed",d="text/html"),$current_file=v___location_path.replace(/^\//g,""),$current_file&&($current_file=$current_file.split("/")[1]),editor_init_check()||$(".jsPanel").length||n){CodeMirror.commands.autocomplete=function(e){e.showHint({hint:CodeMirror.hint.anyword})},window["__cm_editor_"+a]=CodeMirror.fromTextArea(o,{tabMode:"indent",matchBrackets:!0,lineNumbers:!0,keyMap:"sublime",highlightSelectionMatches:{showToken:/\w/,annotateScrollbar:!0},lineWrapping:!0,indentUnit:0,autofocus:!0,foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{"Ctrl-Space":"autocomplete"},styleActiveLine:!0,theme:v___theme_night_mode?"monokai":settings_cm_editor_palette}),window["__cm_editor_"+a].setOption("mode",d),"rpm"!=c&&CodeMirror.autoLoadMode(window["__cm_editor_"+a],c),setTimeout(function(){$("body").find(".jsPanel").length||$(".CodeMirror").before('');var e=$(".fa.fa-question-circle.__helper, .__helper___");e.popover({container:"body",placement:"auto left",title:''+theme_language("theme_xhred_editor_help_title"),content:theme_language("theme_xhred_editor_help_content"),trigger:"click",html:!0}),e.on("inserted.bs.popover",function(){$("body").find(".theme_xhred_editor_help").parents(".popover").addClass("_helper")})},100),s&&window["__cm_editor_"+a].on("change",function(e,t){set_onbeforeunload_status(1,0)});var u=$(".container-fluid > .panel > .panel-body").attr("data-cm-line"),v=$(".container-fluid > .panel > .panel-body").attr("data-cm-state");r&&u&&__cm_editor_static.setCursor(parseInt(u.split(",")[0]),parseInt(u.split(",")[1])),"edit_cron.cgi"!=$current_file&&v___location_path!=v___location_prefix+"/virtualmin-password-recovery/"&&v___location_path!=v___location_prefix+"/bind8/forward_form.cgi"&&($resize=i||2.8,i?(window["__cm_editor_"+a].on("change",function(t,i){e.val(window["__cm_editor_"+a].getValue()),$(":focus").parents(".jsPanel").is(".jsPanel")&&($(":focus").parents(".jsPanel").find("._filemanager_file_editor_save").addClass("text-danger __locked__"),$(":focus").parents(".jsPanel").find("select[data-encoding]").addClass("pointer-events-none"))}),window["__cm_editor_"+a].setSize($resize[0],$resize[1])):($window_height=$(window).outerHeight()-$(window).outerHeight()/$resize,window["__cm_editor_"+a].setSize(null,$window_height),$(window).resize(function(){$window_height=$(window).outerHeight()-$(window).outerHeight()/$resize,window["__cm_editor_"+a].setSize(null,$window_height)}))),$(".sub_table_container").find(".CodeMirror").length&&($(".sub_table_container").addClass("xcontent-force-no-styling"),$(".panel-body").addClass("xqcontent-forced")),editor_background_save(r&&!!u&&"true"==v)}}))}function viewer_init_check(){return $('body[class^="syslog"]').length&&v___location_query&&v___location_query.indexOf("view=1")>-1?1:0}function viewer_init(){if($("pre[data-cm-viewer]").remove(),$(".panel-body pre").find("i").length)$(".panel-body pre > i").addClass("label label-transparent-15");else{var e=!1;$(".panel-body pre").each(function(t,i){var a=$(this),n=Convert.htmlStrip(a.html());a.addClass("hidden"),a.after(""),$target=$("pre[data-cm-viewer-id-"+(t+1)+"]"),e=CodeMirror($target[0],{value:n,lineNumbers:!1,mode:null,theme:v___theme_night_mode?"monokai":settings_cm_editor_palette,readOnly:!0})}).promise().done(function(){})}}function notifications(e,t,i){if(settings_side_slider_enabled&&settings_side_slider_notifications_enabled){var e=Convert.htmlUnEscape($.trim(e.replace(/(<([^>]+)>)/gi,""))).replace(/\s+/g," "),t=Convert.htmlUnEscape($.trim(t.replace(/(<([^>]+)>)/gi,""))).replace(/\s+/g," ");"granted"===Notification.permission?new Notification(e,{body:t,icon:v___location_prefix+"/images/notifications_"+i+".png"}).onclick=function(){window.focus()}:"denied"!==Notification.permission&&Notification.requestPermission(function(a){"granted"===a&&(new Notification(e,{body:t,icon:v___location_prefix+"/images/notifications_"+i+".png"}).onclick=function(){window.focus()})})}}function unbuffered_header_post(e){if(Test.strContains(e.responseText,"theme_post_save")){var t=e.responseText.match(/theme_post_save(.*)$/gm);t&&navigation_update(t[0].split("=")[1])}}function unbuffered_header_processor_allow(e){var t=URI(v___location).path();return void 0!==e&&(t=e),t&&Test.strContains(t,".cgi")&&(Test.strContains(t,"webmin/install_theme.cgi")||Test.strContains(t,"usermin/install_theme.cgi")||t.indexOf("/virtual-server/import.cgi")>-1||t.indexOf("/virtual-server/edit_newlinks.cgi")>-1||t.indexOf("/virtual-server/postsave.cgi")>-1||t.indexOf("/virtual-server/validate.cgi")>-1||t.indexOf("/server-manager/edit_serv.cgi")>-1||t.indexOf("/server-manager/save_serv.cgi")>-1||t.indexOf("/server-manager/index.cgi")>-1||t.indexOf("/server-manager/list_ifaces.cgi")>-1||t.indexOf("/server-manager/mass_update.cgi")>-1||t.indexOf("/server-manager/get_images.cgi")>-1||t.indexOf("/server-manager/edit_newlinks.cgi")>-1||t.indexOf("/server-manager/list_gces.cgi")>-1||t.indexOf("/server-manager/list_ec2s.cgi")>-1||t.indexOf("/server-manager/unpause.cgi")>-1||t.indexOf("/server-manager/find.cgi")>-1||t.indexOf("useradmin/batch_exec.cgi")>-1||t.indexOf("useradmin/gbatch_exec.cgi")>-1||t.indexOf("useradmin/mass_delete_user.cgi")>-1||t.indexOf("virtual-server/domain_setup.cgi")>-1||t.indexOf("virtual-server/upgrade.cgi")>-1||t.indexOf("virtual-server/mass_create.cgi")>-1||t.indexOf("virtual-server/restore.cgi")>-1||t.indexOf("virtual-server/save_newip.cgi")>-1||t.indexOf("virtual-server/mass_domains_change.cgi")>-1||t.indexOf("virtual-server/save_domain.cgi")>-1||t.indexOf("virtual-server/backup.cgi")>-1||t.indexOf("virtual-server/save_phpmode.cgi")>-1||t.indexOf("virtual-server/script_install.cgi")>-1||t.indexOf("virtual-server/mass_change.cgi")>-1||t.indexOf("virtual-server/save_ratelimit.cgi")>-1||t.indexOf("virtual-server/mass_scripts.cgi")>-1||t.indexOf("virtual-server/mass_upgrade.cgi")>-1||t.indexOf("virtual-server/save_newips.cgi")>-1||t.indexOf("virtual-server/letsencrypt.cgi")>-1||t.indexOf("virtual-server/migrate.cgi")>-1||t.indexOf("virtual-server/save_mail.cgi")>-1||t.indexOf("virtual-server/mass_delete_domains.cgi")>-1||t.indexOf("virtual-server/delete_domain.cgi")>-1||t.indexOf("virtual-server/unscript_install.cgi")>-1||t.indexOf("virtual-server/mass_uninstall.cgi")>-1||t.indexOf("virtual-server/clone.cgi")>-1||t.indexOf("virtual-server/fix_symlinks.cgi")>-1||t.indexOf("virtual-server/disable_domain.cgi")>-1||t.indexOf("virtual-server/delete_databases.cgi")>-1||t.indexOf("virtual-server/move.cgi")>-1||t.indexOf("virtual-server/enable_domain.cgi")>-1||t.indexOf("virtual-server/transfer.cgi")>-1||t.indexOf("virtual-server/mass_disable.cgi")>-1||t.indexOf("virtual-server/rename.cgi")>-1||t.indexOf("virtual-server/save_dbname.cgi")>-1||t.indexOf("virtual-server/mass_enable.cgi")>-1||t.indexOf("virtual-server/save_frame.cgi")>-1||t.indexOf("virtual-server/check.cgi")>-1||t.indexOf("virtual-server/save_newchroot.cgi")>-1||t.indexOf("virtual-server/enable_dkim.cgi")>-1||t.indexOf("virtual-server/save_proxy.cgi")>-1||t.indexOf("virtual-server/save_dbpass.cgi")>-1||t.indexOf("virtual-server/save_dbhosts.cgi")>-1||t.indexOf("virtual-server/unalias.cgi")>-1||t.indexOf("virtual-server/save_newautoconfig.cgi")>-1||t.indexOf("virtual-server/quotacheck.cgi")>-1||t.indexOf("virtual-server/unsub.cgi")>-1||t.indexOf("virtual-server/save_domdkim.cgi")>-1||t.indexOf("virtual-server/fix_modphp.cgi")>-1||t.indexOf("virtual-server/connectivity.cgi")>-1||t.indexOf("virtual-server/all_webmin.cgi")>-1||t.indexOf("virtualmin-support/send_ticket.cgi")>-1||t.indexOf("virtualmin-support/enable_login.cgi")>-1||t.indexOf("virtualmin-support/disable_login.cgi")>-1||t.indexOf("server-manager/create.cgi")>-1||t.indexOf("server-manager/mass.cgi")>-1||t.indexOf("server-manager/manual_image.cgi")>-1||t.indexOf("server-manager/save_limits.cgi")>-1||t.indexOf("server-manager/upgrade.cgi")>-1||t.indexOf("server-manager/empty.cgi")>-1||t.indexOf("server-manager/save_pass.cgi")>-1||t.indexOf("server-manager/create_image.cgi")>-1||t.indexOf("server-manager/restore.cgi")>-1||t.indexOf("server-manager/clone.cgi")>-1||t.indexOf("server-manager/scan.cgi")>-1||t.indexOf("server-manager/add.cgi")>-1||t.indexOf("server-manager/gcescan.cgi")>-1||t.indexOf("server-manager/create_gceattach.cgi")>-1||t.indexOf("server-manager/ec2scan.cgi")>-1||t.indexOf("server-manager/create_domain.cgi")>-1||t.indexOf("server-manager/restore_domain.cgi")>-1||t.indexOf("server-manager/create_ec2attach.cgi")>-1||t.indexOf("server-manager/newami.cgi")>-1||t.indexOf("server-manager/move_disk.cgi")>-1||t.indexOf("server-manager/convert_image.cgi")>-1||t.indexOf("server-manager/save_vcpus.cgi")>-1||t.indexOf("server-manager/boot.cgi")>-1||t.indexOf("server-manager/delete_backuplogs.cgi")>-1||t.indexOf("server-manager/mass_script.cgi")>-1||t.indexOf("server-manager/save_ec2address.cgi")>-1||t.indexOf("server-manager/mass_move.cgi")>-1||t.indexOf("server-manager/delete_ec2attach.cgi")>-1||t.indexOf("server-manager/move.cgi")>-1||t.indexOf("server-manager/backup.cgi")>-1||t.indexOf("server-manager/create_dimage.cgi")>-1||t.indexOf("server-manager/massupload.cgi")>-1||t.indexOf("server-manager/delete_volumes.cgi")>-1||t.indexOf("server-manager/delete_ec2_snapshots.cgi")>-1||t.indexOf("server-manager/download.cgi")>-1||t.indexOf("server-manager/create_gdisk.cgi")>-1||t.indexOf("server-manager/failover.cgi")>-1||t.indexOf("server-manager/create_dkvolume.cgi")>-1||t.indexOf("server-manager/upload.cgi")>-1||t.indexOf("server-manager/transfer.cgi")>-1||t.indexOf("server-manager/delete_gceattach.cgi")>-1||t.indexOf("server-manager/reset.cgi")>-1||t.indexOf("server-manager/find.cgi")>-1||t.indexOf("server-manager/create_volume.cgi")>-1||t.indexOf("server-manager/create_gsnapshot.cgi")>-1||t.indexOf("server-manager/create_gimage.cgi")>-1||t.indexOf("server-manager/exec_vbackup.cgi")>-1||t.indexOf("server-manager/unpause.cgi")>-1||t.indexOf("server-manager/pause.cgi")>-1||t.indexOf("server-manager/create_ec2_snapshot.cgi")>-1||t.indexOf("server-manager/delete_addresses.cgi")>-1||t.indexOf("server-manager/exec_vsync.cgi")>-1||t.indexOf("server-manager/create_address.cgi")>-1||t.indexOf("cluster-usermin/upgrade.cgi")>-1||t.indexOf("cluster-usermin/install.cgi")>-1||t.indexOf("cluster-usermin/update.cgi")>-1||t.indexOf("ldap-useradmin/batch_exec.cgi")>-1||t.indexOf("ldap-useradmin/mass_delete_user.cgi")>-1||t.indexOf("usermin/upgrade.cgi")>-1||t.indexOf("usermin/update.cgi")>-1||t.indexOf("cpan/download.cgi")>-1||t.indexOf("cpan/install.cgi")>-1||t.indexOf("burner/save_profile.cgi")>-1||t.indexOf("burner/burn.cgi")>-1||t.indexOf("bind8/mass_create.cgi")>-1||t.indexOf("bind8/mass_rcreate.cgi")>-1||t.indexOf("bind8/mass_delete.cgi")>-1||t.indexOf("bind8/mass_update.cgi")>-1||t.indexOf("bind8/zone_dnssecmigrate_dt.cgi")>-1||t.indexOf("bind8/mass_rdelete.cgi")>-1||t.indexOf("bind8/enable_zonekey.cgi")>-1||t.indexOf("bind8/enable_zonedt.cgi")>-1||t.indexOf("bind8/disable_zonedt.cgi")>-1||t.indexOf("webalizer/save_log.cgi")>-1||t.indexOf("bacula-backup/restore.cgi")>-1||t.indexOf("bacula-backup/backup.cgi")>-1||t.indexOf("bacula-backup/gbackup.cgi")>-1||t.indexOf("bacula-backup/label.cgi")>-1||t.indexOf("bacula-backup/mount.cgi")>-1||t.indexOf("cluster-software/install_pack.cgi")>-1||t.indexOf("updown/download.cgi")>-1||t.indexOf("software/install_pack.cgi")>-1||t.indexOf("software/do_install.cgi")>-1||t.indexOf("software/apt_upgrade.cgi")>-1||t.indexOf("software/rhn_check.cgi")>-1||t.indexOf("software/yum_upgrade.cgi")>-1||t.indexOf("software/urpmi_upgrade.cgi")>-1||t.indexOf("software/csw_upgrade.cgi")>-1||t.indexOf("software/ports_upgrade.cgi")>-1||t.indexOf("webmin/letsencrypt.cgi")>-1||t.indexOf("webmin/delete_webmincron.cgi")>-1||t.indexOf("webmin/test_sendmail.cgi")>-1||t.indexOf("package-updates/update.cgi")>-1||t.indexOf("custom/run.cgi")>-1||t.indexOf("custom/sql.cgi")>-1||t.indexOf("virtualmin-init/save.cgi")>-1||t.indexOf("virtualmin-init/mass.cgi")>-1||t.indexOf("backup-config/save.cgi")>-1||t.indexOf("squid/init_cache.cgi")>-1||t.indexOf("squid/clear.cgi")>-1||t.indexOf("squid/chown.cgi")>-1||t.indexOf("ldap-client/check.cgi")>-1||t.indexOf("sendmail/del_mailqs.cgi")>-1||t.indexOf("sendmail/flushq.cgi")>-1||t.indexOf("init/mass_start_stop.cgi")>-1||t.indexOf("init/mass_launchd.cgi")>-1||t.indexOf("init/mass_systemd.cgi")>-1||t.indexOf("init/mass_upstarts.cgi")>-1||t.indexOf("init/mass_rcs.cgi")>-1||t.indexOf("init/save_services.cgi")>-1||t.indexOf("ldap-server/create.cgi")>-1||t.indexOf("change-user/change.cgi")>-1||t.indexOf("virtualmin-slavedns/save.cgi")>-1||t.indexOf("proc/trace.cgi")>-1||t.indexOf("proc/run.cgi")>-1||t.indexOf("proc/kill_proc_list.cgi")>-1||t.indexOf("fsdump/backup.cgi")>-1||t.indexOf("fsdump/restore.cgi")>-1||t.indexOf("webmin_search.cgi")>-1||t.indexOf("security-updates/update.cgi")>-1||t.indexOf("virtualmin-mailrelay/save.cgi")>-1||t.indexOf("cluster-copy/exec.cgi")>-1||t.indexOf("cron/exec_cron.cgi")>-1||t.indexOf("virtualmin-registrar/import.cgi")>-1||t.indexOf("virtualmin-registrar/save_ns.cgi")>-1||t.indexOf("virtualmin-registrar/transfer.cgi")>-1||t.indexOf("virtualmin-registrar/renew.cgi")>-1||t.indexOf("virtualmin-registrar/create.cgi")>-1||t.indexOf("htaccess-htpasswd/search.cgi")>-1||t.indexOf("acl/makedn.cgi")>-1||t.indexOf("acl/cert_issue.cgi")>-1||t.indexOf("acl/maketables.cgi")>-1||t.indexOf("acl/schema.cgi")>-1||t.indexOf("filter/move.cgi")>-1||t.indexOf("fetchmail/check.cgi")>-1||t.indexOf("servers/find.cgi")>-1||t.indexOf("cluster-cron/exec.cgi")>-1||t.indexOf("raid/mkfs.cgi")>-1||t.indexOf("lvm/pvmove.cgi")>-1||t.indexOf("lvm/mkfs.cgi")>-1||t.indexOf("ppp-client/init.cgi")>-1||t.indexOf("fdisk/mkfs.cgi")>-1||t.indexOf("fdisk/tunefs.cgi")>-1||t.indexOf("fdisk/fsck.cgi")>-1||t.indexOf("spam/deleteall_awl.cgi")>-1||t.indexOf("quota/check_quotas.cgi")>-1||t.indexOf("virtualmin-awstats/generate.cgi")>-1||t.indexOf("postfix/flushq.cgi")>-1||t.indexOf("status/delete_mons.cgi")>-1||t.indexOf("status/refresh.cgi")>-1||t.indexOf("/webmin/upgrade.cgi")>-1||t.indexOf("sysstats/display_all.cgi")>-1)?1:0}function unbuffered_header_processor_allow_scroll(){var e=["webmin_search.cgi","display_all.cgi"];return Test.arrContains(e,v___location_file)?0:1}function unbuffered_header_processor(e,t){if(t){var i=e,a=$(i.target),n=i.target.action,s=$(quirks.active_element()).attr("name"),_=$.trim(quirks.active_element().innerText),r=quirks.active_element().value;a.find('input[name="'+s+'"]')&&a.find('input[name="'+s+'"]').val()==(_||r)||$("").attr({type:"hidden",name:s,value:_||r}).appendTo(a);var o=Test.strContains(a.attr("enctype"),"multipart/form-data"),l=o?new FormData(a[0]):a.serialize();if(o||(l=Test.strContains(l,s+"=")?l:l+"&"+s+"="+r),$("input:file:visible").val())return v___theme_force_buffered=1,void a.submit()}var c=0,d=0,h=t?n:e,p=0,f=$('div[data-dcontainer="1"] > .panel.panel-default').clone();progress.start(),set_onbeforeunload_status(1,1),progressive_request=$.ajax({xhr:function(){var e=new window.XMLHttpRequest;return e.addEventListener("progress",function(e){var t=e.target.responseText,i=$(t).filter('div[data-dcontainer="1"]').html();if(Test.strContains(t,v___page_signin_form))return v___available_session=0,void progressive_request.abort();if(!!i&&d++,0===p&&(window.history.pushState(null,"",e.currentTarget.responseURL+(Test.strContains(e.currentTarget.responseURL,"?")?"&":"?")+$__theme_navigation),p=1,$(window).on("popstate.unbuffered",function(){$('.container-fluid[data-dcontainer="1"]').html(f),$(this).unbind("popstate.unbuffered"),setTimeout(function(){get_pjax_event_end_funcs(0)},40)})),d>3&&!c)i&&($('div[data-dcontainer="1"]').html(i),c++,unbuffered_header_processor_allow_scroll()&&($(".__page").hasScrollBar()?$(".__page").scrollTop($(".__page")[0].scrollHeight):$(".__page").scrollTop(0)),$(".__page").addClass("progressing"),get_pjax_event_end(!1,e.target));else if(c){var a=extract_content(t,'"+theme_language("theme_xhred_browser_warning")+"
";theme_alert(theme_language("theme_xhred_global_warning"),e,!1,"md","danger",!1,"10 modal-ie-warning",0)},2e3),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var i=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>i.length)&&(t=i.length),t-=e.length;var a=i.lastIndexOf(e,t);return-1!==a&&a===t}),String.prototype.startsWith||String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.indexOf(e,t)===t})),$.extend($.expr[":"],{containsi:function(e,t,i,a){return(e.textContent||e.innerText||"").toLowerCase().indexOf((i[3]||"").toLowerCase())>=0}}),Object.defineProperty(Array.prototype,"reOrder",{enumerable:!1,value:function(e,t){if(t>=this.length)for(var i=t-this.length;1+i--;)this.push(void 0);return this.splice(t,0,this.splice(e,1)[0]),this}}),jQuery.fn.simulateUserClick=function(){return this.each(function(){if("createEvent"in document){var e=this.ownerDocument,t=e.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,e.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null),this.dispatchEvent(t)}else this.click()})},function(e){e.fn.replaceTagName=function(t){for(var i=[],a=this.length;a--;){for(var n=document.createElement(t),s=this[a],_=s.attributes,r=_.length-1;r>=0;r--){var o=_[r];n.setAttribute(o.name,o.value)}n.innerHTML=s.innerHTML,e(s).after(n).remove(),i[a-1]=n}return e(i)}}(jQuery),jQuery.fn.selectText=function(){var e=document,t=this[0];if(e.body.createTextRange)(a=document.body.createTextRange()).moveToElementText(t),a.select();else if(window.getSelection){var i=window.getSelection(),a=document.createRange();a.selectNodeContents(t),i.removeAllRanges(),i.addRange(a)}},function(e){e.fn.replaceText=function(t,i,a){return this.each(function(){var n,s,_=this.firstChild,r=[];if(_)do{3===_.nodeType&&(s=(n=_.nodeValue).replace(t,i))!==n&&(!a&&/this.height()},$.fn.toggleCheckbox=function(){"checkbox"==$(this).attr("type")&&$(this).prop("checked",!$(this).is(":checked"))},jQuery.fn.confirmation=function(e,t){return e=$.extend({className:"btn-danger",timeout:2500},e),$(this).each(function(i,a){function n(){_.removeClass(e.className).data("confirmed",!1).find(".tmp_question").remove()}var s,_=$(a);_.html();_.data("confirmed",!1),_.on("click.confirm",function(i){i.preventDefault(),_.data("confirmed")?(t.call(_,i),n()):(_.data("confirmed",!0),_.append('?').addClass(e.className).bind("mouseout.confirm",function(){s=setTimeout(n,e.timeout)}).bind("mouseover.confirm",function(){clearTimeout(s)}))}).removeClass(e.className)}),$(this)},RegExp.quote=function(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},$(function(){var e,t=".blinking-default:not(.hidden)";setInterval(function(){0==e?($(t).css("opacity","1"),e=1):(e=1)&&($(t).css("opacity","0"),e=0)},900)});if(get_server_data("debug")){if("object"==typeof localStorage)try{localStorage.setItem("d41d8cd98f00",1),localStorage.removeItem("d41d8cd98f00"),$_v__ls__a=1}catch(e){Storage.prototype._setItem=Storage.prototype.setItem,Storage.prototype.setItem=function(){},$_v__ls__a=0}if(page_init(),$___________lrs_r_l=0,$___________left=v___available_navigation?1:0,"undefined"==typeof settings_mailbox_slash_delimiter&&(settings_mailbox_slash_delimiter=!0),"undefined"==typeof settings_right_reload&&(settings_right_reload=!0),"undefined"==typeof settings_right_default_tab_usermin&&(settings_right_default_tab_usermin="/"),"undefined"==typeof settings_right_virtualmin_default&&(settings_right_virtualmin_default="sysinfo.cgi"),"undefined"==typeof settings_right_cloudmin_default&&(settings_right_cloudmin_default="sysinfo.cgi"),"undefined"==typeof settings_font_family&&(settings_font_family=0),"undefined"==typeof settings_navigation_color&&(settings_navigation_color="blue"),"undefined"==typeof settings_background_color&&(settings_background_color="gainsboro"),"undefined"==typeof settings_hide_top_loader&&(settings_hide_top_loader=!1),"undefined"==typeof settings_show_night_mode_link&&(settings_show_night_mode_link=!0),"undefined"==typeof settings_theme_options_button&&(settings_theme_options_button=!0),"undefined"==typeof settings_leftmenu_button_refresh&&(settings_leftmenu_button_refresh=!1),"undefined"==typeof settings_cm_view_palette&&(settings_cm_view_palette="monokai"),"undefined"==typeof settings_cm_editor_palette&&(settings_cm_editor_palette="monokai"),"undefined"==typeof settings_side_slider_palette&&(settings_side_slider_palette="grey"),"undefined"==typeof settings_side_slider_enabled&&(settings_side_slider_enabled=!0),"undefined"==typeof settings_side_slider_fixed&&(settings_side_slider_fixed=!1),"undefined"==typeof settings_side_slider_sysinfo_enabled&&(settings_side_slider_sysinfo_enabled=!0),"undefined"==typeof settings_side_slider_notifications_enabled&&(settings_side_slider_notifications_enabled=!0),"undefined"==typeof settings_side_slider_favorites_enabled&&(settings_side_slider_favorites_enabled=!0),config_portable_module_filemanager_hide_actions="undefined"==typeof localStorage||"false"!=localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_hide_actions"),config_portable_module_filemanager_hide_toolbar="undefined"!=typeof localStorage&&"true"==localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_hide_toolbar"),config_portable_module_filemanager_hovered_toolbar="undefined"!=typeof localStorage&&"true"==localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_hovered_toolbar"),config_portable_module_filemanager_notification_type="undefined"!=typeof localStorage&&localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_notification_type")?localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_notification_type"):2,config_portable_module_filemanager_calculate_size="undefined"!=typeof localStorage&&"true"==localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_calculate_size"),config_portable_module_filemanager_switch_user="undefined"==typeof localStorage||"false"!=localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_switch_user"),config_portable_module_filemanager_remember_tabs="undefined"==typeof localStorage||"false"!=localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_remember_tabs"),config_portable_module_xsql_fit_content_screen_height="undefined"!=typeof localStorage&&"true"==localStorage.getItem(v___server_hostname+"-config_portable_module_xsql_fit_content_screen_height"),"undefined"==typeof settings_hotkeys_active&&(settings_hotkeys_active=!0),"undefined"==typeof settings_button_tooltip&&(settings_button_tooltip=!0),"undefined"==typeof settings_hotkey_toggle_modifier&&(settings_hotkey_toggle_modifier="altKey"),"undefined"==typeof settings_hotkey_toggle_key_webmin&&(settings_hotkey_toggle_key_webmin="w"),"undefined"==typeof settings_hotkey_toggle_key_virtualmin&&(settings_hotkey_toggle_key_virtualmin="v"),"undefined"==typeof settings_hotkey_toggle_key_cloudmin&&(settings_hotkey_toggle_key_cloudmin="c"),"undefined"==typeof settings_hotkey_toggle_key_usermin&&(settings_hotkey_toggle_key_usermin="u"),"undefined"==typeof settings_hotkey_toggle_key_webmail&&(settings_hotkey_toggle_key_webmail="m"),"undefined"==typeof settings_hotkey_toggle_key_night_mode&&(settings_hotkey_toggle_key_night_mode="l"),"undefined"==typeof settings_hotkey_shell&&(settings_hotkey_shell="k"),"undefined"==typeof settings_hotkey_sysinfo&&(settings_hotkey_sysinfo="i"),"undefined"==typeof settings_hotkey_favorites&&(settings_hotkey_favorites="f"),"undefined"==typeof settings_hotkey_focus_search&&(settings_hotkey_focus_search="s"),"undefined"==typeof settings_hotkey_toggle_slider&&(settings_hotkey_toggle_slider="n"),"undefined"==typeof settings_hotkey_reload&&(settings_hotkey_reload="r"),"undefined"==typeof settings_global_passgen_format&&(settings_global_passgen_format="12|a-z,A-Z,0-9,#"),"undefined"==typeof settings_window_replace_timestamps&&(settings_window_replace_timestamps=!0),"undefined"==typeof settings_window_replaced_timestamp_format_full&&(settings_window_replaced_timestamp_format_full="LLLL"),"undefined"==typeof settings_window_replaced_timestamp_format_short&&(settings_window_replaced_timestamp_format_short="L, LTS"),"undefined"==typeof settings_leftmenu_vm_cm_dropdown_icons&&(settings_leftmenu_vm_cm_dropdown_icons=!0),"undefined"==typeof settings_hotkey_custom_1&&(settings_hotkey_custom_1=!1),"undefined"==typeof settings_hotkey_custom_2&&(settings_hotkey_custom_2=!1),"undefined"==typeof settings_hotkey_custom_3&&(settings_hotkey_custom_3=!1),"undefined"==typeof settings_hotkey_custom_4&&(settings_hotkey_custom_4=!1),"undefined"==typeof settings_hotkey_custom_5&&(settings_hotkey_custom_5=!1),"undefined"==typeof settings_hotkey_custom_6&&(settings_hotkey_custom_6=!1),"undefined"==typeof settings_hotkey_custom_7&&(settings_hotkey_custom_7=!1),"undefined"==typeof settings_hotkey_custom_8&&(settings_hotkey_custom_8=!1),"undefined"==typeof settings_hotkey_custom_9&&(settings_hotkey_custom_9=!1),"undefined"==typeof settings_side_slider_background_refresh_time&&(settings_side_slider_background_refresh_time=5),"undefined"==typeof settings_leftmenu_width&&(settings_leftmenu_width=260),"undefined"==typeof settings_sysinfo_easypie_charts&&(settings_sysinfo_easypie_charts=!0),"undefined"==typeof settings_sysinfo_easypie_charts_size?settings_sysinfo_easypie_charts_size=172:settings_sysinfo_easypie_charts_size=parseInt(settings_sysinfo_easypie_charts_size),"undefined"==typeof settings_sysinfo_easypie_charts_width?settings_sysinfo_easypie_charts_width=2:settings_sysinfo_easypie_charts_width=parseInt(settings_sysinfo_easypie_charts_width),"undefined"==typeof settings_sysinfo_easypie_charts_scale?settings_sysinfo_easypie_charts_scale=8:settings_sysinfo_easypie_charts_scale=parseInt(settings_sysinfo_easypie_charts_scale),"undefined"==typeof settings_sysinfo_theme_updates&&(settings_sysinfo_theme_updates=!1),"undefined"==typeof settings_sysinfo_theme_patched_updates&&(settings_sysinfo_theme_patched_updates=!1),"undefined"==typeof settings_sysinfo_csf_updates&&(settings_sysinfo_csf_updates=!1),"undefined"==typeof settings_sysinfo_link_mini&&(settings_sysinfo_link_mini=!1),"undefined"==typeof settings_loader_top&&(settings_loader_top=!0),"undefined"==typeof settings_animation_left&&(settings_animation_left=!0),settings_animation_left?$settings_animation_left_slide_time=175:$settings_animation_left_slide_time=0,"undefined"==typeof settings_animation_tabs&&(settings_animation_tabs=!1),settings_animation_tabs?$settings_animation_tabs_slide_time=350:$settings_animation_tabs_slide_time=0,"undefined"==typeof settings_show_terminal_link&&(settings_show_terminal_link=!0),"undefined"==typeof settings_favorites&&(settings_favorites=!0),$_v__ls__a?_v__ls__a="":_v__ls__a=" hidden",$(".mobile-menu-toggler:visible").length&&set_side_slider_visibility(0),navigation_display(),v___available_navigation?(page_adjust(settings_leftmenu_width,0),navigation_lock_width()):$("head").append(''),$("html").on("dblclick","body",function(){1!=$(this).find(".container-fluid").css("opacity")&&page_display()}),$.support.pjax&&v___available_navigation){var $t_av__excluded_selectors=':not([target="_blank"]):not([href^="#"]):not([data-href^="#"]):not([data-toggle="collapse"]):not([href*="javascript:"]):not(.has-sub):not([data-has-sub-link]):not([onclick]):not([data-nref])';$(document).on("submit","form",function(e){e.preventDefault(),get_onbeforeunload_status()?get_onbeforeunload_message(e,this):get_pjax_action_submit(e,this)}),$(document).on("click","a"+$t_av__excluded_selectors,function(e){get_onbeforeunload_status()?(e.preventDefault(),get_onbeforeunload_message(e,this)):get_pjax_action_click(e,this)}),$(document).on("pjax:error",function(e,t,i,a,s){if("error"===i){var n=$.active;if(n&&($.active=n-1),Test.strContains(s.url,"/csf/index.cgi"))return void theme_reload()}}),$(document).on("pjax:start",function(e,t){get_server_data("loading",1),"number"==typeof set_server_tmp_var_timeout&&clearTimeout(set_server_tmp_var_timeout)}),$(document).on("pjax:beforeReplace",function(e,t,i){navigation_form_control(0),pjax.clear.modules(i)}),$(document).on("ready pjax:beforeSend",function(e,t,i){progress.start();var a=$(e.relatedTarget),s=a.attr("href");s=s||i.url.replace(v___location_origin,""),clicked_in_nav_menu=a.parent().is("[data-linked], .favorites-dcontainer, .menu-exclude.ui-sortable-handle")||"object"==typeof i.callback&&"reference"===i.callback[0],clicked_in_nav_menu&&((Test.strContains(s,"mysql")||Test.strContains(s,"postgresql"))&&get_bundle_sql(),Test.strContains(s,v___module_file_manager)&&get_bundle_file_manager(),Test.strContains(s,"csf")&&get_bundle_csf()),"object"==typeof i.callback&&"beforeSend"===i.callback[0]&&(i.callback[3]?setTimeout(function(){window[i.callback[1].apply(this,i.callback[2])]},i.callback[3]):window[i.callback[1].apply(this,i.callback[2])])}),$(document).on("pjax:success",function(e,t,i,a,s){"object"==typeof s.callback&&"success"===s.callback[0]&&(s.callback[3]?setTimeout(function(){window[s.callback[1].apply(this,s.callback[2])]},s.callback[3]):window[s.callback[1].apply(this,s.callback[2])])}),$(document).on("pjax:complete",function(e,t,i){setTimeout(function(){$(".container-fluid-loading").length||progress.end()},10),get_server_data("loading",0,1)}),$(document).on("ready pjax:end",function(e,t){0!==v___available_session&&(navigation_form_control(1),get_pjax_event_end(e,t))}),$(document).on("pjax:popstate",function(e,t){setTimeout(function(){get_pjax_event_end_funcs(0)},40)})}v___available_session&&($.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-get_theme_language=1",data:!1,dataType:"text",async:v___available_navigation,success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:(get_server_data("language-strings",JSON.parse(e)),"function"==typeof set_side_slider_labels&&set_side_slider_labels())}}),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-get_available_modules=1",data:!1,dataType:"text",async:v___available_navigation,success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:get_server_data("available-modules",JSON.parse(e))}}),theme_config("load")),$(function(){if(1===v___initial_load&&v___available_navigation&&(page_display(),navigation_display()),bind_sameorigin(),time.tictac(),browser.safari(1)&&$("html").css("overflow","auto"),browser.safari()&&$(".__page").addClass("browser_safari"),!v___available_navigation&&$(".container-fluid").removeClass("col-lg-10 col-lg-offset-1").addClass("margined-top-15").parents("html").addClass("single_tab"),$("body").on("click","#quota-virtual-server-collapse a.ui_link, #quota-virtual-server-1-collapse a.ui_link, #bw-virtual-server-collapse a.ui_link, #bw-virtual-server-1-collapse a.ui_link",function(){var e=URI.parseQuery(URI($(this).attr("href")).query()).dom,t="virtualmin";$('.switch-toggle input:not([id="open_'+t+'"]):checked').length&&set_switch_position(t),setTimeout(function(){$("aside select").val()!=e&&get_navigation_menu_virtualmin(e)},300)}),$("body").on("click",".file-input-wrapper",function(){var e=$(this).prev('input[type="radio"]').add($(this).parent("td").prev("td").find('input[type="radio"]'));1===e.length&&e.prop("checked",!0)}),$("body").on("click",".--to-new-tab",function(){$(this).attr("target","_blank")}),$("body").on("click",".favorites-menu a.menu-exclude-link, .right_pane_favorites_link",function(){var e=Test.strContains($(this).attr("href"),"/virtual-server/")?"dom":!!Test.strContains($(this).attr("href"),"/server-manager/")&&"id",t=Test.strContains($(this).attr("href"),"gparent")?"gparent":e,i=URI.parseQuery(URI($(this).attr("href")).query())[t],a="dom"===e?"virtualmin":"id"===e?"cloudmin":"webmin",s=$('.switch-toggle input:not([id="open_'+a+'"]):checked').length;s&&set_switch_position(a),e?setTimeout(function(){$("aside select").val()!=i&&("dom"===e?get_navigation_menu_virtualmin(i):"id"===e&&get_navigation_menu_cloudmin(i))},300):s&&get_navigation_menu_webmin()}),$("body").on("click",function(e){var t=$("aside select");$(e.target).attr("class")&&0===$(e.target).attr("class").indexOf("select2")||t&&t.length>0&&t.hasClass("select2-hidden-accessible")&&t.select2("close")}),$("a").each(function(){$(this).find("img").length&&$(this).css("text-decoration","none")}),$("body").on("keydown",function(e){var t=e.keyCode?e.keyCode:e.which,i=String.fromCharCode(t).toLowerCase();!$('aside input[name="search"]').is(":focus")&&v___available_session&&($(".-shell-port-").hasClass("opened")||v___location_path!=v___location_prefix+"/server-manager/gvnc.cgi"&&v___location_path!=v___location_prefix+"/server-manager/login.cgi"&&v___location_path!=v___location_prefix+"/telnet/"&&v___location_path!=v___location_prefix+"/telnet/index.cgi"&&v___location_path!=v___location_prefix+"/stunnel/"&&v___location_path!=v___location_prefix+"/stunnel/index.cgi"&&($("input").is(":focus")||$("select").is(":focus")||$("textarea").is(":focus")||$(".modal.in").length||!i||!/[a-zA-Z0-9]/.test(i)||e.ctrlKey||e.altKey||e.metaKey||106===t||107===t||109===t||112===t||113===t||114===t||115===t||116===t||117===t||118===t||119===t||120===t||121===t||122===t||123===t||($(".dataTables_filter label input").length||$(".btn-accordion-filter").length?($(".btn-filter-top-right, .btn-accordion-filter").trigger("click"),$(".btn-filter-top-right .dataTable-mirror, .btn-accordion-filter .dataTable-mirror").focus().trigger("keyup")):setTimeout(function(){e.shiftKey&&"1"==i?$('aside input[name="search"]').focus().val("!"):$('aside input[name="search"]').focus().val(i)},1))))}),v___available_navigation&&($(document).ajaxSend(function(e,t,i){}).ajaxStop(function(){setTimeout(function(){0===v___available_session&&session.reauthenticate()},300)}).ajaxError(function(e,t){if(0===t.status){!$(".modal-connection-warning").length&&$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-error=1",data:!1,dataType:"text",error:function(e){var t=theme_language("theme_xhred_connection_error_details").replace("%server",location.host+v___location_prefix);theme_alert(theme_language("theme_xhred_connection_error"),t,!1,"md","danger","unplugged fa-lg","7 modal-connection-warning",0),setTimeout(function(){navigation_render_end(),navigation_detect(),reset_switch_position(),despinnerfy_buttons(),theme_shell_unlock()},200)}})}}),$.ajaxSetup({complete:function(e,t){(Test.strContains(e.responseText,v___page_signin_form)||e&&("auth-required=1"===e.getResponseHeader("Auth-type")||e.responseText&&e.responseText.indexOf("reset-fonts-grids-base")>-1&&e.responseText.indexOf("window.top.location = window.location;")>-1))&&session.reauthenticate()},beforeSend:function(e,t){t.url=navigation_trigger(t.url,1)}})),function(){if("function"==typeof Messenger.Message){var e,t,i,a={}.hasOwnProperty,s=function(e,t){function i(){this.constructor=e}for(var s in t)a.call(t,s)&&(e[s]=t[s]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e};e=jQuery,i=''+(d?'':"")+' ',A=new FormData($(q)[0]);t.attr("readonly","true"),$.ajax({type:"POST",url:p+"?stripped=1&stripped=2",data:A,dataType:"text",cache:!1,contentType:!1,processData:!1,success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{var i=$(".-shell-port-type").text(),s=$(e).find("pre").html().replace(/>>/g,">"+i),n=$(e).find('select[name="pcmd"] option').map(function(){return Convert.htmlEscape($(this).val())}).get().reOrder(-1,0).reverse();localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify(n)),newPwd=$(e).find('input[name="pwd"]').val(),a.find("pre").append(k?s.replace(new RegExp(y,"g"),k):s),v.text(C||(newPwd==v.attr("data-home")?"~":newPwd.split("/").filter(function(e){return""!=$.trim(e)}).slice(-1)[0])).attr("data-pwd",C||newPwd).attr("title",C||newPwd),theme_shell_adapt(),theme_shell_clear(t),h.scrollTop(h[0].scrollHeight),setTimeout(function(){v___shell_processing=0,__shell_commands__i__=0,t.removeAttr("readonly").focus()},100)}},error:function(e){}})}}}),$("body").on("keyup","#webmin_search_form",function(e){var t=$(this).find("input.sidebar-search"),i=t.val(),a=$("body").find(".-shell-port-");i&&13==e.keyCode&&(i.startsWith("!")?theme_shell_open(a,i):($(this).trigger("submit"),t.val("")))}),$("body").on("click","#right-side-tabs .right_pane_favorites_link",function(e){$(".favorites-menu-outer.hover + .favorites-menu-close").trigger("click")}),$("aside").on("click",".user-links > li.favorites",function(e){$(".favorites-menu-outer").addClass("hover")}),$("body").on("click","nav.favorites-menu li a",function(){}),$("body").on("click",".favorites-menu-close, nav.favorites-menu li a",function(){$(".favorites-menu-outer").removeClass("hover")}),$(document).on("keydown",function(e){"0px"==$(".favorites-menu-outer").css("left")&&27==e.keyCode&&$(".favorites-menu-outer").removeClass("hover")}),favicon=new Favico({animation:"none"}),0==v___user_level&&1==Core.moduleAvailable("status")){var o=localStorage.getItem(v___server_hostname+"-right-side-tab")?localStorage.getItem(v___server_hostname+"-right-side-tab"):"#right-side-tabs-sysinfo";$("body").append(' \t\t
\t\t \t'),$('a[href="'+o+'"]:visible').length||$("#right-side-tabs ul.nav-tabs li a:visible").trigger("click"),$('#right-side-tabs .nav.nav-tabs a[data-toggle="tab"]').on("shown.bs.tab",function(e){var t=$(e.target).attr("href");localStorage.setItem(v___server_hostname+"-right-side-tab",t)}),$("body").on("click",".right-side-tabs-favorites-ctl",function(e){$(".favorites-menu-outer").hasClass("hover")?$(".favorites-menu-close").trigger("click"):$(".user-link.favorites").trigger("click")}),$("body").on("click",'#right-side-tabs a:not([data-toggle="collapse"]):not([role="tab"]):not(.list-group-item)',function(e){$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")}),$("body").on("click","#right-side-tabs .info-container .graph-container-fw",function(e){var t,i=Core.moduleAvailable("proc"),a=$(this).attr("class"),s=a.indexOf("cpu_")>-1?"cpu":a.indexOf("mem_")>-1?"mem":a.indexOf("virt_")>-1?"virt":"disk";"cpu"==s&&i?t=v___location_prefix+"/proc/index_cpu.cgi":"mem"!=s&&"virt"!=s||!i?"disk"==s&&Core.moduleAvailable("disk-usage")?t=v___location_prefix+"/disk-usage":"disk"==s&&Core.moduleAvailable("quota")&&(t=v___location_prefix+"/quota/list_users.cgi?dir=%2F"):t=v___location_prefix+"/proc/index_size.cgi",t&&get_pjax_content(t),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")}),$("body").on("click","#right-side-tabs .fa-dashboard",function(e){get_onbeforeunload_status()?(this.href=v___location_prefix+"/sysinfo.cgi",get_onbeforeunload_message(e,this)):get_pjax_content(v___location_prefix+"/sysinfo.cgi"),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")}),$("body").on("click","#right-side-tabs [data-click-about]",function(e){theme_update_notice(0),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")})}else get_server_data("data-slider-fixed","0"),$(".right-side-tabs-toggler").addClass("hidden");$(".right-side-tabs .tab-pane").each(function(){$(this).css("height",$(window).height()-92)}),$(".right-side-tabs").on("mouseover",".list-group-item",function(e){$(this).find(".fa.fa-trash-o").removeClass("hidden"),!$(this).hasClass("opacity-0_3")&&$(this).find(".fa-clear-all").removeClass("hidden")}).on("mouseout",".list-group-item",function(e){$(this).find(".fa.fa-trash-o").addClass("hidden"),$(this).find(".fa-clear-all").addClass("hidden")}),$(".right-side-tabs").on("click","[data-port-href]",function(e){e.preventDefault(),e.stopPropagation(),open($(this).data("port-href"))}),$("body").on("click",'a[data-id^="csf_"], a[data-type^="csf_"]',function(e){get_bundle_csf()}),$("body").on("click",'a[href*="mysql"], a[href*="postgresql"]',function(e){get_bundle_sql()}),$(".right-side-tabs").on("click",'a.list-group-item[data-type="csf_deny"]',function(e){e.preventDefault(),e.stopPropagation(),$(e.target).is(".fa.fa-trash-o")||$(e.target).is(".fa-clear-all")||$(e.target).is("[data-port-href]")||(get_bundle_csf(),$("body").append(' \t\t\t\t\t\t'),$("form#csf_temporary_ip_entries").submit().remove(),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click"))}),$(".right-side-tabs").on("click contextmenu","a.list-group-item",function(e){if(e.preventDefault(),"contextmenu"==e.type)return $(this).find(".fa-clear-all").trigger("click"),e.preventDefault(),void e.stopPropagation();if($(e.target).is(".fa.fa-trash-o")||$(e.target).is(".fa-clear-all")||$(e.target).is("[data-port-href]")){if($(e.target).is(".fa-clear-all"))return $(this).addClass("opacity-0_3"),$(this).find(".fa-clear-all").addClass("hidden"),void slider_mark_notification_read($(this).attr("id"),$(this).data("type"),1,1);$(this).animate({opacity:"0"},$settings_animation_left_slide_time,function(){$(this).remove(),localStorage.removeItem(v___server_hostname+"-notifications_"+$(this).attr("id")+"_"+$(this).data("type")),slider_add_no_notifications()})}else $(this).attr("href")&&$(this).attr("href").length&&"undefined"!=$(this).attr("href")&&"csf_deny"!=$(this).attr("data-type")?($(this).addClass("opacity-0_3"),$(this).find(".fa-clear-all").addClass("hidden"),slider_mark_notification_read($(this).attr("id"),$(this).data("type"),1,1),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click"),get_pjax_content($(this).attr("href"))):($(this).addClass("opacity-0_3"),slider_mark_notification_read($(this).attr("id"),$(this).data("type"),1,1))}),$(".right-side-tabs-dismiss i.fa-reload").click(function(e){information_update()}),$(".right-side-tabs-dismiss i.fa-clear-all").click(function(e){slider_mark_group_notifications_read(!1)}),$(".right-side-tabs-dismiss i.fa-trash").click(function(e){$(".right-side-tabs .list-group-item:not(.no-notifications)").animate({opacity:"0"},$settings_animation_left_slide_time,function(){$(this).remove(),slider_remove_all_notifications(),slider_add_no_notifications()})}),$("body").on("click",".right-side-tabs-toggler:not(.hidden)",function(e){$(this).hasClass("opened")?($(this).removeClass("opened"),$(this).animate({right:"0"},$settings_animation_left_slide_time),$(".right-side-tabs").animate({right:"-302"},$settings_animation_left_slide_time)):($(this).addClass("opened"),$(this).animate({right:"300"},$settings_animation_left_slide_time),$(".right-side-tabs").animate({right:"0"},$settings_animation_left_slide_time))}),$(".right-side-tabs .tab-pane").mCustomScrollbar({axis:"y",theme:"minimal",scrollInertia:100,scrollButtons:!1}),settings_button_tooltip&&$("body").tooltip({selector:'li[data-toggle="tooltip"], li > a[data-toggle="tooltip"].menu-exclude-link, label[data-toggle="tooltip"]',container:"body",html:!0,delay:{show:800,hide:30}}),$("body").on("click",".user-link.palette-toggle",function(e){theme_toggle_night_mode()}),$("body").on("click",".user-link.ported-console",function(t){theme_shell_check_available()&&theme_shell_open(e)}),slider_add_no_notifications(),slider_check_notifications()}$("body").on("click","#headln2c > .favorites:not(.dummy), .xcustom-favorites:not(.dummy)",function(e){e.preventDefault();var t=URI(v___location).resource();if($(this).hasClass("fa-star-o")){$(this).removeClass("fa-star-o").addClass("fa-star text-warning");var i=$("#headln2c > span[data-main_title]").text(),a=$(".has-sub.active").text().trim(),s=$(".sub_active").text().trim(),n="",o="";($t_uri_virtualmin||$t_uri_cloudmin)&&(n=$("aside .ui_select option:selected").text()),$('body[class^="'+v___module_file_manager+'"]').length&&(o=(o=URI.parseQuery(URI(v___location).query()).path)?"["+o+"]":"[/]"),favorites_add(t,(n.length?n+" - ":"")+(a.length?a+"/":"")+(s.length?s+(i.trim().length?": ":""):"")+i.trim()+(o.length?" "+o:""),$t_uri_virtualmin?"virtualmin":$t_uri_cloudmin?"cloudmin":"webmin"),favorites_save()}else $(this).addClass("fa-star-o").removeClass("fa-star text-warning"),favorites_remove(t)}),1===v___initial_load&&favorites_init(),$("#favorites-menu .favorites-menu-content").on("mouseover","li:not(.exclude) span.f__c, li:not(.exclude) span.f__c small",function(){$(this).find("small").removeClass("hidden")}).on("mouseleave","li:not(.exclude) span.f__c, li:not(.exclude) span.f__c small",function(){$(this).find("small").addClass("hidden")}),$("#favorites-menu .favorites-menu-content").on("mouseover","li:not(.exclude) small",function(){$(this).find(".fa-times").removeClass("fa-times").addClass("fa-times-circle"),$(this).animate({"font-size":"0.7em","margin-top":"-2px","margin-left":"-1px"},160)}).on("mouseleave","li:not(.exclude) small",function(){$(this).find(".fa-times-circle").removeClass("fa-times-circle").addClass("fa-times"),$(this).animate({"font-size":"0.6em","margin-top":"-1px","margin-left":"0"},80)}),$("#favorites-menu .favorites-menu-content").on("click","li:not(.exclude) small .fa-times-circle",function(e){e.preventDefault(),e.stopPropagation(),favorites_remove($(this).parents("a").attr("href"))}),$(document).on("keydown",function(e){"0px"==$(".favorites-menu-outer").css("left")&&27==e.keyCode&&$(".favorites-menu-outer").removeClass("hover")}),$("body").on("shown.bs.modal",".modal.in",function(){$(this).focus()}),$("body").on("click",".module-help",function(e){popover_visibility_position($(this))}),$("body").on("click",function(e){$(e.target).is(".close-popover-trigger")&&$(e.target).parent().parent().popover("hide");var t=".showpass-popover";$(t).length&&$(t).each(function(){$(this).is(e.target)||0!==$(this).has(e.target).length||0!==$(".popover").has(e.target).length||$(this).popover("hide")})}),$('body:not(".mobile-menu-toggler")').on("click",function(e){$(e.target).is('.wbm-sm, input[name="product-switcher"], label[for*="open_"], span, .sidebar-search, .select2-selection__rendered, .select2-selection')||navigation_hide()}),$("body").on("change",'input[type="checkbox"], input[type="radio"]',function(e){var t=$(this).parents("tr.ui_checked_columns");t.length&&t.find("input:first").is($(this))&&($(this).is(":checked")?t.addClass("hl-aw"):t.removeClass("hl-aw"),"function"==typeof __r____changed&&__r____changed())}),$("body").on("click",".ui_link, .ui_link_replaced",function(){$.each($('input[type="checkbox"]'),function(){$(this).is(":checked")?$(this).parents("tr.ui_checked_columns").addClass("hl-aw"):$(this).parents("tr.ui_checked_columns").removeClass("hl-aw"),"function"==typeof __r____changed&&__r____changed()})}),$("body").on("click",'#extended_sysinfo-1 span[data-entry="nf_seen"]',function(e){e.preventDefault();var t=$(this),i=$('form[action*="seen_newfeatures.cgi"]');$.ajax({type:"GET",url:i.attr("action"),data:!1,statusCode:{200:function(){t.parents(".panel.panel-default").remove()}}})}),$("body").on("click",'#extended_sysinfo-1 span[data-entry="right_upok"]',function(e){e.preventDefault();$(this);var t=$('form[action*="package-updates/update.cgi"]');t.attr("method","POST"),$("").attr({type:"submit",value:1}).appendTo(t),$('input[name="u"]').appendTo(t),t.submit()}),$("body").on("click","a#atclearcache",function(e){set_onbeforeunload_status(0,0),Object.keys(localStorage).forEach(function(e){/^allowed_trigger|^notifications_|^sysinfo_/.test(e)&&localStorage.removeItem(v___server_hostname+"-"+e)}),$(".right-side-tabs-dismiss .fa-trash").trigger("click"),$(".right-side-tabs-dismiss .fa-refresh").trigger("click");var t=$(this);spinnerfy_buttons(t,[1.5,-33,"small",1e3])}),$("body").on("click",function(e){$(e.target).is('select[name="settings_navigation_color"], select[name="settings_background_color"], select[name="settings_side_slider_palette"], input[name="settings_side_slider_fixed"], label[for^="settings_side_slider_fixed"], div.aradio')||$(".right-side-tabs-toggler").hasClass("hidden")||!$(".right-side-tabs-toggler").hasClass("opened")||$(e.target).parents("#right-side-tabs").is("#right-side-tabs")||$(e.target).is(".btn-menu-toggler")||$(e.target).is(".fa-bell")||$(e.target).is("li.user-link.favorites")||$(e.target).is(".badge.badge-danger")||$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")}),$("body").on("click",".authentic_update:not(.disabled)",function(e){e.preventDefault(),e.stopPropagation();var t="1"==$(this).data("stable")?1:0;theme.update(t)}),$("body").on("click",'a[data-href="#theme-info"]',function(){theme_update_notice(0)}),$("body").on("hide.bs.modal","#update_notice",function(){$(this).hasClass("r")?($("body").append(''),$("div.update_notice_overlay").animate({opacity:1},560,function(){setTimeout(function(){theme_reload()},100)})):($("#content").animate({"margin-left":___________content_initial_},280),$("aside").animate({"margin-left":0},280,function(){$(".right-side-tabs, .right-side-tabs-toggler").removeClass("pointer-events-none bg-filter-grayscale-opacity50"),$(".container-fluid").removeClass("bg-filter-blur-grayscale-opacity50")})),$("#update_notice").remove()}).on("show.bs.modal","#update_notice",function(){$("#update_notice").length;$(this);var e=$("aside").css("left");___________content_initial_=$("#content").css("margin-left"),________version_date_obj=$(this).find(".modal-body > h4:first-child"),________version_curr_text=________version_date_obj.text().split(/\s+/)[1],________version_first_text=$(".version_separator:last").text(),________multi_in_branch=$(".version_separator").length,_____version__x=________version_first_text+"..."+________version_curr_text,__release_time=v___theme_version_git.slice(-4,-2)+":"+v___theme_version_git.slice(-2),_____release_date_=________version_date_obj.text().match(/\(([^)]+)\)/),_____release_date=!!_____release_date_&&_____release_date_[1],__release_date_time=_____release_date+(__release_time.length>2?", "+__release_time:"");var t=$(".version_separator"),i=theme_language("theme_xhred_global_development_version");$.each(t,function(){$(this).attr("target","_blank")}),setTimeout(function(){$(".container-fluid").addClass("bg-filter-blur-grayscale-opacity50")},0),$("#content").animate({"margin-left":0},450),$("aside").animate({"margin-left":e},450),$(".right-side-tabs, .right-side-tabs-toggler").addClass("pointer-events-none bg-filter-grayscale-opacity50");var a=$(this).find(".modal-body h4"),s=$(this).find(".modal-body h4:first");if(!$(this).find(".modal-body h4:first .diffctl").length){r=new RegExp(RegExp.quote(________version_curr_text),"g");________multi_in_branch&&(a.replaceText(r,""+_____version__x+""),a.replaceText(/Version/,"Versions"));var n=$(this).find('.modal-body h4:contains("patch")').length;if(a.length&&n){var o=parseFloat($(this).find('.modal-body a[href*="authentic-theme/releases"]:first').text().match(/-?(?:\d+(?:\.\d*)?|\.\d+)/)[0]);s.append(''+Convert.htmlEscape(t)+"
"),10,"success","newGeneratedPassword")}),$("body").on("click",'aside li[data-linked] a[href="'+v___location_prefix+'/shell/"], aside a[href="'+v___location_prefix+'/server-manager/shell.cgi"], aside a[href*="shell=1"]',function(e){e.preventDefault(),e.stopPropagation(),$(".user-link.ported-console:visible").trigger("click")}),$("body").on("change",'form[action*="save_log.cgi"] select[name="idx"]',function(e){var t=$("button.ui_submit.ui_form_end_submit");t.first().trigger("click"),t.addClass("disabled")}),$("body").on("keydown",'form[action*="save_log.cgi"] input[name="filter"], form[action*="save_log.cgi"] input[name="lines"]',function(e){if(13==e.keyCode){e.preventDefault();var t=$("button.ui_submit.ui_form_end_submit");t.first().trigger("click"),t.addClass("disabled")}}),$("aside").on("click",".__logout-link",function(e){progress.start(),get_server_tmp_var("goto",0)}),$("body").on("click",'button, input[type="submit"], a',function(e){v___page_activeElement=this}),$("body").on("click","._c__op_d",function(e){if($(e.target).is(this)){var t=$(this).find(".opener_trigger").first()[0];t&&t.click()}}),$(window).on("resize",function(){page_resized(),theme_shell_adapt()}),setTimeout(function(){window.onbeforeunload=function(){if(get_onbeforeunload_status())return progress.end(),!0;window.setTimeout(function(){v___available_navigation?"csf"===v___module&&(window.location=v___location_prefix?v___location_prefix+"/":"/"):progress.start()},0),window.onbeforeunload=null},$(function(){v___available_navigation||progress.end()})},100),theme_alert_charset(),favorites_detect(),page_render(0),setTimeout(function(){v___initial_load=0},1e3)})}
\ No newline at end of file