diff --git a/authentic-init.pm b/authentic-init.pm index e39b62ef3..1c0fda62f 100644 --- a/authentic-init.pm +++ b/authentic-init.pm @@ -63,31 +63,32 @@ sub settings_filter sub settings_default { my %c; - $c{'settings_font_family'} = '0'; - $c{'settings_navigation_color'} = 'blue'; - $c{'settings_background_color'} = 'gainsboro'; - $c{'settings_button_tooltip'} = 'true'; - $c{'settings_hide_top_loader'} = 'false'; - $c{'settings_animation_left'} = 'true'; - $c{'settings_animation_tabs'} = 'true'; - $c{'settings_sysinfo_link_mini'} = 'false'; - $c{'settings_show_night_mode_link'} = 'true'; - $c{'settings_theme_options_button'} = 'true'; - $c{'settings_leftmenu_button_refresh'} = 'false'; - $c{'settings_hotkeys_active'} = 'true'; - $c{'settings_hotkey_toggle_modifier'} = 'altKey'; - $c{'settings_hotkey_toggle_key_webmin'} = 'w'; - $c{'settings_hotkey_toggle_key_virtualmin'} = 'v'; - $c{'settings_hotkey_toggle_key_cloudmin'} = 'c'; - $c{'settings_hotkey_toggle_key_usermin'} = 'u'; - $c{'settings_hotkey_toggle_key_webmail'} = 'm'; - $c{'settings_hotkey_shell'} = 'k'; - $c{'settings_hotkey_sysinfo'} = 'i'; - $c{'settings_hotkey_toggle_slider'} = 'n'; - $c{'settings_hotkey_favorites'} = 'f'; - $c{'settings_hotkey_focus_search'} = 's'; - $c{'settings_hotkey_reload'} = 'r'; - $c{'settings_hotkey_toggle_key_night_mode'} = 'l'; + $c{'settings_font_family'} = '0'; + $c{'settings_navigation_color'} = 'blue'; + $c{'settings_background_color'} = 'gainsboro'; + $c{'settings_right_page_hide_persistent_vscroll'} = 'true'; + $c{'settings_button_tooltip'} = 'true'; + $c{'settings_hide_top_loader'} = 'false'; + $c{'settings_animation_left'} = 'true'; + $c{'settings_animation_tabs'} = 'true'; + $c{'settings_sysinfo_link_mini'} = 'false'; + $c{'settings_show_night_mode_link'} = 'true'; + $c{'settings_theme_options_button'} = 'true'; + $c{'settings_leftmenu_button_refresh'} = 'false'; + $c{'settings_hotkeys_active'} = 'true'; + $c{'settings_hotkey_toggle_modifier'} = 'altKey'; + $c{'settings_hotkey_toggle_key_webmin'} = 'w'; + $c{'settings_hotkey_toggle_key_virtualmin'} = 'v'; + $c{'settings_hotkey_toggle_key_cloudmin'} = 'c'; + $c{'settings_hotkey_toggle_key_usermin'} = 'u'; + $c{'settings_hotkey_toggle_key_webmail'} = 'm'; + $c{'settings_hotkey_shell'} = 'k'; + $c{'settings_hotkey_sysinfo'} = 'i'; + $c{'settings_hotkey_toggle_slider'} = 'n'; + $c{'settings_hotkey_favorites'} = 'f'; + $c{'settings_hotkey_focus_search'} = 's'; + $c{'settings_hotkey_reload'} = 'r'; + $c{'settings_hotkey_toggle_key_night_mode'} = 'l'; return %c; } diff --git a/authentic-lib.pm b/authentic-lib.pm index 9a8d9c65a..7c79ab76f 100644 --- a/authentic-lib.pm +++ b/authentic-lib.pm @@ -2080,6 +2080,8 @@ sub _settings '0', 'settings_cm_editor_palette', 'monokai', + 'settings_right_page_hide_persistent_vscroll', + 'true', 'settings_hide_top_loader', 'false', 'settings_animation_left', @@ -2091,7 +2093,7 @@ sub _settings 'settings_global_passgen_format', '12|a-z,A-Z,0-9,#', '__', - _settings('fa', 'bell', &Atext('settings_right_notification_slider_options_title')), + _settings('fa', 'bell', &Atext('settings_right_notification_slider_options_title')), 'settings_side_slider_enabled', 'true', 'settings_side_slider_fixed', @@ -3163,7 +3165,8 @@ sub content print_favorites(); # Content - print '
"+theme_language("theme_xhred_connection_success_details")+"
"),setTimeout(function(){$("."+e).modal("hide"),v___theme_connection_reestablish=0},2e3)},error:function(e){v___theme_connection_reestablish&&setTimeout(function(){connection_reestablish()},3e3)}})}function control_server_tmp_var(e,t,i,a,n,s){return $.ajax({type:"POST",url:v___location_prefix+"/index.cgi/?xhr-tmp_var=1&xhr-tmp_var_action="+e+"&xhr-tmp_var_name="+t+"&xhr-tmp_var_value="+(i?Convert.uriEncodeComponent(i):i)+"&xhr-tmp_var_keep="+a,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);"function"==typeof n&&(!e.length||e.length&&1===s)&&n()},error:function(e){}})}function get_server_tmp_var(e,t,i,a){return control_server_tmp_var("get",e,!1,t,i,a)}function set_server_tmp_var(e,t){control_server_tmp_var("set",e,t)}function get_navigation_module_name(){return $t_uri_webmin?theme_language("theme_xhred_titles_wm"):$t_uri_usermin?theme_language("theme_xhred_titles_um"):$t_uri_virtualmin?theme_language("theme_xhred_titles_vm"):$t_uri_cloudmin?theme_language("theme_xhred_titles_cm"):$t_uri_webmail?theme_language("theme_xhred_titles_mail"):$t_uri_dashboard?theme_language("theme_xhred_titles_dashboard"):void 0}function update_navigation_module_name(){$t_uri_webmin=$('.switch-toggle input[id="open_webmin"]:checked').length?1:0,$t_uri_usermin=$('.switch-toggle input[id="open_usermin"]:checked').length?1:0,$t_uri_virtualmin=$('.switch-toggle input[id="open_virtualmin"]:checked').length?1:0,$t_uri_cloudmin=$('.switch-toggle input[id="open_cloudmin"]:checked').length?1:0,$t_uri_webmail=$('.switch-toggle input[id="open_webmail"]:checked').length?1:0,$t_uri_dashboard=$('.switch-toggle input[id="open_dashboard"]:checked').length?1:0}function page_display(){var e=$("body"),t=$("body").find(".container-fluid"),i=$("head");t.css({opacity:1,"pointer-events":"auto"}),e.css("overflow","auto"),i.find("#__tmp_no_overflow").remove()}function page_remove_progress(){despinnerfy_buttons(),setTimeout(function(){get_server_tmp_var("redirected",0)},100),setTimeout(function(){progress.end()},600)}function page_adjust(e,t){"function"==typeof $.injectCSS&&($("style[data-persist]").remove(),t=!!t&&"translate("+t+"px, 0px) !important",$.injectCSS({"#sidebar":{left:-e+"px",width:e+"px",transform:t},".switch-toggle":{width:e+"px"},"#content.__page":{"margin-left":e+"px"},".autocomplete-suggestions":{"min-width":e-23+"px !important"},".__logo":{width:e+"px","max-width":e+"px"},"#jsPanel-replacement-container":{left:(v___available_navigation?settings_leftmenu_width-1:-2)+"px"}}),$("aside select").length&&($("aside select[data-autocomplete-title]").attr("style","width:"+(e-24)+"px; margin-top: 0 !important"),navigation_init_select()))}function navigation_lock_width(){if("undefined"==typeof settings_leftmenu_width_initial&&(settings_leftmenu_width_initial=settings_leftmenu_width),matchMedia("(max-width: 1080px)").matches||"1"==$("html").attr("data-navigation-collapsed"))settings_leftmenu_width=260,page_adjust(settings_leftmenu_width,0);else{if(1===v___initial_load)return;settings_leftmenu_width=settings_leftmenu_width_initial,page_adjust(settings_leftmenu_width,settings_leftmenu_width)}}function theme_modal_dismiss(){$(".modal.in").find("[data-dismiss]").trigger("click")}function navigation_focus_search(e){if(settings_hotkeys_active&&v___available_session)return String.fromCharCode(e.which).toLowerCase()!=settings_hotkey_focus_search||!e[settings_hotkey_toggle_modifier]||(e.preventDefault(),$search=$(".form-control.sidebar-search").focus(),!1)}function theme_shortcut_check(e){return"0"==get_access_level()||!!Core.moduleAvailable(URI("/"+e).directory().replace(/\//g,""))}function theme_shortcuts(e){if(!Test.editing()&&settings_hotkeys_active){if(!("1"==String.fromCharCode(e.which)&&settings_hotkey_custom_1&&e[settings_hotkey_toggle_modifier]||"2"==String.fromCharCode(e.which)&&settings_hotkey_custom_2&&e[settings_hotkey_toggle_modifier]||"3"==String.fromCharCode(e.which)&&settings_hotkey_custom_3&&e[settings_hotkey_toggle_modifier]||"4"==String.fromCharCode(e.which)&&settings_hotkey_custom_4&&e[settings_hotkey_toggle_modifier]||"5"==String.fromCharCode(e.which)&&settings_hotkey_custom_5&&e[settings_hotkey_toggle_modifier]||"6"==String.fromCharCode(e.which)&&settings_hotkey_custom_6&&e[settings_hotkey_toggle_modifier]||"7"==String.fromCharCode(e.which)&&settings_hotkey_custom_7&&e[settings_hotkey_toggle_modifier]||"8"==String.fromCharCode(e.which)&&settings_hotkey_custom_8&&e[settings_hotkey_toggle_modifier]||"9"==String.fromCharCode(e.which)&&settings_hotkey_custom_9&&e[settings_hotkey_toggle_modifier]||String.fromCharCode(e.which).toLowerCase()==settings_hotkey_favorites&&e[settings_hotkey_toggle_modifier]||String.fromCharCode(e.which).toLowerCase()==settings_hotkey_shell&&e[settings_hotkey_toggle_modifier]||String.fromCharCode(e.which).toLowerCase()==settings_hotkey_sysinfo&&e[settings_hotkey_toggle_modifier]||String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_slider&&e[settings_hotkey_toggle_modifier]||String.fromCharCode(e.which).toLowerCase()==settings_hotkey_reload&&e[settings_hotkey_toggle_modifier]||String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_night_mode&&e[settings_hotkey_toggle_modifier]||String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_webmail&&e[settings_hotkey_toggle_modifier]||String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_usermin&&e[settings_hotkey_toggle_modifier]||String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_cloudmin&&e[settings_hotkey_toggle_modifier]||String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_virtualmin&&e[settings_hotkey_toggle_modifier]||String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_webmin&&e[settings_hotkey_toggle_modifier]))return!0;if(!v___available_session)return void e.preventDefault();"1"==String.fromCharCode(e.which)&&settings_hotkey_custom_1&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_1)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_1)),"2"==String.fromCharCode(e.which)&&settings_hotkey_custom_2&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_2)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_2)),"3"==String.fromCharCode(e.which)&&settings_hotkey_custom_3&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_3)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_3)),"4"==String.fromCharCode(e.which)&&settings_hotkey_custom_4&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_4)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_4)),"5"==String.fromCharCode(e.which)&&settings_hotkey_custom_5&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_5)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_5)),"6"==String.fromCharCode(e.which)&&settings_hotkey_custom_6&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_6)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_6)),"7"==String.fromCharCode(e.which)&&settings_hotkey_custom_7&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_7)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_7)), -"8"==String.fromCharCode(e.which)&&settings_hotkey_custom_8&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_8)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_8)),"9"==String.fromCharCode(e.which)&&settings_hotkey_custom_9&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_9)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_9)),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_webmin&&(e.preventDefault(),$('.switch-toggle input[id="open_webmin"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_virtualmin&&(e.preventDefault(),$('.switch-toggle input[id="open_virtualmin"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_cloudmin&&(e.preventDefault(),$('.switch-toggle input[id="open_cloudmin"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_usermin&&(e.preventDefault(),$('.switch-toggle input[id="open_usermin"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_webmail&&(e.preventDefault(),$('.switch-toggle input[id="open_webmail"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_night_mode&&(e.preventDefault(),theme_toggle_night_mode()),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_slider&&(e.preventDefault(),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_reload&&$('.user-links a[data-refresh="true"]')&&(e.preventDefault(),get_onbeforeunload_status()?get_onbeforeunload_message(!1,"get_pjax_content(v___location_resource)","ev"):get_pjax_content(v___location_resource));var t=$t_uri_cloudmin&&$('a[target="page"][href*="/server-manager/save_serv.cgi"][href*="shell=1"]').length;if(String.fromCharCode(e.which).toLowerCase()==settings_hotkey_shell&&(1==Core.moduleAvailable("shell")||t)){e.preventDefault();var i=$("body").find(".-shell-port-");i.hasClass("opened")?theme_shell_close(i):theme_shell_open(i)}return String.fromCharCode(e.which).toLowerCase()==settings_hotkey_sysinfo&&(e.preventDefault(),1==navigation_dashboard_switch_available()?navigation_dashboard_switch_select():get_pjax_content(v___location_prefix+"/sysinfo.cgi")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_favorites&&(e.preventDefault(),"0px"!=$(".favorites-menu-outer").css("left")?$(".user-link.favorites").trigger("click"):$(".favorites-menu-outer").removeClass("hover")),!1}}function get_access_level(){return Core.var.level!==-1?parseInt(Core.var.level):parseInt(get_server_data("level"))}function navigation_dashboard_switch_available(){return"1"==get_server_data("dashboard")}function navigation_dashboard_switch_select(){set_switch_position("dashboard"),navigation_clear(),get_pjax_content(v___location_prefix+"/sysinfo.cgi")}function theme_messenger(e,t,i,a,n){var s=void 0===a?1:a,_=void 0===n||n;if($('body[class^="'+v___module_file_manager+'"]').length){if("4"==config_portable_module_filemanager_notification_type&&"info"!=i&&"warning"!=i&&"error"!=i)return;if("2"==config_portable_module_filemanager_notification_type&&"warning"!=i&&"error"!=i)return}"function"==typeof Messenger&&(window["Messenger_"+s]=Messenger().post({message:e,hideAfter:t,theme:"air",showCloseButton:_,type:i,id:s}))}function theme_message_dismiss(e){void 0!==window["Messenger_"+e]&&window["Messenger_"+e].hide()}function theme_alert(e,t,i,a,n,s,_,o){(void 0===i||0==i)&&(i=!1),(void 0===a||0==a)&&(a="md"),(void 0===n||0==n)&&(n="danger"),(void 0===s||0==s)&&(s="exclamation-triangle"),(void 0===_||0==_)&&(_="7"),(void 0===o||0==o)&&(o=!1);var r=($.isArray(i),"modal-global-notification"),l='"+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){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"))}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;$(".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 o='button[type="submit"]:not(.disabled)';$("body").undelegate(o,"click.cm"),$("body").on("click.cm",o,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 r='button[data-form="submitter"]:not(.disabled)';$("body").undelegate(r,"click.cm"),$("body").on("click.cm",r,function(e){e.preventDefault();var t=$(this),a=t.parents("form"),n=a.attr("enctype")&&a.attr("enctype").indexOf("form-data")>-1?0:1,_=n?a.serialize():new FormData(a[0]);$("button").addClass("disabled").find(".fa.fa-floppy-o").addClass("invisible").after(''),setTimeout(function(){$.ajax({type:"POST",url:i.attr("action"),data:_,dataType:"text",cache:!1,contentType:!1,processData:!1,success:function(e){return Test.strContains(e,v___page_signin_form)?void(v___available_session=0):(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")))},error:function(e){}})},300)})}}function page_resized(){navigation_lock_width(),$(".mobile-menu-toggler").hasClass("selected")||"1"==$("html").attr("data-navigation-collapsed")||($("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(settings_side_slider_fixed!==!0||$(".mobile-menu-toggler:visible").length||!v___available_navigation||settings_side_slider_fixed===!0&&window.matchMedia("(max-width: 1365px)").matches?0:1);var e=$('input[name="settings_leftmenu_width"]');if($(".mobile-menu-toggler:visible").length?e.prop("disabled",!0):e.prop("disabled",!1),v___location_path&&v___location_path.indexOf("/webmin/edit_themes.cgi")>-1){var t=!(!settings_navigation_always_collapse&&!window.matchMedia("(max-width: 1365px)").matches),i="false"!=$('input[name="settings_side_slider_enabled"]:checked').val();t&&$('input[name="settings_side_slider_fixed"][value="false"], input[name="settings_side_slider_fixed_toggle"][value="false"]').trigger("click"),i&&$('input[name="settings_side_slider_fixed"], input[name="settings_side_slider_fixed_toggle"]').prop("disabled",t)}}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_check(){var e=v___location_path.indexOf("/webmin/edit_themes.cgi")>-1,t=v___location_path.indexOf("/settings-user.cgi")>-1,i="settings"+(t?"_"+get_server_data("user"):"")+".js",a=0,n=["settings_font_family","settings_navigation_color","settings_side_slider_enabled","settings_side_slider_fixed_toggle","settings_side_slider_sysinfo_enabled","settings_side_slider_notifications_enabled","settings_side_slider_favorites_enabled","settings_side_slider_palette","settings_navigation_always_collapse","settings_leftmenu_width","settings_leftmenu_user_html"];if(v___location_path&&(e||t)){var s=Core.get_global_vars(["config_","settings"]);$('script[src*="'+i+'"]').length?$.getScript(v___server_js_path+"/"+i,function(){for(var e=Core.get_global_vars(["config_","settings"]),t=0;t"+theme_language("theme_xhred_global_output_example")+": "+moment().format("LLLL")+'
"> '+theme_language("theme_xhred_title_locale_long")+' `LL`"+theme_language("theme_xhred_global_output_example")+": "+moment().format("LL")+'
"> '+theme_language("theme_xhred_title_locale_short")+' `L`"+theme_language("theme_xhred_global_output_example")+": "+moment().format("L")+'
">"+theme_language("theme_xhred_connection_success_details")+"
"),setTimeout(function(){$("."+e).modal("hide"),v___theme_connection_reestablish=0},2e3)},error:function(e){v___theme_connection_reestablish&&setTimeout(function(){connection_reestablish()},3e3)}})}function control_server_tmp_var(e,t,i,a,n,s){return $.ajax({type:"POST",url:v___location_prefix+"/index.cgi/?xhr-tmp_var=1&xhr-tmp_var_action="+e+"&xhr-tmp_var_name="+t+"&xhr-tmp_var_value="+(i?Convert.uriEncodeComponent(i):i)+"&xhr-tmp_var_keep="+a,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);"function"==typeof n&&(!e.length||e.length&&1===s)&&n()},error:function(e){}})}function get_server_tmp_var(e,t,i,a){return control_server_tmp_var("get",e,!1,t,i,a)}function set_server_tmp_var(e,t){control_server_tmp_var("set",e,t)}function get_navigation_module_name(){return $t_uri_webmin?theme_language("theme_xhred_titles_wm"):$t_uri_usermin?theme_language("theme_xhred_titles_um"):$t_uri_virtualmin?theme_language("theme_xhred_titles_vm"):$t_uri_cloudmin?theme_language("theme_xhred_titles_cm"):$t_uri_webmail?theme_language("theme_xhred_titles_mail"):$t_uri_dashboard?theme_language("theme_xhred_titles_dashboard"):void 0}function update_navigation_module_name(){$t_uri_webmin=$('.switch-toggle input[id="open_webmin"]:checked').length?1:0,$t_uri_usermin=$('.switch-toggle input[id="open_usermin"]:checked').length?1:0,$t_uri_virtualmin=$('.switch-toggle input[id="open_virtualmin"]:checked').length?1:0,$t_uri_cloudmin=$('.switch-toggle input[id="open_cloudmin"]:checked').length?1:0,$t_uri_webmail=$('.switch-toggle input[id="open_webmail"]:checked').length?1:0,$t_uri_dashboard=$('.switch-toggle input[id="open_dashboard"]:checked').length?1:0}function page_display(){var e=$("body"),t=$("body").find(".container-fluid"),i=$("head");t.css({opacity:1,"pointer-events":"auto"}),e.css("overflow","auto"),i.find("#__tmp_no_overflow").remove()}function page_remove_progress(){despinnerfy_buttons(),setTimeout(function(){get_server_tmp_var("redirected",0)},100),setTimeout(function(){progress.end()},600)}function page_adjust(e,t){"function"==typeof $.injectCSS&&($("style[data-persist]").remove(),t=!!t&&"translate("+t+"px, 0px) !important",$.injectCSS({"#sidebar":{left:-e+"px",width:e+"px",transform:t},".switch-toggle":{width:e+"px"},"#content.__page":{"margin-left":e+"px"},".autocomplete-suggestions":{"min-width":e-23+"px !important"},".__logo":{width:e+"px","max-width":e+"px"},"#jsPanel-replacement-container":{left:(v___available_navigation?settings_leftmenu_width-1:-2)+"px"}}),$("aside select").length&&($("aside select[data-autocomplete-title]").attr("style","width:"+(e-24)+"px; margin-top: 0 !important"),navigation_init_select()))}function navigation_lock_width(){if("undefined"==typeof settings_leftmenu_width_initial&&(settings_leftmenu_width_initial=settings_leftmenu_width),matchMedia("(max-width: 1080px)").matches||"1"==$("html").attr("data-navigation-collapsed"))settings_leftmenu_width=260,page_adjust(settings_leftmenu_width,0);else{if(1===v___initial_load)return;settings_leftmenu_width=settings_leftmenu_width_initial,page_adjust(settings_leftmenu_width,settings_leftmenu_width)}}function theme_modal_dismiss(){$(".modal.in").find("[data-dismiss]").trigger("click")}function navigation_focus_search(e){if(settings_hotkeys_active&&v___available_session)return String.fromCharCode(e.which).toLowerCase()!=settings_hotkey_focus_search||!e[settings_hotkey_toggle_modifier]||(e.preventDefault(),$search=$(".form-control.sidebar-search").focus(),!1)}function theme_shortcut_check(e){return"0"==get_access_level()||!!Core.moduleAvailable(URI("/"+e).directory().replace(/\//g,""))}function theme_shortcuts(e){if(!Test.editing()&&settings_hotkeys_active){if(!("1"==String.fromCharCode(e.which)&&settings_hotkey_custom_1&&e[settings_hotkey_toggle_modifier]||"2"==String.fromCharCode(e.which)&&settings_hotkey_custom_2&&e[settings_hotkey_toggle_modifier]||"3"==String.fromCharCode(e.which)&&settings_hotkey_custom_3&&e[settings_hotkey_toggle_modifier]||"4"==String.fromCharCode(e.which)&&settings_hotkey_custom_4&&e[settings_hotkey_toggle_modifier]||"5"==String.fromCharCode(e.which)&&settings_hotkey_custom_5&&e[settings_hotkey_toggle_modifier]||"6"==String.fromCharCode(e.which)&&settings_hotkey_custom_6&&e[settings_hotkey_toggle_modifier]||"7"==String.fromCharCode(e.which)&&settings_hotkey_custom_7&&e[settings_hotkey_toggle_modifier]||"8"==String.fromCharCode(e.which)&&settings_hotkey_custom_8&&e[settings_hotkey_toggle_modifier]||"9"==String.fromCharCode(e.which)&&settings_hotkey_custom_9&&e[settings_hotkey_toggle_modifier]||String.fromCharCode(e.which).toLowerCase()==settings_hotkey_favorites&&e[settings_hotkey_toggle_modifier]||String.fromCharCode(e.which).toLowerCase()==settings_hotkey_shell&&e[settings_hotkey_toggle_modifier]||String.fromCharCode(e.which).toLowerCase()==settings_hotkey_sysinfo&&e[settings_hotkey_toggle_modifier]||String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_slider&&e[settings_hotkey_toggle_modifier]||String.fromCharCode(e.which).toLowerCase()==settings_hotkey_reload&&e[settings_hotkey_toggle_modifier]||String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_night_mode&&e[settings_hotkey_toggle_modifier]||String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_webmail&&e[settings_hotkey_toggle_modifier]||String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_usermin&&e[settings_hotkey_toggle_modifier]||String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_cloudmin&&e[settings_hotkey_toggle_modifier]||String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_virtualmin&&e[settings_hotkey_toggle_modifier]||String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_webmin&&e[settings_hotkey_toggle_modifier]))return!0;if(!v___available_session)return void e.preventDefault();"1"==String.fromCharCode(e.which)&&settings_hotkey_custom_1&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_1)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_1)),"2"==String.fromCharCode(e.which)&&settings_hotkey_custom_2&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_2)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_2)),"3"==String.fromCharCode(e.which)&&settings_hotkey_custom_3&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_3)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_3)),"4"==String.fromCharCode(e.which)&&settings_hotkey_custom_4&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_4)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_4)),"5"==String.fromCharCode(e.which)&&settings_hotkey_custom_5&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_5)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_5)),"6"==String.fromCharCode(e.which)&&settings_hotkey_custom_6&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_6)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_6)),"7"==String.fromCharCode(e.which)&&settings_hotkey_custom_7&&(e.preventDefault(), +theme_shortcut_check(settings_hotkey_custom_7)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_7)),"8"==String.fromCharCode(e.which)&&settings_hotkey_custom_8&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_8)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_8)),"9"==String.fromCharCode(e.which)&&settings_hotkey_custom_9&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_9)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_9)),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_webmin&&(e.preventDefault(),$('.switch-toggle input[id="open_webmin"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_virtualmin&&(e.preventDefault(),$('.switch-toggle input[id="open_virtualmin"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_cloudmin&&(e.preventDefault(),$('.switch-toggle input[id="open_cloudmin"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_usermin&&(e.preventDefault(),$('.switch-toggle input[id="open_usermin"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_webmail&&(e.preventDefault(),$('.switch-toggle input[id="open_webmail"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_night_mode&&(e.preventDefault(),theme_toggle_night_mode()),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_slider&&(e.preventDefault(),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_reload&&$('.user-links a[data-refresh="true"]')&&(e.preventDefault(),get_onbeforeunload_status()?get_onbeforeunload_message(!1,"get_pjax_content(v___location_resource)","ev"):get_pjax_content(v___location_resource));var t=$t_uri_cloudmin&&$('a[target="page"][href*="/server-manager/save_serv.cgi"][href*="shell=1"]').length;if(String.fromCharCode(e.which).toLowerCase()==settings_hotkey_shell&&(1==Core.moduleAvailable("shell")||t)){e.preventDefault();var i=$("body").find(".-shell-port-");i.hasClass("opened")?theme_shell_close(i):theme_shell_open(i)}return String.fromCharCode(e.which).toLowerCase()==settings_hotkey_sysinfo&&(e.preventDefault(),1==navigation_dashboard_switch_available()?navigation_dashboard_switch_select():get_pjax_content(v___location_prefix+"/sysinfo.cgi")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_favorites&&(e.preventDefault(),"0px"!=$(".favorites-menu-outer").css("left")?$(".user-link.favorites").trigger("click"):$(".favorites-menu-outer").removeClass("hover")),!1}}function get_access_level(){return Core.var.level!==-1?parseInt(Core.var.level):parseInt(get_server_data("level"))}function navigation_dashboard_switch_available(){return"1"==get_server_data("dashboard")}function navigation_dashboard_switch_select(){set_switch_position("dashboard"),navigation_clear(),get_pjax_content(v___location_prefix+"/sysinfo.cgi")}function theme_messenger(e,t,i,a,n){var s=void 0===a?1:a,_=void 0===n||n;if($('body[class^="'+v___module_file_manager+'"]').length){if("4"==config_portable_module_filemanager_notification_type&&"info"!=i&&"warning"!=i&&"error"!=i)return;if("2"==config_portable_module_filemanager_notification_type&&"warning"!=i&&"error"!=i)return}"function"==typeof Messenger&&(window["Messenger_"+s]=Messenger().post({message:e,hideAfter:t,theme:"air",showCloseButton:_,type:i,id:s}))}function theme_message_dismiss(e){void 0!==window["Messenger_"+e]&&window["Messenger_"+e].hide()}function theme_alert(e,t,i,a,n,s,_,o){(void 0===i||0==i)&&(i=!1),(void 0===a||0==a)&&(a="md"),(void 0===n||0==n)&&(n="danger"),(void 0===s||0==s)&&(s="exclamation-triangle"),(void 0===_||0==_)&&(_="7"),(void 0===o||0==o)&&(o=!1);var r=($.isArray(i),"modal-global-notification"),l='"+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){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"))}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;$(".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 o='button[type="submit"]:not(.disabled)';$("body").undelegate(o,"click.cm"),$("body").on("click.cm",o,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 r='button[data-form="submitter"]:not(.disabled)';$("body").undelegate(r,"click.cm"),$("body").on("click.cm",r,function(e){e.preventDefault();var t=$(this),a=t.parents("form"),n=a.attr("enctype")&&a.attr("enctype").indexOf("form-data")>-1?0:1,_=n?a.serialize():new FormData(a[0]);$("button").addClass("disabled").find(".fa.fa-floppy-o").addClass("invisible").after(''),setTimeout(function(){$.ajax({type:"POST",url:i.attr("action"),data:_,dataType:"text",cache:!1,contentType:!1,processData:!1,success:function(e){return Test.strContains(e,v___page_signin_form)?void(v___available_session=0):(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")))},error:function(e){}})},300)})}}function page_resized(){navigation_lock_width(),$(".mobile-menu-toggler").hasClass("selected")||"1"==$("html").attr("data-navigation-collapsed")||($("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(settings_side_slider_fixed!==!0||$(".mobile-menu-toggler:visible").length||!v___available_navigation||settings_side_slider_fixed===!0&&window.matchMedia("(max-width: 1365px)").matches?0:1);var e=$('input[name="settings_leftmenu_width"]');if($(".mobile-menu-toggler:visible").length?e.prop("disabled",!0):e.prop("disabled",!1),v___location_path&&v___location_path.indexOf("/webmin/edit_themes.cgi")>-1){var t=!(!settings_navigation_always_collapse&&!window.matchMedia("(max-width: 1365px)").matches),i="false"!=$('input[name="settings_side_slider_enabled"]:checked').val();t&&$('input[name="settings_side_slider_fixed"][value="false"], input[name="settings_side_slider_fixed_toggle"][value="false"]').trigger("click"),i&&$('input[name="settings_side_slider_fixed"], input[name="settings_side_slider_fixed_toggle"]').prop("disabled",t)}}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_check(){var e=v___location_path.indexOf("/webmin/edit_themes.cgi")>-1,t=v___location_path.indexOf("/settings-user.cgi")>-1,i="settings"+(t?"_"+get_server_data("user"):"")+".js",a=0,n=["settings_font_family","settings_navigation_color","settings_right_page_hide_persistent_vscroll","settings_side_slider_enabled","settings_side_slider_fixed_toggle","settings_side_slider_sysinfo_enabled","settings_side_slider_notifications_enabled","settings_side_slider_favorites_enabled","settings_side_slider_palette","settings_navigation_always_collapse","settings_leftmenu_width","settings_leftmenu_user_html"];if(v___location_path&&(e||t)){var s=Core.get_global_vars(["config_","settings"]);$('script[src*="'+i+'"]').length?$.getScript(v___server_js_path+"/"+i,function(){for(var e=Core.get_global_vars(["config_","settings"]),t=0;t"+theme_language("theme_xhred_global_output_example")+": "+moment().format("LLLL")+'
"> '+theme_language("theme_xhred_title_locale_long")+' `LL`"+theme_language("theme_xhred_global_output_example")+": "+moment().format("LL")+'
"> '+theme_language("theme_xhred_title_locale_short")+' `L`"+theme_language("theme_xhred_global_output_example")+": "+moment().format("L")+'
">"+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 a!==-1&&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}}),function(e){e.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()})}}(jQuery),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,o=_.length-1;o>=0;o--){var r=_[o];n.setAttribute(r.name,r.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){var i=document.body.createTextRange();i.moveToElementText(t),i.select()}else if(window.getSelection){var a=window.getSelection(),i=document.createRange();i.selectNodeContents(t),a.removeAllRanges(),a.addRange(i)}},function(e){e.fn.replaceText=function(t,i,a){return this.each(function(){var n,s,_=this.firstChild,o=[];if(_)do 3===_.nodeType&&(n=_.nodeValue,(s=n.replace(t,i))!==n&&(!a&&/this.height()}}(jQuery),$.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",classNameRemove:"",timeout:2500},e),$(this).each(function(i,a){function n(){_.removeClass(e.className).data("confirmed",!1).find(".tmp_question").remove(),e.classNameRemove&&_.addClass(e.classNameRemove)}var s,_=$(a);_.html();_.data("confirmed",!1),_.on("click.confirm",function(i){i.preventDefault(),_.data("confirmed")?(t.call(_,i),n()):(_.data("confirmed",!0),e.classNameRemove&&_.removeClass(e.classNameRemove),_.append('?').addClass(e.className).bind("mouseout.confirm",function(){s=setTimeout(n,e.timeout)}).bind("mouseover.confirm",function(){clearTimeout(s)}))}).removeClass(e.className),e.classNameRemove&&_.addClass(e.classNameRemove)}),$(this)},RegExp.quote=function(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},$.fn.contentText=function(e){return $(this).contents().filter(function(){return $(this).text().trim()==e.trim()})},$(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("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}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="mail"),"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_fixed_toggle&&(settings_side_slider_fixed_toggle=!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_records_per_page="undefined"!=typeof localStorage&&null==localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_records_per_page")?20:parseInt(localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_records_per_page")),config_portable_module_filemanager_default_sort="undefined"!=typeof localStorage&&null==localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_default_sort")?"0":localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_default_sort"),config_portable_module_filemanager_hide_tree_view="undefined"!=typeof localStorage&&"true"==localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_hide_tree_view"),config_portable_module_filemanager_tree_expand_search="undefined"==typeof localStorage||"false"!=localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_tree_expand_search"),config_portable_module_filemanager_tree_view_depth="undefined"!=typeof localStorage&&null==localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_tree_view_depth")?2:parseInt(localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_tree_view_depth")),config_portable_module_filemanager_tree_exclude_on_first_load="undefined"==typeof localStorage||"false"!=localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_tree_exclude_on_first_load"),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,#"),config_portable_theme_locale_languages="undefined"!=typeof localStorage&&localStorage.getItem(v___server_hostname+"-config_portable_theme_locale_languages")?localStorage.getItem(v___server_hostname+"-config_portable_theme_locale_languages"):get_server_data("language-full"),config_portable_theme_locale_language="undefined"!=typeof localStorage&&"true"==localStorage.getItem(v___server_hostname+"-config_portable_theme_locale_language"),config_portable_theme_locale_format_full="undefined"==typeof localStorage||localStorage.getItem(v___server_hostname+"-config_portable_theme_locale_format_full")?localStorage.getItem(v___server_hostname+"-config_portable_theme_locale_format_full"):"LLLL",config_portable_theme_locale_format_long="undefined"==typeof localStorage||localStorage.getItem(v___server_hostname+"-config_portable_theme_locale_format_long")?localStorage.getItem(v___server_hostname+"-config_portable_theme_locale_format_long"):"LL",config_portable_theme_locale_format_short="undefined"==typeof localStorage||localStorage.getItem(v___server_hostname+"-config_portable_theme_locale_format_short")?localStorage.getItem(v___server_hostname+"-config_portable_theme_locale_format_short"):"L","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:settings_side_slider_background_refresh_time=parseFloat(settings_side_slider_background_refresh_time),"undefined"==typeof settings_leftmenu_width&&(settings_leftmenu_width=260),"undefined"==typeof settings_navigation_always_collapse&&(settings_navigation_always_collapse=!1),"undefined"==typeof settings_sysinfo_real_time_status&&(settings_sysinfo_real_time_status=!0),"undefined"==typeof settings_sysinfo_real_time_timeout?settings_sysinfo_real_time_timeout=1e3:settings_sysinfo_real_time_timeout=parseFloat(settings_sysinfo_real_time_timeout),"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_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&&($(document).on("submit","form",function(e){if(void 0!==e.originalEvent&&(v___theme_content_history=0),"_blank"===e.target.target){var t=$(this);return void setTimeout(function(){t.removeAttr("target"),get_pjax_content(v___location_resource)},100)}e.preventDefault(),get_onbeforeunload_status()&&$(quirks.active_element()).is("a"+$__theme_event_deselectors)?get_onbeforeunload_message(e,this):get_pjax_action_submit(e,this)}),$(document).on("click","a"+$__theme_default_deselectors,function(e){void 0!==e.originalEvent&&(v___theme_content_history=0),get_onbeforeunload_status()&&$(quirks.active_element()).is("a"+$__theme_event_deselectors)?(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),Core.var.page_user_inactive=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){var a=["fetch.cgi"];if(Test.arrIntersect(a,i.url)&&"1"!=Test.input.radio("show",1))return window.location.replace(i.url),setTimeout(function(){page_remove_progress()},300),!1;progress.start(),"number"==typeof v___theme_postponed_fetcher&&clearInterval(v___theme_postponed_fetcher);var n=$(e.relatedTarget),s=n.attr("href");s=s?s:i.url.replace(v___location_origin,""),clicked_in_nav_menu=n.parent().is("[data-linked], .favorites-dcontainer, .menu-exclude.ui-sortable-handle")||"object"==typeof i.callback&&"reference"===i.callback[0],clicked_in_nav_menu&&check_bundle(s),"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(event,data,status,xhr,options){"object"==typeof options.callback&&"success"===options.callback[0]&&(options.callback[3]?setTimeout(function(){"string"==typeof options.callback[1]?eval(options.callback[1]):window[options.callback[1].apply(this,options.callback[2])]},options.callback[3]):"string"==typeof options.callback[1]?eval(options.callback[1]):window[options.callback[1].apply(this,options.callback[2])])}),$(document).on("pjax:complete",function(e,t,i){v___theme_reload&&theme_reload(),setTimeout(function(){$(".container-fluid-loading").length||progress.end()},10),get_server_data("loading",0,1),v___theme_connection_triggered_origin=0,v___theme_stats_error&&"object"==typeof stats&&stats.general.enable(),navigation_links()}),$(document).on("ready pjax:end",function(e,t){0!==v___available_session&&1!==v___theme_reload&&(navigation_form_control(1),get_pjax_event_end(e,t),setTimeout(function(){var e=navigation_trigger(location.hash,1).replace("#","");if(e&&e.length>0){var t=$('[name="'+e+'"]');t.length&&t[0].scrollIntoView({duration:200,smooth:!0,direction:"vertical",complete:function(){}})}},200),v___page_container.find(".panel > .panel-body:first").one("click mousedown keypress",function(){Core.var.page_user_inactive=0}))}),$(document).on("pjax:popstate",function(e,t){setTimeout(function(){get_pjax_event_end_funcs(0),navigation_links()},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){if(Test.strContains(e,v___page_signin_form))return void(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){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);get_server_data("available-modules",JSON.parse(e))}}),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-get_user_level=1",data:!1,dataType:"text",async:v___available_navigation,success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);Core.var.level=e}}),theme_config("load")),$(function(){if(1===v___initial_load&&v___available_navigation&&(page_display(),navigation_display(),0===get_access_level()&&settings_sysinfo_real_time_status&&load.script(v___server_extensions_path+"/stats/stats",0,["stats.general.timeout = settings_sysinfo_real_time_timeout","stats.general.query()"])),time.tictac(),browser.detect.safari(1)&&$("html").css("overflow","auto"),browser.detect.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.start()},300)}).ajaxSuccess(function(e,t){v___theme_ajax_error=0,v___theme_stats_error&&0===get_access_level()&&settings_sysinfo_real_time_status&&("object"==typeof stats&&stats.general.enable(),v___theme_stats_error=0)}).ajaxError(function(e,t){if(progress.end(),v___theme_ajax_error=1,1===v___theme_connection_triggered_origin&&(0===t.status||400===t.status||404===t.status||500===t.status||502===t.status||503===t.status)){!$(".modal-connection-warning").length&&$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-error=1",data:!1,dataType:"text",timeout:3e3,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_lost")+'',t,!1,"md","danger","unplugged fa-lg","7 modal-connection-warning",0),setTimeout(function(){0===v___theme_connection_reestablish&&(connection_reestablish(),v___theme_connection_reestablish=1,$(".modal-connection-warning").on("hidden.bs.modal",function(){v___theme_connection_reestablish=0,progress.end()}))},1),setTimeout(function(){navigation_render_end(),navigation_detect(),reset_switch_position(),despinnerfy_buttons(),theme_shell_unlock()},100)}})}}),$.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.start(),navigation_links()},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='"+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 a!==-1&&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}}),function(e){e.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()})}}(jQuery),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,o=_.length-1;o>=0;o--){var r=_[o];n.setAttribute(r.name,r.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){var i=document.body.createTextRange();i.moveToElementText(t),i.select()}else if(window.getSelection){var a=window.getSelection(),i=document.createRange();i.selectNodeContents(t),a.removeAllRanges(),a.addRange(i)}},function(e){e.fn.replaceText=function(t,i,a){return this.each(function(){var n,s,_=this.firstChild,o=[];if(_)do 3===_.nodeType&&(n=_.nodeValue,(s=n.replace(t,i))!==n&&(!a&&/this.height()}}(jQuery),$.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",classNameRemove:"",timeout:2500},e),$(this).each(function(i,a){function n(){_.removeClass(e.className).data("confirmed",!1).find(".tmp_question").remove(),e.classNameRemove&&_.addClass(e.classNameRemove)}var s,_=$(a);_.html();_.data("confirmed",!1),_.on("click.confirm",function(i){i.preventDefault(),_.data("confirmed")?(t.call(_,i),n()):(_.data("confirmed",!0),e.classNameRemove&&_.removeClass(e.classNameRemove),_.append('?').addClass(e.className).bind("mouseout.confirm",function(){s=setTimeout(n,e.timeout)}).bind("mouseover.confirm",function(){clearTimeout(s)}))}).removeClass(e.className),e.classNameRemove&&_.addClass(e.classNameRemove)}),$(this)},RegExp.quote=function(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},$.fn.contentText=function(e){return $(this).contents().filter(function(){return $(this).text().trim()==e.trim()})},$(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("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}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="mail"),"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_right_page_hide_persistent_vscroll&&(settings_right_page_hide_persistent_vscroll=!0),"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_fixed_toggle&&(settings_side_slider_fixed_toggle=!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_records_per_page="undefined"!=typeof localStorage&&null==localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_records_per_page")?20:parseInt(localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_records_per_page")),config_portable_module_filemanager_default_sort="undefined"!=typeof localStorage&&null==localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_default_sort")?"0":localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_default_sort"),config_portable_module_filemanager_hide_tree_view="undefined"!=typeof localStorage&&"true"==localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_hide_tree_view"),config_portable_module_filemanager_tree_expand_search="undefined"==typeof localStorage||"false"!=localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_tree_expand_search"),config_portable_module_filemanager_tree_view_depth="undefined"!=typeof localStorage&&null==localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_tree_view_depth")?2:parseInt(localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_tree_view_depth")),config_portable_module_filemanager_tree_exclude_on_first_load="undefined"==typeof localStorage||"false"!=localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_tree_exclude_on_first_load"),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,#"),config_portable_theme_locale_languages="undefined"!=typeof localStorage&&localStorage.getItem(v___server_hostname+"-config_portable_theme_locale_languages")?localStorage.getItem(v___server_hostname+"-config_portable_theme_locale_languages"):get_server_data("language-full"),config_portable_theme_locale_language="undefined"!=typeof localStorage&&"true"==localStorage.getItem(v___server_hostname+"-config_portable_theme_locale_language"),config_portable_theme_locale_format_full="undefined"==typeof localStorage||localStorage.getItem(v___server_hostname+"-config_portable_theme_locale_format_full")?localStorage.getItem(v___server_hostname+"-config_portable_theme_locale_format_full"):"LLLL",config_portable_theme_locale_format_long="undefined"==typeof localStorage||localStorage.getItem(v___server_hostname+"-config_portable_theme_locale_format_long")?localStorage.getItem(v___server_hostname+"-config_portable_theme_locale_format_long"):"LL",config_portable_theme_locale_format_short="undefined"==typeof localStorage||localStorage.getItem(v___server_hostname+"-config_portable_theme_locale_format_short")?localStorage.getItem(v___server_hostname+"-config_portable_theme_locale_format_short"):"L","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:settings_side_slider_background_refresh_time=parseFloat(settings_side_slider_background_refresh_time),"undefined"==typeof settings_leftmenu_width&&(settings_leftmenu_width=260),"undefined"==typeof settings_navigation_always_collapse&&(settings_navigation_always_collapse=!1),"undefined"==typeof settings_sysinfo_real_time_status&&(settings_sysinfo_real_time_status=!0),"undefined"==typeof settings_sysinfo_real_time_timeout?settings_sysinfo_real_time_timeout=1e3:settings_sysinfo_real_time_timeout=parseFloat(settings_sysinfo_real_time_timeout),"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_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&&($(document).on("submit","form",function(e){if(void 0!==e.originalEvent&&(v___theme_content_history=0),"_blank"===e.target.target){var t=$(this);return void setTimeout(function(){t.removeAttr("target"),get_pjax_content(v___location_resource)},100)}e.preventDefault(),get_onbeforeunload_status()&&$(quirks.active_element()).is("a"+$__theme_event_deselectors)?get_onbeforeunload_message(e,this):get_pjax_action_submit(e,this)}),$(document).on("click","a"+$__theme_default_deselectors,function(e){void 0!==e.originalEvent&&(v___theme_content_history=0),get_onbeforeunload_status()&&$(quirks.active_element()).is("a"+$__theme_event_deselectors)?(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),Core.var.page_user_inactive=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){var a=["fetch.cgi"];if(Test.arrIntersect(a,i.url)&&"1"!=Test.input.radio("show",1))return window.location.replace(i.url),setTimeout(function(){page_remove_progress()},300),!1;progress.start(),"number"==typeof v___theme_postponed_fetcher&&clearInterval(v___theme_postponed_fetcher);var n=$(e.relatedTarget),s=n.attr("href");s=s?s:i.url.replace(v___location_origin,""),clicked_in_nav_menu=n.parent().is("[data-linked], .favorites-dcontainer, .menu-exclude.ui-sortable-handle")||"object"==typeof i.callback&&"reference"===i.callback[0],clicked_in_nav_menu&&check_bundle(s),"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(event,data,status,xhr,options){"object"==typeof options.callback&&"success"===options.callback[0]&&(options.callback[3]?setTimeout(function(){"string"==typeof options.callback[1]?eval(options.callback[1]):window[options.callback[1].apply(this,options.callback[2])]},options.callback[3]):"string"==typeof options.callback[1]?eval(options.callback[1]):window[options.callback[1].apply(this,options.callback[2])])}),$(document).on("pjax:complete",function(e,t,i){v___theme_reload&&theme_reload(),setTimeout(function(){$(".container-fluid-loading").length||progress.end()},10),get_server_data("loading",0,1),v___theme_connection_triggered_origin=0,v___theme_stats_error&&"object"==typeof stats&&stats.general.enable(),navigation_links()}),$(document).on("ready pjax:end",function(e,t){0!==v___available_session&&1!==v___theme_reload&&(navigation_form_control(1),get_pjax_event_end(e,t),setTimeout(function(){var e=navigation_trigger(location.hash,1).replace("#","");if(e&&e.length>0){var t=$('[name="'+e+'"]');t.length&&t[0].scrollIntoView({duration:200,smooth:!0,direction:"vertical",complete:function(){}})}},200),v___page_container.find(".panel > .panel-body:first").one("click mousedown keypress",function(){Core.var.page_user_inactive=0}))}),$(document).on("pjax:popstate",function(e,t){setTimeout(function(){get_pjax_event_end_funcs(0),navigation_links()},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){if(Test.strContains(e,v___page_signin_form))return void(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){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);get_server_data("available-modules",JSON.parse(e))}}),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-get_user_level=1",data:!1,dataType:"text",async:v___available_navigation,success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);Core.var.level=e}}),theme_config("load")),$(function(){if(1===v___initial_load&&v___available_navigation&&(page_display(),navigation_display(),0===get_access_level()&&settings_sysinfo_real_time_status&&load.script(v___server_extensions_path+"/stats/stats",0,["stats.general.timeout = settings_sysinfo_real_time_timeout","stats.general.query()"])),time.tictac(),browser.detect.safari(1)&&$("html").css("overflow","auto"),browser.detect.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.start()},300)}).ajaxSuccess(function(e,t){v___theme_ajax_error=0,v___theme_stats_error&&0===get_access_level()&&settings_sysinfo_real_time_status&&("object"==typeof stats&&stats.general.enable(),v___theme_stats_error=0)}).ajaxError(function(e,t){if(progress.end(),v___theme_ajax_error=1,1===v___theme_connection_triggered_origin&&(0===t.status||400===t.status||404===t.status||500===t.status||502===t.status||503===t.status)){!$(".modal-connection-warning").length&&$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-error=1",data:!1,dataType:"text",timeout:3e3,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_lost")+'',t,!1,"md","danger","unplugged fa-lg","7 modal-connection-warning",0),setTimeout(function(){0===v___theme_connection_reestablish&&(connection_reestablish(),v___theme_connection_reestablish=1,$(".modal-connection-warning").on("hidden.bs.modal",function(){v___theme_connection_reestablish=0,progress.end()}))},1),setTimeout(function(){navigation_render_end(),navigation_detect(),reset_switch_position(),despinnerfy_buttons(),theme_shell_unlock()},100)}})}}),$.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.start(),navigation_links()},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='","",1);i&&(i=i.replace(/<(b)[^>]*>[^<]*(<\/b>)/i,""),K=i),$(".-shell-port-cmd").next("pre").replaceWith(i),b.scrollTop(b[0].scrollHeight)}},!1),e},type:"POST",url:g+"?stripped=1&stripped=2",data:R,dataType:"text",cache:!1,contentType:!1,processData:!1,complete:function(e){if($(".-shell-port-container").removeClass("progressing"),e=e.responseText,Test.strContains(e,v___page_signin_form))return void(v___available_session=0);var i=$(".-shell-port-type").text(),n=$(e).find("pre").length?$(e).find("pre"):$(e).filter("pre"),s=n.html().replace(/>>/g,">"+i),o=$(e).find('input[name="previous"][type="hidden"]').map(function(){return Convert.htmlEscape($(this).val())}).get();localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify(o)),newPwd=$(e).find('input[name="pwd"]').val(),a.find("pre").append(w?s.replace(new RegExp(x,"g"),w):s),y.text(S?S:newPwd==y.attr("data-home")?"~":newPwd.split("/").filter(function(e){return""!=$.trim(e)}).slice(-1)[0]).attr("data-pwd",S?S:newPwd).attr("title",S?S:newPwd),$(".-shell-port-cmd").next("pre").remove(),theme_shell_adapt(),theme_shell_clear(t),b.scrollTop(b[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),i=t.find("input.sidebar-search"),a=i.val(),n=$("body").find(".-shell-port-");a&&13==e.keyCode&&(a.startsWith("!")?theme_shell_open(n,a):($(this).trigger("submit"),i.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",'i[data-target-tooltip-callback="theme_xhred_tooltip_side_slider_pinned"]',function(e){var t="1"==get_server_data("data-slider-fixed")?0:1;Core.var.slider_pinned=t,settings_side_slider_fixed=!settings_side_slider_fixed,set_side_slider_visibility(t),t?$(this).removeClass("fa-rotate-45"):$(this).addClass("fa-rotate-45")}),$("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"),n=a.indexOf("cpu_")>-1?"cpu":a.indexOf("mem_")>-1?"mem":a.indexOf("virt_")>-1?"virt":"disk";"cpu"==n&&i?t=v___location_prefix+"/proc/index_cpu.cgi":"mem"!=n&&"virt"!=n||!i?"disk"==n&&Core.moduleAvailable("disk-usage")?t=v___location_prefix+"/disk-usage":"disk"==n&&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)})}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.outerHeight-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){if(!$(this).hasClass("cursor-na")){var t=Core.moduleAvailable("virtual-server")?"virtual-server":"system-status",i=$(".right-side-tabs-dismiss .fa-reload");i.addClass("fa-spin-fastest cursor-na"),$.ajax({type:"GET",url:v___location_prefix+"/"+t+"/recollect.cgi",data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);"sysinfo.cgi"===v___location_file&&get_pjax_content(v___location_prefix+"/sysinfo.cgi"),information_update()},error:function(e){i.removeClass("fa-spin-fastest cursor-na"),theme_messenger(''+theme_language("theme_xhred_sysinfo_update_failed"),20,"error","sysinfoRecollect")}})}}),$(".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)}),$("body").on("click",".-shell-port-close",function(t){theme_shell_check_available()&&theme_shell_close(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(),n=$(".sub_active").text().trim(),s="",o="";($t_uri_virtualmin||$t_uri_cloudmin)&&(s=$("aside .ui_select option:selected").text()),$('body[class^="'+v___module_file_manager+'"]').length&&(o=URI.parseQuery(URI(v___location).query()).path,o=o?"["+o+"]":"[/]"),favorites_add(t,(s.length?s+" - ":"")+(a.length?a+"/":"")+(n.length?n+(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","a#atclearcache",function(e){set_onbeforeunload_status(0,0),localStorage.clear(),$(".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]),setTimeout(function(){theme_reload()},500)}),$("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(".fa-trash-o")||$(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=$(this),i="1"==t.data("stable")?1:0,a="1"==t.data("force")?1:0;theme.update(i,a)}),$("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)})):("0px"==___________content_initial_?$("#content").removeAttr("style"):$("#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;var e=($(this),$("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+"..."+v___theme_version;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"),n=$(this).find(".modal-body h4:first");if(!$(this).find(".modal-body h4:first .diffctl").length){var s=new RegExp(RegExp.quote(________version_curr_text),"g");________multi_in_branch&&(a.replaceText(s,""+_____version__x+""),a.replaceText(/Version/,"Versions"));var o=$(this).find('.modal-body h4:contains("beta")').length;if(a.length&&o){var _=$(this).find('.modal-body a[href*="authentic-theme/releases"]:first').text().match(/-?(?:\d+(?:\.\d*)?|\.\d+)/);latest_release=parseFloat(_?_[0]:v___theme_version);var r=n.text(),l=r.split("..."),d=0,c=$('a.version_separator[href*="releases"]:not(:empty)').first().text();l[1]&&(d=l[0].replace("Versions ",""),n.text(n.text().replace(d,c))),n.append(''),n.after(' '+i+"")}else n.append('').append(''+________version_curr_text+"")}var p=[];$.each($(this).find('li span:contains("Fixed bugs")'),function(){var e=$(this),t=$(this).parent("li"),i=t.parent("ul"),a=t.find("a:not(.bctl)"),n=a.length;________multi_in_branch?(p.push(a),1===i.find("li").length&&(i.prev("hr").prev("a").remove(),i.prev("hr").remove(),i.addClass("no-data")),t.remove()):(e.html([e.text().slice(0,6),n+" ",e.text().slice(6)].join("")),t.find("a:first").before(''),t.find("a.bctl").click(function(e){a.toggleClass("hidden"),t.find("a.bctl i").toggleClass("fa-minus-square-o")}),a.addClass("obj-popup hidden"))}).promise().done(function(){function e(e,t){return parseInt($(t).text().replace("#",""))
'+Convert.htmlEscape(t)+"
"),10,"success","newGeneratedPassword")}),$("body").on("click",'aside li[data-linked] a[href="'+v___location_prefix+"/shell/?"+$__theme_navigation+'"], aside a[href="'+v___location_prefix+"/server-manager/shell.cgi?"+$__theme_navigation+'"], aside a[href*="shell=1"]:not(a[href*="login.cgi"])',function(e){e.preventDefault(),e.stopPropagation(),$(".user-link.ported-console:visible").trigger("click")}),$("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()}}),$("body").on("click",'form[action*="save_user.cgi"] button[name="but_switch"], a[href*="virtual-server/switch_user.cgi"]',function(e){v___theme_reload=1}),$(window).on("resize",function(){page_resized(),theme_shell_adapt()}),$("body").on("click",'[href*="javascript:history"]',function(e){v___theme_content_history&&(e.preventDefault(),e.stopPropagation(),v___theme_content_history=0,get_pjax_content(v___location_directory))}),$("body").on("click",".ui_multi_select_row select[multiple] option",function(e){var t=$(this).parent("select"),i=t.parent("td"),a=i.parent("tr"),n=i.index();e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||0!==n&&2!==n||a.find("td:eq(1)").find('[onclick*="multi_select_move"][onclick*="'+(n?0:1)+'"]').trigger("click")}),$("body").on("click",'.container-fluid a[href], .container-fluid button, .container-fluid input[type="button"], .right-side-tabs a[href], .right-side-tabs button, .right-side-tabs input[type="button"], .right-side-tabs .info-container .graph-container-fw, .right-side-tabs-dismiss i, .favorites-menu li a',function(){v___blocked_navigation=0}),$("body").on("click",'form[action*="backup.cgi/backup.tgz"] input[name^="dest0_"]',function(){var e=$("form").find('input[name="fmt"][value="0"]'),t=$("form").find('input[name="fmt"][value="1"], input[name="fmt"][value="2"]');"4"==$(this).val()?(t.prop("disabled",!0),e.prop("checked",!0)):t.prop("disabled",!1)}),document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState?v___theme_state_visible=0:v___theme_state_visible=1,theme.visibility(v___theme_state_visible)}),window.addEventListener("focus",function(){v___theme_state_visible=1,theme.visibility(v___theme_state_visible)}),window.addEventListener("blur",function(){v___theme_state_visible=0,theme.visibility(v___theme_state_visible)}),$("body").on("click",".help_popup",function(e){e.stopPropagation(),e.preventDefault();var t=$(this),i=$(this).attr("href"),a=$(this).parents("td");a.append(''),$.ajax({type:"POST",url:t.attr("href").indexOf("showpass.cgi")>-1?v___location_directory_trail_slashed+t.attr("href"):t.attr("href"),data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);a.find("._tmp_help_content").html(e.replace(/<(script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"")),$help_title=a.find("._tmp_help_content .ui_subheading").first().text(),$help_body=a.find("._tmp_help_content title").remove(),$help_body=a.find("._tmp_help_content h3.ui_subheading").remove(),$help_body=a.find("._tmp_help_content h3").addClass("h3_help"),$help_body=a.find("._tmp_help_content hr").remove();var n=a.find("._tmp_help_content a");void 0!==n.attr("href")&&$.each(n,function(){var e=$(this).attr("href");e.startsWith("http")?$help_body=a.find("._tmp_help_content a").attr("target","_blank").css("text-decoration","none").css("font-style","italic"):($("body").undelegate('a[href="'+e+'"]',"click"),$("body").one("click",'a[href="'+e+'"]',function(a){if($(a.target).is($('a[href="'+e+'"]'))){a.preventDefault();var n=Convert.pathnamePopLast(t.attr("href"))+"/"+e;$('a[href="'+i+'"].help_popup').attr("data-initial",i).attr("data-substituted",n),$('a[href="'+i+'"].help_popup').attr("href",n),t.trigger("click")}}))}),$help_body=a.find("._tmp_help_content").html(),a.find("._tmp_help_content").remove();var s='',o=t.attr("href").indexOf("showpass.cgi")>-1,_=t.attr("href").indexOf("/locale")>-1;o&&(s=""),t.popover({html:!0,container:".container-fluid",template:'