(()=>{"use strict";const e=window.wp.i18n,t=e=>"#"===e[0]?document.getElementById(e.slice(1)):document.querySelectorAll(e),n=t("#option-use-custom-css");n&&(n.addEventListener("change",(function(){t("#option-custom-css").disabled=!this.checked})),n.dispatchEvent(new Event("change"))),document.querySelector("#tablepress-page form").addEventListener("submit",(function(){this.querySelectorAll("input, select, textarea").forEach((e=>e.disabled=!1))})),t("#uninstall-tablepress").addEventListener("click",(t=>{confirm((0,e.__)("Do you really want to uninstall TablePress and delete ALL data?","tablepress"))&&confirm((0,e.__)("Are you really sure?","tablepress"))||t.preventDefault()}))})();