(e=>{function c(e){var t,c;!e.classList.contains("cf-input")||"checkbox"!==e.type||(e=e.closest(".cf-control-group")).querySelectorAll(".cf-checkbox-group-required").length<2||(t=e.querySelectorAll("input[type=checkbox]"),(c=0==e.querySelectorAll("input[type=checkbox]:checked").length)&&"false"==e.dataset.requiredOverride)||t.forEach(function(e){e.required=c,e.ariaRequired=c})}ConvertForms.Helper.onReady(function(){function t(e){e.querySelectorAll(".cf-list > .cf-checkbox-group-required:first-child input[type=checkbox]").forEach(function(e){c(e)})}t(e),e.addEventListener("change",function(e){c(e.target)}),e.addEventListener("ConvertFormsAfterConditionalFields",function(e){t(e.detail.instance.selector)})})})(document);

