(()=>{"use strict";const e=wp.codeEditor.initialize("option-custom-css",{}).codemirror,t=e.getWrapperElement(),s=function(){this.classList.contains("disabled")||(this.classList.add("large"),e.refresh(),this.removeEventListener("mousedown",s))};t.addEventListener("mousedown",s);const n=document.getElementById("option-use-custom-css");n.addEventListener("change",(function(){e.setOption("readOnly",!this.checked),t.classList.toggle("disabled",!this.checked)})),n.dispatchEvent(new Event("change"))})();