document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".coblocks-form form").forEach((e=>{const c=e.getElementsByClassName("required-error")[0];e.querySelectorAll(".coblocks-field.checkbox.required").length&&(e.addEventListener("submit",(o=>{if(0===e.querySelectorAll('.coblocks-field.checkbox.required input[type="checkbox"]:checked').length)return c.style.display="block",void o.preventDefault();c.style.display="none"})),e.querySelectorAll('.coblocks-field.checkbox.required input[type="checkbox"]').forEach((e=>{e.addEventListener("change",(()=>{c.style.display="none"}))})))}))}));