From 1d6c20663fdd2def7d185f22c828117936e9a1e8 Mon Sep 17 00:00:00 2001 From: Ilia Rostovtsev Date: Thu, 22 Feb 2018 17:36:27 +0300 Subject: [PATCH] Fix to stop reopening side slider on using context menu --- unauthenticated/js/bundle.min.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unauthenticated/js/bundle.min.js b/unauthenticated/js/bundle.min.js index d0aa6ecd3..4b3dcad1e 100644 --- a/unauthenticated/js/bundle.min.js +++ b/unauthenticated/js/bundle.min.js @@ -203,5 +203,5 @@ $('[data-dcontainer="1"]').tooltip({selector:'[data-toggle="tooltip"]:not([data- // $t___license_vm = get_server_data("virtual-server-license"), // $t___license_cm = get_server_data("server-manager-license"), update_navigation_module_name()}function editor_init_check(){return 1===$("textarea").length&&("data"===$("textarea").attr("name")||"text"===$("textarea").attr("name")||"conf"===$("textarea").attr("name")||"script"===$("textarea").attr("name")||Core.curModuleFileQuery("virtual-server","edit_html.cgi","textok=")||v___location_file.indexOf("manual")>-1)?Core.curModule("gnupg")||Core.curModuleFile("virtual-server","mass_ucreate_form.cgi")||Core.curModuleFile("virtual-server","mass_create_form.cgi")||Core.curModuleFile("server-manager","edit_pubkey.cgi")||Core.curModuleFile("server-manager","edit_key.cgi")||check_location_resource("/config.cgi?server-manager")||Core.curModuleFile("useradmin","batch_form.cgi")||Core.curModuleFile("useradmin","gbatch_form.cgi")||"mass_form.cgi"==v___location_file||"notes"===$("textarea").attr("id")?0:1:0}function editor_init(e,t,i,a,n,s,_,r,o){_=void 0!==_&&0!=_,o=void 0!==o&&0!=o&&o,_||(n=void 0!==n&&0!=n,s=void 0!==s&&0!=s,$.each(e,function(_,l){var c=($(this),["phpini","bind8"]),d=v___module;c.indexOf(d)>=0&&$(this).data("name","data"),CodeMirror.modeURL=v___location_prefix+"/unauthenticated/js/codemirror/mode/%N/%N.js";var h=null,f="text/plain",p=!1;v___location_path==v___location_prefix+"/custom/view.cgi"?p=$('form[action="save.cgi"]').find(".table-title").find("tt").text():$('body[class^="'+v___module_file_manager+'"]').length?(p=t.replace(/<(?:.|\n)*?>/gm,"").replace(/ *\([^)]*\) */g,""),t=p):p=$('select[name="file"]').val();var g,h,f,u=t?t:p;if(g=/.+\.([^.]+)$/.exec(u)){var m=CodeMirror.findModeByExtension(g[1]);m&&(h=m.mode,f=m.mime)}else if(/\//.test(u)){var m=CodeMirror.findModeByMIME(u);m&&(h=m.mode,f=u)}else h=null,f="text/plain";if("apache"==d||"postfix"==d||"dovecot"==d||"spam"==d||"sendmail"==d||"samba"==d||"proftpd"==d||"fail2ban"==d||"sshd"==d||"squid"==d||"ldap-server"==d||"mysql"==d||"postgresql"==d?(h="rpm",f="rpm-spec"):"init"==d||"procmail"==d||"shorewall"==d||Test.strContains(d,"nginx")||Test.strContains(d,"cshrc")?(h="shell",f="text/x-sh"):"phpini"==d?(h="z80",f="text/x-z80"):"bind8"==d||Core.curModuleFile("virtual-server","manual_records.cgi")?(h="ttcn",f="text/x-ttcn"):"virtual-server"==d&&"body"==$(this).attr("name")&&(h="htmlmixed",f="text/html"),$current_file=v___location_path.replace(/^\//g,""),$current_file&&($current_file=$current_file.split("/")[1]),editor_init_check()||$(".jsPanel").length||n){CodeMirror.commands.autocomplete=function(e){e.showHint({hint:CodeMirror.hint.anyword})},window["__cm_editor_"+a]=CodeMirror.fromTextArea(l,{tabMode:"indent",matchBrackets:!0,lineNumbers:!0,keyMap:"sublime",highlightSelectionMatches:{showToken:/\w/,annotateScrollbar:!0},lineWrapping:!0,indentUnit:0,autofocus:!0,foldGutter:!0,continueComments:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{"Ctrl-Space":"autocomplete"},styleActiveLine:!0,theme:v___theme_night_mode?"monokai":settings_cm_editor_palette}),window["__cm_editor_"+a].setOption("mode",f),"rpm"!=h&&CodeMirror.autoLoadMode(window["__cm_editor_"+a],h),setTimeout(function(){$("body").find(".jsPanel").length||$(".CodeMirror").before('');var e=$(".fa.fa-question-circle.__helper, .__helper___");e.popover({container:"body",placement:"auto left",title:''+theme_language("theme_xhred_editor_help_title"),content:theme_language("theme_xhred_editor_help_content"),trigger:"click",html:!0}),e.on("inserted.bs.popover",function(){$("body").find(".theme_xhred_editor_help").parents(".popover").addClass("_helper")})},100),s&&window["__cm_editor_"+a].on("change",function(e,t){Test.strContains(v___location_path,"init/edit_")||set_onbeforeunload_status(1,0)});var v=$(".container-fluid > .panel > .panel-body").attr("data-cm-line"),b=$(".container-fluid > .panel > .panel-body").attr("data-cm-state");if(r&&v&&__cm_editor_static.setCursor(parseInt(v.split(",")[0]),parseInt(v.split(",")[1])),o){var x=$(l).parents("form"),y=x.find('input[type="submit"]:visible, .ui_form_end_submit.btn-success[type="button"]:visible');x.on("submit",function(e){set_onbeforeunload_status(0,0)}),y.prev("br").length&&y.addClass("margined-top--10"),$(window).resize(function(){window["__cm_editor_"+a].setSize(null,$(window).outerHeight()*o)}).trigger("resize"),window["__cm_editor_"+a].on("change",function(){set_onbeforeunload_status(1,0),y.removeClass("btn-default btn-success").addClass("btn-danger")})}else"edit_cron.cgi"!=$current_file&&v___location_path!=v___location_prefix+"/virtualmin-password-recovery/"&&v___location_path!=v___location_prefix+"/bind8/forward_form.cgi"&&($resize=i?i:2.8,i?(window["__cm_editor_"+a].on("change",function(t,i){e.val(window["__cm_editor_"+a].getValue()),$(":focus").parents(".jsPanel").is(".jsPanel")&&($(":focus").parents(".jsPanel").find("._filemanager_file_editor_save").addClass("text-danger __locked__"),$(":focus").parents(".jsPanel").find("select[data-encoding]").addClass("pointer-events-none"))}),window["__cm_editor_"+a].setSize($resize[0],$resize[1])):($window_height=$(window).outerHeight()-$(window).outerHeight()/$resize,window["__cm_editor_"+a].setSize(null,$window_height),$(window).resize(function(){$window_height=$(window).outerHeight()-$(window).outerHeight()/$resize,window["__cm_editor_"+a].setSize(null,$window_height)})));$(".sub_table_container").find(".CodeMirror").length&&($(".sub_table_container").addClass("xcontent-force-no-styling"),$(".panel-body").addClass("xqcontent-forced")),editor_background_save(r&&!!v&&"true"==b)}}))}function viewer_init_check(){return $('body[class^="syslog"]').length&&v___location_query&&v___location_query.indexOf("view=1")>-1||$('body[class^="syslog-ng"]').length&&v___location_file&&"view_log.cgi"===v___location_file&&v___location_query&&v___location_query.indexOf("dest=")>-1?1:0}function viewer_init(){if($("pre[data-cm-viewer]").remove(),$(".panel-body pre").find("i").length){var e=0,t=$('.panel-body [name="filter"]');t.length&&t.val()&&(e=1),$(".panel-body pre > i").addClass("label label-transparent-15").text(theme_language(e?"theme_xhred_global_no_results_found":"theme_xhred_global_empty").toUpperCase()),$(".panel-body pre").addClass("text-center")}else{var i=!1;$(".panel-body pre").each(function(e,t){var a=$(this),n=Convert.htmlStrip(a.html());a.addClass("hidden"),a.after("
"),$target=$("pre[data-cm-viewer-id-"+(e+1)+"]");var s=$.trim($('[name="filter"]:first').val());s&&s.length&&CodeMirror.defineMode("highlightSearch",function(e,t){var i={token:function(e,t){var i=e.string.match(new RegExp(s,"i"));if(i&&i[1]&&(s="",$.each(i,function(e,t){Test.numeric(e)&&e>0&&(s.length?s+="|"+t:s=t)})),s=new RegExp(s,"i"),e.match(s))return"highlightSearch";for(;null!=e.next()&&!e.match(s,!1););return null}};return CodeMirror.overlayMode(CodeMirror.getMode(e,t.backdrop),i)}),i=CodeMirror($target[0],{value:n,lineNumbers:!1,mode:s?"highlightSearch":null,theme:v___theme_night_mode?"monokai":settings_cm_editor_palette,readOnly:!0})}).promise().done(function(){})}}function notifications(e,t,i){if(settings_side_slider_enabled&&settings_side_slider_notifications_enabled){var e=Convert.htmlUnEscape($.trim(e.replace(/(<([^>]+)>)/gi,""))).replace(/\s+/g," "),t=Convert.htmlUnEscape($.trim(t.replace(/(<([^>]+)>)/gi,""))).replace(/\s+/g," ");if("granted"===Notification.permission){new Notification(e,{body:t,icon:v___location_prefix+"/images/notifications_"+i+".png"}).onclick=function(){window.focus()}}else"denied"!==Notification.permission&&Notification.requestPermission(function(a){if("granted"===a){new Notification(e,{body:t,icon:v___location_prefix+"/images/notifications_"+i+".png"}).onclick=function(){window.focus()}}})}}function unbuffered_header_post(e){if(Test.strContains(e.responseText,"theme_post_save")){var t=e.responseText.match(/theme_post_save(.*)$/gm);if(t){navigation_update(t[0].split("=")[1])}}}function unbuffered_header_processor_allow(e){var t=URI(v___location),i=t.path();return void 0!==e&&(i=e),i&&Test.strContains(i,".cgi")&&(Test.strContains(i,"webmin/install_theme.cgi")||Test.strContains(i,"usermin/install_theme.cgi")||i.indexOf("/virtual-server/import.cgi")>-1||i.indexOf("/virtual-server/edit_newlinks.cgi")>-1||i.indexOf("/virtual-server/postsave.cgi")>-1||i.indexOf("/virtual-server/validate.cgi")>-1||i.indexOf("/server-manager/edit_serv.cgi")>-1||i.indexOf("/server-manager/save_serv.cgi")>-1||i.indexOf("/server-manager/index.cgi")>-1||i.indexOf("/server-manager/list_ifaces.cgi")>-1||i.indexOf("/server-manager/mass_update.cgi")>-1||i.indexOf("/server-manager/get_images.cgi")>-1||i.indexOf("/server-manager/edit_newlinks.cgi")>-1||i.indexOf("/server-manager/list_gces.cgi")>-1||i.indexOf("/server-manager/list_ec2s.cgi")>-1||i.indexOf("/server-manager/unpause.cgi")>-1||i.indexOf("/server-manager/find.cgi")>-1||i.indexOf("useradmin/batch_exec.cgi")>-1||i.indexOf("useradmin/gbatch_exec.cgi")>-1||i.indexOf("useradmin/mass_delete_user.cgi")>-1||i.indexOf("virtual-server/domain_setup.cgi")>-1||i.indexOf("virtual-server/upgrade.cgi")>-1||i.indexOf("virtual-server/mass_create.cgi")>-1||i.indexOf("virtual-server/restore.cgi")>-1||i.indexOf("virtual-server/save_newip.cgi")>-1||i.indexOf("virtual-server/mass_domains_change.cgi")>-1||i.indexOf("virtual-server/save_domain.cgi")>-1||i.indexOf("virtual-server/backup.cgi")>-1||i.indexOf("virtual-server/save_phpmode.cgi")>-1||i.indexOf("virtual-server/script_install.cgi")>-1||i.indexOf("virtual-server/mass_change.cgi")>-1||i.indexOf("virtual-server/save_ratelimit.cgi")>-1||i.indexOf("virtual-server/mass_scripts.cgi")>-1||i.indexOf("virtual-server/mass_upgrade.cgi")>-1||i.indexOf("virtual-server/save_newips.cgi")>-1||i.indexOf("virtual-server/letsencrypt.cgi")>-1||i.indexOf("virtual-server/migrate.cgi")>-1||i.indexOf("virtual-server/save_mail.cgi")>-1||i.indexOf("virtual-server/mass_delete_domains.cgi")>-1||i.indexOf("virtual-server/delete_domain.cgi")>-1||i.indexOf("virtual-server/unscript_install.cgi")>-1||i.indexOf("virtual-server/mass_uninstall.cgi")>-1||i.indexOf("virtual-server/clone.cgi")>-1||i.indexOf("virtual-server/fix_symlinks.cgi")>-1||i.indexOf("virtual-server/disable_domain.cgi")>-1||i.indexOf("virtual-server/delete_databases.cgi")>-1||i.indexOf("virtual-server/move.cgi")>-1||i.indexOf("virtual-server/enable_domain.cgi")>-1||i.indexOf("virtual-server/transfer.cgi")>-1||i.indexOf("virtual-server/mass_disable.cgi")>-1||i.indexOf("virtual-server/rename.cgi")>-1||i.indexOf("virtual-server/save_dbname.cgi")>-1||i.indexOf("virtual-server/mass_enable.cgi")>-1||i.indexOf("virtual-server/save_frame.cgi")>-1||i.indexOf("virtual-server/check.cgi")>-1||i.indexOf("virtual-server/save_newchroot.cgi")>-1||i.indexOf("virtual-server/enable_dkim.cgi")>-1||i.indexOf("virtual-server/save_proxy.cgi")>-1||i.indexOf("virtual-server/save_dbpass.cgi")>-1||i.indexOf("virtual-server/save_dbhosts.cgi")>-1||i.indexOf("virtual-server/unalias.cgi")>-1||i.indexOf("virtual-server/save_newautoconfig.cgi")>-1||i.indexOf("virtual-server/quotacheck.cgi")>-1||i.indexOf("virtual-server/unsub.cgi")>-1||i.indexOf("virtual-server/save_domdkim.cgi")>-1||i.indexOf("virtual-server/fix_modphp.cgi")>-1||i.indexOf("virtual-server/connectivity.cgi")>-1||i.indexOf("virtual-server/all_webmin.cgi")>-1||i.indexOf("virtualmin-support/send_ticket.cgi")>-1||i.indexOf("virtualmin-support/enable_login.cgi")>-1||i.indexOf("virtualmin-support/disable_login.cgi")>-1||i.indexOf("server-manager/create.cgi")>-1||i.indexOf("server-manager/mass.cgi")>-1||i.indexOf("server-manager/manual_image.cgi")>-1||i.indexOf("server-manager/save_limits.cgi")>-1||i.indexOf("server-manager/upgrade.cgi")>-1||i.indexOf("server-manager/empty.cgi")>-1||i.indexOf("server-manager/save_pass.cgi")>-1||i.indexOf("server-manager/create_image.cgi")>-1||i.indexOf("server-manager/restore.cgi")>-1||i.indexOf("server-manager/clone.cgi")>-1||i.indexOf("server-manager/scan.cgi")>-1||i.indexOf("server-manager/add.cgi")>-1||i.indexOf("server-manager/gcescan.cgi")>-1||i.indexOf("server-manager/create_gceattach.cgi")>-1||i.indexOf("server-manager/ec2scan.cgi")>-1||i.indexOf("server-manager/create_domain.cgi")>-1||i.indexOf("server-manager/restore_domain.cgi")>-1||i.indexOf("server-manager/create_ec2attach.cgi")>-1||i.indexOf("server-manager/newami.cgi")>-1||i.indexOf("server-manager/move_disk.cgi")>-1||i.indexOf("server-manager/convert_image.cgi")>-1||i.indexOf("server-manager/save_vcpus.cgi")>-1||i.indexOf("server-manager/boot.cgi")>-1||i.indexOf("server-manager/delete_backuplogs.cgi")>-1||i.indexOf("server-manager/mass_script.cgi")>-1||i.indexOf("server-manager/save_ec2address.cgi")>-1||i.indexOf("server-manager/mass_move.cgi")>-1||i.indexOf("server-manager/delete_ec2attach.cgi")>-1||i.indexOf("server-manager/move.cgi")>-1||i.indexOf("server-manager/backup.cgi")>-1||i.indexOf("server-manager/create_dimage.cgi")>-1||i.indexOf("server-manager/massupload.cgi")>-1||i.indexOf("server-manager/delete_volumes.cgi")>-1||i.indexOf("server-manager/delete_ec2_snapshots.cgi")>-1||i.indexOf("server-manager/download.cgi")>-1||i.indexOf("server-manager/create_gdisk.cgi")>-1||i.indexOf("server-manager/failover.cgi")>-1||i.indexOf("server-manager/create_dkvolume.cgi")>-1||i.indexOf("server-manager/upload.cgi")>-1||i.indexOf("server-manager/transfer.cgi")>-1||i.indexOf("server-manager/delete_gceattach.cgi")>-1||i.indexOf("server-manager/reset.cgi")>-1||i.indexOf("server-manager/find.cgi")>-1||i.indexOf("server-manager/create_volume.cgi")>-1||i.indexOf("server-manager/create_gsnapshot.cgi")>-1||i.indexOf("server-manager/create_gimage.cgi")>-1||i.indexOf("server-manager/exec_vbackup.cgi")>-1||i.indexOf("server-manager/unpause.cgi")>-1||i.indexOf("server-manager/pause.cgi")>-1||i.indexOf("server-manager/create_ec2_snapshot.cgi")>-1||i.indexOf("server-manager/delete_addresses.cgi")>-1||i.indexOf("server-manager/exec_vsync.cgi")>-1||i.indexOf("server-manager/create_address.cgi")>-1||i.indexOf("cluster-usermin/upgrade.cgi")>-1||i.indexOf("cluster-usermin/install.cgi")>-1||i.indexOf("cluster-usermin/update.cgi")>-1||i.indexOf("ldap-useradmin/batch_exec.cgi")>-1||i.indexOf("ldap-useradmin/mass_delete_user.cgi")>-1||i.indexOf("usermin/upgrade.cgi")>-1||i.indexOf("usermin/update.cgi")>-1||i.indexOf("cpan/download.cgi")>-1||i.indexOf("cpan/install.cgi")>-1||i.indexOf("burner/save_profile.cgi")>-1||i.indexOf("burner/burn.cgi")>-1||i.indexOf("bind8/mass_create.cgi")>-1||i.indexOf("bind8/mass_rcreate.cgi")>-1||i.indexOf("bind8/mass_delete.cgi")>-1||i.indexOf("bind8/mass_update.cgi")>-1||i.indexOf("bind8/zone_dnssecmigrate_dt.cgi")>-1||i.indexOf("bind8/mass_rdelete.cgi")>-1||i.indexOf("bind8/enable_zonekey.cgi")>-1||i.indexOf("bind8/enable_zonedt.cgi")>-1||i.indexOf("bind8/disable_zonedt.cgi")>-1||i.indexOf("webalizer/save_log.cgi")>-1||i.indexOf("bacula-backup/restore.cgi")>-1||i.indexOf("bacula-backup/backup.cgi")>-1||i.indexOf("bacula-backup/gbackup.cgi")>-1||i.indexOf("bacula-backup/label.cgi")>-1||i.indexOf("bacula-backup/mount.cgi")>-1||i.indexOf("cluster-software/install_pack.cgi")>-1||i.indexOf("updown/download.cgi")>-1||i.indexOf("software/install_pack.cgi")>-1||i.indexOf("software/do_install.cgi")>-1||i.indexOf("software/apt_upgrade.cgi")>-1||i.indexOf("software/rhn_check.cgi")>-1||i.indexOf("software/yum_upgrade.cgi")>-1||i.indexOf("software/urpmi_upgrade.cgi")>-1||i.indexOf("software/csw_upgrade.cgi")>-1||i.indexOf("software/ports_upgrade.cgi")>-1||i.indexOf("webmin/letsencrypt.cgi")>-1||i.indexOf("webmin/delete_webmincron.cgi")>-1||i.indexOf("webmin/test_sendmail.cgi")>-1||i.indexOf("package-updates/update.cgi")>-1||i.indexOf("custom/run.cgi")>-1||i.indexOf("custom/sql.cgi")>-1||i.indexOf("virtualmin-init/save.cgi")>-1||i.indexOf("virtualmin-init/mass.cgi")>-1||i.indexOf("backup-config/save.cgi")>-1||i.indexOf("squid/init_cache.cgi")>-1||i.indexOf("squid/clear.cgi")>-1||i.indexOf("squid/chown.cgi")>-1||i.indexOf("ldap-client/check.cgi")>-1||i.indexOf("sendmail/del_mailqs.cgi")>-1||i.indexOf("sendmail/flushq.cgi")>-1||i.indexOf("init/mass_start_stop.cgi")>-1||i.indexOf("init/mass_launchd.cgi")>-1||i.indexOf("init/mass_systemd.cgi")>-1||i.indexOf("init/mass_upstarts.cgi")>-1||i.indexOf("init/mass_rcs.cgi")>-1||i.indexOf("init/save_services.cgi")>-1||i.indexOf("ldap-server/create.cgi")>-1||i.indexOf("change-user/change.cgi")>-1||i.indexOf("virtualmin-slavedns/save.cgi")>-1||i.indexOf("proc/trace.cgi")>-1||i.indexOf("proc/run.cgi")>-1||i.indexOf("proc/kill_proc_list.cgi")>-1||i.indexOf("fsdump/backup.cgi")>-1||i.indexOf("fsdump/restore.cgi")>-1||i.indexOf("webmin_search.cgi")>-1||i.indexOf("security-updates/update.cgi")>-1||i.indexOf("virtualmin-mailrelay/save.cgi")>-1||i.indexOf("cluster-copy/exec.cgi")>-1||i.indexOf("cron/exec_cron.cgi")>-1||i.indexOf("virtualmin-registrar/import.cgi")>-1||i.indexOf("virtualmin-registrar/save_ns.cgi")>-1||i.indexOf("virtualmin-registrar/transfer.cgi")>-1||i.indexOf("virtualmin-registrar/renew.cgi")>-1||i.indexOf("virtualmin-registrar/create.cgi")>-1||i.indexOf("htaccess-htpasswd/search.cgi")>-1||i.indexOf("acl/makedn.cgi")>-1||i.indexOf("acl/cert_issue.cgi")>-1||i.indexOf("acl/maketables.cgi")>-1||i.indexOf("acl/schema.cgi")>-1||i.indexOf("filter/move.cgi")>-1||i.indexOf("fetchmail/check.cgi")>-1||i.indexOf("servers/find.cgi")>-1||i.indexOf("cluster-cron/exec.cgi")>-1||i.indexOf("raid/mkfs.cgi")>-1||i.indexOf("lvm/pvmove.cgi")>-1||i.indexOf("lvm/mkfs.cgi")>-1||i.indexOf("ppp-client/init.cgi")>-1||i.indexOf("fdisk/mkfs.cgi")>-1||i.indexOf("fdisk/tunefs.cgi")>-1||i.indexOf("fdisk/fsck.cgi")>-1||i.indexOf("spam/deleteall_awl.cgi")>-1||i.indexOf("quota/check_quotas.cgi")>-1||i.indexOf("virtualmin-awstats/generate.cgi")>-1||i.indexOf("postfix/flushq.cgi")>-1||i.indexOf("/webmin/upgrade.cgi")>-1)?1:0}function unbuffered_header_processor_allow_scroll(){var e=["webmin_search.cgi"];return Test.arrContains(e,v___location_file)?0:1}function unbuffered_header_processor(e,t){if(t){var i=e,a=$(i.target),n=i.target.action,s=$(quirks.active_element()).attr("name"),_=$.trim(quirks.active_element().innerText),r=quirks.active_element().value;a.find('input[name="'+s+'"]')&&a.find('input[name="'+s+'"]').val()==(_?_:r)||$("").attr({type:"hidden",name:s,value:_?_:r}).appendTo(a);var o=Test.strContains(a.attr("enctype"),"multipart/form-data"),l=o?new FormData(a[0]):a.serialize();if(o||(l=Test.strContains(l,s+"=")?l:l+"&"+s+"="+r),$("input:file:visible").val())return v___theme_force_buffered=1,void a.submit()}var c=0,d=0,h=t?n:e,f=0,p=$('div[data-dcontainer="1"] > .panel.panel-default').clone();progress.start(),set_onbeforeunload_status(1,1),progressive_request=$.ajax({xhr:function(){var e=new window.XMLHttpRequest;return e.addEventListener("progress",function(t){if(!XHR.download(e,progressive_request,i)){var a=t.target.responseText,n=$(a),s=n.filter('div[data-dcontainer="1"]').html();if(Test.strContains(a,v___page_signin_form))return v___available_session=0,void progressive_request.abort();if(!!s&&d++,0===f&&(window.history.pushState(null,"",t.currentTarget.responseURL+(Test.strContains(t.currentTarget.responseURL,"?")?"&":"?")+$__theme_navigation),f=1,$(window).on("popstate.unbuffered",function(){$('.container-fluid[data-dcontainer="1"]').html(p),$(this).unbind("popstate.unbuffered"),setTimeout(function(){get_pjax_event_end_funcs(0)},40)})),d>3&&!c){if(s){if($('div[data-dcontainer="1"]').html(s),c++,unbuffered_header_processor_allow_scroll()){var _=$(".__page").hasScrollBar();_?$(".__page").scrollTop($(".__page")[0].scrollHeight):$(".__page").scrollTop(0)}$(".__page").addClass("progressing"),get_pjax_event_end(!1,t.target)}}else if(c){var r=extract_content(a,'
',"
",0);r&&$('div[data-dcontainer="1"]').find(".panel-body").html(r),unbuffered_header_processor_allow_scroll()&&$(".__page").scrollTop($(".__page")[0].scrollHeight)}}},!1),e},type:get_pjax_type(a?a:h),url:h,processData:!t||!o,contentType:(!t||!o)&&"application/x-www-form-urlencoded; charset=UTF-8",data:!!t&&l,complete:function(e){$('div[data-dcontainer="1"]').html($(e.responseText).filter('div[data-dcontainer="1"]').html()),get_pjax_event_end(!1,e),unbuffered_header_processor_allow_scroll()&&$(".__page").scrollTop($(".__page")[0].scrollHeight),$(".__page").removeClass("progressing"),progress.end(),set_onbeforeunload_status(0,1),unbuffered_header_post(e),Core.curModuleFile("package-updates","update.cgi")&&information_update()}})}function check_selected_text(){return getSelection?getSelection().toString():document.selection?document.selection.createRange().text:""}function check_location_resource(e){return v___location_resource===v___location_prefix+e}function check_current_file(e){return v___location_file==e}!function(){browser.detect.internet_explorer()>5&&browser.detect.internet_explorer()<=11&&(setTimeout(function(){var e="

"+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,r=_.length-1;r>=0;r--){var o=_[r];n.setAttribute(o.name,o.value)}n.innerHTML=s.innerHTML,e(s).after(n).remove(),i[a-1]=n}return e(i)}}(jQuery),jQuery.fn.selectText=function(){var e=document,t=this[0];if(e.body.createTextRange){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,r=[];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",timeout:2500},e),$(this).each(function(i,a){function n(){_.removeClass(e.className).data("confirmed",!1).find(".tmp_question").remove()}var s,_=$(a);_.html();_.data("confirmed",!1),_.on("click.confirm",function(i){i.preventDefault(),_.data("confirmed")?(t.call(_,i),n()):(_.data("confirmed",!0),_.append('?').addClass(e.className).bind("mouseout.confirm",function(){s=setTimeout(n,e.timeout)}).bind("mouseover.confirm",function(){clearTimeout(s)}))}).removeClass(e.className)}),$(this)},RegExp.quote=function(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},$(function(){var e,t=".blinking-default:not(.hidden)";setInterval(function(){0==e?($(t).css("opacity","1"),e=1):(e=1)&&($(t).css("opacity","0"),e=0)},900)});if("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_sysinfo_enabled&&(settings_side_slider_sysinfo_enabled=!0),"undefined"==typeof settings_side_slider_notifications_enabled&&(settings_side_slider_notifications_enabled=!0),"undefined"==typeof settings_side_slider_favorites_enabled&&(settings_side_slider_favorites_enabled=!0),config_portable_module_filemanager_hide_actions="undefined"==typeof localStorage||"false"!=localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_hide_actions"),config_portable_module_filemanager_hide_toolbar="undefined"!=typeof localStorage&&"true"==localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_hide_toolbar"),config_portable_module_filemanager_hovered_toolbar="undefined"!=typeof localStorage&&"true"==localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_hovered_toolbar"),config_portable_module_filemanager_notification_type="undefined"!=typeof localStorage&&localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_notification_type")?localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_notification_type"):2,config_portable_module_filemanager_calculate_size="undefined"!=typeof localStorage&&"true"==localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_calculate_size"),config_portable_module_filemanager_switch_user="undefined"==typeof localStorage||"false"!=localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_switch_user"),config_portable_module_filemanager_remember_tabs="undefined"==typeof localStorage||"false"!=localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_remember_tabs"),config_portable_module_xsql_fit_content_screen_height="undefined"!=typeof localStorage&&"true"==localStorage.getItem(v___server_hostname+"-config_portable_module_xsql_fit_content_screen_height"),"undefined"==typeof settings_hotkeys_active&&(settings_hotkeys_active=!0),"undefined"==typeof settings_button_tooltip&&(settings_button_tooltip=!0),"undefined"==typeof settings_hotkey_toggle_modifier&&(settings_hotkey_toggle_modifier="altKey"),"undefined"==typeof settings_hotkey_toggle_key_webmin&&(settings_hotkey_toggle_key_webmin="w"),"undefined"==typeof settings_hotkey_toggle_key_virtualmin&&(settings_hotkey_toggle_key_virtualmin="v"),"undefined"==typeof settings_hotkey_toggle_key_cloudmin&&(settings_hotkey_toggle_key_cloudmin="c"),"undefined"==typeof settings_hotkey_toggle_key_usermin&&(settings_hotkey_toggle_key_usermin="u"),"undefined"==typeof settings_hotkey_toggle_key_webmail&&(settings_hotkey_toggle_key_webmail="m"),"undefined"==typeof settings_hotkey_toggle_key_night_mode&&(settings_hotkey_toggle_key_night_mode="l"),"undefined"==typeof settings_hotkey_shell&&(settings_hotkey_shell="k"),"undefined"==typeof settings_hotkey_sysinfo&&(settings_hotkey_sysinfo="i"),"undefined"==typeof settings_hotkey_favorites&&(settings_hotkey_favorites="f"),"undefined"==typeof settings_hotkey_focus_search&&(settings_hotkey_focus_search="s"),"undefined"==typeof settings_hotkey_toggle_slider&&(settings_hotkey_toggle_slider="n"),"undefined"==typeof settings_hotkey_reload&&(settings_hotkey_reload="r"),"undefined"==typeof settings_global_passgen_format&&(settings_global_passgen_format="12|a-z,A-Z,0-9,#"),"undefined"==typeof settings_window_replace_timestamps&&(settings_window_replace_timestamps=!0),"undefined"==typeof settings_window_replaced_timestamp_format_full&&(settings_window_replaced_timestamp_format_full="LLLL"),"undefined"==typeof settings_window_replaced_timestamp_format_short&&(settings_window_replaced_timestamp_format_short="L, LTS"),"undefined"==typeof settings_leftmenu_vm_cm_dropdown_icons&&(settings_leftmenu_vm_cm_dropdown_icons=!0),"undefined"==typeof settings_hotkey_custom_1&&(settings_hotkey_custom_1=!1),"undefined"==typeof settings_hotkey_custom_2&&(settings_hotkey_custom_2=!1),"undefined"==typeof settings_hotkey_custom_3&&(settings_hotkey_custom_3=!1),"undefined"==typeof settings_hotkey_custom_4&&(settings_hotkey_custom_4=!1),"undefined"==typeof settings_hotkey_custom_5&&(settings_hotkey_custom_5=!1),"undefined"==typeof settings_hotkey_custom_6&&(settings_hotkey_custom_6=!1),"undefined"==typeof settings_hotkey_custom_7&&(settings_hotkey_custom_7=!1),"undefined"==typeof settings_hotkey_custom_8&&(settings_hotkey_custom_8=!1),"undefined"==typeof settings_hotkey_custom_9&&(settings_hotkey_custom_9=!1),"undefined"==typeof settings_side_slider_background_refresh_time?settings_side_slider_background_refresh_time=5: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_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))}}),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()"])),bind_sameorigin(),settings_window_replace_timestamps&&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='
\n \n \n \n \n \n \n
',t=function(t){function a(){return a.__super__.constructor.apply(this,arguments)}return n(a,t),a.prototype.template=function(t){var n;return n=a.__super__.template.apply(this,arguments),n.append(e(i)),n},a}(Messenger.Message),Messenger.themes.air={Message:t},Messenger.options={extraClasses:"messenger-fixed messenger-on-bottom",theme:"air"}}}.call(this),v___available_navigation){0==v___user_level&&settings_side_slider_enabled&&settings_side_slider_fixed&&get_server_data("data-slider-fixed","1"),1===v___initial_load&&(console.log("Welcome to Authentic Theme "+v___theme_version+"\nhttps://github.com/qooob/authentic-theme"),v___theme_navigation_active=$(".switch-toggle input:checked").attr("id"),v___theme_navigation_active=v___theme_navigation_active?v___theme_navigation_active.replace("open_",""):get_server_data("product"),setTimeout(function(){var e=function(){$t_uri_virtualmin&&(get_navigation_menu_virtualmin_summary(),get_default_virtualmin_content(!1)),$t_uri_cloudmin&&get_default_cloudmin_content(!1),$t_uri_virtualmin||$t_uri_cloudmin||get_default_content()};$.when(get_server_tmp_var("goto",0,e)).then(function(t,i,a){if(!a.responseText||get_server_data("initial-wizard")||unbuffered_header_processor_allow(a.responseText))e();else{if(Test.strContains(a.responseText,"//")&&URI(a.responseText).hostname()!==URI(location.href).hostname()||Test.strContains(a.responseText,"/servers/link.cgi/")||"/"===a.responseText||a.responseText==="/?"+$__theme_navigation)return void get_pjax_content(v___location_prefix+"/sysinfo.cgi");if(Test.strContains(a.responseText,"virtual-server")){var n=URI.parseQuery(URI(a.responseText).query()).dom;(!$t_uri_virtualmin||$t_uri_virtualmin&&n!=$('select[name="dom"]').val())&&(set_switch_position("virtualmin"),get_navigation_menu_virtualmin(!!n&&n))}else if(Test.strContains(a.responseText,"server-manager")){var s=URI.parseQuery(URI(a.responseText).query()).id;(!$t_uri_cloudmin||$t_uri_cloudmin&&s!=$('select[name="sid"]').val())&&(set_switch_position("cloudmin"),get_navigation_menu_cloudmin(s))}else $t_uri_webmin||3==v___user_level||(set_switch_position("webmin"),get_navigation_menu_webmin("webmin")),3==v___user_level&&!$t_uri_webmail&&Test.strContains(a.responseText,"mailbox")&&Core.moduleAvailable("mailbox")?(set_switch_position("webmail"),setTimeout(function(){get_navigation_menu_webmin("webmail")},10)):3!=v___user_level||$t_uri_usermin||Test.strContains(a.responseText,"mailbox")||(set_switch_position("usermin"),setTimeout(function(){get_navigation_menu_webmin("webmin")},10));check_bundle(a.responseText),get_pjax_content(a.responseText,["success","v___theme_content_history = 1"])}})},20),$.each(theme_config("get_options"),function(e,t){localStorage.setItem(v___server_hostname+"-"+t,window[t])}),navigation_select_label(),setTimeout(function(){fetch_right_pane_favorites()},300)),$("body").on("focus",".sidebar-search",function(){navigation_init_autocomplete("c",!1)}),$("body").on("blur",".sidebar-search",function(){setTimeout(function(){navigation_init_autocomplete("c",!0)},150)}),setTimeout(function(){information_update()},1e4),navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&$("#content").attr("style","-webkit-overflow-scrolling: touch !important; overflow-y: scroll !important;"),$('a[target="page"][href="link/"]').first().length&&$('a[target="page"][href="link/"]').first().attr("target","blank"),$("aside").on("click",".select2-container .select2-selection__arrow b",function(e){e.preventDefault(),e.stopPropagation()}),$("aside").on("click",'a[href*="/file/"], a[href*="history.cgi"]',function(e){e.preventDefault(),e.stopPropagation(),window.open($(this).attr("href"),"_blank")}),$("body").on("keydown",".sidebar-search",function(e){if(get_server_data("webmail")!==-1&&13==e.keyCode)return e.preventDefault(),!1}),$("body").on("click",".mobile-menu-toggler",function(e){var t=$settings_animation_left_slide_time?$settings_animation_left_slide_time:1;$this=$(this),$("aside").hasClass("hidden-xs")?($(this).addClass("selected").find("button").addClass("btn-primary").removeClass("btn-default"),$(".__logo")&&($(".__logo").css("transform","translate(0px, 0px)"),setTimeout(function(){$(".__logo").transition({y:"-140px"},1.5*t)},1100)),$this.css("transform","translate(0px, 0px)"),$("aside").css("transform","translate(0px, 0px)"),$(".switch-toggle").css("display","none"),$("aside").removeClass("hidden-xs"),$("aside, .mobile-menu-toggler").transition({x:settings_leftmenu_width},2.5*t),$(".switch-toggle").css("display","table")):navigation_hide()}),$.each($('ul.navigation li.navigation_external a[href^="../servers/link.cgi/"]'),function(e,t){$(this).attr("href",v___location_href+$(this).attr("href").replace("../","").replace(/\/$/g,""))}),$("body").on("click",'.navigation a[target="page"], .user-links a[target="page"]',function(){navigation_hide()}),$("body").on("click",".navigation > li .navigation_external_link",function(e){e.preventDefault(),e.stopPropagation(),b=$(this),window.open(b.attr("href"),"_blank")}),$("body").on("click",".navigation > li:not('.sub-wrapper'):not('.menu-container'):not('.navigation_external'):not([data-linked])",function(e){if(e.preventDefault(),e.stopPropagation(),v___blocked_navigation=1,"undefined"==typeof $processing&&($processing=!1),!$processing){$processing=!0;var t=$("a",this).attr("href"),i=$("a",this).attr("target"),a=$(this);i&&$(".navigation > li > ul.sub > li").each(function(){$(this).removeClass("sub_active").find("span.current").remove()}),$.when($("#sidebar .navigation > li").each(function(){var e=$(this),t=e.find("a"),i=t.is("[data-has-sub-link]");e.is(a)||(e.removeClass("active"),"#search"!=e.find("a").attr("href")&&i&&$(e.find("a").attr("href")).slideUp($settings_animation_left_slide_time))})).done(function(){a.hasClass("active")?a.removeClass("active"):"#hide"!=t&&!i&&a.addClass("active"),setTimeout(function(){$(t).is(":visible")&&"#hide"!=t&&!i?a.addClass("active"):a.removeClass("active"),$processing=!1},2*$settings_animation_left_slide_time>0?2*$settings_animation_left_slide_time:1),$(t).slideToggle($settings_animation_left_slide_time)}),"#search"==t&&$('#sidebar input[name="search"]').focus()}}),$("body").on("click",".navigation > li > ul.sub > li:not('.menu-container')",function(e){if(!e.target||!$(e.target).is("li")){var t=$(this);$(".navigation > li:not('.has-sub')").removeClass("sub_active").find("span.current-large").remove(),$(".navigation > li > ul.sub > li").each(function(){$(this).removeClass("sub_active").find("span.current").remove()}),$("#webmin_search_form").find('input[name="search"]').val(""),t.addClass("sub_active").append('')}}),$(".navigation > li > ul.sub").each(function(){""===$(this).attr("id")&&$(this).remove()}),$('.switch-toggle label[for^="reserve_empty"]').on("click",function(e){e.preventDefault()}),$("body").on("click",'a[data-refresh="true"]',function(e){e.preventDefault(),get_onbeforeunload_status()?get_onbeforeunload_message(!1,"get_pjax_content(v___location_resource)","ev"):get_pjax_content(v___location_resource)}),$("body").on("click",function(e){$("ul.dropdown").is(e.target)||0!==$("ul.dropdown").has(e.target).length||0!==$(".open").has(e.target).length||$("ul.dropdown").removeClass("open")}),$(".switch-toggle").on("contextmenu","label",function(e){e.preventDefault();var t=$(this).attr("for").replace("open_","");if($(this).prev("input").is(":checked")){var i=v___location_href;set_server_tmp_var("goto",navigation_trigger(i,1)),setTimeout(function(){theme_open_new_tab(i)},200)}else if("virtualmin"===t||"cloudmin"===t){var a;a="cloudmin"===t?"/server-manager/index.cgi":"/virtual-server/index.cgi";var n=navigation_trigger(a,2);set_server_tmp_var("goto",navigation_trigger(n,1)),setTimeout(function(){theme_open_new_tab(n)},200)}else if("webmail"===t){var s=v___location_prefix+"/mailbox/index.cgi?"+$__theme_navigation;set_server_tmp_var("goto",navigation_trigger(s,1)),setTimeout(function(){theme_open_new_tab(s)},200)}else{var s=v___location_prefix+"/sysinfo.cgi?"+$__theme_navigation;set_server_tmp_var("goto",navigation_trigger(s,1)),setTimeout(function(){theme_open_new_tab(s)},200)}}),$(".switch-toggle").on("click","input.dynamic",function(e){if(get_onbeforeunload_status()){e.preventDefault();var t=$(".switch-toggle input:checked").attr("id");return void get_onbeforeunload_message([],{href:"::switch::"+t})}return"open_thirdlane"==$(this).attr("id")?void(location.href=v___location_prefix+"/asterisk/index.cgi"):(set_switch_position($(this).attr("id").replace("open_","")),"open_dashboard"==$(this).attr("id")?void get_pjax_content(v___location_prefix+"/sysinfo.cgi"):void get_navigation_and_content($(this).attr("id").replace("open_",""),0,0))}),navigation_init_select(),$("aside").mCustomScrollbar({axis:"y",theme:"minimal",scrollInertia:100,scrollButtons:!1,callbacks:{onScroll:function(){$(".mobile-menu-toggler").is(":visible")||($(".form-control.sidebar-search").blur(),$("aside select")&&$("aside select").length>0&&$("aside select").hasClass("select2-hidden-accessible")&&$("aside select").select2("close"))}}}),$(".loader").append('
'),$("body").on("mouseover","#loader-close, #loader-close-sm",function(){$(this).find(".fa").removeClass("hidden")}).on("mouseout","#loader-close, #loader-close-sm",function(){$(this).find(".fa").addClass("hidden")}),$("body").on("click","#loader-close-sm > .fa",function(e){navigation_render_end()}),__shell_commands__i__=0,$(".form-control.sidebar-search").focus(function(e){$(".__logo").addClass("inited"),e.preventDefault(),e.stopPropagation(),__shell_commands__i__=0});var e=$("body").find(".-shell-port-"),t=e.find('input[data-command="true"]'),a=e.find("div[data-output]"),n=e.find(".-shell-port-container"),s=e.data("autocomplete");if($(window).keydown(function(i){var o=theme_shell_status();if(!o&&v___available_session&&(navigation_focus_search(i),theme_shortcuts(i)),38===i.keyCode&&(t.is(":focus")&&o||$(".form-control.sidebar-search").is(":focus"))&&i.preventDefault(),9===i.keyCode&&t.is(":focus")&&o){if(i.preventDefault(),!s)return;var r=t.val().trim().split(/\s+(?!-)/),_=r.length,l=r[0]&&r[0].indexOf("-")===-1?0:1,d=r[1]&&r[1].indexOf(":")===-1?0:1,c=t.val().endsWith(" "),p="service"===$.trim(r[0]),u="systemctl"===$.trim(r[0]),f=$.trim(r[0])&&$.trim(r[0]).startsWith("chown"),g=1!==r.length||!t.val().length||l||c?p||u?"services":f?"permissions":"lists":"commands";if(!$.trim(t.val()).length)return;var m=t.val(),h=e.find(".-shell-port-pwd"),v=h.attr("data-pwd");if("services"===g){if("systemctl"===(g=p?"service":"systemctl")&&3!==r.length)return;m="service"==g?$.trim(r[1]):$.trim(r[2]),"service"===$.trim(r[0])&&(2===r.length&&c||3===r.length)&&(m=3===r.length?"::::"+$.trim(r[1])+"::::"+$.trim(r[2]):"::::"+$.trim(r[1]))}if(f){if(1===_&&!c)return void t.val($.trim(r[0])+" ");d&&$.trim(r[1])?c||r[2]?(g="lists",m=v+"/::::"+$.trim(r[2])):(g="groups",m=$.trim($.trim(r[1]).split(":")[1])):(g="users",m=$.trim(r[1]))}"lists"!==g||f||(m=v+"/::::"+$.trim(r[1])+"::::"+$.trim(r[0])+"::::"+$.trim(r[2])),$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-get_autocompletes=1&xhr-get_autocomplete_type="+g+"&xhr-get_autocomplete_string="+m,data:!1,dataType:"json",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);var i=e.length;if(1===i)if("service"===g||"systemctl"===g||"lists"===g){var s=$.trim(r[0]),o=$.trim(r[0])+" "+$.trim(r[1]);"lists"===g?("cd"===s&&e[0].endsWith("/")||"cd"!==s)&&("cd"===s||"cat"===s?t.val(s+" "+e[0]):$.trim(r[2])?t.val(o+" "+e[0]):t.val(s+" "+e[0])):"service"!==s||2!==r.length&&3!==r.length?"systemctl"===s&&3===r.length&&t.val(s+" "+$.trim(r[1])+" "+e[0]):2===r.length?t.val(s+" "+e[0]+" "):3===r.length&&t.val($.trim(r[0])+" "+$.trim(r[1])+" "+e[0])}else f?d?c||r[2]?t.val($.trim(r[0])+" "+$.trim(r[1])+" "+e[0]):t.val($.trim(r[0])+" "+$.trim($.trim(r[1]).split(":")[0])+":"+e[0]+" "):t.val($.trim(r[0])+" "+e[0]+":"):t.val(e[0]+" ");else if(i>1){var _=""+$(".-shell-port-type").text()+" "+Convert.htmlEscape(t.val())+"\n";a.find("pre").append(_),a.find("pre").append(Convert.htmlEscape(e.join("\n")+"\n")),n.scrollTop(n[0].scrollHeight)}setTimeout(function(){t.focus().mousedown()},10)},error:function(){}})}}),$(window).keyup(function(n){var s=theme_shell_status();if(s){var o=0,r=0,_=0,l=$(".form-control.sidebar-search"),d=$t_uri_cloudmin&&$('a[target="page"][href*="/server-manager/save_serv.cgi"][href*="shell=1"]').length,c=$('select[name="sid"]').val(),p=0,u=0;if(d)u=v___location_prefix+"/server-manager/shell.cgi";else{if(!Core.moduleAvailable("shell"))return;u=v___location_prefix+"/shell/index.cgi"}if((s||l.is(":focus"))&&8===n.keyCode&&(__shell_commands__i__=0),s?(o=$.trim(t.val()),r=1,_=1):(o=l.val(),r=void 0!==l.val(),_=0),(_||r&&(!o.trim()||o.trim().startsWith("!")))&&(38==n.keyCode||40==n.keyCode)){n.preventDefault(),n.stopPropagation(), -void 0===localStorage.getItem(v___server_hostname+"-shell_commands")&&localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify({}));var f=JSON.parse(localStorage.getItem(v___server_hostname+"-shell_commands")),g=f?f.length:0;if(0===__shell_commands__i__&&!o&&40==n.keyCode)return;if(0===__shell_commands__i__&&o&&38==n.keyCode)return void(p=1);if(__shell_commands__i__=40==n.keyCode?++__shell_commands__i__:--__shell_commands__i__,__shell_commands__i__<0&&38===n.keyCode?__shell_commands__i__=g-1:__shell_commands__i__>g&&(__shell_commands__i__=0),f&&f[__shell_commands__i__%g]){if(!$.isEmptyObject(f)&&(__shell_commands__i__==g&&38===n.keyCode||__shell_commands__i__==g&&40===n.keyCode||p))return s?t.val("").focus():l.val("").focus(),void(__shell_commands__i__=0);if(s){var m=f[__shell_commands__i__%g].replace(/^!/,"");t.val(Convert.htmlUnEscape(m)).focus()}}return}if(r&&o.trim().startsWith("!")&&27==n.keyCode)return n.preventDefault(),n.stopPropagation(),void l.val("").focus();if(r&&o.trim().startsWith("!")&&13==n.keyCode&&(l.addClass("_shell_form_"),n.preventDefault(),n.stopPropagation(),1==Core.moduleAvailable("shell")||d)){t.val(o.trim().substring(1)).focus(),theme_shell_open(e);var h=$.Event("keyup");h.keyCode=13,t.trigger(h)}var v=e.find(".-shell-port-container"),b=e.find(".-shell-port-pwd"),y=b.attr("data-pwd"),k=$.trim(t.val()),x=0,w=n.keyCode?n.keyCode:n.which,C=n.altKey&&"l"==String.fromCharCode(n.which).toLowerCase();if(27===w)return void theme_shell_close(e);if(t.is(":focus")||check_selected_text()||(n.ctrlKey||n.altKey||n.shiftKey||n.metaKey||t.val(t.val()+String.fromCharCode(n.which).toLowerCase()),t.focus()),(k&&13===w||C)&&(Core.moduleAvailable("shell")||d)){if(1===v___shell_processing)return;v___shell_processing=1,("clear"==k||"reset"==k||"exit"==k||C)&&(a.find("pre").html(""),theme_shell_clear(t),"exit"==k&&theme_shell_close(e)),"cd ~"==k&&(x=k,k="cd "+b.attr("data-home"));var T=!1;if("cd /"==k&&(T="/"),"history -c"==k){localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify({}));var j=""+$(".-shell-port-type").text()+" "+k+"\n";a.find("pre").append(j),theme_shell_clear(t),v.scrollTop(v[0].scrollHeight);var S='',I=new FormData($(S)[0]);$.ajax({type:"POST",url:u+"?stripped=1&stripped=2",data:I,dataType:"text",cache:!1,contentType:!1,processData:!1,success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0)},error:function(e){}})}else if($.trim(k).startsWith("history -d")){var D=k.split(" "),P=D[2];P&&P.length&&Test.numeric(P)&&$.ajax({type:"POST",url:v___location_prefix+"/index.cgi/?xhr-shell-pop="+P+"&xhr-shell-cms="+d+"&xhr-shell-cmsid="+c,data:!1,dataType:"text",cache:!1,contentType:!1,processData:!1,success:function(e){if("1"==e){var t=JSON.parse(localStorage.getItem(v___server_hostname+"-shell_commands"));localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify(t.filter(function(e,t){return t!==parseInt(P)-1})))}},error:function(e){}}),theme_shell_clear(t)}else if(k.startsWith("history")){theme_shell_clear(t);var q=JSON.parse(localStorage.getItem(v___server_hostname+"-shell_commands")),O=q?q.length:0,A=O?O.toString().length:0,j=""+$(".-shell-port-type").text()+" "+k+"\n";$.each($(q),function(e,t){var a=e.toString().length,n="";for(i=0;i '+(d?'':"")+' ',R=new FormData($(E)[0]);t.attr("readonly","true");var z=0,U=0,K=!1;shell_request=$.ajax({xhr:function(){var e=new window.XMLHttpRequest;return e.addEventListener("progress",function(e){var t=e.target.responseText;if(Test.strContains(t,v___page_signin_form))return v___available_session=0,void shell_request.abort();if(!!t&&U++,U>2&&!z)t&&($(".-shell-port-cmd").after("
"),z++,$(".-shell-port-container").addClass("progressing"));else if(z){var i=extract_content(t,"
","
",1);i&&(i=i.replace(/<(b)[^>]*>[^<]*(<\/b>)/i,""),K=i),$(".-shell-port-cmd").next("pre").replaceWith(i),v.scrollTop(v[0].scrollHeight)}},!1),e},type:"POST",url:u+"?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(x?s.replace(new RegExp(k,"g"),x):s),b.text(T?T:newPwd==b.attr("data-home")?"~":newPwd.split("/").filter(function(e){return""!=$.trim(e)}).slice(-1)[0]).attr("data-pwd",T?T:newPwd).attr("title",T?T:newPwd),$(".-shell-port-cmd").next("pre").remove(),theme_shell_adapt(),theme_shell_clear(t),v.scrollTop(v[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",".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),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")})}else get_server_data("data-slider-fixed","0"),$(".right-side-tabs-toggler").addClass("hidden");$(".right-side-tabs .tab-pane").each(function(){$(this).css("height",$(window).height()-92)}),$(".right-side-tabs").on("mouseover",".list-group-item",function(e){$(this).find(".fa.fa-trash-o").removeClass("hidden"),!$(this).hasClass("opacity-0_3")&&$(this).find(".fa-clear-all").removeClass("hidden")}).on("mouseout",".list-group-item",function(e){$(this).find(".fa.fa-trash-o").addClass("hidden"),$(this).find(".fa-clear-all").addClass("hidden")}),$(".right-side-tabs").on("click","[data-port-href]",function(e){e.preventDefault(),e.stopPropagation(),open($(this).data("port-href"))}),$("body").on("click",'a[data-id^="csf_"], a[data-type^="csf_"]',function(e){get_bundle_csf()}),$("body").on("click",'a[href*="mysql"], a[href*="postgresql"]',function(e){get_bundle_sql()}),$(".right-side-tabs").on("click",'a.list-group-item[data-type="csf_deny"]',function(e){e.preventDefault(),e.stopPropagation(),$(e.target).is(".fa.fa-trash-o")||$(e.target).is(".fa-clear-all")||$(e.target).is("[data-port-href]")||(get_bundle_csf(),$("body").append(' \t\t\t\t\t\t'),$("form#csf_temporary_ip_entries").submit().remove(),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click"))}),$(".right-side-tabs").on("click contextmenu","a.list-group-item",function(e){if(e.preventDefault(),"contextmenu"==e.type)return $(this).find(".fa-clear-all").trigger("click"),e.preventDefault(),void e.stopPropagation();if($(e.target).is(".fa.fa-trash-o")||$(e.target).is(".fa-clear-all")||$(e.target).is("[data-port-href]")){if($(e.target).is(".fa-clear-all"))return $(this).addClass("opacity-0_3"),$(this).find(".fa-clear-all").addClass("hidden"),void slider_mark_notification_read($(this).attr("id"),$(this).data("type"),1,1);$(this).animate({opacity:"0"},$settings_animation_left_slide_time,function(){$(this).remove(),localStorage.removeItem(v___server_hostname+"-notifications_"+$(this).attr("id")+"_"+$(this).data("type")),slider_add_no_notifications()})}else $(this).attr("href")&&$(this).attr("href").length&&"undefined"!=$(this).attr("href")&&"csf_deny"!=$(this).attr("data-type")?($(this).addClass("opacity-0_3"),$(this).find(".fa-clear-all").addClass("hidden"),slider_mark_notification_read($(this).attr("id"),$(this).data("type"),1,1),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click"),get_pjax_content($(this).attr("href"))):($(this).addClass("opacity-0_3"),slider_mark_notification_read($(this).attr("id"),$(this).data("type"),1,1))}),$(".right-side-tabs-dismiss i.fa-reload").click(function(e){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),Object.keys(localStorage).forEach(function(e){/^allowed_trigger|^notifications_|^sysinfo_/.test(e)&&localStorage.removeItem(v___server_hostname+"-"+e)}),$(".right-side-tabs-dismiss .fa-trash").trigger("click"),$(".right-side-tabs-dismiss .fa-refresh").trigger("click");var t=$(this);spinnerfy_buttons(t,[1.5,-33,"small",1e3])}),$("body").on("click",function(e){$(e.target).is('select[name="settings_navigation_color"], select[name="settings_background_color"], select[name="settings_side_slider_palette"], input[name="settings_side_slider_fixed"], label[for^="settings_side_slider_fixed"], div.aradio')||$(".right-side-tabs-toggler").hasClass("hidden")||!$(".right-side-tabs-toggler").hasClass("opened")||$(e.target).parents("#right-side-tabs").is("#right-side-tabs")||$(e.target).is(".btn-menu-toggler")||$(e.target).is(".fa-bell")||$(e.target).is(".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)})):($("#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 r=$(this).find('.modal-body a[href*="authentic-theme/releases"]:first').text().match(/-?(?:\d+(?:\.\d*)?|\.\d+)/);latest_release=parseFloat(r?r[0]:v___theme_version),n.append(''),n.after(' '+i+"")}else n.append('').append(''+________version_curr_text+"")}var _=[];$.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?(_.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("#",""))
  • Fixed bugs
'),$(".modal-body span[data-bugs-container]").append(_),$(".modal-body span[data-bugs-container] a").sort(e).appendTo(".modal-body span[data-bugs-container]");var t=$("span[data-fixed-bugs]"),i=($("span[data-bugs-container]"),$(".modal-body span[data-bugs-container]").find("a:not(.bctl)")),a=i.length;t.html([t.text().slice(0,6),a+" ",t.text().slice(6)].join("")),t.append(''),t.find("a.bctl").click(function(e){i.toggleClass("hidden"),t.find("a.bctl i").toggleClass("fa-minus-square-o")}),i.addClass("obj-popup hidden");var n=$("div[data-bugs]"),s=n.find("a:not(.bctl)").length;!s&&n.prev(".hr-dashed").remove(),!s&&n.remove()}var o=$(".modal#update_notice h4 span");if(Test.strContains(o.text(),"...")&&Test.strContains(o.text(),"patch")){var r=parseInt(o.text().split("...")[1].substr(-1,1));r&&$.each($(".version_separator:not(.version_dev)"),function(e,t){e+1!=r?$(this).addClass("hidden"):$(this).text($(this).text()+"-"+theme_language("theme_xhred_global_release").toLowerCase())})}})}),$("body").on("click",".csf-submit",function(e){e.preventDefault();var t=$(this).data("id");$("#"+t).submit()}),$("body").on("click",".inline-row input",function(e){$(this).is(":checked")?$(this).parents(".gl-icon-container").addClass("highlighted"):$(this).parents(".gl-icon-container").removeClass("highlighted")}),$("body").on("click contextmenu","div.icons-container, div.small-icons-container",function(e){if("click"===e.type&&$(e.target).is(".gl-icon-select")&&!v___available_navigation)e.preventDefault(), -$(this).trigger("contextmenu");else if("contextmenu"===e.type){e.preventDefault(),$(this).find("input").is(":checked")?($(this).find("input").prop("checked",!1),$(this).removeClass("highlighted")):$(this).find("input").length&&($(this).find("input").prop("checked",!0),$(this).addClass("highlighted"));var t=$(e.target).is(".icon_link")?$(e.target).parent(".gl-icon-container").find(".fa-select, .fa-selected"):$(e.target).is(".gl-icon-select")?$(e.target):$(e.target).is("img")?$(e.target).parent("a").parent(".gl-icon-container").find(".fa-select, .fa-selected"):$(e.target).find(".fa-select, .fa-selected");t.hasClass("fa-select")?t.removeClass("fa-select").addClass("fa-selected"):t.removeClass("fa-selected").addClass("fa-select")}"function"==typeof db_check_selected&&db_check_selected()}),$("body").on("click",".row.icons-row.vertical-align .icons-container, .row.icons-row.vertical-align .small-icons-container",function(){$(this).hasClass("forged-xx-skip")}),__is_shifted=!1,__is_tabbed=!1,$(document).on("keyup keydown",function(e){var t=e.keyCode?e.keyCode:e.which;__is_shifted=e.shiftKey,__is_tabbed=9==t}),$("body").on("change",".onchange_form_submit_triggger",function(e){e.preventDefault(),get_onbeforeunload_status()?get_onbeforeunload_message(this,"$($eventData).parent('form').submit()","ev"):$(this).parent("form").submit()}),$("body").on("click",'button.ui_form_end_submit[type="button"]:not(.disabled)',function(){var e=$(this).next('input[type="submit"].hidden'),t=$(this).parent(".btn-group").next('input[type="submit"].hidden');e.length||(e=t);var i=e.parent(),a=(i.parent("tr").find("form"),e.parents("form"));if(!a.length)return a=e.closest("form"),a.length||(a=i.prev("form")),a.length||(a=i.prev().prev("form")),a.length||(a=i.prev().prev().prev("form")),a.append(a.nextUntil(i)),void $.each(i.find("select, input"),function(){$("").attr({type:"hidden",name:$(this).attr("name")?$(this).attr("name"):$(this).attr("id"),value:$(this).val()}).appendTo(a)}).promise().done(function(){a.submit()});var n=e.attr("name")?e.attr("name"):e.attr("id"),s=$.trim(e.val());$("").attr({type:"hidden",name:n,value:s}).appendTo(a),e.trigger("click")}),$("body").on("click",'.ui_form_end_submit:not(.disabled), .page_footer_submit:not(.disabled):not([href*="javascript:history"])',function(){Core.curModule("csf")?spinnerfy_buttons($(this),[2,-29,"small",!1]):spinnerfy_buttons($(this),!1,!1,!1)}),$("body").on("dblclick",'.mppopup a[onclick*="fileclick("], .mppopup a[onclick*="parentdir("]',function(e){e.preventDefault()});var r=0,_=null;$("body").on("dblclick",'.mppopup a[onclick*="select("]',function(e){$(".mppopup button[data-mppopup_confirm]").trigger("click")}),$("body").on("click",'.mppopup a[onclick*="fileclick("], .mppopup a[onclick*="parentdir("]',function(e){if(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),r++,$data_mppopup_value.val($v__mpp__g_ol),1===r)_=setTimeout(function(){if(r=0,"undefined"==typeof $v__mpp__g_gp&&($v__mpp__g_gp=0),$v__mpp__g_gp){var e=chooser_get_link($v__mpp__g_op);chooser_get(e)}else chooser_control($v__mpp__g_ol,0,0);$v__mpp__g_gp=0},450);else if(clearTimeout(_),r=0,$v__mpp__g_olt){var t=chooser_get_link($v__mpp__g_op);chooser_get(t)}else chooser_control($v__mpp__g_ol,1,1)}),$("body").on("click",".mppopup button[data-mppopup_confirm]",function(){chooser_control($data_mppopup_value.val(),1,1)}),$("body").on("show.bs.modal",".mppopup",function(){v__mpp__ml_t__e=0,$data_mppopup_value=$(".mppopup input[data-mppopup_value]"),$('.mppopup input[data-role="tagsinput"]').tagsinput({onTagExists:function(e,t){t.hide().fadeIn(),v__mpp__ml_t__e=1}})}),$("body").on("shown.bs.modal",".mppopup",function(){var e=$("body .mppopup").find(".modal-head");$("body .mppopup").find(".modal-body"),$("body .mppopup").find(".modal-body table"),e.find(".mppopup_filter > input");setTimeout(function(){$(".mppopup_filter_input").animate({opacity:1},$settings_animation_tabs_slide_time),$(".mppopup_filter_input").focus()},0)}),$("body").on("hidden.bs.modal",".mppopup",function(){refInput.removeClass("refInputData"),$('.mppopup input[data-role="tagsinput"]').tagsinput("destroy"),$("body .mppopup").remove(),$("button[data-mmclick].disabled, input[data-mmclick].disabled").removeClass("disabled").removeAttr("disabled")}),$("body").on("click",".mppopup_multi_done",function(e){refInput.val($.trim($('.mppopup input[data-role="tagsinput"]').val().replace(/,/g," "))),$('.mppopup span[aria-hidden="true"]').trigger("click")}),$("body").on("keyup",".mppopup_filter_input",function(e){var t=e.which,i=$(".mppopup table tbody tr:visible"),a=i.find("td:first-child a");if(!$(".mppopup .breadcrumbx").length){if(13!=t||1!==i.length||e.shiftKey){if(13==t&&1===i.length&&e.shiftKey){a.trigger("click").trigger("dblclick");var n=$(".mppopup .mppopup_multi_done:visible");n.length&&setTimeout(function(){n.trigger("click")},240)}}else a.trigger("click");$(".mppopup table tbody tr.noresults").length||$(".mppopup table tbody").append(''+theme_language("theme_xhred_global_no_results_found")+"");var s=$(".mppopup table tbody tr:visible:not(.noresults)"),o=$(".mppopup table tbody tr.noresults");s.length?o.addClass("hidden"):o.removeClass("hidden")}}),$("body").on("click","button[data-mmclick]:not(.disabled), input[data-mmclick]:not(.disabled)",function(e){function t(e,t,i,a,s){var o;o=s?' ":' ";var r=' ";$("body").append(r),refInput.addClass("refInputData"),$("body .mppopup").modal("show")}function i(e){e[1].startsWith("/")?$v__mpp__g_op=e[1]:$v__mpp__g_op="/"+e[1]}e.preventDefault(),e.stopPropagation(),refInput=chooser_get_target($(this),1);var a=$(this),n=refInput.val(),s=encodeURIComponent(n),o=$(this).attr("data-mmclick"),r=o.match("window.open\\(['\"]*(.*?)(\\s*['\"]*,.*?)"),_=r[1].match(/(\w+\.[a-z]{3,4})/gi)[0],l=_.replace(".cgi","");if(a.addClass("disabled").attr("disabled","disabled"),r[1]){var d=r[1].replace("encodeURIComponent(ifield.value)","refInputCurrValSafe");d=d.replace('"+"',"").replace('"+',"").replace("refInputCurrValSafe",s),$.ajax({type:"POST",url:d,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);var a=e,n=e.match(')<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/<\/body>|<\/html>/gi,""),a=$(i).filter(".table").html(),n=$(i).filter(".table").prev("b").html(),s=chooser_breadcrumbs(n);0===$(a).find("td").length&&(a=a.replace("thead","tbody"),a=a.replace("",''+theme_language("theme_xhred_datatable_semptydirectory")+"")),i=s+''+a+"
",t(i,"type1",0,refInput,0)}});else if($.isArray(n))i(n),$.ajax({type:"POST",url:$v__mpp__g_op,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);var i=e.replace(/<(!doctype|script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/<\/body>|<\/html>/gi,"");i=''+$(i).filter("table").html()+"
",t(i,"type2",0,refInput,1)}});else{if($.isArray(n)&&n[1].indexOf("&multi=1")===-1)return;var s=a,o=$(s).filter("table").html();t(''+o+"
","",1,refInput,0)}}})}else $(this).removeClass("disabled"),$(this).attr("onclick",$(this).attr("data-mmclick")).removeAttr("data-mmclick"),$(this).trigger("click")}),$("body").on("click",".generate-password-key",function(e){var t=theme_password_generator();$("body").append('');var i=new Clipboard(".tmp-clipboard-obj");$(".tmp-clipboard-obj").trigger("click"),$(".tmp-clipboard-obj").remove(),i.destroy(),theme_messenger(''+theme_language("theme_xhred_password_generator_new_success").replace("%password",' '+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("change",'form[action*="save_log.cgi"] select[name="idx"]',function(e){var t=$("button.ui_submit.ui_form_end_submit");$(this).next('[name="filter"]').val(""),t.first().trigger("click"),t.addClass("disabled")}),$("body").on("keydown",'form[action*="save_log.cgi"] input[name="filter"], form[action*="save_log.cgi"] input[name="lines"]',function(e){if(13==e.keyCode){e.preventDefault();var t=$("button.ui_submit.ui_form_end_submit");t.first().trigger("click"),t.addClass("disabled")}}),$("aside").on("click",".__logout-link",function(e){progress.start(),get_server_tmp_var("goto",0)}),$("body").on("click",'button, input[type="submit"], a',function(e){v___page_activeElement=this}),$("body").on("click","._c__op_d",function(e){if($(e.target).is(this)){var t=$(this).find(".opener_trigger").first()[0];t&&t.click()}}),$("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;o&&(s=""),t.popover({html:!0,container:".container-fluid",template:'',title:function(){return s+$help_title},content:function(){return $help_body},placement:"auto right"}),t.popover("show"),t.on("shown.bs.popover",function(){$help_body.indexOf("")>-1&&$(".popover").animate({"max-width":"540px"},300),$("body").find(".popover:visible").addClass("module-help"),$('body[class*="'+v___module_file_manager+'"]').find(".popover:visible").addClass("file-manager-help"),setTimeout(function(){$.each($(".module-help"),function(){$(this).is(t.next(".module-help"))?($(this).animate({opacity:1},600),popover_visibility_position($(this))):$(".module-help").length>1?$(this).css("opacity",.85):$(this).css("opacity",1)})},100)}),t.on("hidden.bs.popover",function(){$("body").undelegate(":not(tt)","click"),t.attr("data-initial")&&(t.attr("href",t.attr("data-initial")),t.removeAttr("data-initial").removeAttr("data-substituted"))})}})}),$("body").on("click",'#extended_sysinfo-1 .panel-collapse[aria-labelledby="status-virtual-server-1"] a:not(.ui_link)',function(e){e.preventDefault();var t=$(this),i=t.attr("href");if(!t.hasClass("disabled")){t.addClass("disabled opacity-0_4");var a=t.find(".fa-refresh");a&&a.addClass("fa-spin"),progress.start(),$.ajax({type:"GET",url:i,data:!1,statusCode:{200:function(){$.ajax({type:"GET",url:v___location_prefix+"/sysinfo.cgi",success:function(e){var t="#status-virtual-server-1-collapse",i=$(e).find(t).find(".panel-body");$('[data-dcontainer="1"]').find(t).find(".panel-body").replaceWith(i),progress.end()}})}}})}}),setTimeout(function(){window.onbeforeunload=function(){if(get_onbeforeunload_status()&&$(quirks.active_element()).is("a"+$__theme_event_deselectors))return progress.end(),!0},$(function(){v___available_navigation||progress.end()})},100),theme_alert_charset(),favorites_detect(),page_render(0),setTimeout(function(){v___initial_load=0},1e3)}); \ No newline at end of file +void 0===localStorage.getItem(v___server_hostname+"-shell_commands")&&localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify({}));var f=JSON.parse(localStorage.getItem(v___server_hostname+"-shell_commands")),g=f?f.length:0;if(0===__shell_commands__i__&&!o&&40==n.keyCode)return;if(0===__shell_commands__i__&&o&&38==n.keyCode)return void(p=1);if(__shell_commands__i__=40==n.keyCode?++__shell_commands__i__:--__shell_commands__i__,__shell_commands__i__<0&&38===n.keyCode?__shell_commands__i__=g-1:__shell_commands__i__>g&&(__shell_commands__i__=0),f&&f[__shell_commands__i__%g]){if(!$.isEmptyObject(f)&&(__shell_commands__i__==g&&38===n.keyCode||__shell_commands__i__==g&&40===n.keyCode||p))return s?t.val("").focus():l.val("").focus(),void(__shell_commands__i__=0);if(s){var m=f[__shell_commands__i__%g].replace(/^!/,"");t.val(Convert.htmlUnEscape(m)).focus()}}return}if(r&&o.trim().startsWith("!")&&27==n.keyCode)return n.preventDefault(),n.stopPropagation(),void l.val("").focus();if(r&&o.trim().startsWith("!")&&13==n.keyCode&&(l.addClass("_shell_form_"),n.preventDefault(),n.stopPropagation(),1==Core.moduleAvailable("shell")||d)){t.val(o.trim().substring(1)).focus(),theme_shell_open(e);var h=$.Event("keyup");h.keyCode=13,t.trigger(h)}var v=e.find(".-shell-port-container"),b=e.find(".-shell-port-pwd"),y=b.attr("data-pwd"),k=$.trim(t.val()),x=0,w=n.keyCode?n.keyCode:n.which,C=n.altKey&&"l"==String.fromCharCode(n.which).toLowerCase();if(27===w)return void theme_shell_close(e);if(t.is(":focus")||check_selected_text()||(n.ctrlKey||n.altKey||n.shiftKey||n.metaKey||t.val(t.val()+String.fromCharCode(n.which).toLowerCase()),t.focus()),(k&&13===w||C)&&(Core.moduleAvailable("shell")||d)){if(1===v___shell_processing)return;v___shell_processing=1,("clear"==k||"reset"==k||"exit"==k||C)&&(a.find("pre").html(""),theme_shell_clear(t),"exit"==k&&theme_shell_close(e)),"cd ~"==k&&(x=k,k="cd "+b.attr("data-home"));var T=!1;if("cd /"==k&&(T="/"),"history -c"==k){localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify({}));var j=""+$(".-shell-port-type").text()+" "+k+"\n";a.find("pre").append(j),theme_shell_clear(t),v.scrollTop(v[0].scrollHeight);var S='',I=new FormData($(S)[0]);$.ajax({type:"POST",url:u+"?stripped=1&stripped=2",data:I,dataType:"text",cache:!1,contentType:!1,processData:!1,success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0)},error:function(e){}})}else if($.trim(k).startsWith("history -d")){var D=k.split(" "),P=D[2];P&&P.length&&Test.numeric(P)&&$.ajax({type:"POST",url:v___location_prefix+"/index.cgi/?xhr-shell-pop="+P+"&xhr-shell-cms="+d+"&xhr-shell-cmsid="+c,data:!1,dataType:"text",cache:!1,contentType:!1,processData:!1,success:function(e){if("1"==e){var t=JSON.parse(localStorage.getItem(v___server_hostname+"-shell_commands"));localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify(t.filter(function(e,t){return t!==parseInt(P)-1})))}},error:function(e){}}),theme_shell_clear(t)}else if(k.startsWith("history")){theme_shell_clear(t);var q=JSON.parse(localStorage.getItem(v___server_hostname+"-shell_commands")),O=q?q.length:0,A=O?O.toString().length:0,j=""+$(".-shell-port-type").text()+" "+k+"\n";$.each($(q),function(e,t){var a=e.toString().length,n="";for(i=0;i '+(d?'':"")+' ',R=new FormData($(E)[0]);t.attr("readonly","true");var z=0,U=0,K=!1;shell_request=$.ajax({xhr:function(){var e=new window.XMLHttpRequest;return e.addEventListener("progress",function(e){var t=e.target.responseText;if(Test.strContains(t,v___page_signin_form))return v___available_session=0,void shell_request.abort();if(!!t&&U++,U>2&&!z)t&&($(".-shell-port-cmd").after("
"),z++,$(".-shell-port-container").addClass("progressing"));else if(z){var i=extract_content(t,"
","
",1);i&&(i=i.replace(/<(b)[^>]*>[^<]*(<\/b>)/i,""),K=i),$(".-shell-port-cmd").next("pre").replaceWith(i),v.scrollTop(v[0].scrollHeight)}},!1),e},type:"POST",url:u+"?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(x?s.replace(new RegExp(k,"g"),x):s),b.text(T?T:newPwd==b.attr("data-home")?"~":newPwd.split("/").filter(function(e){return""!=$.trim(e)}).slice(-1)[0]).attr("data-pwd",T?T:newPwd).attr("title",T?T:newPwd),$(".-shell-port-cmd").next("pre").remove(),theme_shell_adapt(),theme_shell_clear(t),v.scrollTop(v[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",".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).height()-92)}),$(".right-side-tabs").on("mouseover",".list-group-item",function(e){$(this).find(".fa.fa-trash-o").removeClass("hidden"),!$(this).hasClass("opacity-0_3")&&$(this).find(".fa-clear-all").removeClass("hidden")}).on("mouseout",".list-group-item",function(e){$(this).find(".fa.fa-trash-o").addClass("hidden"),$(this).find(".fa-clear-all").addClass("hidden")}),$(".right-side-tabs").on("click","[data-port-href]",function(e){e.preventDefault(),e.stopPropagation(),open($(this).data("port-href"))}),$("body").on("click",'a[data-id^="csf_"], a[data-type^="csf_"]',function(e){get_bundle_csf()}),$("body").on("click",'a[href*="mysql"], a[href*="postgresql"]',function(e){get_bundle_sql()}),$(".right-side-tabs").on("click",'a.list-group-item[data-type="csf_deny"]',function(e){e.preventDefault(),e.stopPropagation(),$(e.target).is(".fa.fa-trash-o")||$(e.target).is(".fa-clear-all")||$(e.target).is("[data-port-href]")||(get_bundle_csf(),$("body").append(' \t\t\t\t\t\t'),$("form#csf_temporary_ip_entries").submit().remove(),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click"))}),$(".right-side-tabs").on("click contextmenu","a.list-group-item",function(e){if(e.preventDefault(),"contextmenu"==e.type)return $(this).find(".fa-clear-all").trigger("click"),e.preventDefault(),void e.stopPropagation();if($(e.target).is(".fa.fa-trash-o")||$(e.target).is(".fa-clear-all")||$(e.target).is("[data-port-href]")){if($(e.target).is(".fa-clear-all"))return $(this).addClass("opacity-0_3"),$(this).find(".fa-clear-all").addClass("hidden"),void slider_mark_notification_read($(this).attr("id"),$(this).data("type"),1,1);$(this).animate({opacity:"0"},$settings_animation_left_slide_time,function(){$(this).remove(),localStorage.removeItem(v___server_hostname+"-notifications_"+$(this).attr("id")+"_"+$(this).data("type")),slider_add_no_notifications()})}else $(this).attr("href")&&$(this).attr("href").length&&"undefined"!=$(this).attr("href")&&"csf_deny"!=$(this).attr("data-type")?($(this).addClass("opacity-0_3"),$(this).find(".fa-clear-all").addClass("hidden"),slider_mark_notification_read($(this).attr("id"),$(this).data("type"),1,1),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click"),get_pjax_content($(this).attr("href"))):($(this).addClass("opacity-0_3"),slider_mark_notification_read($(this).attr("id"),$(this).data("type"),1,1))}),$(".right-side-tabs-dismiss i.fa-reload").click(function(e){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),Object.keys(localStorage).forEach(function(e){/^allowed_trigger|^notifications_|^sysinfo_/.test(e)&&localStorage.removeItem(v___server_hostname+"-"+e)}),$(".right-side-tabs-dismiss .fa-trash").trigger("click"),$(".right-side-tabs-dismiss .fa-refresh").trigger("click");var t=$(this);spinnerfy_buttons(t,[1.5,-33,"small",1e3])}),$("body").on("click",function(e){$(e.target).is('select[name="settings_navigation_color"], select[name="settings_background_color"], select[name="settings_side_slider_palette"], input[name="settings_side_slider_fixed"], label[for^="settings_side_slider_fixed"], div.aradio')||$(".right-side-tabs-toggler").hasClass("hidden")||!$(".right-side-tabs-toggler").hasClass("opened")||$(e.target).parents("#right-side-tabs").is("#right-side-tabs")||$(e.target).is(".btn-menu-toggler")||$(e.target).is(".fa-bell")||$(e.target).is(".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)})):($("#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 r=$(this).find('.modal-body a[href*="authentic-theme/releases"]:first').text().match(/-?(?:\d+(?:\.\d*)?|\.\d+)/);latest_release=parseFloat(r?r[0]:v___theme_version),n.append(''),n.after(' '+i+"")}else n.append('').append(''+________version_curr_text+"")}var _=[];$.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?(_.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("#",""))
  • Fixed bugs
'),$(".modal-body span[data-bugs-container]").append(_),$(".modal-body span[data-bugs-container] a").sort(e).appendTo(".modal-body span[data-bugs-container]");var t=$("span[data-fixed-bugs]"),i=($("span[data-bugs-container]"),$(".modal-body span[data-bugs-container]").find("a:not(.bctl)")),a=i.length;t.html([t.text().slice(0,6),a+" ",t.text().slice(6)].join("")),t.append(''),t.find("a.bctl").click(function(e){i.toggleClass("hidden"),t.find("a.bctl i").toggleClass("fa-minus-square-o")}),i.addClass("obj-popup hidden");var n=$("div[data-bugs]"),s=n.find("a:not(.bctl)").length;!s&&n.prev(".hr-dashed").remove(),!s&&n.remove()}var o=$(".modal#update_notice h4 span");if(Test.strContains(o.text(),"...")&&Test.strContains(o.text(),"patch")){var r=parseInt(o.text().split("...")[1].substr(-1,1));r&&$.each($(".version_separator:not(.version_dev)"),function(e,t){e+1!=r?$(this).addClass("hidden"):$(this).text($(this).text()+"-"+theme_language("theme_xhred_global_release").toLowerCase())})}})}),$("body").on("click",".csf-submit",function(e){e.preventDefault();var t=$(this).data("id");$("#"+t).submit()}),$("body").on("click",".inline-row input",function(e){$(this).is(":checked")?$(this).parents(".gl-icon-container").addClass("highlighted"):$(this).parents(".gl-icon-container").removeClass("highlighted")}),$("body").on("click contextmenu","div.icons-container, div.small-icons-container",function(e){if("click"===e.type&&$(e.target).is(".gl-icon-select")&&!v___available_navigation)e.preventDefault(),$(this).trigger("contextmenu");else if("contextmenu"===e.type){e.preventDefault(), +$(this).find("input").is(":checked")?($(this).find("input").prop("checked",!1),$(this).removeClass("highlighted")):$(this).find("input").length&&($(this).find("input").prop("checked",!0),$(this).addClass("highlighted"));var t=$(e.target).is(".icon_link")?$(e.target).parent(".gl-icon-container").find(".fa-select, .fa-selected"):$(e.target).is(".gl-icon-select")?$(e.target):$(e.target).is("img")?$(e.target).parent("a").parent(".gl-icon-container").find(".fa-select, .fa-selected"):$(e.target).find(".fa-select, .fa-selected");t.hasClass("fa-select")?t.removeClass("fa-select").addClass("fa-selected"):t.removeClass("fa-selected").addClass("fa-select")}"function"==typeof db_check_selected&&db_check_selected()}),$("body").on("click",".row.icons-row.vertical-align .icons-container, .row.icons-row.vertical-align .small-icons-container",function(){$(this).hasClass("forged-xx-skip")}),__is_shifted=!1,__is_tabbed=!1,$(document).on("keyup keydown",function(e){var t=e.keyCode?e.keyCode:e.which;__is_shifted=e.shiftKey,__is_tabbed=9==t}),$("body").on("change",".onchange_form_submit_triggger",function(e){e.preventDefault(),get_onbeforeunload_status()?get_onbeforeunload_message(this,"$($eventData).parent('form').submit()","ev"):$(this).parent("form").submit()}),$("body").on("click",'button.ui_form_end_submit[type="button"]:not(.disabled)',function(){var e=$(this).next('input[type="submit"].hidden'),t=$(this).parent(".btn-group").next('input[type="submit"].hidden');e.length||(e=t);var i=e.parent(),a=(i.parent("tr").find("form"),e.parents("form"));if(!a.length)return a=e.closest("form"),a.length||(a=i.prev("form")),a.length||(a=i.prev().prev("form")),a.length||(a=i.prev().prev().prev("form")),a.append(a.nextUntil(i)),void $.each(i.find("select, input"),function(){$("").attr({type:"hidden",name:$(this).attr("name")?$(this).attr("name"):$(this).attr("id"),value:$(this).val()}).appendTo(a)}).promise().done(function(){a.submit()});var n=e.attr("name")?e.attr("name"):e.attr("id"),s=$.trim(e.val());$("").attr({type:"hidden",name:n,value:s}).appendTo(a),e.trigger("click")}),$("body").on("click",'.ui_form_end_submit:not(.disabled), .page_footer_submit:not(.disabled):not([href*="javascript:history"])',function(){Core.curModule("csf")?spinnerfy_buttons($(this),[2,-29,"small",!1]):spinnerfy_buttons($(this),!1,!1,!1)}),$("body").on("dblclick",'.mppopup a[onclick*="fileclick("], .mppopup a[onclick*="parentdir("]',function(e){e.preventDefault()});var r=0,_=null;$("body").on("dblclick",'.mppopup a[onclick*="select("]',function(e){$(".mppopup button[data-mppopup_confirm]").trigger("click")}),$("body").on("click",'.mppopup a[onclick*="fileclick("], .mppopup a[onclick*="parentdir("]',function(e){if(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),r++,$data_mppopup_value.val($v__mpp__g_ol),1===r)_=setTimeout(function(){if(r=0,"undefined"==typeof $v__mpp__g_gp&&($v__mpp__g_gp=0),$v__mpp__g_gp){var e=chooser_get_link($v__mpp__g_op);chooser_get(e)}else chooser_control($v__mpp__g_ol,0,0);$v__mpp__g_gp=0},450);else if(clearTimeout(_),r=0,$v__mpp__g_olt){var t=chooser_get_link($v__mpp__g_op);chooser_get(t)}else chooser_control($v__mpp__g_ol,1,1)}),$("body").on("click",".mppopup button[data-mppopup_confirm]",function(){chooser_control($data_mppopup_value.val(),1,1)}),$("body").on("show.bs.modal",".mppopup",function(){v__mpp__ml_t__e=0,$data_mppopup_value=$(".mppopup input[data-mppopup_value]"),$('.mppopup input[data-role="tagsinput"]').tagsinput({onTagExists:function(e,t){t.hide().fadeIn(),v__mpp__ml_t__e=1}})}),$("body").on("shown.bs.modal",".mppopup",function(){var e=$("body .mppopup").find(".modal-head");$("body .mppopup").find(".modal-body"),$("body .mppopup").find(".modal-body table"),e.find(".mppopup_filter > input");setTimeout(function(){$(".mppopup_filter_input").animate({opacity:1},$settings_animation_tabs_slide_time),$(".mppopup_filter_input").focus()},0)}),$("body").on("hidden.bs.modal",".mppopup",function(){refInput.removeClass("refInputData"),$('.mppopup input[data-role="tagsinput"]').tagsinput("destroy"),$("body .mppopup").remove(),$("button[data-mmclick].disabled, input[data-mmclick].disabled").removeClass("disabled").removeAttr("disabled")}),$("body").on("click",".mppopup_multi_done",function(e){refInput.val($.trim($('.mppopup input[data-role="tagsinput"]').val().replace(/,/g," "))),$('.mppopup span[aria-hidden="true"]').trigger("click")}),$("body").on("keyup",".mppopup_filter_input",function(e){var t=e.which,i=$(".mppopup table tbody tr:visible"),a=i.find("td:first-child a");if(!$(".mppopup .breadcrumbx").length){if(13!=t||1!==i.length||e.shiftKey){if(13==t&&1===i.length&&e.shiftKey){a.trigger("click").trigger("dblclick");var n=$(".mppopup .mppopup_multi_done:visible");n.length&&setTimeout(function(){n.trigger("click")},240)}}else a.trigger("click");$(".mppopup table tbody tr.noresults").length||$(".mppopup table tbody").append(''+theme_language("theme_xhred_global_no_results_found")+"");var s=$(".mppopup table tbody tr:visible:not(.noresults)"),o=$(".mppopup table tbody tr.noresults");s.length?o.addClass("hidden"):o.removeClass("hidden")}}),$("body").on("click","button[data-mmclick]:not(.disabled), input[data-mmclick]:not(.disabled)",function(e){function t(e,t,i,a,s){var o;o=s?' ":' ";var r=' ";$("body").append(r),refInput.addClass("refInputData"),$("body .mppopup").modal("show")}function i(e){e[1].startsWith("/")?$v__mpp__g_op=e[1]:$v__mpp__g_op="/"+e[1]}e.preventDefault(),e.stopPropagation(),refInput=chooser_get_target($(this),1);var a=$(this),n=refInput.val(),s=encodeURIComponent(n),o=$(this).attr("data-mmclick"),r=o.match("window.open\\(['\"]*(.*?)(\\s*['\"]*,.*?)"),_=r[1].match(/(\w+\.[a-z]{3,4})/gi)[0],l=_.replace(".cgi","");if(a.addClass("disabled").attr("disabled","disabled"),r[1]){var d=r[1].replace("encodeURIComponent(ifield.value)","refInputCurrValSafe");d=d.replace('"+"',"").replace('"+',"").replace("refInputCurrValSafe",s),$.ajax({type:"POST",url:d,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);var a=e,n=e.match(')<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/<\/body>|<\/html>/gi,""),a=$(i).filter(".table").html(),n=$(i).filter(".table").prev("b").html(),s=chooser_breadcrumbs(n);0===$(a).find("td").length&&(a=a.replace("thead","tbody"),a=a.replace("",''+theme_language("theme_xhred_datatable_semptydirectory")+"")),i=s+''+a+"
",t(i,"type1",0,refInput,0)}});else if($.isArray(n))i(n),$.ajax({type:"POST",url:$v__mpp__g_op,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);var i=e.replace(/<(!doctype|script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/<\/body>|<\/html>/gi,"");i=''+$(i).filter("table").html()+"
",t(i,"type2",0,refInput,1)}});else{if($.isArray(n)&&n[1].indexOf("&multi=1")===-1)return;var s=a,o=$(s).filter("table").html();t(''+o+"
","",1,refInput,0)}}})}else $(this).removeClass("disabled"),$(this).attr("onclick",$(this).attr("data-mmclick")).removeAttr("data-mmclick"),$(this).trigger("click")}),$("body").on("click",".generate-password-key",function(e){var t=theme_password_generator();$("body").append('');var i=new Clipboard(".tmp-clipboard-obj");$(".tmp-clipboard-obj").trigger("click"),$(".tmp-clipboard-obj").remove(),i.destroy(),theme_messenger(''+theme_language("theme_xhred_password_generator_new_success").replace("%password",' '+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("change",'form[action*="save_log.cgi"] select[name="idx"]',function(e){var t=$("button.ui_submit.ui_form_end_submit");$(this).next('[name="filter"]').val(""),t.first().trigger("click"),t.addClass("disabled")}),$("body").on("keydown",'form[action*="save_log.cgi"] input[name="filter"], form[action*="save_log.cgi"] input[name="lines"]',function(e){if(13==e.keyCode){e.preventDefault();var t=$("button.ui_submit.ui_form_end_submit");t.first().trigger("click"),t.addClass("disabled")}}),$("aside").on("click",".__logout-link",function(e){progress.start(),get_server_tmp_var("goto",0)}),$("body").on("click",'button, input[type="submit"], a',function(e){v___page_activeElement=this}),$("body").on("click","._c__op_d",function(e){if($(e.target).is(this)){var t=$(this).find(".opener_trigger").first()[0];t&&t.click()}}),$("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;o&&(s=""),t.popover({html:!0,container:".container-fluid",template:'',title:function(){return s+$help_title},content:function(){return $help_body},placement:"auto right"}),t.popover("show"),t.on("shown.bs.popover",function(){$help_body.indexOf("")>-1&&$(".popover").animate({"max-width":"540px"},300),$("body").find(".popover:visible").addClass("module-help"),$('body[class*="'+v___module_file_manager+'"]').find(".popover:visible").addClass("file-manager-help"),setTimeout(function(){$.each($(".module-help"),function(){$(this).is(t.next(".module-help"))?($(this).animate({opacity:1},600),popover_visibility_position($(this))):$(".module-help").length>1?$(this).css("opacity",.85):$(this).css("opacity",1)})},100)}),t.on("hidden.bs.popover",function(){$("body").undelegate(":not(tt)","click"),t.attr("data-initial")&&(t.attr("href",t.attr("data-initial")),t.removeAttr("data-initial").removeAttr("data-substituted"))})}})}),$("body").on("click",'#extended_sysinfo-1 .panel-collapse[aria-labelledby="status-virtual-server-1"] a:not(.ui_link)',function(e){e.preventDefault();var t=$(this),i=t.attr("href");if(!t.hasClass("disabled")){t.addClass("disabled opacity-0_4");var a=t.find(".fa-refresh");a&&a.addClass("fa-spin"),progress.start(),$.ajax({type:"GET",url:i,data:!1,statusCode:{200:function(){$.ajax({type:"GET",url:v___location_prefix+"/sysinfo.cgi",success:function(e){var t="#status-virtual-server-1-collapse",i=$(e).find(t).find(".panel-body");$('[data-dcontainer="1"]').find(t).find(".panel-body").replaceWith(i),progress.end()}})}}})}}),setTimeout(function(){window.onbeforeunload=function(){if(get_onbeforeunload_status()&&$(quirks.active_element()).is("a"+$__theme_event_deselectors))return progress.end(),!0},$(function(){v___available_navigation||progress.end()})},100),theme_alert_charset(),favorites_detect(),page_render(0),setTimeout(function(){v___initial_load=0},1e3)}); \ No newline at end of file