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