(()=>{"use strict";document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".ablocks-form-builder__radio-field").forEach(e=>{!function(e){const c=e?.querySelectorAll(".ablocks-form-builder__radio-all-options .ablocks-form-builder__radio-option");if(c){const e=Array.from(c);e.forEach(c=>{c.addEventListener("click",d=>{const o=c.querySelector("input");"checkbox"===o.type?d.target===o?(e.forEach(e=>{!0!==e.querySelector("input").checked&&e.classList.remove("checked")}),!0===o.checked?c.classList.add("checked"):c.classList.remove("checked")):(e.forEach(e=>{!0!==e.querySelector("input").checked&&e.classList.remove("checked")}),o.checked=!o.checked,!0===o.checked?c.classList.add("checked"):c.classList.remove("checked")):"radio"===o.type&&(d.target===o?(e.forEach(e=>{e.classList.remove("checked")}),!0===o.checked&&c.classList.add("checked")):(e.forEach(e=>{e.classList.remove("checked")}),o.checked=!o.checked,!0===o.checked&&c.classList.add("checked")))})})}}(e)})})})();