text: /* Do not modify this file directly. It is compiled from other files. */
  /* global ajaxurl, jpAdminMenu */
  !function(){function e(){var e=document.querySelector("#wpadminbar"),r=document.querySelector("#wpwrap"),a=document.querySelector("#adminmenu"),o=document.querySelector("#dashboard-switcher .dashboard-switcher-button");if(e){c("false");var d=e.querySelector("#wp-admin-bar-blog");if(d&&d.addEventListener("click",function(t){t.preventDefault();for(var n=e.querySelectorAll(".hover"),a=0;a<n.length;a++)n[a].classList.remove("hover");if(r.classList.toggle("wp-responsive-open"),r.classList.contains("wp-responsive-open")){c("true");var o=document.querySelector("#adminmenu a");o&&o.focus()}else c("false")}),a){var i=a.querySelector("#collapse-button");i&&i.addEventListener("click",function(e){setTimeout(function(){var n;n=e.target.parentNode.ariaExpanded,t("POST",ajaxurl,"application/x-www-form-urlencoded; charset=UTF-8","action=sidebar_state&expanded="+n)},50)})}o&&o.addEventListener("click",n)}function c(t){for(var n=e.querySelectorAll("#wp-admin-bar-blog a"),r=0;r<n.length;r++)n[r].setAttribute("aria-expanded",t)}}function t(e,t,n,r){var a=new XMLHttpRequest;a.open(e,t,!0),a.setRequestHeader("X-Requested-With","XMLHttpRequest"),n&&a.setRequestHeader("Content-Type",n),a.withCredentials=!0,a.send(r)}function n(){t("GET",ajaxurl+"?action=set_preferred_view&screen="+jpAdminMenu.screen+"&preferred-view=default")}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()}();