wp.domReady((()=>{if(fictioneerData.userCapabilities?.manage_options||wp.data.dispatch("core/edit-post").removeEditorPanel("page-attributes"),fictioneerData.userCapabilities?.fcn_edit_permalink||wp.data.dispatch("core/edit-post").removeEditorPanel("post-link"),fictioneerData.userCapabilities?.fcn_select_page_template||wp.data.dispatch("core/edit-post").removeEditorPanel("template"),setTimeout((()=>{document.querySelectorAll("label").forEach((e=>{"Stick to the top of the blog"===e.textContent&&(fictioneerData.userCapabilities?.fcn_make_sticky||e.closest(".components-panel__row").remove()),"Allow pingbacks & trackbacks"===e.textContent&&e.closest(".components-panel__row").remove()}))}),200),!fictioneerData.userCapabilities?.fcn_read_others_files){newMutationObserver((e=>{e.forEach((e=>{if(e.addedNodes&&e.addedNodes.length>0){conste=document.querySelector(".block-editor-inserter__tabs > .components-tab-panel__tabs");e&&e.remove()}}))})).observe(document.querySelector("#editor"),{childList:!0,subtree:!0})}}));