(()=>{const e=["post-php","post-new-php","site-editor-php"],n=["agents-manager-sidebar-container","agents-manager-sidebar-container--sidebar-open"];function t(){const{classList:n}=document.body;return!e.some(e=>n.contains(e))||n.contains("is-fullscreen-mode")}function o(){document.body.classList.remove(...n)}if(function(){if(!document.body)return;const e=document.getElementById("adminmenu");if(!e)return;const n=document.getElementById("wpadminbar"),s=n?n.offsetHeight:32,i=window.innerHeight<e.offsetHeight+s+20,c=window.innerWidth<1200;(i||c||!t())&&o()}(),document.body){const e=new MutationObserver(()=>{n.some(e=>document.body.classList.contains(e))&&!document.querySelector(".agents-manager-chat")?t()||o():e.disconnect()});e.observe(document.body,{attributes:!0,attributeFilter:["class"]})}})();